[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
ggggnnnn
Junior Member
Junior Member
Posts: 29
Joined: 2004-05-28, 17:26 UTC

Re: [WFX] Android ADB 7.3

Post by *ggggnnnn »

Hello.

Logcat copy/edit/view does not work:

Code: Select all

2020-08-07 03:35:53 [0420] Connecting to ADB server...
2020-08-07 03:35:53 [0420] Connected
2020-08-07 03:35:53 [0420] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Write (49): shell:logcat -v time -f "/sdcard/2EE09E1F.tmp" -d
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Read Data (25): couldn't open output file
2020-08-07 03:35:53 [0420] Connecting to ADB server...
2020-08-07 03:35:53 [0420] Connected
2020-08-07 03:35:53 [0420] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Write (5): sync:
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Write (28): STA2
2020-08-07 03:35:53 [0420] ADB Read (72): STA2
2020-08-07 03:35:53 [0420] ADB STAT2: "/sdcard/2EE09E1F.tmp" does not exist!
2020-08-07 03:35:53 [0420] Connecting to ADB server...
2020-08-07 03:35:53 [0420] Connected
2020-08-07 03:35:53 [0420] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Write (5): sync:
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Write (28): STAT
2020-08-07 03:35:53 [0420] ADB Read (16): STAT
2020-08-07 03:35:53 [0420] ADB STAT: "/sdcard/2EE09E1F.tmp" does not exist!
2020-08-07 03:35:53 [0420] Connecting to ADB server...
2020-08-07 03:35:53 [0420] Connected
2020-08-07 03:35:53 [0420] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Write (42): shell:busybox rm -f "/sdcard/2EE09E1F.tmp"
2020-08-07 03:35:53 [0420] ADB Read (4): OKAY
2020-08-07 03:35:53 [0420] ADB Read Data (0):
dmesg works fine:

Code: Select all

2020-08-07 03:36:59 [1758] Connecting to ADB server...
2020-08-07 03:36:59 [1758] Connected
2020-08-07 03:36:59 [1758] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Write (44): shell:dmesg > "/sdcard/FFFFFFFFACEB96A0.tmp"
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Read Data (34): dmesg: klogctl: Permission denied
2020-08-07 03:36:59 [1758] Connecting to ADB server...
2020-08-07 03:36:59 [1758] Connected
2020-08-07 03:36:59 [1758] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Write (55): shell:su -c " dmesg > \"/sdcard/FFFFFFFFACEB96A0.tmp\""
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Read Data (0):
2020-08-07 03:36:59 [1758] Connecting to ADB server...
2020-08-07 03:36:59 [1758] Connected
2020-08-07 03:36:59 [1758] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Write (5): sync:
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Write (36): STA2
2020-08-07 03:36:59 [1758] ADB Read (72): STA2
2020-08-07 03:36:59 [1758] ADB STAT2: "/sdcard/FFFFFFFFACEB96A0.tmp" size=725642 time=2020-08-07 03:37:00
2020-08-07 03:36:59 [1758] ADB Write (36): STAT
2020-08-07 03:36:59 [1758] ADB Read (16): STAT��
2020-08-07 03:36:59 [1758] ADB STAT: "/sdcard/FFFFFFFFACEB96A0.tmp" size=725642 time=2020-08-07 03:37:00
2020-08-07 03:36:59 [1758] ADB Write (36): RECV
2020-08-07 03:36:59 [1758] Connecting to ADB server...
2020-08-07 03:36:59 [1758] Connected
2020-08-07 03:36:59 [1758] ADB Write (34): host:transport:192.168.10.199:5555
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Write (50): shell:busybox rm -f "/sdcard/FFFFFFFFACEB96A0.tmp"
2020-08-07 03:36:59 [1758] ADB Read (4): OKAY
2020-08-07 03:36:59 [1758] ADB Read Data (0):
Latest Total Commander 9.51 and Adb plugin 8.8
Android version 8.0
Tried all file list commands, all fail.

The error Total Commander gives is:
Error downloading file!
pgriffet
Junior Member
Junior Member
Posts: 66
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Re: [WFX] Android ADB 7.3

Post by *pgriffet »

Hi all, I have a problem with the "change directory" function (CTRL+D) when I try to go to a directory of my Smartphone. It was ok with an older one (with Android 6) but now, I have a Samsung S10 with Android 10 (USB debugging activated) and the CTRL+D + a letter does not change to the Samsung directory. I need to go to the drive letter box and choose "Samsung S10e", then navigate to the sub dir to reach it, big waste of time.
I haven't change anything in my TC config, the only difference is another smartphone

Here is the CD function that I see in the CTRL+D "change directory menu" for one of my smartphone subdir, you can see the samsung string in it

cd ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_04e8&pid_6860&ms_comp_mtp&samsung_android#7&1ece14d8&0&0000#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\SID-{20002,SECZ9519043CHOHB01,31901024256}\{ED6A2119-837D-B203-1B9E-CEACABEBD3E7}

Am I missing something ?

TC : 9.51
ADB : 8.8

TIA
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

Re: [WFX] Android ADB 7.3

Post by *damjang »

pgriffet wrote: 2020-08-27, 12:30 UTC Hi all, I have a problem with the "change directory" function (CTRL+D) when I try to go to a directory of my Smartphone. It was ok with an older one (with Android 6) but now, I have a Samsung S10 with Android 10 (USB debugging activated) and the CTRL+D + a letter does not change to the Samsung directory. I need to go to the drive letter box and choose "Samsung S10e", then navigate to the sub dir to reach it, big waste of time.
I haven't change anything in my TC config, the only difference is another smartphone

Here is the CD function that I see in the CTRL+D "change directory menu" for one of my smartphone subdir, you can see the samsung string in it

cd ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_04e8&pid_6860&ms_comp_mtp&samsung_android#7&1ece14d8&0&0000#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\SID-{20002,SECZ9519043CHOHB01,31901024256}\{ED6A2119-837D-B203-1B9E-CEACABEBD3E7}

Am I missing something ?

TC : 9.51
ADB : 8.8

TIA
Do you recreate the CP string for your new phone? The string contain also the (serial)number of phone, so you have to recreate string for new phone...

and another settings to change for new phones to work with ADB: after connecting usb you have to change the USB settings -> Use USB for -> Transferring images (and not Transfering files / Android Auto as will be expected).
pgriffet
Junior Member
Junior Member
Posts: 66
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Re: [WFX] Android ADB 7.3

Post by *pgriffet »

Thanks for replying ;)
The CD command has been generated by TC when I added the directory of the Samsung with CTRL+D (the other smartphone was not a Samsung).

