Hi Desmanto,
Can i set file priveleges to write on readonly file? İf is possible please give me a simple example to do this. Thank you very much.
can i set file priveleges by automagic?
Moderator: Martin
Re: can i set file priveleges by automagic?
Do you mean set file permission? You can use execute command or execute root command (if the file in /data or some protected partition).
Example, one of my TWRP backup flow, use to change the permission of the recovery folder, execute root command.
This will set the permission of the recovery folder to all read/write/execute, so I can put openrecovery script there.
For further use of chmod, look at the manual page : https://linux.die.net/man/1/chmod
Example, one of my TWRP backup flow, use to change the permission of the recovery folder, execute root command.
Code: Select all
chmod 0777 /cache/recovery
For further use of chmod, look at the manual page : https://linux.die.net/man/1/chmod
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.