[WFX] Android ADB 8.8

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
iNorbert
Junior Member
Junior Member
Posts: 6
Joined: 2009-04-21, 05:57 UTC
Location: Russia - mat' nasha

Post by *iNorbert »

Work nice. Thanks.
Preep
New Member
New Member
Posts: 1
Joined: 2012-12-01, 10:25 UTC

Post by *Preep »

Plugin works great with ADB Wifi but i have very slow transfer speed, in both directions, under 400kb/s. Using windows ftp client and ftp server on phone i have 2mb/s. :roll:
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

It is best to test with ADB command line tool and compare. It could be a badly designed ADB protocol or something related to your ROM.

C:\Temp>adb pull "/sdcard/Video/2012-02 Deti si hraji.mp4"
897 KB/s (9873678 bytes in 10.739s)

So you can see the command line tool speed above (897kB/s)

When using TC ADB plugin then TC reports 1087kB/s which is even faster then the command line tool. I am quite satisfied with this.

Unfortunately FTP transfer is really faster almost 5MB per second. I can only say it is badly designed protocol. Nothing I can do about it

ADB is not really meant for file syncing. I use Samba sharing and it works quite well for me.
cafondre
Junior Member
Junior Member
Posts: 4
Joined: 2012-12-04, 11:35 UTC

Post by *cafondre »

Hi,

This plug-in is awesome!

One suggestion: I use the SHELL interface several times, and I like to have support for ADB FORWARDING. A simple directory, menu or config for start/stop port redirection will be very interesting.

King regards!
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

cafondre wrote:Hi,

This plug-in is awesome!

One suggestion: I use the SHELL interface several times, and I like to have support for ADB FORWARDING. A simple directory, menu or config for start/stop port redirection will be very interesting.

King regards!
Hi,
thank you. How about creating some custom scripts in Options. Then in the device there would be a new section ".scripts". It would popup all your scripts and you could execute them. This way you would have more options and could setup port forwarding as one of them.

Let me know
cafondre
Junior Member
Junior Member
Posts: 4
Joined: 2012-12-04, 11:35 UTC

Post by *cafondre »

jakubklos wrote:
cafondre wrote:Hi,
Hi,
thank you. How about creating some custom scripts in Options. Then in the device there would be a new section ".scripts". It would popup all your scripts and you could execute them. This way you would have more options and could setup port forwarding as one of them.

Let me know
This would be great! I prefer a specific mode to set/disable ports, but this option is sufficient for us.

You will use directories for execute scripts?

My corcern is about how to remove assigned ports: you will need to include an "exit" default script to be executed when the device is disconnected/removed/etc.

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

Post by *jakubklos »

cafondre wrote:
jakubklos wrote:
cafondre wrote:Hi,
Hi,
thank you. How about creating some custom scripts in Options. Then in the device there would be a new section ".scripts". It would popup all your scripts and you could execute them. This way you would have more options and could setup port forwarding as one of them.

Let me know
This would be great! I prefer a specific mode to set/disable ports, but this option is sufficient for us.

You will use directories for execute scripts?

My corcern is about how to remove assigned ports: you will need to include an "exit" default script to be executed when the device is disconnected/removed/etc.

Best!
I don't think I can execute a script when the device is disconnected. You would need to deal with this on the device itself (Tasker probably). All I am suggesting is a list of custom scripts that would be accessible in
.scripts/
And you would simply execute them. These scripts would be created in the Options of the plugin and would be available on all the devices... Let me know
kirik64
Junior Member
Junior Member
Posts: 7
Joined: 2012-03-26, 13:24 UTC

Post by *kirik64 »

jakubklos,
thanks a lot for your indispensable plug-in!
There's a slight issue, however. Could you think about a way to check sdcard(s) mount points right after connection? The problem is that on some devices with /sdcard mp's (not /mnt/sdcard) one can't pull logcat or dmesg or similar because the plug-in (as seen in its log) tries to write a temp file to /mnt/sdcard exclusively. So a check is needed here, clearly.
TIA
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

kirik64 wrote:jakubklos,
thanks a lot for your indispensable plug-in!
There's a slight issue, however. Could you think about a way to check sdcard(s) mount points right after connection? The problem is that on some devices with /sdcard mp's (not /mnt/sdcard) one can't pull logcat or dmesg or similar because the plug-in (as seen in its log) tries to write a temp file to /mnt/sdcard exclusively. So a check is needed here, clearly.
TIA
Hello,
what method do you propose to detect the sdcard then? For each device try to CD to /sdcard, /mnt/sdcard etc.? Or some other?

It is best to create a symlink you know :).
Thanks
J
kirik64
Junior Member
Junior Member
Posts: 7
Joined: 2012-03-26, 13:24 UTC

Post by *kirik64 »

jakubklos wrote:what method do you propose to detect the sdcard then?
Really, I don't know, being far from a programmer. Maybe grep vold.conf (not good, as the file may not exist), or grep df or mount output...
It is best to create a symlink you know
Surely it is, but as a workaround, not a solution :)
Well, thanks, anyway.
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

