Page 1 of 1

Regarding root permissions

Posted: 25 Aug 2017 13:53
by akhileshg1988
While trying to execute any action that's supposed to interact with (access, copy etc.) files stored in the root directory(ies) (actions such as "Copy File", "Move File", "Init Variable File List" etc.), Automagic is unable to access files stored in the root directory(ies) (so do I guess).
For example, when I'm trying to execute the action "Move Files" (from the root directory /data/app/{app}/base.apk to /sdcard), Automagic says "Flow ended with an error", the error being "File does not exist /data/app/com.smart.clipboard/base.apk", whereas the file does exist in the said root directory.
What do I do?
I'm on a rooted phone with root permissions granted to Automagic.

Re: Regarding root permissions

Posted: 25 Aug 2017 14:43
by Desmanto
It seems all file operation are executed using normal user privelege. Try to browse the path to /data/, I see nothing.
So maybe Martin can add additional checkbox to use root function.

We have to resort back to the old ways, using Execute root command.
To list directory = ls /data/data
To copy file = cp <source> <destination>
To move file = mv <source> <destination>

Try to google the manual of the command, I don't know which explanation suit you the best.

In your case, you want to copy com.smart.clipboard. Use Execute Root Command

Code: Select all

cp /data/app/{app}/base.apk /sdcard/{app}.apk
For other move or init variable list, just replace the command as needed. Be careful when playing with root command, make sure you double check the command before executing.

I ever tried to measure the speed of execution. Renaming file using Execute Command (not root) is as fast as the action move file.
So I can say under the hood, Action move file is actually using terminal command as well. It supposed to be not so hard to add this additional root checkbox.