获取手机中apk包名方法
确保手机已连接adb的情况1.电脑驱动安装完毕,手机开发者选项打开,USB 调试
步骤:
1.adb shell
2.pm list packages
结果如下:
C:\Users\qingzhi.wang>adb shell
Infinix-X5515I:/ $ pm list packages
package:com.mediatek.gba
package:com.mediatek.ims
package:com.android.cts.priv.ctsshim
package:com.google.android.youtube
package:org.simalliance.openmobileapi.uicc2terminal
package:com.transsion.statisticalsales
package:com.android.internal.display.cutout.emulation.corner
package:com.google.android.ext.services
package:com.android.internal.display.cutout.emulation.double
package:com.android.providers.telephony
package:com.google.android.googlequicksearchbox
package:com.transsion.phonemaster
package:com.android.providers.calendar
package:com.android.providers.media
package:com.google.android.onetimeinitializer
package:com.google.android.ext.shared
package:com.transsion.screenshot
package:com.mediatek.location.lppe.main
package:com.android.wallpapercropper
package:com.transsion.magicshow
package:com.mediatek.schpwronoff
package:com.transsion.os.autosystemsrv
package:com.example.jintest
package:org.simalliance.openmobileapi.service
package:com.transsion.agingfunction
package:com.android.documentsui
package:android.auto_generated_rro__
package:com.android.externalstorage
package:com.mediatek.ygps
package:com.mediatek.simprocessor
package:com.android.htmlviewer
package:com.whatsapp
package:com.android.companiondevicemanager
package:com.android.mms.service
package:com.android.providers.downloads 补充:
列出手机装的所有app的包名:
adb shell pm list packages
列出系统应用的所有包名:
adb shell pm list packages -s
列出除了系统应用的第三方应用包名:
adb shell pm list packages -3 adb shell getprop persist.sys.oobe_country
1.查询oobe 选择了啥国家的
2.adb shell getprop ro.build.type 查看手机是否是user版本
页:
[1]