Android remote debugging

7 views
Skip to first unread message

Ariya Hidayat

unread,
Nov 6, 2010, 12:46:19 AM11/6/10
to id...@googlegroups.com

Akhmad Fathonih

unread,
Nov 6, 2010, 1:58:28 AM11/6/10
to id...@googlegroups.com
Ada bug nih. Where to report?

Starting: Intent { act=com.sencha.remotejs.ACTION_CAPTURE cmp=com.sencha.remotejs/.RemoteJS }
Warning: Activity not started, its current task has been brought to the front
kfilemodule(12485)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems: No node found for item that was just removed: KUrl("file:///home/toni/Pictures/4636918166_84ee4e67be.jpg") 
failed to copy '/data/data/com.sencha.remotejs/cache/remotejs-capture.png' to '/home/toni/Pictures/remotejs.png': Permission denied

Sudah chmod a+rw ~/Pictures tetap masih begitu messagenya.

--
http://launchpad.navinot.com - Dukung Startup Lokal!
http://navinot.com - Slashing Web & Online Strategy

Ariya Hidayat

unread,
Nov 6, 2010, 11:39:31 AM11/6/10
to id...@googlegroups.com
> Starting: Intent { act=com.sencha.remotejs.ACTION_CAPTURE
> cmp=com.sencha.remotejs/.RemoteJS }
> Warning: Activity not started, its current task has been brought to the
> front

Apakah sebuah website sudah dibuka? Atau tiba-tiba tombol "Capture
Window" langsung ditekan begitu saja?

> kfilemodule(12485)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems: No
> node found for item that was just removed:
> KUrl("file:///home/toni/Pictures/4636918166_84ee4e67be.jpg")
> failed to copy '/data/data/com.sencha.remotejs/cache/remotejs-capture.png'
> to '/home/toni/Pictures/remotejs.png': Permission denied
> Sudah chmod a+rw ~/Pictures tetap masih begitu messagenya.

Masalahnya bukan di file sistem lokal, tapi remote.

Test dulu 'adb pull
/data/data/com.sencha.remotejs/cache/remotejs-capture.png
/path/ke/lokal/foobar.png' langsung dari terminal.

--
Ariya

Akhmad Fathonih

unread,
Nov 6, 2010, 12:46:25 PM11/6/10
to id...@googlegroups.com
Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
error tersebut.

Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
ada masalah. Maybe I should test again

--
Sent from my mobile device

Akhmad Fathonih

unread,
Nov 6, 2010, 12:48:02 PM11/6/10
to id...@googlegroups.com
Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
error tersebut.

Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
ada masalah. Maybe I should test again

On 11/6/10, Ariya Hidayat <ariya....@gmail.com> wrote:

--

Sent from my mobile device

http://launchpad.navinot.com - Dukung Startup Lokal!

Akhmad Fathonih

unread,
Nov 6, 2010, 12:52:45 PM11/6/10
to id...@googlegroups.com
Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
error tersebut.

Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
ada masalah. Maybe I should test again

On 11/6/10, Ariya Hidayat <ariya....@gmail.com> wrote:

--

Sent from my mobile device

http://launchpad.navinot.com - Dukung Startup Lokal!

Akhmad Fathonih

unread,
Nov 6, 2010, 12:55:19 PM11/6/10
to id...@googlegroups.com
Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
error tersebut.

Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
ada masalah. Maybe I should test again

On 11/6/10, Ariya Hidayat <ariya....@gmail.com> wrote:

--

Sent from my mobile device

http://launchpad.navinot.com - Dukung Startup Lokal!

Akhmad Fathonih

unread,
Nov 6, 2010, 12:56:39 PM11/6/10
to id...@googlegroups.com
Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
error tersebut.

Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
ada masalah. Maybe I should test again

On 11/6/10, Ariya Hidayat <ariya....@gmail.com> wrote:

--

Sent from my mobile device

http://launchpad.navinot.com - Dukung Startup Lokal!

Akhmad Fathonih

unread,
Nov 6, 2010, 12:57:40 PM11/6/10
to id...@googlegroups.com
Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
error tersebut.

Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
ada masalah. Maybe I should test again

On 11/6/10, Ariya Hidayat <ariya....@gmail.com> wrote:

--

Sent from my mobile device

http://launchpad.navinot.com - Dukung Startup Lokal!

Akhmad Fathonih

unread,
Nov 6, 2010, 1:04:37 PM11/6/10
to id...@googlegroups.com
Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
error tersebut.

Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
ada masalah. Maybe I should test again

