哪里是应用程序的SQLite数据库存储在Android [英] Where is apps SQLite DB Stored on Android

查看:209
本文介绍了哪里是应用程序的SQLite数据库存储在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图确定在Android手机上存储的应用程序SQLite数据库在哪里。我testings并需要能够将其删除并测试code创造。在模拟器上它是在/数据/数据​​/应用包名/ something.db但我无法找到它的实际电话。有谁知道它在哪里存放,如果它是通过accessable DDMS?

I am trying to determine where on an android phone an apps SQLite database is stored. I am testings and need to be able to delete it and test the code for creation. On the simulator it is in /data/data/app package name/something.db but I am unable to find it on the actual phone. Does anybody know where it is stored and if it is accessable via DDMS?

感谢

推荐答案

如果出于某种原因,你需要访问手机上的数据库,您必须在手机root权限(超级用户换句话说)。然后,你将需要使用root权限给你访问到系统文件的文件浏览器。

If for whatever reason, you need to access the database on the phone, you must have root access (superuser in other words) on the phone. Then you will need a file explorer that uses root permission to give you access to the system files.

如果以上所有的存在,那么你会发现在应用程序数据库:

If all the above exists, then you will find the application database in:

/data/data/com.yourpackage.name/databases。

这篇关于哪里是应用程序的SQLite数据库存储在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