Mobile phone test _adb common commands

Qualcomm obtains mobile phone root permission (you can go in from *#801# to increase the permission angela), MTK uses the debug version, and turns on the phone USB debugging

  1. Push the apk file of the application to the phone, use the following command:
    adb remount
    adb push xxxx.apk /system/app

2) View the file list, use the following command to view the mobile app list

  adb shell
  cd /system/app
  ls

Or adb shell
ls cd /system/app to
view the external sd card root directory file ls cd /storage/sdcard0

3) Pull the apk file of the application to the D drive of the computer, and use the following command:

   adb pull /system/app/XXX.apk d:\

4) Forcibly install the apk of the application, use the following command:

   adb install -r XXX.apk

5) To view the process cpu and memory occupancy rate, use the following command: (the top 10 occupancy rate is displayed by default)

   adb shell
   top 

Or, for the top 5 of the occupancy rate, print twice
adb shell
top -m 5 -n 2
6) To view the system partition, use the following command:

  adb shell
  df

7) To uninstall the apk of the application, use the following command:

adb uninstall <software name>
adb uninstall -k <software name> (if the -k parameter is added to uninstall the software but retain the configuration and cache files)
rm /system/app/*.apk" *Represents the name of the unwanted built-in apk file

8) adb log capture
adb logcat -v time
adb logcat -b main -v time>app.log print application log
adb logcat -b events -v time print system event log, such as touch screen events
adb logcat -b radio -v time> radio.log Print radio frequency (wireless communication) related log, SIM STK will also be in it, modem related ATcommand etc.
adb shell tcpdump -s 10000 -w /sdcard/capture.pcap is related to TCP/IP protocol You can use this to capture, for example, capture the UA profile when downloading mms, when the browser is online,
use the proxy’s APN to download, and streaming related content includes UA profile, etc.

Guess you like

Origin blog.csdn.net/weixin_51014063/article/details/108747148