adb吧 关注:1,083贴子:2,705
  • 0回复贴,共1



PS C:\Windows\SysWOW64> adb shell pm grant com.fb.fluidError: no permission specifiedusage: pm path [--user USER_ID] PACKAGE pm dump PACKAGE pm install [-lrtsfd] [-i PACKAGE] [--user USER_ID] [PATH] pm install-create [-lrtsfdp] [-i PACKAGE] [-S BYTES] [--install-location 0/1/2] [--force-uuid internal|UUID] pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH] pm install-commit SESSION_ID pm install-abandon SESSION_ID pm uninstall [-k] [--user USER_ID] [--versionCode VERSION_CODE] PACKAGE pm set-installer PACKAGE INSTALLER pm move-package PACKAGE [internal|UUID] pm move-primary-storage [internal|UUID] pm clear [--user USER_ID] PACKAGE pm enable [--user USER_ID] PACKAGE_OR_COMPONENT pm disable [--user USER_ID] PACKAGE_OR_COMPONENT pm disable-user [--user USER_ID] PACKAGE_OR_COMPONENT pm disable-until-used [--user USER_ID] PACKAGE_OR_COMPONENT pm default-state [--user USER_ID] PACKAGE_OR_COMPONENT pm set-user-restriction [--user USER_ID] RESTRICTION VALUE pm hide [--user USER_ID] PACKAGE_OR_COMPONENT pm unhide [--user USER_ID] PACKAGE_OR_COMPONENT pm grant [--user USER_ID] PACKAGE PERMISSION pm revoke [--user USER_ID] PACKAGE PERMISSION pm reset-permissions pm set-app-link [--user USER_ID] PACKAGE {always|ask|never|undefined} pm get-app-link [--user USER_ID] PACKAGE pm set-install-location [0/auto] [1/internal] [2/external] pm get-install-location pm set-permission-enforced PERMISSION [true|false] pm trim-caches DESIRED_FREE_SPACE [internal|UUID] pm create-user [--profileOf USER_ID] [--managed] [--restricted] [--ephemeral] [--guest] USER_NAME pm remove-user USER_ID pm get-max-usersNOTE: 'pm list' commands have moved! Run 'adb shell cmd package' to display the new path: print the path to the .apk of the given dump: print system state associated with the given install: install a single legacy packagepm install-create: create an install session -l: forward lock application -r: replace existing application -t: allow test packages -i: specify the installer package name -s: install application on sdcard -f: install application on internal flash -d: allow version code downgrade (debuggable packages only) -p: partial application install -g: grant all runtime permissions -S: size in bytes of entire sessionpm install-write: write a package into existing session; path may be '-' to read from stdin -S: size in bytes of package, required for stdinpm install-commit: perform install of fully staged sessionpm install-abandon: abandon sessionpm set-installer: set installer package namepm uninstall: removes a package from the system. Options: -k: keep the data and cache directories around after package clear: deletes all data associated with a enable, disable, disable-user, disable-until-used, default-state: these commands change the enabled state of a given package or component (written as "package/class").pm grant, revoke: these commands either grant or revoke permissions to apps. The permissions must be declared as used in the app's manifest, be runtime permissions (protection level dangerous), and the app targeting SDK greater than Lollipop reset-permissions: revert all runtime permissions to their default get-install-location: returns the current install location. 0 [auto]: Let system decide the best location 1 [internal]: Install on internal device storage 2 [external]: Install on external mediapm set-install-location: changes the default install location. NOTE: this is only intended for debugging; using this can cause applications to break and other undersireable behavior. 0 [auto]: Let system decide the best location 1 [internal]: Install on internal device storage 2 [external]: Install on external mediapm trim-caches: trim cache files to reach the given free create-user: create a new user with the given USER_NAME, printing the new user identifier of the remove-user: remove the user with the given USER_IDENTIFIER, deleting all data associated with that userPS C:\Windows\SysWOW64> android.permission.WRITE_SECURE_STTINGSandroid.permission.WRITE_SECURE_STTINGS : 无法将“android.permission.WRITE_SECURE_STTINGS”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。所在位置 行:1 字符: 1+ android.permission.WRITE_SECURE_STTINGS+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (android.permission.WRITE_SECURE_STTINGS:String) [], CommandNotFoundExce ption + FullyQualifiedErrorId : CommandNotFoundException

来自Android客户端1楼2019-01-10 12:04