ADB common commands

Source: Internet
Author: User

ADB Devices viewing devices

ADB shell PS adbd View Daemon

ADB shell ps/data/data (adb shell PM List packages) lists package names

ADB kill-server (end ADB service process)

Adb-s XXX (too many devices, to be specified)

ADB help view all the commands in the ADB assistance information

ADB logcat Displays the applied log data to the screen

ADB version view ADB edition number

ADB bugreport view bug Information Report

ADB install xx.apk (location under Windows) APK package

ADB uninstall xx.apk Uninstall APK package (adb shell pm Uninstall xx.apk)

ADB pull <remote> <local> Move the specified file from the device to the computer

ADB push <local> <remote> move files on your computer to your device

ADB get-state (view the current status of the emulator/device)

ADB start-server (start adb service process)

ADB remount (sometimes need to copy files to phone/simulator and need to be mounted again)

adb shell Dumpsys Battery (see battery-related information)

adb shell Dumpsys wifi (view WiFi network information)

ADB shell Dumpsys Power (view power Management related information) adb Shell Dumpsys Power | findstr "Mscreenofftimeout Setting"

ADB shell Dumpsys telephony.registry View phone-related information

ADB shell Cat/proc/cpuinfo View CPU-related information

ADB shell Cat/proc/meminfo View memory-related information

ADB shell Cat/proc/iomem View I/O memory partition information

ADB Shell Cat/system/build.prop | Findstr "Ro.product.model"

adb Shell Dumpsys Window | Findstr "Display" View resolution

ADB shell Getprop ro.build.version.release system version Information

ADB shell cat/proc/version Phone core information

ADB shell getprop gsm.network.type mobile network type information

ADB shell Getprop Gsm.operator.alpha get carrier information

adb Shell Dumpsys Iphonesubinfo | findstr "Device ID" to get phone string number information

ADB shell DF Phone system partition information

ADB shell DMESG View kernel log information

ADB shell Dumpstute View information about the current state of the system

ADB shell Dumpsys meminfo View all applications that consume memory information during the run

ADB shell Dumpsys cpuinfo View CPU dynamic occupancy (-m process number,-n number of data flushes,-s in what order,-D interval for refresh time)

View phone traffic data: adb shell Cat/proc/net/xt_gtaguid/status

Application Packaging Tool AAPT

AAPT L file.apk > Apk.txt

AAPT d badging file.apk (basic information)

AAPT d permissions file.apk app permissions

AAPT d Configurations file.apk configuration information

AAPT d Resources file.apk Resource information

ADB common commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.