# 检测包是否存在
.\adb.exe shell pm list packages com.huawei.android.hwouc
# 启用包
.\adb.exe shell pm enable com.huawei.android.hwouc
# 禁用包
.\adb.exe shell pm disable-user com.huawei.android.hwouc
# 列出被禁用的包
.\adb.exe shell pm list packages -d
# 禁用一些服务
@"pm enable com.huawei.appmarket",
@"pm enable com.huawei.android.hwouc",
@"pm enable com.xiaomi.market"
dump PACKAGE
Print various system state associated with the given PACKAGE.
list features
Prints all features of the system.
has-feature FEATURE_NAME [version]
Prints true and returns exit status 0 when system has a FEATURE_NAME,
otherwise prints false and returns exit status 1
list instrumentation [-f] [TARGET-PACKAGE]
Prints all test packages; optionally only those targeting TARGET-PACKAGE
Options:
-f: dump the name of the .apk file containing the test package
list libraries
Prints all system libraries.
list packages [-f] [-d] [-e] [-s] [-3] [-i] [-l] [-u] [-U]
[--show-versioncode] [--apex-only] [--uid UID] [--user USER_ID] [FILTER]
Prints all packages; optionally only those whose name contains
the text in FILTER. Options are:
-f: see their associated file
-a: all known packages (but excluding APEXes)
-d: filter to only show disabled packages
-e: filter to only show enabled packages
-s: filter to only show system packages
-3: filter to only show third party packages
-i: see the installer for the packages
-l: ignored (used for compatibility with older releases)
-U: also show the package UID
-u: also include uninstalled packages
--show-versioncode: also show the version code
--apex-only: only show APEX packages
--uid UID: filter to only show packages with the given UID
--user USER_ID: only list packages belonging to the given user