I use ADB to transfer my app's sqlite file between PC and devices with my
production app. However, while working fine up to now with many different
devices, it doesn't work with a Galaxy Nexus running 4.1.1. Running the
following adb command to check the permissions: "C:\Program Files
(x86)\AppName\adb.exe" shell ls -l /data/data/App.Appname/ gets the
following response:

'opendir failed, permission denied'

So clearly it is a folder permissions issue with the Nexus. As I'm not
familiar with unix permissions, is there a way of changing the permissions
for the App.AppName folder? I looked at using permission:
MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE, but these aren't available in
the MfA 4.2.6 Required Permissions list. I'm also not sure they would fix
the problem anyway. The database file is created initially using:

string outFileName = dbPath;
Stream myOutput = new FileStream(outFileName, FileMode.OpenOrCreate);
byte[] buffer = new byte[1024];
.....

Any help with this will be appreciated.



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Changing-Folder-File-permissions-in-MfA-tp5712215.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to