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