27種用法格式 :
創新互聯是一家專業提供黔西南州企業網站建設,專注與成都網站建設、成都做網站、html5、小程序制作等業務。10年已為黔西南州眾多企業、政府機構等服務。創新互聯專業的建站公司優惠進行中。
用法說明 :
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 dump : 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 上能做的事情,在安卓那里就不能做,不是說一定不能,這個是可以通過一些小的應用來實現一些的(個人見解)
dd :用指定大小的塊拷貝一個文件,并在拷貝的同時進行指定的轉換。
注意:指定數字的地方若以下列字符結尾,則乘以相應的數字: b=512 ; c=1 ; k=1024 ; w=2
參數注釋:
4、備份與恢復MBR
·備份文件開始的512個字節大小的MBR信息到指定文件:
#dd if=/system/xbin/busybox of=/data/local/tmp/bb count=1 bs=512
· count=1 指僅拷貝一個塊; bs=512 指塊大小為512個字節
·恢復:
#dd if=/data/local/tmp/bb of=/data/local/tmp/bbb
·將備份的MBR信息寫到磁盤開始部分
/dev/null ,外號叫無底洞,你可以向它輸出任何數據,它通吃,并且不會撐著!
/dev/zero ,是一個輸入設備,你可你用它來初始化文件。該設備無窮盡地提供 0 ,可以使用任何你需要的數目——設備提供的要多的多。他可以用于向設備或文件寫入字符串 0 。
/dev/null ——它是空設備,也稱為位桶( bit bucket )。任何寫入它的輸出都會被拋棄。如果不想讓消息以標準輸出顯示或寫入文件,那么可以將消息重定向到位桶。
文章題目:安卓命令和linux命令,linux是安卓
網頁URL:http://m.kartarina.com/article2/hsdeoc.html
成都網站建設公司_創新互聯,為您提供App開發、網站內鏈、企業建站、自適應網站、網站設計公司、網站營銷
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