導航:首頁 > 程序命令 > 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命令安卓相關的資料

熱點內容
MDR對程序員透明嗎 瀏覽:430
訂機票什麼app好 瀏覽:6
php自動關閉頁面 瀏覽:532
文件或文件夾一般有四種屬性 瀏覽:891
php源碼七牛 瀏覽:333
雲伺服器如何看後台運行 瀏覽:120
一品威客網程序員 瀏覽:942
設計數的演算法 瀏覽:794
為什麼鴻蒙會顯示安卓正在運行 瀏覽:397
bcb編譯原理 瀏覽:363
如何查看公司內網pop3伺服器 瀏覽:710
linuxscp埠 瀏覽:250
伺服器網元指的是什麼 瀏覽:17
51單片機傳輸信號 瀏覽:715
暴肝程序員的異界之旅第五集 瀏覽:927
新手入坑程序員先學什麼 瀏覽:243
hellojava程序 瀏覽:213
為什麼我的app特別喜歡手機號注冊 瀏覽:639
linux掃描主機 瀏覽:879
磁碟加密隱私怎麼辦 瀏覽:316