PERMISSION DENIED error while copying database to sdcard .pl

北战南征 提交于 2019-12-06 13:25:26

If you connect the device to your pc and enable

copy files to/from computer etc...

You will not have access to write on the sd card.

Disconnect it from pc and try again or disable copy.

the log says you don't have permission to read data from /data/data/com.sri.tut/databases/image_storage.db, by default this /data directory is a linux system directory, its user and group owner is 'system', not your application, so you don't have the permission.

you can see the detail in adb shell, you will see such properties as below: drwxrwx--x system system 2012-09-14 08:30 data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!