On 11/6/10, Ariya Hidayat <ariya....@gmail.com> wrote:

--

Sent from my mobile device

http://launchpad.navinot.com - Dukung Startup Lokal!

Ariya Hidayat

unread,
Nov 6, 2010, 9:04:10 PM11/6/10
to id...@googlegroups.com
> Tadi kasusnya sudah open sencha example. Trus tekan capture untuk
> ambil gambar dari display smartphone. Dan setiap disimpan akan muncul
> error tersebut.
>
> Sebelumnya aku pernah coba capture screenshot via adb langsung dan tak
> ada masalah. Maybe I should test again

"Capture Window" di remotejs lain dengan penangkapan framebuffer via adb.

BTW, Eclair atau Froyo?


--
Ariya Hidayat, Engineering Director, Sencha
http://www.linkedin.com/in/ariyahidayat

Akhmad Fathonih

unread,
Nov 7, 2010, 12:34:47 AM11/7/10
to id...@googlegroups.com

Eclair (2.1)

On 7 Nov 2010 08:04, "Ariya Hidayat" <ariya....@gmail.com> wrote:

> Tadi kasusnya sudah open sencha example. Trus tekan capture untuk

> ambil gambar dari display smar...

Ariya Hidayat

unread,
Nov 8, 2010, 11:03:44 AM11/8/10
to id...@googlegroups.com
> Eclair (2.1)

Coba jalankan 'adb logcat' bersamaan dengan aksi penangkapan layar. Di
Froyo yang akan nampak adalah:

I/RemoteJS( 269): Capture finished.
I/RemoteJS( 269): About to save to
/data/data/com.sencha.remotejs/cache/remotejs-capture.png
I/RemoteJS( 269): Capture saved to remotejs-capture.png

Mungkinkah lokasi direktori cache berbeda di Eclair, yakni bukan di
bawah /data/data/com.sencha.remotejs/cache ?

Akhmad Fathonih

unread,
Nov 9, 2010, 4:10:38 AM11/9/10
to id...@googlegroups.com


2010/11/8 Ariya Hidayat <ariya....@gmail.com>

Berikut tangkapan dari Eclair 2.1

I/RemoteJS( 3452): Capture finished.
I/RemoteJS( 3452): About to save to /data/data/com.sencha.remotejs/cache/remotejs-capture.png
I/RemoteJS( 3452): Capture saved to remotejs-capture.png

dan masih tetap gagal menangkap layar :D

Karena penasaran, saya coba pakai adb shell. Saya coba navigate ke folder cache di atas. Ternyata memang kena permission denied.

su to the rescue:
# ls
webviewCache
remotejs-capture.png
# pwd
/data/data/com.sencha.remotejs/cache

Voila

--

Ariya Hidayat

unread,
Nov 9, 2010, 10:34:07 AM11/9/10
to id...@googlegroups.com
> Berikut tangkapan dari Eclair 2.1
> I/RemoteJS( 3452): Capture finished.
> I/RemoteJS( 3452): About to save to
> /data/data/com.sencha.remotejs/cache/remotejs-capture.png
> I/RemoteJS( 3452): Capture saved to remotejs-capture.png
> dan masih tetap gagal menangkap layar :D
> Karena penasaran, saya coba pakai adb shell. Saya coba navigate ke folder
> cache di atas. Ternyata memang kena permission denied.

Aha :)

Belum tahu apakah menolong atau tidak, tapi barangkali bisa dicoba:

adb kill-server
sudo adb start-server

lalu jalankan lagi RemoteJS client versi Qt/Desktop ataupun 'adb pull
/data/data/com.sencha.remotejs/cache/remotejs-capture.png
/path/ke/lokal/foobar.png' dari terminal.

--
Ariya

Akhmad Fathonih

unread,
Nov 9, 2010, 8:38:19 PM11/9/10
to id...@googlegroups.com
2010/11/9 Ariya Hidayat <ariya....@gmail.com>

Hehe, it doesn't work sir.
Yang perlu akses root itu yang di dalam shell android. Running adb server as root doesn't help :D

Seharusnya mungkin
adb root # restart adb in root mode

tapi di production build ternyata dilarang: 
toni@toni:~/Apps/android-sdk-linux/tools$ ./adb root
adbd cannot run as root in production builds

Solusi di bawah ini mungkin bisa dipakai tapi ragu-ragu apa binary-nya sama :D
Reply all
Reply to author
Forward
0 new messages