[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
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

baturin wrote:
jakubklos wrote:
baturin wrote:Hello!

I have installed ADB plugin (different versions, 32 bit TC now on win8 x64, but some time ago on win7 x64 wit the same problem), it can see the android device connected via usb (SGSII), but I am not able to upload, rename, create folders anywhere (through ADB plugin). The device should be rooted properly (apps which require root are working smoothly).

What can be a reason of such behavior?
Thanks in advance!
Hi,
frankly I don't know. You should be able to make any changes on your sdcard.
It would be best if you send me your debug logs. That will tell me exactly what is going on there. Either it is permission based or there is some other problem...
Let me know
Sorry for a long reply.

Deleting a file:

Code: Select all

ADB Write: host:transport:192.168.1.5:5555
ADB Read: OKAY
ADB Write: shell:busybox rm -f "/mnt/sdcard/foursquare_photo_tmp_camera.jpg"
ADB Read: OKAY
ADB Read Data: rm: can't stat '/mnt/sdcard/foursquare_photo_tmp_camera.jpg': Value too large for defined data type
Creating a dir:

Code: Select all

ADB Write: host:transport:192.168.1.5:5555
ADB Read: OKAY
ADB Write: shell:busybox mkdir -p "/mnt/sdcard/1"
ADB Read: OKAY
ADB Read Data: mkdir: can't create directory '/mnt/sdcard/': Value too large for defined data type
and dir listing:

Code: Select all

ADB Write: shell:ls -l "/mnt/sdcard/"
ADB Read: OKAY
ADB Read Data: -rwxrwxr-x system   sdcard_rw        1 2012-11-01 22:34 1.txt
etc
I am not able to create or copy any fine by TC interface. But I am able to create a file by using shell commands and modify created file.
Plugin is just updated to 4.6. Wifi ADB. Same with USB ADB.
[/code]
Ok, the problem is with busybox. Some bad version is running on your device. Update busybox from google play and let me know. It would also work without busybox but that means it must not be installed at all. So your setup is a semi working busybox. An upgrade will fix it
baturin
Junior Member
Junior Member
Posts: 3
Joined: 2006-03-28, 09:22 UTC

Post by *baturin »

jakubklos wrote: Ok, the problem is with busybox. Some bad version is running on your device. Update busybox from google play and let me know. It would also work without busybox but that means it must not be installed at all. So your setup is a semi working busybox. An upgrade will fix it
Yes :D. Simple busy box install from Google play didn't fix the prob;em, but install through busybox installer did.
Thank you for the solution!
BobGo
Junior Member
Junior Member
Posts: 36
Joined: 2006-02-26, 14:59 UTC

Fantastic Plugin but..

Post by *BobGo »

"Synchronize directories" does not work when "ignore date" is off
The dates and times match exactly on both sides but TC reports they are all different!
:(
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: Fantastic Plugin but..

Post by *jakubklos »

BobGo wrote:"Synchronize directories" does not work when "ignore date" is off
The dates and times match exactly on both sides but TC reports they are all different!
:(
Ok, I have checked the issue. The problem is the time format.
By default the "ls" command does not return seconds in the returned time.
The general ls command does not even have a possibility to change that. Busybox on the other hand has a way.

The thing is that it works with the "ignore date" checked in fact. It does not work when unchecked because there the time is always compared to something with zero seconds.

Eg. 16:50:00 vs. 16:50:28
When copying a file from or to Android the seconds are preserved due to the nature of the ADB protocol. But when listing files it gets only minutes ans assumes seconds to be zero.

The only possibility would be to use busybox ls -lae. Will see how difficult that be.
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

New version

Post by *jakubklos »

New version has been released. BusyBox LS is required for complete TC Synchronize Dirs support
4.7
- Update: Busybox ls uses the "-e" parameter to return full time. Parser update. Fixes an issue with TC Synchronize Dirs... (fully working now)
kvm75
Junior Member
Junior Member
Posts: 6
Joined: 2007-05-09, 12:50 UTC

Great job

Post by *kvm75 »

Truly a wonderful tool for Android users.
The only other windows tool I use is for Android is "Android Reverse Tethering 2.30" (from xda-developers)
Is it possible to integrate that as well?
But irrespective, great work.
Thanks a lot.
Vijay
CITYGUY
Junior Member
Junior Member
Posts: 31
Joined: 2012-09-07, 11:00 UTC

SYNC

Post by *CITYGUY »

Great tool
Thank you

A problem:
When I use it to sync folders on my sd card to my pc backups it shows all the files in the left panel (on my sd card) with time stamps which end with 00 seconds. That is why it recognizes them as different. Example:

left panel says : filename example.exe / size 12345 / date 05.11.2012 21:42:00
right panel says: filename example.exe / size 12345 / date 05.11.2012 21:42:32

And I know that these files are identical and there is supposed to be no change here.

Please, advise how to fix this?
Thank you!
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: SYNC

Post by *jakubklos »

CITYGUY wrote:Great tool
Thank you

A problem:
When I use it to sync folders on my sd card to my pc backups it shows all the files in the left panel (on my sd card) with time stamps which end with 00 seconds. That is why it recognizes them as different. Example:

left panel says : filename example.exe / size 12345 / date 05.11.2012 21:42:00
right panel says: filename example.exe / size 12345 / date 05.11.2012 21:42:32

And I know that these files are identical and there is supposed to be no change here.

Please, advise how to fix this?
Thank you!
That is the exact problem of the guy BobGo (a few posts above) and the reason I released the latest version. Change to "busybox ls" mode in Settings. The only way to make it working
CITYGUY
Junior Member
Junior Member
Posts: 31
Joined: 2012-09-07, 11:00 UTC

Re: SYNC

Post by *CITYGUY »

jakubklos wrote:
CITYGUY wrote:Great tool
Thank you

A problem:
When I use it to sync folders on my sd card to my pc backups it shows all the files in the left panel (on my sd card) with time stamps which end with 00 seconds. That is why it recognizes them as different. Example:

left panel says : filename example.exe / size 12345 / date 05.11.2012 21:42:00
right panel says: filename example.exe / size 12345 / date 05.11.2012 21:42:32

And I know that these files are identical and there is supposed to be no change here.

Please, advise how to fix this?
Thank you!
That is the exact problem of the guy BobGo (a few posts above) and the reason I released the latest version. Change to "busybox ls" mode in Settings. The only way to make it working

Yes I found it already. This fixes the seconds. Thanks for the quick reply! :-)

Now something else:
Since the MTP was introduced instead of UMS by Jelly bean (a big nonsense if you ask me) I have started to sync everything through CWM (mount USB storage).
Looks like the time stamps in CWM, windows and your plugin are different... Example:

Same file has time stamp like this:

In CWM: 10:44:28 (again I am viewing this in TC when I see the sd card as a drive letter)
In your plugin (again I am viewing this in TC from the plugin section): 09:44:28
In Windows explorer (file properties): 08:44:28

Amazing!!!
Why?!
This is crazy

So now that everything on my pc is synced to the sd card through CWM mount USB storage, I have all files different by minus one hour in the left panel when I am using your plugin to view the sd card there.

Interesting:
I have an app that auto puts the date and time (down to the milliseconds) in the names of the files it creates. So the file I am talking about contains the original creation time and date in the name of the file itself. And this time only matches the time given by your plugin, not windows, not CWM

So I guess you are the most precise. :-)

But is there a way to fix my problem? I want to be able to use CWM too cause copy speed is much higher, but the sync gives different time stamps and I cant use it along with your plugin. when comparing same folders. What a dumb MTP issue... :-(

Edit: local time zone in options is unchecked when I make these comparisons
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: SYNC

Post by *jakubklos »

CITYGUY wrote:
jakubklos wrote:
CITYGUY wrote:Great tool
Thank you

A problem:
When I use it to sync folders on my sd card to my pc backups it shows all the files in the left panel (on my sd card) with time stamps which end with 00 seconds. That is why it recognizes them as different. Example:

left panel says : filename example.exe / size 12345 / date 05.11.2012 21:42:00
right panel says: filename example.exe / size 12345 / date 05.11.2012 21:42:32

And I know that these files are identical and there is supposed to be no change here.

Please, advise how to fix this?
Thank you!
That is the exact problem of the guy BobGo (a few posts above) and the reason I released the latest version. Change to "busybox ls" mode in Settings. The only way to make it working

Yes I found it already. This fixes the seconds. Thanks for the quick reply! :-)

Now something else:
Since the MTP was introduced instead of UMS by Jelly bean (a big nonsense if you ask me) I have started to sync everything through CWM (mount USB storage).
Looks like the time stamps in CWM, windows and your plugin are different... Example:

Same file has time stamp like this:

In CWM: 10:44:28 (again I am viewing this in TC when I see the sd card as a drive letter)
In your plugin (again I am viewing this in TC from the plugin section): 09:44:28
In Windows explorer (file properties): 08:44:28

Amazing!!!
Why?!
This is crazy

So now that everything on my pc is synced to the sd card through CWM mount USB storage, I have all files different by minus one hour in the left panel when I am using your plugin to view the sd card there.

Interesting:
I have an app that auto puts the date and time (down to the milliseconds) in the names of the files it creates. So the file I am talking about contains the original creation time and date in the name of the file itself. And this time only matches the time given by your plugin, not windows, not CWM

So I guess you are the most precise. :-)

