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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -