[WFX] Android ADB 8.8

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

New version 2.6

Post by *jakubklos »

I have released a new version:
2.6
- New: .apps listing - if permissions denied to /data/app/ then "pm list packages" is used instead (works on emulator and non rooted phones - you can still uninstall and install apps)
- Update: Rename device - Checks device name collisions better
- Update: File listing - Filter still opens a blank folder
billiebub
Member
Member
Posts: 187
Joined: 2011-04-12, 19:49 UTC

Post by *billiebub »

Thanks for this nice plugin. It took me a while to realize that I had to do a refresh to see that it actually connected to the device. Could you please add an auto refresh when a connection is established?
sheayone
Junior Member
Junior Member
Posts: 9
Joined: 2012-05-14, 06:59 UTC

Re: New version 2.6

Post by *sheayone »

jakubklos wrote:I have released a new version:
2.6
- New: .apps listing - if permissions denied to /data/app/ then "pm list packages" is used instead (works on emulator and non rooted phones - you can still uninstall and install apps)
- Update: Rename device - Checks device name collisions better
- Update: File listing - Filter still opens a blank folder
Thanks for the nice plugin!

Found a bug, if the adb device name includes one or more spaces, eg. "COWON Z2", the plugin actually gets a name "COWON". For now I can only visit my cowon z2 by directly using the path - "\\\ADB\COWON Z2"

:)
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

billiebub wrote:Thanks for this nice plugin. It took me a while to realize that I had to do a refresh to see that it actually connected to the device. Could you please add an auto refresh when a connection is established?
I do not think it is possible to make TC to reload a file list. I made the Connection blocking but still it appears after sometime :(
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: New version 2.6

Post by *jakubklos »

sheayone wrote:
jakubklos wrote:I have released a new version:
2.6
- New: .apps listing - if permissions denied to /data/app/ then "pm list packages" is used instead (works on emulator and non rooted phones - you can still uninstall and install apps)
- Update: Rename device - Checks device name collisions better
- Update: File listing - Filter still opens a blank folder
Thanks for the nice plugin!

Found a bug, if the adb device name includes one or more spaces, eg. "COWON Z2", the plugin actually gets a name "COWON". For now I can only visit my cowon z2 by directly using the path - "\\\ADB\COWON Z2"

:)
True, if you really can have a device with spaces then it will not work. Frankly, I thought it was not allowed. I will fix it. Thank you
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

New version

Post by *jakubklos »

Some fixes and tweaks
2.7
- Fix: Device name with spaces fixed, support for device name with spaces added for screenshots and others
- New: New Windows Job Objects option (turn off if you use your own adb in system PATH)
sheayone
Junior Member
Junior Member
Posts: 9
Joined: 2012-05-14, 06:59 UTC

Re: New version

Post by *sheayone »

jakubklos wrote:Some fixes and tweaks
2.7
- Fix: Device name with spaces fixed, support for device name with spaces added for screenshots and others
- New: New Windows Job Objects option (turn off if you use your own adb in system PATH)
So fast!!! Thanks.
ka81
New Member
New Member
Posts: 1
Joined: 2005-03-11, 13:27 UTC
Location: Kyiv

Post by *ka81 »

