Android常见命令

来源:互联网 发布:vb释放资源文件 编辑:程序博客网 时间:2024/06/15 18:53
1)adb指令
adb kill-server                             杀死adb服务
adb start-server                          开启adb服务
cd desktop(假如安装包在桌面)
adb install 应用名.apk                 安装应用
adb uninstall 应用包名                卸载应用
adb shell
ls 
按Ctrl+C退出                               进入手机终端
adb push 文件名.txt 手机目录      取出终端文件

adb pull 手机目录/文件名.txt        放入终端文件


--------------------------------------------------------------------------------


2)修改文件权限指令
adb shell
cd data/data
ls
cd 包名
ls
cd files
ls

chmod 777 文件名.txt


---------------------------------------------------------------------------------


3)sqlite3数据库查询
adb shell
cd data/data/包名/databases
sqlite3 数据库名.db
查询语句;
0 0
原创粉丝点击