android adb shell中使用到的命令
2019-08-04 12:47
1231 查看
原文链接:http://www.cnblogs.com/pampam/p/5631018.html
1,Shell 模式下挂载根目录下的目录为可读可写状态,e.g /system/:
mount -o remount rw /system/
这样即可push文件到相应目录中。
2,Shell 模式下查看相应进程的PID,e.g packageName = com.android.phone
root@android:/# ps|grep com.android.phone
可见com.android.phone进程的PID = 2466,其中命令中的grep为从结果中过滤指定字符串
3,Shell 模式下查看被某进程PID所访问的文件,其实就是查看/proc/<PID>/fd/下的文件:e.g PID = 2466
root@android:/ # ls /proc/2466/fd -l|grep /dev/
可见被进程的PID = 2466 访问的文件位于/dev/目录下有以上,实际不只这些,方便演示只截了小图。
转载于:https://www.cnblogs.com/pampam/p/5631018.html
相关文章推荐
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- Android开发——使用ADB Shell命令实现模拟点击(支付宝自动转账实现)
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- Android adb shell 使用命令纪录
- adb使用-android adb shell 命令大全
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- android adb shell 命令使用记录
- pc上使用有root权限的adb shell命令来操作android手机
- Android 使用adb shell命令 个人笔记
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- android中使用adb shell命令kill掉应用程序
- pc上使用有root权限的adb shell命令来操作android手机
- android中使用adb shell命令kill掉应用程序
- Android开发——使用ADB Shell命令实现模拟点击(支付宝自动转账实现)
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- android真机调试时使用adb shell命令 windows
- android 调试中 addr2line 命令的使用
- Android系统中 setprop,getprop,watchprops命令的使用
- android使用adb命令安装软件