[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 »

The_Steph wrote:jakubklos,

I have a strange error. Sometimes, when I copy some files, their names are truncated. Fortunately, when it happens on a file, it is consistent, I can recreate the issue as many times as I want. I tried to find some special characters in the name to see if it the cause of the issue but it is not! I can' find a consistent reason.

How can I provide useful information for you to analyse the issue?

Best regards.
The_Steph
Hi Steph,
please, send me the logs (when the file has been put to the device and the list of files). It could be utf8 vs busybox related. That's all that comes to my mind
The_Steph
Junior Member
Junior Member
Posts: 14
Joined: 2012-08-01, 12:49 UTC

Post by *The_Steph »

jakublos,

OK, as soon as I will find a file that create the issue, I will tick the box to generate debug log and send you the result so you'll be able to find the issue cause.

Best regards.
The_Steph
User avatar
JJM
Member
Member
Posts: 105
Joined: 2003-02-06, 12:36 UTC
Location: Port Saint Hubert, FRANCE

Post by *JJM »

Hello,
Why when you download the file it only 338 o instead of 2400 kb
What is the problem

cordially


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

Post by *jakubklos »

JJM wrote:Hello,
Why when you download the file it only 338 o instead of 2400 kb
What is the problem

cordially


JJM
Ok, thanks. It seems the site has some problems. I have fixed that. (You could have used the other mirror link)
User avatar
JJM
Member
Member
Posts: 105
Joined: 2003-02-06, 12:36 UTC
Location: Port Saint Hubert, FRANCE

Post by *JJM »

Thank you this is what I ended up doing.

Happy Holidays Christmas

JJM
The_Steph
Junior Member
Junior Member
Posts: 14
Joined: 2012-08-01, 12:49 UTC

Post by *The_Steph »

jakublos,

I just checked and I was using version 4.6 (I would have sworn I used 4.9) on my home PC and you probably corrected the issue I faced in your 4.8 version. I think it is a non problem.

However I faced another issue today, I file that always make the ADB plugin crash (that is the reason I checked my plugin version) when I copy it to my device whatever the location (internal memory, internal sd card, or external sd card). How can I send this file to you to analyse it?

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

Post by *jakubklos »

The_Steph wrote:jakublos,

I just checked and I was using version 4.6 (I would have sworn I used 4.9) on my home PC and you probably corrected the issue I faced in your 4.8 version. I think it is a non problem.

However I faced another issue today, I file that always make the ADB plugin crash (that is the reason I checked my plugin version) when I copy it to my device whatever the location (internal memory, internal sd card, or external sd card). How can I send this file to you to analyse it?

The_Steph
Hi Steph,
depends on the file size. If it is less then 5MB you can send it to me by email:
jakub at icewarp dot com
Otherwise we need to think of something else
Also send me the logs of the problem
The_Steph
Junior Member
Junior Member
Posts: 14
Joined: 2012-08-01, 12:49 UTC

Post by *The_Steph »

jakublos,

Finally had some time to test the file upload with the debug log activated :o)

The only point here is that when I activate the logs in ADB options, the transfer is fine and when I disable it I got a crash message (did not took a screen capture though).

Last important point, it only happens when I am using Windows 7 64 bits and not on Windows XP SP3 32 bits.

I will pm you all the info so you can have a look at it.

Last point, are you aware of a file size limit to transfer via ADB? Each time I want to transfer a file larger than 2GB I end with a 0 byte file on my device while I can copy it when mounting my sdcard as an USB drive.

Thanks.
The_Steph
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

The_Steph wrote:jakublos,

Finally had some time to test the file upload with the debug log activated :o)

The only point here is that when I activate the logs in ADB options, the transfer is fine and when I disable it I got a crash message (did not took a screen capture though).

Last important point, it only happens when I am using Windows 7 64 bits and not on Windows XP SP3 32 bits.

I will pm you all the info so you can have a look at it.

Last point, are you aware of a file size limit to transfer via ADB? Each time I want to transfer a file larger than 2GB I end with a 0 byte file on my device while I can copy it when mounting my sdcard as an USB drive.

Thanks.
The_Steph
Hi Steph,
ok please send me the details when you have them. x64 was not tested that much as I personally still use x32. I will figure it out

The 2GB limit I was not aware of it. Does it even start copying the file? Is it the same for pull and push?

Thank you
Jakub
The_Steph
Junior Member
Junior Member
Posts: 14
Joined: 2012-08-01, 12:49 UTC

Post by *The_Steph »

jakublos,

I am using a portable 32bits TC version on a win 7 64 bits OS. Therefore your 32bits module is in action.

File copy does not start it just a one second operation and a 0 byte file created on the device (internal sdcard or 64GB exFAT formatted external sdcard).

At work I use a Win XP and everything works differently as said earlier. Blocked file transfer under windows 7 works fine.

I tried to pull 2.5gb file from device to pc and it worked but in a weird way. I got a immediate 100% done displayed, but the file is transferring like it was being done in the background without updating the display.

I'll do the same tests on my Windows 7 at home tonight.

I'll keep you posted.
The_Steph
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Nice plugin, but: Where are the hidden files and directories? Those starting with a dot? Any way to enable these?

Can't see .android_secure.vfat.tar from CWM and stuff like that...
This account is for sale
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

icfu wrote:Nice plugin, but: Where are the hidden files and directories? Those starting with a dot? Any way to enable these?

Can't see .android_secure.vfat.tar from CWM and stuff like that...
I can see such files correctly on my sdcard. You can turn on debugging and see the result of the ls command. Maybe there should be more parameters to reveal these? Let me know
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

jakubklos wrote:I can see such files correctly on my sdcard. You can turn on debugging and see the result of the ls command.
I wonder how you can see these correctly if you are sending "ls -l" only... ;)

