当前位置:网站首页>How Android uses ADB command to view application local database
How Android uses ADB command to view application local database
2022-07-25 09:52:00 【Happy play rabbit】
D:\Program Files\Android\Sdk\platform-tools>adb shell
rk3288:/ $ su
rk3288:/ # chmod 777 /data/
rk3288:/ # chmod 777 /data/data/com.XX.XXX/databases/pos.db
rk3288:/ # cd /data/data/com.XX.XXX/databases/
rk3288:/data/data/com.XX.XXX/databases # sqlite3 XX.db
SQLite version 3.22.0 2018-12-19 01:30:22
Enter “.help” for usage hints.
sqlite>
1. After connecting the real machine , Through the first su Command acquisition root Permission to operate , Otherwise, the database will be inaccessible because of lack of permission
2.chmod 777 With root The user's permission gives the database all permissions
3. adopt sqlite3 Open the database you want to access
4. After completing the above steps, you can happily access the database of the local application
Tips :
At the beginning, I didn't know the path of the local database
Can be in Android studio—>View–>Tool Windows–>Device file Explores View local data files , The path is
data/data/ App package name /databases Next , Just check it
------------------------------ The above content is what I didn't find Android Studio Groping under the premise of bringing a sharp weapon
What's wrong with this Android Studio The built-in database of this application can be opened automatically in
边栏推荐
猜你喜欢

How to import a large amount of data in MATLAB

First knowledge of opencv4.x --- box filtering

Hyperautomation for the enhancement of automation in industries 论文翻译

CDA Level1知识点总结之业务分析报告与数据可视化报表

卷积神经网络发展历程(部分)

First knowledge of opencv4.x --- drawing shapes on images

单目深度估计自监督模型Featdepth解读(上)——论文理解和核心源码分析

初识Opencv4.X----图像模板匹配

MinkowskiEngine 安装

Get to know opencv4.x for the first time --- add salt and pepper noise to the image
随机推荐
Esp8266的Flash读写操作以及Flash上传文件
CDA Level1复盘总结
Hyperautomation for the enhancement of automation in industries 论文翻译
解决esp8266无法连接手机和电脑热点的问题
Preliminary understanding and implementation of wechat applet bottom navigation bar
Flutter rive multi state example
基于PackNet的演进——丰田研究院(TRI)深度估计文章盘点(下)
matlab如何导入大量数据
Create personal extreme writing process - reprint
FPGA基础进阶
How to import a large amount of data in MATLAB
相机姿态估计
AI模型风险评估 第1部分:动机
【数据挖掘】最近邻和贝叶斯分类器
Bracket matching problem
pytorch使用tensorboard实现可视化总结
A picture explains SQL join left and right
Get to know opencv4.x for the first time --- add salt and pepper noise to the image
数据分析面试记录1-5
Expect+sh realize automatic interaction