如何使用真实设备查看sqlite数据库 [英] How to view sqlite database using real device

查看:80
本文介绍了如何使用真实设备查看sqlite数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了很长时间,并且在 https://stackoverflow.com/a上找到了以下步骤/ 24259250/5256621

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


1。连接设备并以调试模式启动应用程序。

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

2。将数据库文件从应用程序文件夹复制到sd卡:
执行:

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

./ adb -d shell 以com.yourpackge.name cat
/data/data/com.yourpackge.name/databases/filename.sqlite>
/sdcard/filename.sqlite运行。

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


  1. 将数据库文件拖到您的计算机中:执行:

./ adb pull / sdcard /执行:./adb

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


  1. 安装Firefox SQLLite Manager:
    https://addons.mozilla.org/zh-CN/firefox / addon / sqlite-manager /

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

5。打开Firefox SQLLite Manager并从上面的第3步
中打开数据库文件。

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

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

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.

有人说一旦设备被访问,就可以访问数据库扎根但对我不起作用。 如何在Android设备上查看SQLite数据库?

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?

推荐答案

您可以使用Root Explore,在此之前,您必须拥有设备的root权限和root权限才能运行该应用程序,然后打开并找到数据文件夹,然后打开该文件夹,然后继续查找数据文件夹并打开,您将在此设备中找到应用程序文件,找到您的软件包名称,然后找到数据库,可以使用将数据库复制到sdcard

you can user Root Explore,before this,you must root your device and user root permission to run the app ,then open and find data folder and open the folder then continue find data folder and open ,you will find the app files in this device,find your packagename and you can find the db,you can use copy the db to sdcard

这篇关于如何使用真实设备查看sqlite数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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