android install 命令,android pm 和 install 选项 命令
发布日期:2021-06-24 12:16:11 浏览次数:2 分类:技术文章

本文共 2075 字,大约阅读时间需要 6 分钟。

usage: pm [list|path|install|uninstall]

pm list packages [-f]

pm list permission-groups

pm list permissions [-g] [-f] [-d] [-u] [GROUP]

pm list instrumentation [-f] [TARGET-PACKAGE]

pm list features

pm path PACKAGE

pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH

pm uninstall [-k] PACKAGE

pm enable PACKAGE_OR_COMPONENT

pm disable PACKAGE_OR_COMPONENT

pm setInstallLocation [0/auto] [1/internal] [2/external]

The list packages command prints all packages.  Options:

-f: see their associated file.

The list permission-groups command prints all known

permission groups.

The list permissions command prints all known

permissions, optionally only those in GROUP.  Options:

-g: organize by group.

-f: print all information.

-s: short summary.

-d: only list dangerous permissions.

-u: list only the permissions users will see.

The list instrumentation command prints all instrumentations,

or only those that target a specified package.  Options:

-f: see their associated file.

The list features command prints all features of the system.

The path command prints the path to the .apk of a package.

The install command installs a package to the system.  Options:

-l: install the package with FORWARD_LOCK.

-r: reinstall an exisiting app, keeping its data.

-t: allow test .apks to be installed.

-i: specify the installer package name.

-s: install package on sdcard.

-f: install package on internal flash.

The uninstall command removes a package from the system. Options:

-k: keep the data and cache directories around.

after the package removal.

The enable and disable commands change the enabled state of

a given package or component (written as “package/class”).

The getInstallLocation command gets the current install location

0 [auto]: Let system decide the best location

1 [internal]: Install on internal device storage

2 [external]: Install on external media

The setInstallLocation command changes the default install location

0 [auto]: Let system decide the best location

1 [internal]: Install on internal device storage

2 [external]: Install on external media

转载地址:https://blog.csdn.net/weixin_32667433/article/details/117729578 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:html-webpack-plugin 多页面,webpack中html-webpack-plugin插件的使用(生成多个html页面,引入不同的js文件)...
下一篇:HTML文件自动加入了VBS代码,用vbs脚本来关闭 HTML 页面的代码

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月06日 06时37分00秒