Some ways to view the APK file package name using the ADB command

Source: Internet
Author: User

The premise is that the Android SDK has been downloaded and the environment variables are ready!

In console input command $adb shell PM

You can see the relevant usage of the ADB shell pm, see the output for more details

The simplest and most useful way to see information about an APK file is:

AAPT dump badging [yourapp.apk]

If you just want to see the packagename applied on your phone, enter the command:

ADB shell PM List Packages

The following information is listed:

Package:android

Package:cn.ninegame.gamemanager

Package:com.alipay.android.app

Package:com.android.backupconfirm

Package:com.android.browser

Package:com.android.calculator2

Package:com.android.calendar

Package:com.android.camera

Package:com.android.certinstaller

...

If you want to know where the app's APK file is installed on your phone, you can add the-f parameter after the above command

ADB shell PM List packages-f

Some ways to view the APK file package name using the 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.