|
Post by podahmad on Jun 19, 2019 13:35:38 GMT
How can i copy file between different folders in root browser.. Is there any way if i want to lets say copy a file from ankulua folder to any other
|
|
|
Post by AnkuLua on Jun 19, 2019 23:51:14 GMT
|
|
|
Post by podahmad on Jun 20, 2019 14:02:39 GMT
Thnku for ur response I was able to easily copy files LuaLib (by mercobots) but the problem now is that it set permission to 700 and i need 777 is there a way around this
|
|
|
Post by AnkuLua on Jun 20, 2019 14:05:51 GMT
Thnku for ur response I was able to easily copy files LuaLib (by mercobots) but the problem now is that it set permission to 700 and i need 777 is there a way around this who set the permission to 700? If AnkuLua, use os.execute("chmod 777" .. filename) If by root, use root explorer app.
|
|
|
Post by podahmad on Jun 20, 2019 14:17:19 GMT
Thnku for ur response I was able to easily copy files LuaLib (by mercobots) but the problem now is that it set permission to 700 and i need 777 is there a way around this who set the permission to 700? If AnkuLua, use os.execute("chmod 777" .. filename) If by root, use root explorer app. luaLib = loadstring(httpGet("https://raw.githubusercontent.com/mercobots/luaLib/master/luaLib.lua")) luaLib() source = "/data/data/aa/storage.xml" destination = "/data/data/com.supercell.hayday/shared_prefs" copy(source,destination) --os.execute("chmod a+rw /data/data/com.supercell.hayday/shared_prefs/storage.xml") os.execute("chmod 777" .. "/data/data/com.supercell.hayday/shared_prefs/storage.xml") I used this code but its not working..permission are not changed to 777
|
|
|
Post by AnkuLua on Jun 20, 2019 15:36:38 GMT
who set the permission to 700? If AnkuLua, use os.execute("chmod 777" .. filename) If by root, use root explorer app. luaLib = loadstring(httpGet("https://raw.githubusercontent.com/mercobots/luaLib/master/luaLib.lua")) luaLib() source = "/data/data/aa/storage.xml" destination = "/data/data/com.supercell.hayday/shared_prefs" copy(source,destination) --os.execute("chmod a+rw /data/data/com.supercell.hayday/shared_prefs/storage.xml") os.execute("chmod 777" .. "/data/data/com.supercell.hayday/shared_prefs/storage.xml") I used this code but its not working..permission are not changed to 777 Those directories are not writable for AnkuLua. You may try to change the mode to 777 by root file explorer with root.
|
|
|
Post by podahmad on Jun 20, 2019 16:01:29 GMT
luaLib = loadstring(httpGet("https://raw.githubusercontent.com/mercobots/luaLib/master/luaLib.lua")) luaLib() source = "/data/data/aa/storage.xml" destination = "/data/data/com.supercell.hayday/shared_prefs" copy(source,destination) --os.execute("chmod a+rw /data/data/com.supercell.hayday/shared_prefs/storage.xml") os.execute("chmod 777" .. "/data/data/com.supercell.hayday/shared_prefs/storage.xml") I used this code but its not working..permission are not changed to 777 Those directories are not writable for AnkuLua. You may try to change the mode to 777 by root file explorer with root. hm..i need to copy these files quite often..its part of the bot so cant do it manually
|
|
|
Post by podahmad on Jun 20, 2019 16:35:20 GMT
Those directories are not writable for AnkuLua. You may try to change the mode to 777 by root file explorer with root. hm..i need to copy these files quite often..its part of the bot so cant do it manually os.execute("chmod 777" .. scriptPath ().. "aa/storage.xml") I tried this as well.. ankulua cant execute it even in script folder
|
|
|
Copying
Jun 21, 2019 16:54:21 GMT
via mobile
Post by Exilereven on Jun 21, 2019 16:54:21 GMT
Have you tried looking up using Linux Shell emulator? I've always had good luck using command line she'll scripts to change permissions, but that was mainly on my mobile device...... I'm sure they have some kind of shell or powershell command for windows to change those.
|
|
|
Post by podahmad on Jun 21, 2019 18:20:49 GMT
Have you tried looking up using Linux Shell emulator? I've always had good luck using command line she'll scripts to change permissions, but that was mainly on my mobile device...... I'm sure they have some kind of shell or powershell command for windows to change those. i was able to change permission using the following line os.execute("chmod 777 'path' ") apparently there was a slight syntax problem with ankulua's code
|
|
|
Copying
Jun 21, 2019 19:12:17 GMT
via mobile
Post by Exilereven on Jun 21, 2019 19:12:17 GMT
Have you tried looking up using Linux Shell emulator? I've always had good luck using command line she'll scripts to change permissions, but that was mainly on my mobile device...... I'm sure they have some kind of shell or powershell command for windows to change those. i was able to change permission using the following line os.execute("chmod 777 'path' ") apparently there was a slight syntax problem with ankulua's code Awesome. Thanks for sharing correct working code. Helps others .
|
|
|
Post by podahmad on Jun 21, 2019 20:04:45 GMT
i was able to change permission using the following line os.execute("chmod 777 'path' ") apparently there was a slight syntax problem with ankulua's code Awesome. Thanks for sharing correct working code. Helps others .
|
|
|
Copying
Apr 11, 2020 13:37:43 GMT
via mobile
Post by oomkoos on Apr 11, 2020 13:37:43 GMT
Have you tried looking up using Linux Shell emulator? I've always had good luck using command line she'll scripts to change permissions, but that was mainly on my mobile device...... I'm sure they have some kind of shell or powershell command for windows to change those. i was able to change permission using the following line os.execute("chmod 777 'path' ") apparently there was a slight syntax problem with ankulua's code Hi there Would you mind sharing your final code ? My files copy , but they are all empty 😕 EDIT: Got it sorted out
|
|
jackk
New Member
Posts: 3
|
Post by jackk on Apr 28, 2020 19:17:14 GMT
after using the following: os.execute("chmod 777 '/data/data/com.supercell.hayday/shared_prefs/storage.xml' ")
i still get permission denied; the permission is not changed.
any ideas?
|
|
|
Post by oomkoos on Apr 30, 2020 5:29:17 GMT
after using the following: os.execute("chmod 777 '/data/data/com.supercell.hayday/shared_prefs/storage.xml' ") i still get permission denied; the permission is not changed. any ideas? trying to copy the files to or from shared_prefs folder ? to shared_prefs you dont need to change the permissions also look at folder permissions prior to file permissions remember the hay day game likes crashing if permissions is not set back to normal when copying
|
|