[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
giuleppe
Junior Member
Junior Member
Posts: 12
Joined: 2005-09-23, 11:57 UTC

great now function

Post by *giuleppe »

Great now function, but I have alredy problem,
I can't write or overwrite file in folder data/data of devices.
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: great now function

Post by *jakubklos »

giuleppe wrote:Great now function, but I have alredy problem,
I can't write or overwrite file in folder data/data of devices.
Like I said without the ADB logs (TC logs) I cannot help you much. Enable them and try again. It must be something the with the root or busybox...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately Google f*cked up root quite badly on Android 4.3:
1. Normal apps cannot remount /system any more. SuperSU bypasses this by running as a system service.
2. Although SuperSU manages to remount /system as read/write, this i only visible to SuperSU. Other programs will still see /system as read only. Therefore if you want to write to /system after remounting it, you need to do this via su command too.
3. The other root tool, "superuser", doesn't currently support remounting of /system at all.
Author of Total Commander
https://www.ghisler.com
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

ghisler(Author) wrote:Unfortunately Google f*cked up root quite badly on Android 4.3:
1. Normal apps cannot remount /system any more. SuperSU bypasses this by running as a system service.
2. Although SuperSU manages to remount /system as read/write, this i only visible to SuperSU. Other programs will still see /system as read only. Therefore if you want to write to /system after remounting it, you need to do this via su command too.
3. The other root tool, "superuser", doesn't currently support remounting of /system at all.
Hi Christian,
thank you for enlightening it for us. Since Android is open-source someone will soon or later make it working like on other ROMs and Android version.

I could always make all commands through su but that would be rather slow.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately most users will use the stock ROM, so at least in TC I will perform all commands involving /system through su.

To make it faster, TC loads su just once per operation, and then just pipes the commands to it for each file. To detect when a command ends, it sends another command which writes a specific string to the output.
Author of Total Commander
https://www.ghisler.com
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Post by *jakubklos »

ghisler(Author) wrote:Unfortunately most users will use the stock ROM, so at least in TC I will perform all commands involving /system through su.

To make it faster, TC loads su just once per operation, and then just pipes the commands to it for each file. To detect when a command ends, it sends another command which writes a specific string to the output.
You make it sound like you are working on it somehow. Oh, stupid me. You mean the TC for Android. I don't think it is possible to do this over ADB as each command is a separate TCP session with the ADB server. After they release 4.3 on Nexus 10 I will do some tests. Currently all my devices are still on 4.2.2
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I don't think it is possible to do this over ADB as each command is a separate TCP session with the ADB server.
Hmm, at least with the adb command line tool I can send
adb shell
and then I have an interactive session where I can send multiple commands. I don't know how this is solved internally, but I can send "su" command and then I seem to be rooted until the end of the session.
Author of Total Commander
https://www.ghisler.com
User avatar
humb20
Junior Member
Junior Member
Posts: 19
Joined: 2010-11-16, 16:17 UTC

Re: Installing & Uninstalling

Post by *humb20 »

jakubklos wrote: Yes, it is possible and fairly simple to use. I am in the middle of building a new website so I might add some FAQs.
The plugin provides more features then visible at first sight. For app maintenance you need to use the .apps folder. You can copy new apks there which will result in installing them including adding them to the home screen. Deleting apks files results in uninstalling them. It is also possible to backup an apk by copying it from the device to the PC.
Jakub
Thanks for your reply. Sure enough, when you upload a file to .apps it installs automatically. However, when I try to delete something from that directory, it says 'access denied'. Is there any way to change the permissions on those files so I can delete them? Also, will deleting them also kill of the data they left behind, or must I do that separately?

I used to think that .apps was the same as /system/app, but that's not the case. Can the same files shown on .apps be found on the device with [for example] TC for Android?

Please put that FAQ up immediately :)
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: Installing & Uninstalling

Post by *jakubklos »

humb20 wrote:
jakubklos wrote: Yes, it is possible and fairly simple to use. I am in the middle of building a new website so I might add some FAQs.
The plugin provides more features then visible at first sight. For app maintenance you need to use the .apps folder. You can copy new apks there which will result in installing them including adding them to the home screen. Deleting apks files results in uninstalling them. It is also possible to backup an apk by copying it from the device to the PC.
Jakub
Thanks for your reply. Sure enough, when you upload a file to .apps it installs automatically. However, when I try to delete something from that directory, it says 'access denied'. Is there any way to change the permissions on those files so I can delete them? Also, will deleting them also kill of the data they left behind, or must I do that separately?