Code: Select all

Connecting to ADB server...
Connected
ADB Write: host:transport:?
ADB Read: OKAY
ADB Write: shell:ls -l "/sdcard/clockworkmod/backup/"
ADB Read: OKAY
ADB Read Data: drwxrwxr-x system   sdcard_rw          2012-12-18 22:36 2012-12-18.21.32.39
drwxrwxr-x system   sdcard_rw          2013-01-02 10:36 2013-01-02.09.30.30
Connecting to ADB server...
Connected
ADB Write: host:transport:?
ADB Read: OKAY
ADB Write: shell:ls -l "/sdcard/clockworkmod/backup/2013-01-02.09.30.30/"
ADB Read: OKAY
ADB Read Data: -rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 boot.img
-rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 recovery.img
-rwxrwxr-x system   sdcard_rw 199600896 2013-01-02 10:32 system.yaffs2.img
-rwxrwxr-x system   sdcard_rw 121152768 2013-01-02 10:34 data.yaffs2.img
-rwxrwxr-x system   sdcard_rw    23232 2013-01-02 10:35 cache.yaffs2.img
-rwxrwxr-x system   sdcard_rw      302 2013-01-02 10:36 nandroid.md5
Maybe there should be more parameters to reveal these? Let me know
"ls -l -a" does the trick. ;)

Code: Select all

# ls -l -a /sdcard/clockworkmod/backup/2013-01-02.09.30.30
ls -l -a /sdcard/clockworkmod/backup/2013-01-02.09.30.30
-rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 boot.img
-rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 recovery.img
-rwxrwxr-x system   sdcard_rw 199600896 2013-01-02 10:32 system.yaffs2.img
-rwxrwxr-x system   sdcard_rw 121152768 2013-01-02 10:34 data.yaffs2.img
-rwxrwxr-x system   sdcard_rw 203145216 2013-01-02 10:35 .android_secure.vfat.tar
-rwxrwxr-x system   sdcard_rw    23232 2013-01-02 10:35 cache.yaffs2.img
-rwxrwxr-x system   sdcard_rw      302 2013-01-02 10:36 nandroid.md5
This account is for sale
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

icfu wrote:
jakubklos wrote:I can see such files correctly on my sdcard. You can turn on debugging and see the result of the ls command.
I wonder how you can see these correctly if you are sending "ls -l" only... ;)

Code: Select all

Connecting to ADB server...
Connected
ADB Write: host:transport:?
ADB Read: OKAY
ADB Write: shell:ls -l "/sdcard/clockworkmod/backup/"
ADB Read: OKAY
ADB Read Data: drwxrwxr-x system   sdcard_rw          2012-12-18 22:36 2012-12-18.21.32.39
drwxrwxr-x system   sdcard_rw          2013-01-02 10:36 2013-01-02.09.30.30
Connecting to ADB server...
Connected
ADB Write: host:transport:?
ADB Read: OKAY
ADB Write: shell:ls -l "/sdcard/clockworkmod/backup/2013-01-02.09.30.30/"
ADB Read: OKAY
ADB Read Data: -rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 boot.img
-rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 recovery.img
-rwxrwxr-x system   sdcard_rw 199600896 2013-01-02 10:32 system.yaffs2.img
-rwxrwxr-x system   sdcard_rw 121152768 2013-01-02 10:34 data.yaffs2.img
-rwxrwxr-x system   sdcard_rw    23232 2013-01-02 10:35 cache.yaffs2.img
-rwxrwxr-x system   sdcard_rw      302 2013-01-02 10:36 nandroid.md5
Maybe there should be more parameters to reveal these? Let me know
"ls -l -a" does the trick. ;)

Code: Select all

# ls -l -a /sdcard/clockworkmod/backup/2013-01-02.09.30.30
ls -l -a /sdcard/clockworkmod/backup/2013-01-02.09.30.30
-rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 boot.img
-rwxrwxr-x system   sdcard_rw  5242880 2013-01-02 10:30 recovery.img
-rwxrwxr-x system   sdcard_rw 199600896 2013-01-02 10:32 system.yaffs2.img
-rwxrwxr-x system   sdcard_rw 121152768 2013-01-02 10:34 data.yaffs2.img
-rwxrwxr-x system   sdcard_rw 203145216 2013-01-02 10:35 .android_secure.vfat.tar
-rwxrwxr-x system   sdcard_rw    23232 2013-01-02 10:35 cache.yaffs2.img
-rwxrwxr-x system   sdcard_rw      302 2013-01-02 10:36 nandroid.md5
Actually, the answer is pretty simple
You do not have busybox installed (or enabled) and that is why only the simple ls is used.

busybox:
If Not adb.Command('shell:su -c "busybox ls -lp -a -e --color=never "' + Path + '""', S) Then Exit;

native:
If Not adb.Command('shell:ls -l "' + Path + '"', S) Then NoList := True;

The reason is that the native ls might not have the -a parameter implemented. At least that's what I always thought so. In such cases it would not return anything. I have just checked the 4.2.1 emulator and it works with both -l and -a. So that would work but what about some old Android versions?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Actually, the answer is pretty simple
You do not have busybox installed (or enabled) and that is why only the simple ls is used.
busybox IS installed AND enabled. The problem is that in default installation mode busybox does NOT replace the ls command.
You have to explicitly enable ls replacement in the busybox "smart install".

These commands are NOT replaced in default installation mode:

Code: Select all

cat
chmod
dd
df
id
kill
ln
ls
mkdir
mount
ps
rm
So that would work but what about some old Android versions?
Must be very old then, I guess. Android 2.3.5 here.
This account is for sale
Post Reply