Android ADB command

Source: Internet
Author: User

Get Package Name

AAPT d badging C:\Users\600844\Desktop\beijingtoon.apk

"Package Launchable-activity"

ADB decices can see the phone currently being debugged by the computer

adb install path/beijingtoon.apk apk

ADB uninstall path/beijingtoon.apk uninstall APK

ADB uninstall-k path/beijingtoon.apk uninstall APK, keep data and cache

ADB Logcat | findstr Start monitoring ADB logs

ADB reboot restart ADB

ADB shell PM List packages displays all app package names on the device

ADB shell PM List packages-s Show all system app package names

ADB shell PM List packages-3 Displays all system app package names, except for the third party add

ADB shell pm List Packages | grep Taobao query for specific package names via grep

Note: Error ' grep ' is not an internal or external command, is not a running program or a batch file

Workaround: The contents of the ADB shell should be quoted in quotation marks so that the error is not reported.

Get the activity for an already installed app and find the category that contains. LAUNCHER "The activity of the word"

ADB shell "Dumpsys package Com.taobao.taobao |grep category. LAU "

ADB shell "Dumpsys package Com.systoon.beijingtoon |grep category. LAU "

ADB shell pm Path Com.taobao.taobao Get the APK path for the installation package

ADB shell am start-n {Package] name}/{package name}. {activity name} Launch app

ADB shell am force-stop <packagename> Force Stop App

Android ADB command

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.