But is there a way to fix my problem? I want to be able to use CWM too cause copy speed is much higher, but the sync gives different time stamps and I cant use it along with your plugin. when comparing same folders. What a dumb MTP issue... :-(

Edit: local time zone in options is unchecked when I make these comparisons
By CWM you mean ClockWorkMod or some software? I am not familiar with CWM mount usb storage...

Anyway, I guess the important part is what does some Android file manager report as the file time stamp. In my plugin and in that file manager you should see the same. If MTP shows a different time that means the Android MTP implementation has a bug unfortunately (I doubt it is MS although it is not impossible ;).

So unless I know exactly what CWM in your case is I cannot elaborate. I use my own sync solution. A sync server and an android app initiating the sync on the server and enabling the samba share drive on Android. It is wireless and works a treat.

Let me know
CITYGUY
Junior Member
Junior Member
Posts: 31
Joined: 2012-09-07, 11:00 UTC

Re: SYNC

Post by *CITYGUY »

:-)
Yes it is ClockWorkMod Recovery.
And I know Samba File sharing. One of my favorite apps. But that's again the problem - ever since Android Jelly bean was installed on my phone
1. MTP appeared and UMS disappeared
2. Samba stopped working immediately too :-(

This new JB MTP management of the sd card messed up everything and ever since then in order to sync I have to go out of Android to CWM and sync from there. I am looking for a solution for a month to be able to do it from within the android somehow. And I see your plugin as one of the possible solutions. But it has to work the same way like CWM cause I will definitely use CWM for copying large files (like NAND backups, Tit backup folders, Navigation map files etc)

I also wrote the Samba file sharing app creator to ask him to update it, but there was no reaction.

Jakubklos, you must be still using Ice cream sandwich (ICS) and that's the reason all works OK with you. But eventually all of us will go to Jelly Bean (JB) and .... problems :-) = No Samba, No UMS, low speed of the MTP for big files, time stamps problems...

Please, tell me what do you think? I could then start troubling you with some extra problems like the daylight savings time stamp problems :-)

