Hi Martin. I recently switched to a miui rooted ROM and apparently successfully gave automagic root permissions. However it can't browse the filesystem (root /data/data folder) and trying to edit a database within this folder with execute root command gives me a file not found error.
Any known issues with miui? Other apps have no problem using root. Thanks
Root access on MIUI ROM
Moderator: Martin
Re: Root access on MIUI ROM
Hi,
The file browser of Automagic never uses root to browse the file system so it will not be able to list/show files that are not accessible without root permissions. Use a root file explorer to list the files in such folders.
Action Execute Root Command just passes the command to the available su command. Sometimes su fails to execute the root commands when it's using the wrong SE context. You can try to switch the context in the action but the switch is only supported by few su implementations like SuperSU so it might fail on MIUI.
You can try to track down the file not found issue by a command like ls -l /data/data and see if the su-binary works and can shows the file(s).
Regards,
Martin
The file browser of Automagic never uses root to browse the file system so it will not be able to list/show files that are not accessible without root permissions. Use a root file explorer to list the files in such folders.
Action Execute Root Command just passes the command to the available su command. Sometimes su fails to execute the root commands when it's using the wrong SE context. You can try to switch the context in the action but the switch is only supported by few su implementations like SuperSU so it might fail on MIUI.
You can try to track down the file not found issue by a command like ls -l /data/data and see if the su-binary works and can shows the file(s).
Regards,
Martin
Re: Root access on MIUI ROM
Thanks. Very difficult to debug. It was a sqlite3 issue finally. It was not installed by default and after installing it I didn't give it the right permissions. Anyway, it wasn't an Automagic issue.