I have changed the setting on the Samsung to "Transferring images " but the CD command does not the job.
And on TC side, I don't see the content of my Samsung directories if it's not a jpg or a png file :(
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [WFX] Android ADB 7.3

Post by *ghisler(Author) »

Unfortunately with newer Android smartphones the virtual folder location is different each time you connect it, so you cannot access it this way.
Author of Total Commander
https://www.ghisler.com
pgriffet
Junior Member
Junior Member
Posts: 66
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Re: [WFX] Android ADB 7.3

Post by *pgriffet »

ghisler(Author) wrote: 2020-08-31, 14:05 UTC Unfortunately with newer Android smartphones the virtual folder location is different each time you connect it, so you cannot access it this way.
thanks Christian for the feedback
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: [WFX] Android ADB 7.3

Post by *Hurdet »

The site is down for a few days.
Plumber
Junior Member
Junior Member
Posts: 12
Joined: 2014-04-25, 14:05 UTC

Re: [WFX] Android ADB 7.3

Post by *Plumber »

tasoftworks wrote: 2020-03-29, 09:45 UTC Hi All,
First of all, thank you for this amazing plugin! It's been a great help for me for many years now.

I'd like to report a bug I've found with an Android Oreo (8.1) device.
Repro steps:
1. Create a file on your PC called "test file.txt"
2. Copy it to somewhere in the sdcard folder on the device

Expected:
3. The file appears on the device with the name "test file.txt"
4. The file can be copied back to the PC

Actual:
3. The file appears on the device with the name " file.txt"
4. The file cannot be copied back to the PC, it fails with "Error downloading file"

The file seems to be in a proper state on the device after copying, it's just that it's not accessible properly via the plugin.
This can be reproduced with a 8.1 emulator as well.
I have a device with Android 10 (Q) and on it I immediately came across a moment incomprehensible to me:
when copying files / folders with spaces in their names, the plugin displays them somehow strangely :(
For instance:
on Android 4.0.3 the path looks like this - \\\ ADB \ ... \ sdcard \ ... \ xxxx \ xxxx - xxx xxx xxx xxx xxx \
the same path on a device with Android 10 looks like this - \\\ ADB \ ... \ sdcard \ ... \ xxxx \ xxxx \ - \ xxx \ xxx \ xxx \ xxx \ xxx \
he added (\) to all spaces and, accordingly, there is nothing in the folders, but the Total Commander installed on this device and the native file manager show everything in the best possible way.

TotalCommander 9.51
Android ADB 8.8
User avatar
nsp
Power Member
Power Member
Posts: 1801
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: [WFX] Android ADB 7.3

Post by *nsp »

Hi,
Can you give a look on the ADB properties dialog.
Select Native 8.1 ls -la this should solve issues in folder name.
Also check that you have latest ADB/Fastboot binaries from google android platform.
Hope this helps.
NsPP
Plumber
Junior Member
Junior Member
Posts: 12
Joined: 2014-04-25, 14:05 UTC

Re: [WFX] Android ADB 7.3

Post by *Plumber »

nsp wrote: 2020-09-29, 06:32 UTC Can you give a look on the ADB properties dialog.
Select Native 8.1 ls -la this should solve issues in folder name.
Many thanks, your advice helped a lot.
zeroprobe
New Member
New Member
Posts: 1
Joined: 2020-12-19, 11:19 UTC

Re: [WFX] Android ADB 7.3

Post by *zeroprobe »

Hi,

Is it possible to get a custom mount location as I cannot write to system partition. For us with Android 10 and Magisk setups.

To get write permission I have to use mount like this from ADB shell

mount -o remount,rw /sbin/.magisk/block/system_root
mikedepetris
Junior Member
Junior Member
Posts: 84
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: [WFX] Android ADB 7.3

Post by *mikedepetris »

Is there any plugin to open the ADB backup .ab files?
I know there is a jar that can extract it, but is there any packer or tool that can view or extract .ab files directly?
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: [WFX] Android ADB 7.3

Post by *Hurdet »

Do it is possible to use "ADB Helper" via command line or socket?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [WFX] Android ADB 7.3

Post by *ghisler(Author) »

A user has reported via e-mail that he cannot see files with spaces correctly on Android 11 (Samsung and Xiaomi) when using Android ADB plugin 8.8. It works for him on Android 8.

Instead of "a b c.txt" he gets just " c.txt", but sorted under "a".

It seems that the plugin reports the name as "a\ b\ c.txt" to Total Commander, which interprets it as file " c.txt" in a sub-directory "a". Could you remove the escape characters before passing the names to Total Commander, please?
Author of Total Commander
https://www.ghisler.com
Zodchiy
New Member
New Member
Posts: 1
Joined: 2021-11-30, 08:58 UTC

Re: [WFX] Android ADB 7.3

Post by *Zodchiy »

Hi.

Problem with displaying file time.

I use:
Xiaomi POCO X3 Pro
crDroid 7.12
Android 11
Total Commander 10.00 64bit
Android ADB plugin 8.8 (tried other versions as well)

In Android, the ADB plugin does not display seconds and file syncing does not work because of this.

Everything is displayed correctly in adb shell via cmd:

Code: Select all

c:\_Soft_\Total_10.00\Plugins\wfx\ADB\bin>adb shell
vayu:/ $ cd /sdcard/test/
vayu:/sdcard/test $ ls -l -a  --full-time --color=never
total 2764
-rw-rw---- 1 root everybody  919346 2019-12-31 22:27:50.000000000 +0300 20191231_222749_IMG.jpg
-rw-rw---- 1 root everybody 1130578 2019-12-31 22:33:36.000000000 +0300 20191231_223336_IMG.jpg
-rw-rw---- 1 root everybody  773365 2019-12-31 22:39:22.000000000 +0300 20191231_223921_IMG.jpg
vayu:/sdcard/test $
vayu:/sdcard/test $
vayu:/sdcard/test $
vayu:/sdcard/test $ busybox ls -l -a  --full-time --color=never
total 2764
-rw-rw----    1 root     everybod    919346 2019-12-31 22:27:50 +0300 20191231_222749_IMG.jpg
-rw-rw----    1 root     everybod   1130578 2019-12-31 22:33:36 +0300 20191231_223336_IMG.jpg
-rw-rw----    1 root     everybod    773365 2019-12-31 22:39:22 +0300 20191231_223921_IMG.jpg

The Android ADB plugin Debug log is also correct:

Code: Select all

2021-11-30 12:27:54 [0C46B8] Connecting to ADB server...
2021-11-30 12:27:54 [0C46B8] Connected
2021-11-30 12:27:54 [0C46B8] ADB Write (23): host:transport:da7cfd17
2021-11-30 12:27:54 [0C46B8] ADB Read (4): OKAY
2021-11-30 12:27:54 [0C46B8] ADB Write (65): shell:busybox ls -l -a  --full-time --color=never "/sdcard/test/"
2021-11-30 12:27:54 [0C46B8] ADB Read (4): OKAY
2021-11-30 12:27:54 [0C46B8] ADB Read Data (293): total 2764
-rw-rw----    1 root     everybod    919346 2019-12-31 22:27:50 +0300 20191231_222749_IMG.jpg
-rw-rw----    1 root     everybod   1130578 2019-12-31 22:33:36 +0300 20191231_223336_IMG.jpg
-rw-rw----    1 root     everybod    773365 2019-12-31 22:39:22 +0300 20191231_223921_IMG.jpg
2021-11-30 12:27:55 [0C46B8] Connecting to ADB server...
2021-11-30 12:27:55 [0C46B8] Connected
2021-11-30 12:27:55 [0C46B8] ADB Write (23): host:transport:da7cfd17
2021-11-30 12:27:55 [0C46B8] ADB Read (4): OKAY
2021-11-30 12:27:55 [0C46B8] ADB Write (65): shell:busybox ls -l -a  --full-time --color=never "/sdcard/test/"
2021-11-30 12:27:55 [0C46B8] ADB Read (4): OKAY
2021-11-30 12:27:55 [0C46B8] ADB Read Data (293): total 2764
-rw-rw----    1 root     everybod    919346 2019-12-31 22:27:50 +0300 20191231_222749_IMG.jpg
-rw-rw----    1 root     everybod   1130578 2019-12-31 22:33:36 +0300 20191231_223336_IMG.jpg
-rw-rw----    1 root     everybod    773365 2019-12-31 22:39:22 +0300 20191231_223921_IMG.jpg
Total Commander In the folder synchronization window, on the side of the phone, in seconds, it is displayed ...:00, but sometimes for some files ...:59

For example, for 20191231_222749_IMG.jpg is 31.12.19 22:27:00

Please correct this.
Post Reply