I hope you come up with some way.

jakubklos wrote:
CITYGUY wrote:
jakubklos wrote: That is the exact problem of the guy BobGo (a few posts above) and the reason I released the latest version. Change to "busybox ls" mode in Settings. The only way to make it working

Yes I found it already. This fixes the seconds. Thanks for the quick reply! :-)

Now something else:
Since the MTP was introduced instead of UMS by Jelly bean (a big nonsense if you ask me) I have started to sync everything through CWM (mount USB storage).
Looks like the time stamps in CWM, windows and your plugin are different... Example:

Same file has time stamp like this:

In CWM: 10:44:28 (again I am viewing this in TC when I see the sd card as a drive letter)
In your plugin (again I am viewing this in TC from the plugin section): 09:44:28
In Windows explorer (file properties): 08:44:28

Amazing!!!
Why?!
This is crazy

So now that everything on my pc is synced to the sd card through CWM mount USB storage, I have all files different by minus one hour in the left panel when I am using your plugin to view the sd card there.

Interesting:
I have an app that auto puts the date and time (down to the milliseconds) in the names of the files it creates. So the file I am talking about contains the original creation time and date in the name of the file itself. And this time only matches the time given by your plugin, not windows, not CWM

So I guess you are the most precise. :-)

But is there a way to fix my problem? I want to be able to use CWM too cause copy speed is much higher, but the sync gives different time stamps and I cant use it along with your plugin. when comparing same folders. What a dumb MTP issue... :-(

Edit: local time zone in options is unchecked when I make these comparisons
By CWM you mean ClockWorkMod or some software? I am not familiar with CWM mount usb storage...

Anyway, I guess the important part is what does some Android file manager report as the file time stamp. In my plugin and in that file manager you should see the same. If MTP shows a different time that means the Android MTP implementation has a bug unfortunately (I doubt it is MS although it is not impossible ;).

So unless I know exactly what CWM in your case is I cannot elaborate. I use my own sync solution. A sync server and an android app initiating the sync on the server and enabling the samba share drive on Android. It is wireless and works a treat.

Let me know
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: SYNC

Post by *jakubklos »

CITYGUY wrote::-)
Yes it is ClockWorkMod Recovery.
And I know Samba File sharing. One of my favorite apps. But that's again the problem - ever since Android Jelly bean was installed on my phone
1. MTP appeared and UMS disappeared
2. Samba stopped working immediately too :-(

This new JB MTP management of the sd card messed up everything and ever since then in order to sync I have to go out of Android to CWM and sync from there. I am looking for a solution for a month to be able to do it from within the android somehow. And I see your plugin as one of the possible solutions. But it has to work the same way like CWM cause I will definitely use CWM for copying large files (like NAND backups, Tit backup folders, Navigation map files etc)

I also wrote the Samba file sharing app creator to ask him to update it, but there was no reaction.

Jakubklos, you must be still using Ice cream sandwich (ICS) and that's the reason all works OK with you. But eventually all of us will go to Jelly Bean (JB) and .... problems :-) = No Samba, No UMS, low speed of the MTP for big files, time stamps problems...

Please, tell me what do you think? I could then start troubling you with some extra problems like the daylight savings time stamp problems :-)