jakubklos wrote:
Umpal wrote:
jakubklos wrote: You need to use some WiFi ADB app from the market. I use "WiFi ADB" and start it. It will show you the IP and the port...
Thanks for quick reply.
Unfortunately WiFi ADB says that requires rooted phon. I tried with ADB WiFi (where says 'Touch the bug to switch server state'. When I click info appears: 'Can't execute ADB server state change commands'.
I went with WiFi ABD widget as well but this little fellow displays 'Please Wait' for a second and nothing happens.
Any other idea? I don't want to root this phone yet.
I do not think WiFi ADB can work without a rooted phone unfortunately. In that case you should try to get it working with USB instead or simply root your phone.

I do not have to tell you what benefit you will get when you root your phone. It's a must have :)
Ok, done:
4.9
- New: SD Card detection mechanism added, detects SD card for each device ID and caches it, solves problem with using SD card as temp dir in some cases
kirik64
Junior Member
Junior Member
Posts: 7
Joined: 2012-03-26, 13:24 UTC

Post by *kirik64 »

Ok, done:
That's great, BIG THX!
hamiltonlv
Junior Member
Junior Member
Posts: 3
Joined: 2012-11-16, 13:50 UTC

Android ADB 4.9 file system plugin

Post by *hamiltonlv »

Android ADB 4.9 file system plugin
Samsung Galaxy Note 2
not rooted device

does not copy in MicroSD


drwxrwxr-x system media_rw 1970-01-01 03:00 extSdCard <-MicroSD
drwxrwxr-x root sdcard_rw 2012-12-08 18:40 sdcard0 <-Phone
................
................
................

2012-12-08 18:41:59 [1964] Connecting to ADB server...
2012-12-08 18:41:59 [1964] Connected
2012-12-08 18:41:59 [1964] ADB Write: host:transport:aaaa
2012-12-08 18:41:59 [1964] ADB Read: OKAY
2012-12-08 18:41:59 [1964] ADB Write: shell:busybox mount -o remount,rw rootfs
2012-12-08 18:41:59 [1964] ADB Read: OKAY
2012-12-08 18:41:59 [1964] ADB Read Data: /system/bin/sh: busybox: not found
2012-12-08 18:41:59 [1964] ADB Write: STAT" /storage/extSdCard/adbplugin49.zip
2012-12-08 18:41:59 [1964] ADB Read: STAT
2012-12-08 18:41:59 [1964] ADB Write: SEND( /storage/extSdCard/adbplugin49.zip,33206
2012-12-08 18:42:00 [1964] ADB Write: DONElГP
2012-12-08 18:42:00 [1964] ADB Read: Permission denied
2012-12-08 18:42:00 [1964] ADB Write: SEND# /storage/sdcard0/83391A72.tmp,33206
2012-12-08 18:42:01 [1964] ADB Write: DONElГP
2012-12-08 18:42:01 [1964] ADB Read: OKAY
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: Android ADB 4.9 file system plugin

Post by *jakubklos »

hamiltonlv wrote:Android ADB 4.9 file system plugin
Samsung Galaxy Note 2
not rooted device

does not copy in MicroSD


drwxrwxr-x system media_rw 1970-01-01 03:00 extSdCard <-MicroSD
drwxrwxr-x root sdcard_rw 2012-12-08 18:40 sdcard0 <-Phone
................
................
................

2012-12-08 18:41:59 [1964] Connecting to ADB server...
2012-12-08 18:41:59 [1964] Connected
2012-12-08 18:41:59 [1964] ADB Write: host:transport:aaaa
2012-12-08 18:41:59 [1964] ADB Read: OKAY
2012-12-08 18:41:59 [1964] ADB Write: shell:busybox mount -o remount,rw rootfs
2012-12-08 18:41:59 [1964] ADB Read: OKAY
2012-12-08 18:41:59 [1964] ADB Read Data: /system/bin/sh: busybox: not found
2012-12-08 18:41:59 [1964] ADB Write: STAT" /storage/extSdCard/adbplugin49.zip
2012-12-08 18:41:59 [1964] ADB Read: STAT
2012-12-08 18:41:59 [1964] ADB Write: SEND( /storage/extSdCard/adbplugin49.zip,33206
2012-12-08 18:42:00 [1964] ADB Write: DONElГP
2012-12-08 18:42:00 [1964] ADB Read: Permission denied
2012-12-08 18:42:00 [1964] ADB Write: SEND# /storage/sdcard0/83391A72.tmp,33206
2012-12-08 18:42:01 [1964] ADB Write: DONElГP
2012-12-08 18:42:01 [1964] ADB Read: OKAY
I suspect this is a problem of the stock ROM. You can try the same with "adb" command:
adb push localfile remotefile
It will fail too. Let me know
hamiltonlv
Junior Member
Junior Member
Posts: 3
Joined: 2012-11-16, 13:50 UTC

Post by *hamiltonlv »

shell@android:/ $ adb push localfile remotefile
adb push localfile remotefile
error: device not found
1|shell@android:/ $
:(
Post Reply