Open pahapoika opened 8 years ago
TWRP is running as root, so don't use su. And TWRP's busybox is in /sbin. But you should probably simply use "rm".
@that1 i ran to another problem. The file is just rw for owner and im not owner of the file. So is there command that you can run on updater-script or in .sh file to change the permissions to rw-rw-rw?
Other way would be replace with empty file. So how would be that possible?
Root should be able to delete any file. But you can also use chmod.
@that1 the file can be deleted in terminal emulator by commands su su/xbin/busybox rm /data/system/(nameoffile)
But it does not delete from recovery.
When running the rm command via adb shell while in TWRP (or from TWRP's built-in terminal emulator), what error message are you getting?
So how to grant root permissions to bourne script?
(The script already does mount the /data/ to rm) So im making flashable .zip that would delete from /data/system/ but su/xbin/busybox rm -rf /data/system/(filename) doesn't delete the file. So is there any other way to make that zip delete that file from that directory?
Thanks!