if somebody successfully entered the SGSII through TC - please help with advices..
TC 7.04a
installed plugin, in Connectio/FS-plugins I see ADB, I click on it but nothing happened. :(
pan Oleksiy
User avatar
Tichij
Junior Member
Junior Member
Posts: 24
Joined: 2011-02-22, 12:33 UTC
Location: Lithuania

Re: New version

Post by *Tichij »

Thanks for the nice plugin!

I get error "Value too large for defined data type total 0" when try to open some folders (e.g.) "/data/".

TC 8.01, adb plugin 2.7, device Samsung Galaxy Nexus (4.0.4)

Code: Select all

2012-08-21 16:59:02 [07F0] Connecting to ADB server...
2012-08-21 16:59:02 [07F0] Connected
2012-08-21 16:59:02 [07F0] ADB Write: host:devices
2012-08-21 16:59:02 [07F0] ADB Read: 0146B0651300F011	device
2012-08-21 16:59:04 [07F0] Connecting to ADB server...
2012-08-21 16:59:04 [07F0] Connected
2012-08-21 16:59:04 [07F0] ADB Write: host:transport:0146B0651300F011
2012-08-21 16:59:04 [07F0] ADB Read: OKAY
2012-08-21 16:59:04 [07F0] ADB Write: shell:busybox ls -lp -a --color=never "/"
2012-08-21 16:59:04 [07F0] ADB Read: OKAY
2012-08-21 16:59:04 [07F0] ADB Read Data: total 408
drwxr-xr-x   15 0        0                0 Aug 20 11:00 ./
drwxr-xr-x   15 0        0                0 Aug 20 11:00 ../
drwxr-xr-x    3 0        0                0 Aug 20 11:00 acct/
drwxrwx---    4 1000     2001          4096 Aug 20 17:09 cache/
-rwxr-x---    1 0        0           240544 Jan  1  1970 charger
dr-x------    2 0        0                0 Aug 20 11:00 config/
lrwxrwxrwx    1 0        0               17 Aug 20 11:00 d -> /sys/kernel/debug/
drwxrwx--x   21 1000     1000          4096 Jul 29 15:20 data/
-rw-r--r--    1 0        0              116 Jan  1  1970 default.prop
drwxr-xr-x   13 0        0             1580 Aug 20 11:01 dev/
lrwxrwxrwx    1 0        0               11 Aug 20 11:00 etc -> /system/etc/
drwxrwxr-x    6 1001     1001          4096 Dec 28  2011 factory/
-rwxr-x---    1 0        0            98608 Jan  1  1970 init
-rwxr-x---    1 0        0             2344 Jan  1  1970 init.goldfish.rc
-rwxr-x---    1 0        0             1324 Jan  1  1970 init.omap4pandaboard.rc
-rwxr-x---    1 0        0            17105 Jan  1  1970 init.rc
-rwxr-x---    1 0        0             6989 Jan  1  1970 init.tuna.rc
-rwxr-x---    1 0        0             3532 Jan  1  1970 init.tuna.usb.rc
drwxrwxr-x    6 0        1000             0 Aug 20 11:00 mnt/
dr-xr-xr-x  145 0        0                0 Jan  1  1970 proc/
drwxr-xr-x    3 0        0                0 Jan  1  1970 res/
drwx------    2 0        0                0 Apr 13 18:34 root/
drwxr-x---    2 0        0                0 Jan  1  1970 sbin/
lrwxrwxrwx    1 0        0               11 Aug 20 11:00 sdcard -> /mnt/sdcard/
drwxr-xr-x   14 0        0                0 Aug 20 11:00 sys/
drwxr-xr-x   13 0        0             4096 Jul 25 10:14 system/
-rw-r--r--    1 0        0              272 Jan  1  1970 ueventd.goldfish.rc
-rw-r--r--    1 0        0             3825 Jan  1  1970 ueventd.rc
-rw-r--r--    1 0        0             1656 Jan  1  1970 ueventd.tuna.rc
lrwxrwxrwx    1 0        0               14 Aug 20 11:00 vendor -> /system/vendor/
2012-08-21 16:59:06 [07F0] Connecting to ADB server...
2012-08-21 16:59:06 [07F0] Connected
2012-08-21 16:59:06 [07F0] ADB Write: host:transport:0146B0651300F011
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:06 [07F0] ADB Write: shell:busybox ls -lp -a --color=never "/data/app/"
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:06 [07F0] ADB Read Data: ls: can't open '/data/app/': Permission denied
total 0
2012-08-21 16:59:06 [07F0] Connecting to ADB server...
2012-08-21 16:59:06 [07F0] Connected
2012-08-21 16:59:06 [07F0] ADB Write: host:transport:0146B0651300F011
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:06 [07F0] ADB Write: shell:su -c "busybox ls -lp -a --color=never \"/data/app/\""
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:07 [07F0] ADB Read Data: ls: can't open '/data/app/': Value too large for defined data type
total 0
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: New version

Post by *jakubklos »

Tichij wrote:Thanks for the nice plugin!

I get error "Value too large for defined data type total 0" when try to open some folders (e.g.) "/data/".

TC 8.01, adb plugin 2.7, device Samsung Galaxy Nexus (4.0.4)

Code: Select all

2012-08-21 16:59:02 [07F0] Connecting to ADB server...
2012-08-21 16:59:02 [07F0] Connected
2012-08-21 16:59:02 [07F0] ADB Write: host:devices
2012-08-21 16:59:02 [07F0] ADB Read: 0146B0651300F011	device
2012-08-21 16:59:04 [07F0] Connecting to ADB server...
2012-08-21 16:59:04 [07F0] Connected
2012-08-21 16:59:04 [07F0] ADB Write: host:transport:0146B0651300F011
2012-08-21 16:59:04 [07F0] ADB Read: OKAY
2012-08-21 16:59:04 [07F0] ADB Write: shell:busybox ls -lp -a --color=never "/"
2012-08-21 16:59:04 [07F0] ADB Read: OKAY
2012-08-21 16:59:04 [07F0] ADB Read Data: total 408
drwxr-xr-x   15 0        0                0 Aug 20 11:00 ./
drwxr-xr-x   15 0        0                0 Aug 20 11:00 ../
drwxr-xr-x    3 0        0                0 Aug 20 11:00 acct/
drwxrwx---    4 1000     2001          4096 Aug 20 17:09 cache/
-rwxr-x---    1 0        0           240544 Jan  1  1970 charger
dr-x------    2 0        0                0 Aug 20 11:00 config/
lrwxrwxrwx    1 0        0               17 Aug 20 11:00 d -> /sys/kernel/debug/
drwxrwx--x   21 1000     1000          4096 Jul 29 15:20 data/
-rw-r--r--    1 0        0              116 Jan  1  1970 default.prop
drwxr-xr-x   13 0        0             1580 Aug 20 11:01 dev/
lrwxrwxrwx    1 0        0               11 Aug 20 11:00 etc -> /system/etc/
drwxrwxr-x    6 1001     1001          4096 Dec 28  2011 factory/
-rwxr-x---    1 0        0            98608 Jan  1  1970 init
-rwxr-x---    1 0        0             2344 Jan  1  1970 init.goldfish.rc
-rwxr-x---    1 0        0             1324 Jan  1  1970 init.omap4pandaboard.rc
-rwxr-x---    1 0        0            17105 Jan  1  1970 init.rc
-rwxr-x---    1 0        0             6989 Jan  1  1970 init.tuna.rc
-rwxr-x---    1 0        0             3532 Jan  1  1970 init.tuna.usb.rc
drwxrwxr-x    6 0        1000             0 Aug 20 11:00 mnt/
dr-xr-xr-x  145 0        0                0 Jan  1  1970 proc/
drwxr-xr-x    3 0        0                0 Jan  1  1970 res/
drwx------    2 0        0                0 Apr 13 18:34 root/
drwxr-x---    2 0        0                0 Jan  1  1970 sbin/
lrwxrwxrwx    1 0        0               11 Aug 20 11:00 sdcard -> /mnt/sdcard/
drwxr-xr-x   14 0        0                0 Aug 20 11:00 sys/
drwxr-xr-x   13 0        0             4096 Jul 25 10:14 system/
-rw-r--r--    1 0        0              272 Jan  1  1970 ueventd.goldfish.rc
-rw-r--r--    1 0        0             3825 Jan  1  1970 ueventd.rc
-rw-r--r--    1 0        0             1656 Jan  1  1970 ueventd.tuna.rc
lrwxrwxrwx    1 0        0               14 Aug 20 11:00 vendor -> /system/vendor/
2012-08-21 16:59:06 [07F0] Connecting to ADB server...
2012-08-21 16:59:06 [07F0] Connected
2012-08-21 16:59:06 [07F0] ADB Write: host:transport:0146B0651300F011
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:06 [07F0] ADB Write: shell:busybox ls -lp -a --color=never "/data/app/"
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:06 [07F0] ADB Read Data: ls: can't open '/data/app/': Permission denied
total 0
2012-08-21 16:59:06 [07F0] Connecting to ADB server...
2012-08-21 16:59:06 [07F0] Connected
2012-08-21 16:59:06 [07F0] ADB Write: host:transport:0146B0651300F011
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:06 [07F0] ADB Write: shell:su -c "busybox ls -lp -a --color=never "/data/app/""
2012-08-21 16:59:06 [07F0] ADB Read: OKAY
2012-08-21 16:59:07 [07F0] ADB Read Data: ls: can't open '/data/app/': Value too large for defined data type
total 0
This seems to be a problem of busybox:
https://code.google.com/p/busybox-android/issues/detail?id=1

These options should help:
- Uncheck the busybox option
- Install a different version of busybox

Let me know
User avatar
Tichij
Junior Member
Junior Member
Posts: 24
Joined: 2011-02-22, 12:33 UTC
Location: Lithuania

Re: New version

Post by *Tichij »

jakubklos wrote:Install a different version of busybox
Update busybox from 1.19.3 to 1.20.2 and now all works. Thanks.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1013
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

I recently tried to speed up the apk parsing by unzipping the AndroidManifest.xml to the console.
Unfortunately i realized that the busybox unzip is extremely limited and only lists a couple of files in an apk.
Maybe you can come up with a more complete unzip variant or some helper app.
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

ZoSTeR wrote:I recently tried to speed up the apk parsing by unzipping the AndroidManifest.xml to the console.
Unfortunately i realized that the busybox unzip is extremely limited and only lists a couple of files in an apk.
Maybe you can come up with a more complete unzip variant or some helper app.
There is a way I thought of initially. Everything would be loaded within seconds. Creating a new android app which would simply dump all the info to sdcard. You would call the intent from shell, it would do its job and then the rest would be just pulling files from the sdcard.

The app could be installed automatically too. The problem why I did not create such app is that there is no way to be notified to shell when an app finishes.

When you use the "am" command you can call any intent but that's it. You cannot wait for the intent to be finished or notified in any way. I thought of a dirty hack to check the logcat and dump some log when the intent finishes.

Anyway, I do not think there is a better solution. I suppose you are an android developer too, would you like to create such an app :)?
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1013
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Unfortunaltely i'm no android/java developer.

Concerning this problem to notice when a process finished: Couldn't you not just create or rename a specific file to signal it?
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

New version

Post by *jakubklos »

A new version has been released:
2.8
- New: Reboot action contains a new popup menu with these options: Reboot, Hot Boot, Recovery, Download, Power Off (some of them require a rooted device)
- Update: Connect To Device causes a refresh of file listing
Post Reply