我正在从文件资源管理器查看我的数据库文件,但无法访问该文件,你能告诉我如何查看数据库列以及如何更改该文件的权限吗?
最佳答案
1. open ddms -> file explorer -> file -> file -> <package name> -> database ->
(select) databasename.db file -> pull file from the device (use pull button on
top-right of file explorer window) -> set the destination for file.
2. use any sqlite tools for open that database.db file and using it retrive or modify
data of database.
感谢。
编辑:对于权限,我没有尝试过,但我认为,root 你的 adb 设备(模拟器),然后更改相应文件的权限,为此你想使用 adb 工具和 adb 命令。
编辑:看Understanding Android file permissions和 How to Use Android ADB Command Line Tool
关于android - 如何更改android中数据库文件的权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7266909/