unable to create a file under /data/ android -
i wrote android application in create file under /data/ directory able create file able read , write file want give read access group , other users unable
my sample code goes here
try{
string path = '/data/';
f = new file(path,"myfile.conf");
f.setreadable(true,false);
f.setwriteable(true,false);
}catch(exception e){
e.printstackstrace();
}
when see file using cmd line
-rw------- /data/myfile.conf
in androidmanifest.xml -- have android:userid system application running system user
my idea create file under /data/ directory , give read access other users suggestion please let me know
regards
nick
Comments
Post a Comment