您的位置:首页 > 其它

常用adb指令

2015-11-17 10:37 190 查看
常用adb指令

adb shell //进入shell

exit   //退出shell

#su 
#cd system/sd/data //进入系统内指定文件夹 
#ls //列表显示当前文件夹内容 
#rm -r xxx //删除名字为xxx的文件夹及其里面的所有文件 
#rm xxx //删除文件xxx 

#rmdir xxx //删除xxx的文件夹

adb
shell环境下mkdir images   //在当前文件目录下新建文件夹。

adb shell dumpsys package com.dingmore.employee
 //查看已安装apk的manifast文件。

aapt dump permissions apk路径.apk   //查看未安装的apk的manifast文件中的权限。

aapt dump badging /Users/lianwanfei/Desktop/pullemployee.apk  //查看未安装的apk的manifast文件。

adb install apk路径.apk //安装apk
adb uninstall com.dingmore.employee  //卸载已安装的apk.
adb shell环境下 pm path com.dingmore.employee   //查询已安装apk在手机的路径:

adb pull /data/app/com.dingmore.employee-1.apk /Users/lianwanfei/Desktop/pullemployee.apk//把已安装的apk应用的apk复制到桌面

adb push /Users/lianwanfei/Desktop/employee_android151112_2.apk /sdcard/      //把文件或文件夹复制到sdcard。记得/sdcard/后面那个/别忘了。

adb shell am start com.tencent.mm/com.tencent.mm.ui.LauncherUI  // 打开微信客户端

adb shell”进入shell之后,再输入“cat /system/build.prop | grep "product"”//查看设备信息

adb
shell dumpsys window displays //查看设备分辨率
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  adb 常用 指令