Android : Need to change file permission
#1
This is actually a repost as last time I put possibly in wrong section ( Writing plugin for android)
*********************
Hi
I am writing a plugin for my android xbmc. I am trying to copy a file to the system and change its permission to Read Only.
I tried shutil. It copies Ok with read only attribute in my mac but in android it ends up having all write permissions.
Is there any code to make a file read only? And vice versa if needed?
Any help is appreciated.
Reply
#2
how about chmod 444 once it is on the device to change permissions
via adb or terminal emulator

adb:
adb shell chmod 444 /pathtofile

terminal:
su
chmod 444 /path to file
Reply

Logout Mark Read Team Forum Stats Members Help
: Need to change file permission0