在Android终端的Windows操作系统拷贝的SQLite数据库文件 [英] Copy sqlite db file from Android terminal to Windows OS

查看:444
本文介绍了在Android终端的Windows操作系统拷贝的SQLite数据库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要复制与数据/数据​​/ [包名] /数据库/于Windows操作系统的SQLite数据库。

I want to copy the sqlite database from data/data/[package name]/databases/ to Windows Operating system.

目前,我的Andr​​oid工作室的Andr​​oid终端外壳内,我目前的路径是/data/data/example.com.sensor/databases。

Currently, I am inside Android Terminal shell of Android studio and my current path is /data/data/example.com.sensor/databases.

有此目录中一个源码文件。这个名字是sensor.sqlite。

There is a sqlite file in this directory. The name is sensor.sqlite.

这也许是用户体验像你这样一个简单的问题。
不过,我已经花了2小时但是我发现的结果。

This is perhaps an easy question for experience user like you. However, I have spent 2 hours yet I find the result.

感谢您。

问候,

吉米

推荐答案

由于设备未扎根,你无法从应用程序之外做到这一点。如果这是你的应用程序,你可以添加一个临时的例行到应用程序的数据库复制到公共存储,然后用亚行或MTP将文件复制到Windows计算机。

Since your device is not rooted, you cannot do this from outside of the application. If it's your application, you can add a temporary routine into the application to copy the database to public storage, then use adb or MTP to copy the file to your Windows computer.

或者,你可以根您的设备。

Or, you can just root your device.

这篇关于在Android终端的Windows操作系统拷贝的SQLite数据库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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