|
Post by doctop on Sept 4, 2020 6:49:30 GMT
Hello everyone.
I need to rename /data/data/com.bla.bla by script.
Ankulua have root permission by Magisk.
Marked all root options in Ankulua settings.
/data/data/com.bla.bla have 777.
killApp("com.bla.bla") work well done.
os.rename("/data/data/com.bla.bla","/data/data/com.bla.bla11111111") NOT work.
os.execute("rename /data/data/com.bla.bla /data/data/com.bla.bla1111111") NOT work.
os.popen() not supported.
What to do ?
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Sept 5, 2020 3:14:55 GMT
you need to use scriptPath() inside os.rename.
An example below on how to rename filename
ROOT = scriptPath() os.rename(ROOT .. 'temp.txt', ROOT .. 'FINAL.txt')
|
|
|
Post by doctop on Sept 5, 2020 7:22:10 GMT
you need to use scriptPath() inside os.rename.
An example below on how to rename filename
ROOT = scriptPath() os.rename(ROOT .. 'temp.txt', ROOT .. 'FINAL.txt') Its work for "normal" folders (for example, .../download/). But not work for system folders (/data/data/..) Ankulua can see, but not read files inside /data/data/.. Something wrong with permission...
|
|
|
Post by shinsen on Sept 5, 2020 11:43:24 GMT
If you have root you can try with this os.execute("su -c 'COMMAND HERE'")
|
|
|
Post by doctop on Sept 6, 2020 17:50:02 GMT
If you have root you can try with this os.execute("su -c 'COMMAND HERE'") Its work! Thank you, dear friend!
|
|