I hope you come up with some way.
Well, I am using JB 4.1 (Samsung S3) and also (CM10 on my Prime). Samba works on all. Rebooting to CWM every time to sync is really painful. I suggest getting the Samba Sharing to work.

I also wrote to the developer but never got any response. I even patched the app myself to get rid of the exception when WiFi is disconnected. Apart from that it works good. Although the thing is that the app itself does not work. I wrote another app which uses the Samba service and starts it and stops it at will.

Samba is the key to your problem. Let me know (maybe by email so we do not flood this forum) jakub at icewarp.com
User avatar
humb20
Junior Member
Junior Member
Posts: 19
Joined: 2010-11-16, 16:17 UTC

Tutorial?

Post by *humb20 »

Hi! Thanks for the great Android plugin you wrote. One thing, though. Is there a tutorial somewhere so I can learn all the ways to use it? All I've been able to do so far is see the directory tree and files, as well as upload pdf, photos, etc. I don't know how to install or uninstall an app, plus everything else the plugin does. Can you help?
User avatar
iNorbert
Junior Member
Junior Member
Posts: 6
Joined: 2009-04-21, 05:57 UTC
Location: Russia - mat' nasha

Post by *iNorbert »

Hi. My TC plug incorrectly copies the folder with a comma in the name. Sorry if this has already been discussed, but for me the English forum extremely difficult to read.

ADB 4.7, TC 8.01 x32 XP SP3

https://dl.dropbox.com/u/19377818/wincmd/shot-20121114T215712.png
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

iNorbert wrote:Hi. My TC plug incorrectly copies the folder with a comma in the name. Sorry if this has already been discussed, but for me the English forum extremely difficult to read.

ADB 4.7, TC 8.01 x32 XP SP3

https://dl.dropbox.com/u/19377818/wincmd/shot-20121114T215712.png
Ok, I was able to reproduce it. Many other libraries will have a similar problem, trust me :). However, I was able to fix it:
4.8
- Fix: Put file uses 2nd mode param, fixes a problem with putting files containing "," in their names
Post Reply