[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

Re: How are files copied on devices with internal sdcard?

Post by *jakubklos »

tobbbie wrote:
tobbbie wrote:Hi, I recently noticed that large files (e.g. movies) are not copied directly to the external sd-card, but seem to stick to some internal space (which I could not trace down yet) before being moved to their final destination on the external sd-card.
Now I have the case that the second of two 330MB files is not reaching its final destination but seems stuck in the buffer - weird.

Device is a Samsung Galaxy Tab 2 7" (GT-P3110)

Edit: found it - It is copied to a temp file in \mnt\sdcard\<tempname>.tmp and then shall be moved/renamed to its final destination. Not ok when the external card is at mnt/extSdCard and not at mnt/sdcard.
I still see with 6.3 that files are pushed to sdcard first and then moved.
The final confirmation on TC is only given after the second part (mode from \sdcard to \extSdCard) is done as well.
Is this 2-fold sequential copy needed or could you not better push directly to the target partition?
Same applies also when copying to \data - files go first to \sdcard and then get moved.
Large copies could be much faster if the 2.nd step could be avoided.
This is configurable in Options of course. I have found out that in certain aspects it is better to copy it directly to sdcard and then move. This applies to cases when partition is not mounted as writable and similar (still better than copying the same files multiple times - which is also supported). Just tweak the threshold in Options
tobbbie
Junior Member
Junior Member
Posts: 20
Joined: 2009-11-22, 18:47 UTC

Re: How are files copied on devices with internal sdcard?

Post by *tobbbie »

jakubklos wrote: This is configurable in Options of course. I have found out that in certain aspects it is better to copy it directly to sdcard and then move. This applies to cases when partition is not mounted as writable and similar (still better than copying the same files multiple times - which is also supported). Just tweak the threshold in Options
Is this a new option? I did not notice so far it is there.
If above threshold sdcard will bs used and if below threshold, it will be pushed directly, right?
Is "0" an escape value or would I need to specify 4000 to force any large file be pushed directly?

EDIT: It only works with the bufferieng first, other options do not and only fallback to the buffered version will finally deliver the file. It is also fine like that.
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: How are files copied on devices with internal sdcard?

Post by *jakubklos »

tobbbie wrote:
jakubklos wrote: This is configurable in Options of course. I have found out that in certain aspects it is better to copy it directly to sdcard and then move. This applies to cases when partition is not mounted as writable and similar (still better than copying the same files multiple times - which is also supported). Just tweak the threshold in Options
Is this a new option? I did not notice so far it is there.
If above threshold sdcard will bs used and if below threshold, it will be pushed directly, right?
Is "0" an escape value or would I need to specify 4000 to force any large file be pushed directly?

EDIT: It only works with the bufferieng first, other options do not and only fallback to the buffered version will finally deliver the file. It is also fine like that.
Exactly, 0MB means to always use SDCard. So you need to put a high value there.
joker
Junior Member
Junior Member
Posts: 26
Joined: 2006-04-05, 10:42 UTC

Post by *joker »

jakubklos wrote:
joker wrote:
wgf4242 wrote:How to list the file that filename start with "."?
e.g.
".mytest", won't list in Android ADB
I also noticed that bug, files like .nomedia not showing, and I hope it will get fixed soon.
This is not a bug but a "ls" command behavior. Change to busybox listing in Options and it will work.
This is unexpected behavior so it definitely counts as a bug, whether you like it or not.
Try 'ls -a'.
Linux in a Nutshell wrote:ls [options] [names]

-a List all files, including the normally hidden files whose names begin with a period.
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

joker wrote:
jakubklos wrote:
joker wrote:I also noticed that bug, files like .nomedia not showing, and I hope it will get fixed soon.
This is not a bug but a "ls" command behavior. Change to busybox listing in Options and it will work.
This is unexpected behavior so it definitely counts as a bug, whether you like it or not.
Try 'ls -a'.
Linux in a Nutshell wrote:ls [options] [names]

-a List all files, including the normally hidden files whose names begin with a period.
As already discussed many times:
- Update: Non busybox ls cannot use "ls -la" because older versions of Android do not support the param, we have to use "ls -l" which does not display hidden files - no way to work around this
Ok, I added a new option for this. The Options screen is getting complicated:
6.4
- New: Option for ls -a added, if used on older Android versions no file list will be returned (the parameter is missing on older versions)
- Update: ADBHelper stores temporary files in sdcard/tmp/ (new ADBHelper version)
tobbbie
Junior Member
Junior Member
Posts: 20
Joined: 2009-11-22, 18:47 UTC

Post by *tobbbie »

Where is ADB Helper installed and how is it updated?
Just installed 6.4 and still see it copies files to /sdcard/ directly.
Only temporary other files (e.g. for getting icons off .apks) are stored in /sdcard/tmp

I also noticed that in case SU is not granted for mv operation, the created .TMP file there for the copy operation is not deleted from /sdcard/. If you have a large batch of failing files - they all pile up there :-(

[added:] also temporary files in /sdcard/tmp are not deleted if the operation is aborted - e.g. the directory for which the icons are fetched is left before completion. Could also be that the last one always stays there anyway - have not checked this.
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

tobbbie wrote:Where is ADB Helper installed and how is it updated?
Just installed 6.4 and still see it copies files to /sdcard/ directly.
Only temporary other files (e.g. for getting icons off .apks) are stored in /sdcard/tmp

I also noticed that in case SU is not granted for mv operation, the created .TMP file there for the copy operation is not deleted from /sdcard/. If you have a large batch of failing files - they all pile up there :-(

[added:] also temporary files in /sdcard/tmp are not deleted if the operation is aborted - e.g. the directory for which the icons are fetched is left before completion. Could also be that the last one always stays there anyway - have not checked this.
There are 2 different things.

ADBHelper uses the /tmp/ dir for retrieving apk info and icon. These files are never deleted as it is only 2 files and they are in the tmp folder anyway. This has been changed and ADBHelper app is updated automatically.

Copying files first to sdcard and then other partitions/directories is something else and remains. The behavior can be configured in the Options screen. If there are files after a failed copy then it is a bug and should be fixed. I will check
User avatar
humb20
Junior Member
Junior Member
Posts: 19
Joined: 2010-11-16, 16:17 UTC

Post by *humb20 »

buttie wrote:You have to copy .apk to .apps (or \data\app that's virtually the same) folder. If you want to install system app you have to copy it to \system\app folder.
I'm aware of the fact that the APK has to be copied to the device and then tap on it with TC for Android to install. My question was how does this plugin install or uninstall the apps directly from your computer without having to use the device itself to do it. This is what I understood when the developer said the plugin features app management with installs and uninstalls. Is this what he meant? If so, then how it it done?
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

humb20 wrote:
buttie wrote:You have to copy .apk to .apps (or \data\app that's virtually the same) folder. If you want to install system app you have to copy it to \system\app folder.
I'm aware of the fact that the APK has to be copied to the device and then tap on it with TC for Android to install. My question was how does this plugin install or uninstall the apps directly from your computer without having to use the device itself to do it. This is what I understood when the developer said the plugin features app management with installs and uninstalls. Is this what he meant? If so, then how it it done?
Are you asking how to use the install/uninstall feature of the plugin? Enter the .apk folder and delete an apk file to uninstall and copy an apk file to the .apk folder. That's all
p.eter
Junior Member
Junior Member
Posts: 35
Joined: 2013-04-18, 08:43 UTC

Post by *p.eter »

Hi jakubklos,
first of all, thank you for your plugin.
My Problem is, i can't copy files from PC to external SD-Card on my Samsung Galaxy S3 (Android 4.1.2), also it is not possible to delete files on the external Card.
If i go to the SD-Card from TC direct (not through your plugin) or from Explorer, there is no Problem to delete or copy to the Card.
Is this a bug in your plugin or did i something wrong?
Copy to or delete Data from the internal SD-Card of the Phone works without problems from your plugin.
G
P.eter

TC Version 8.01 32-bit
ADB-plugin 6.4
Win7 64-bit
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

p.eter wrote:Hi jakubklos,
first of all, thank you for your plugin.
My Problem is, i can't copy files from PC to external SD-Card on my Samsung Galaxy S3 (Android 4.1.2), also it is not possible to delete files on the external Card.
If i go to the SD-Card from TC direct (not through your plugin) or from Explorer, there is no Problem to delete or copy to the Card.
Is this a bug in your plugin or did i something wrong?
Copy to or delete Data from the internal SD-Card of the Phone works without problems from your plugin.
G
P.eter

TC Version 8.01 32-bit
ADB-plugin 6.4
Win7 64-bit
Hi Peter,
the issue is with your kernel. Some other user had a similar issue and solved it by installing a different kernel. The thing is that kernel marks the external sd-card partition for root users only via ADB. The plugin tries to overcome this problem multiple ways (copying to sdcard first and then mv it there using the root functions) but this does not work either as the mv command does not support moving files over partitions. I am using WanamLite ROM with its default kernel and all works fine
Jakub
p.eter
Junior Member
Junior Member
Posts: 35
Joined: 2013-04-18, 08:43 UTC

Post by *p.eter »

Hi Jakup,
thank you for your fast reply.
I don't know how to install a different kernel and my phone is unrooted, because it is an phone from my company. If there is no other legal option to get it work, then i have to live with that restrictions :cry:
G
Peter
Li Yongzhen
Junior Member
Junior Member
Posts: 64
Joined: 2010-04-04, 10:46 UTC

Post by *Li Yongzhen »

why busybox must be installed in mobile to delette files?

I like the wfx ADB plugin.

i found busybox must be installed in my samsung i939 to delete/copy file on/to it via adb plugin in TC.

who can tell me what configuration is changed in my phone?
i think i can not install busybox in my phone to delete/copy directly file(s) on/to it.

thx.
Li Yongzhen
Junior Member
Junior Member
Posts: 64
Joined: 2010-04-04, 10:46 UTC

Post by *Li Yongzhen »

p.eter wrote:Hi jakubklos,
first of all, thank you for your plugin.
My Problem is, i can't copy files from PC to external SD-Card on my Samsung Galaxy S3 (Android 4.1.2), also it is not possible to delete files on the external Card.
If i go to the SD-Card from TC direct (not through your plugin) or from Explorer, there is no Problem to delete or copy to the Card.
Is this a bug in your plugin or did i something wrong?
Copy to or delete Data from the internal SD-Card of the Phone works without problems from your plugin.
G
P.eter

TC Version 8.01 32-bit
ADB-plugin 6.4
Win7 64-bit
hi,
your experience like me.
plz try to install busybox. maybe you would do what you want to do.
Last edited by Li Yongzhen on 2013-04-25, 22:43 UTC, edited 1 time in total.
Li Yongzhen
Junior Member
Junior Member
Posts: 64
Joined: 2010-04-04, 10:46 UTC

Post by *Li Yongzhen »

jakubklos wrote:
p.eter wrote:Hi jakubklos,
first of all, thank you for your plugin.
My Problem is, i can't copy files from PC to external SD-Card on my Samsung Galaxy S3 (Android 4.1.2), also it is not possible to delete files on the external Card.
........
Win7 64-bit
.......... this does not work either as the mv command does not support moving files over partitions. I am using WanamLite ROM with its default kernel and all works fine
Jakub
hi,
Jakub, installing busybox would copy/delete files to/in mobile via plunin adb in TC.
but i do not know WHY.
Post Reply