android - 如何更改android中数据库文件的权限?

标签 android database

我正在从文件资源管理器查看我的数据库文件,但无法访问该文件,你能告诉我如何查看数据库列以及如何更改该文件的权限吗?

最佳答案

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 permissionsHow to Use Android ADB Command Line Tool

关于android - 如何更改android中数据库文件的权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7266909/

相关文章:

mysql - 您可以对 SHOW COLUMNS 或 DESC 的输出进行排序吗?

c# - 在 C# 中将数据从 nvarchar 转换为 varchar

android - 当应用程序从低内存中返回时系统重新创建 fragment

database - 如何保护 Redis 集群?

android - Google Sky Map 开源 - 如何将点击操作映射到对象?

android - 找不到与给定名称 'android:TextAppearance.Material.Widget.Button.Inverse' 匹配的资源。关于添加第三方库

两次插入项目时Android Room持久性SQLiteConstraintException

java - 如何在 servlet 之间发送数据?

android - 如何通过点击号码从 webviewclient 打开拨号器 Activity ?

java - CompletableFuture API17 的替代品