ADB is the Android Debug Bridge short, it is an application platform-tools subdirectory under the SDK installation directory.
File operations:
1, the file on the PC into the device:
path on path equipment store PC files on a PC adb push files
例如:adb push C:/Users/zhangsen1/Desktop/dmesg.txt /sdcard/
2, the export device files to PC
path adb pull the file on the device you want to export to the file location stored on the PC
For example: adb pull /mnt/sdcard/testresult.txt C: / Users / zhangsen1 / Desktop
3, New Folder
adb shell mkdir path
4, New File
adb shell touch filename
5, move files / folders
adb shell mv path/file newpath/file
6, rename files / folders
adb shell rename path/filename newpath/newfilename
7, view the file contents
adb shell cat file
Flashed boot file:
1、adb reboot bootloader
2, fastboot flash boot boot image location
Start shell:
adb shell
Debug Log:
adb shell dmesg> C: /Users/zhangsen1/Desktop/dmesg.txt // get the kernel log
adb shell bugreport> C: /Users/zhangsen1/Desktop/bugreport.txt // contains dmesg, dumpstate information
adb shell dumpstate> C: /Users/zhangsen1/Desktop/dumpstate.txt // get memory log
adb shell logcat> C: /Users/zhangsen1/Desktop/logcat.txt // get the log buffer
adb logcat -c // clear the log cache
adb logcat | grep XXXX // View Log
Install or uninstall program:
adb install -r xxx.apk // cover the installation, keep the data and cache files
adb install -s xxx.apk // sd card to install apk
adb install -f xxx.apk // apk mounted to the inside of the system memory
adb install -d xxx.apk // install a lower version apk
adb install -g xxx.apk // grant all rights to install the apk manifest in
adb uninstall -k <package> // uninstall the app but keep the data and cache files
adb uninstall <package>
adb shell pm get-install- location // position for installation
Device View:
adb devices // see the serial number of the connected devices and corresponding device
adb shell cat / proc / cpuinfo // view the phone number of the kernel architecture and CP
adb shell cat / proc / meminfo // View detailed memory information system
adb shell df // view the phone disk space
adb shell getprop ro.bulid.version.release // get the phone system version
adb shell cat / sys / class / net / wlan0 / address // MAC address of the access to the machine
Related applications:
adb shell pm clear <package> // clear application data
adb shell pm path <package> // path view APP
adb shell pm list packages -f // package name to view all applications installed
adb shell a, start -n packagename / packagename.activityname // start an application Activity