I used to think that .apps was the same as /system/app, but that's not the case. Can the same files shown on .apps be found on the device with [for example] TC for Android?

Please put that FAQ up immediately :)
It does not really delete any file, it just issues the "pm uninstall" command. Could you send me the logs? .apps is either /data/app/ or all apps installed on your phone (when used the "pm" options in the settings)
User avatar
humb20
Junior Member
Junior Member
Posts: 19
Joined: 2010-11-16, 16:17 UTC

Re: Installing & Uninstalling

Post by *humb20 »

jakubklos wrote: It does not really delete any file, it just issues the "pm uninstall" command. Could you send me the logs? .apps is either /data/app/ or all apps installed on your phone (when used the "pm" options in the settings)
Thanks again for responding. I'm not too sure what the PM command does. I enabled PM and the result is the same, i.e., it says the apk file is protected and can't be deleted. The Android device is unaffected.

I'm not too sure what PM is all about. When I enable it I see less information that when I don't, plus it takes a while to retrieve the icons and other data.

Logs? I don't keep logs :-(

Any chance you can put an FAQ or some docs so we won't keep pestering you?
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: Installing & Uninstalling

Post by *jakubklos »

humb20 wrote:
jakubklos wrote: It does not really delete any file, it just issues the "pm uninstall" command. Could you send me the logs? .apps is either /data/app/ or all apps installed on your phone (when used the "pm" options in the settings)
Thanks again for responding. I'm not too sure what the PM command does. I enabled PM and the result is the same, i.e., it says the apk file is protected and can't be deleted. The Android device is unaffected.

I'm not too sure what PM is all about. When I enable it I see less information that when I don't, plus it takes a while to retrieve the icons and other data.

Logs? I don't keep logs :-(

Any chance you can put an FAQ or some docs so we won't keep pestering you?
pm is an Android command line tool for package management (lists apps, installs and deletes etc.) I simply asked for the TC logs from the plugin so I can see what commands are issued. A delete in the .apps folder should result in the pm -u command and not any rm or similar
psixo
Junior Member
Junior Member
Posts: 2
Joined: 2013-08-27, 11:16 UTC

Uninstall not working

Post by *psixo »

Hi everybody!
I just found out about this plugin and it's so awesome I had to register to post here!

But yet there are some problems I am having and was wondering are these known bugs or something I am missing.
I can't uninstall apps from the devices. I tried it on
Nexus 7 4.3
Galaxy S2 4.1.2
both of them have default roms and are not rooted.
and it just says access denied...

Also is there some sort of manual or tutorial for using this awesome plugin?
jakubklos
Senior Member
Senior Member
Posts: 221
Joined: 2012-07-11, 14:48 UTC

Re: Uninstall not working

Post by *jakubklos »

psixo wrote:Hi everybody!
I just found out about this plugin and it's so awesome I had to register to post here!

But yet there are some problems I am having and was wondering are these known bugs or something I am missing.
I can't uninstall apps from the devices. I tried it on
Nexus 7 4.3
Galaxy S2 4.1.2
both of them have default roms and are not rooted.
and it just says access denied...

Also is there some sort of manual or tutorial for using this awesome plugin?
Hi,
thank you. I will test the uninstall feature. It used to work for sure but since you are the second person to complain there must be something wrong.

The only page that exists (recently) is this one
http://www.uniqtec.eu/applications/android-adb.html

Should you feel some more FAQs is missing just let me know

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

Re: Uninstall not working

Post by *jakubklos »

psixo wrote:Hi everybody!
I just found out about this plugin and it's so awesome I had to register to post here!

But yet there are some problems I am having and was wondering are these known bugs or something I am missing.
I can't uninstall apps from the devices. I tried it on
Nexus 7 4.3
Galaxy S2 4.1.2
both of them have default roms and are not rooted.
and it just says access denied...

Also is there some sort of manual or tutorial for using this awesome plugin?
I have fixed the uninstall issue:
7.2
- Fix: App uninstall fixed
psixo
Junior Member
Junior Member
Posts: 2
Joined: 2013-08-27, 11:16 UTC

Great

Post by *psixo »

Awesome plugin support! When will the fixed version be available?

I did read the page you mentioned in detail and it provides some good information on how to use the program and with some trial and error I got a hang of it pretty quickly. Al-though a little more detailed help of program functions would be quite helpful for the new users.
Post Reply