导航:首页 > 程序命令 > linux命令安卓

linux命令安卓

发布时间:2025-07-30 07:49:20

Ⅰ 在linux 上做的事,在安卓手机的命令行上也能做吗

不能,虽然两者都是基于同一内核开发的产品,但是两者经过了后期开发,两者为了达到一些应用都做了优化、改动,所以在linux 上能做的事情,在安卓那里就不能做,不是说一定不能,这个是可以通过一些小的应用来实现一些的(个人见解)

android 中linux 命令pm常见用法(安装卸载app)

27种用法格式 :

用法说明

1、 pm list packages : prints all packages, optionally only those whose package name contains the text in FILTER. Options:

例子:列出系统中所有packages

2、 pm list permission-groups : prints all known permission groups.

例子:

3、 pm list permissions : prints all known permissions, optionally only those in GROUP. Options:

例子:列出系统所有许可

4、 pm list instrumentation : use to list all test packages; optionally supply to list the test packages for a particular application. Options:

-f: list the .apk file for the test package.

5、 pm list features : prints all features of the system.

例子:列出所有手机特性

6、 pm list users : prints all users on the system.

例子:

7、 pm path : print the path to the .apk of the given PACKAGE.

例子:按包名查找apk文件所在路径

8、 pm mp : print system state associated with the given PACKAGE.

9、 pm install : installs a package to the system. Options:

例子:

10、 pm uninstall : removes a package from the system. Options:

-k: keep the data and cache directories around after package removal. 保留数据

例子:

11、 pm clear : deletes all data associated with a package..

例子:只删除数据

12、 pm enable, disable, disable-user, disable-until-used : these commands change the enabled state of a given package or component (written as "package/class").

13、 pm grant, revoke : these commands either grant or revoke permissions to applications. Only optional permissions the application has declared can be granted or revoked.

14、 pm get-install-location : returns the current install location.

15、 pm 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.

16、 pm trim-caches : trim cache files to reach the given free space.

17、 pm create-user : create a new user with the given USER_NAME, printing the new user identifier of the user. 创建新用户

18、 pm remove-user : remove the user with the given USER_IDENTIFIER, deleting all data associated with that user 。 按用户ID删除用户

阅读全文

与linux命令安卓相关的资料

热点内容
编程珠玑笔记 浏览:277
结束命令行 浏览:268
力学原理pdf 浏览:732
宏定义编译后不变 浏览:400
如何搞免费服务器 浏览:209
神经系统pdf 浏览:668
如何查看服务器上的数据库服务器 浏览:192
压缩机型号v代表什么 浏览:55
旅游类源码 浏览:865
电脑服务器类型怎么设置 浏览:233
pdf炒股 浏览:789
服务器地址缺少端口号什么意思 浏览:533
下载需要解压的小说用哪个软件 浏览:537
广东分布式服务器云主机 浏览:586
服务器忙打不开怎么办 浏览:18
tif压缩软件 浏览:416
程序员那么可爱陆漓上班第1天 浏览:952
macbookair自带什么app 浏览:704
如何关了加密的软件 浏览:585
程序员p2p待遇 浏览:923