虽然设备是根源的,SQLite数据库不能被访问 [英] SQLite database cannot be accessed although device is rooted

查看:140
本文介绍了虽然设备是根源的,SQLite数据库不能被访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQLite数据库无法访问,虽然设备是根植的。



我一直在寻找这个相当长的时间,我发现以下步骤在 https://stackoverflow.com/a/24259250/5256621


1.连接您的设备并以调试模式启动应用程序。
$ b 2.从应用程序文件夹复制数据库文件到你的SD卡:
执行:



./ adb -d shellrun-as com.yourpackge.name cat
/ data / data /com.yourpackge.name/databases/filename.sqlite>
/sdcard/filename.sqlite


  1. 将数据库文件拉到你的机器上:execute:


$ b ./ adb pull / sdcard / execute:./adb

安装Firefox SQLLite Manager:


  1. / firefox / addon / sqlite-manager /rel =nofo llow noreferrer> https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/




在哪里可以找到你的数据库文件?我的数据库文件?数据文件显示为空,虽然我已经植根我的设备。我很抱歉,如果这是一个愚蠢的问题,但我真的不知道如何使用真正的设备访问SQLite。

有人说,一旦设备是扎根,但不为我工作。 如何查看Android设备上的SQLite数据库?

请帮助...

哪里可以找到我的应用程序文件夹在真正的设备?!它真的驱动我疯狂!!! com / store / apps / details?id = oliver.ehrenmueller.dbadmin& hl = zh-CNrel =nofollow> SQLite Debugger 可以解决您的问题。



您也可以使用根浏览器查看您创建的文件。


SQLite database cannot be accessed although device is rooted.

I've been searching this for quite a long time and I found the following steps at https://stackoverflow.com/a/24259250/5256621

1.Connect your device and launch the application in debug mode.

2.Copy the database file from your application folder to your sd card: execute:

./adb -d shell "run-as com.yourpackge.name cat /data/data/com.yourpackge.name/databases/filename.sqlite > /sdcard/filename.sqlite"

  1. Pull the database files to your machine: execute:

./adb pull /sdcard/ execute: ./adb

  1. Install Firefox SQLLite Manager: https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/

5.Open Firefox SQLLite Manager and open your database file from step 3 above.

Where can I find my database file ? The data file shows empty although I have rooted my device. I'm sorry if this is a silly question but I really do not know how to access SQLite using real device.

Some said that database can be accessed once the device is rooted but not works for me. How do I view the SQLite database on an Android device?

Please help...

WHERE CAN I FIND MY APP FOLDER IN REAL DEVICE?! IT REALLY DRIVE ME CRAZY!!!

解决方案

SQLite Debugger can solve your problem.

You also can use Root Browser to view your created file.

这篇关于虽然设备是根源的,SQLite数据库不能被访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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