adb shell pm命令初識, 禁止應用開機自啟動命令

來源:互聯網
上載者:User

標籤:

在論壇看到好多人想取消應用的開機自啟動, 於是就想瞭解是怎麼實現的, 可是百度了一下,結果都是怎麼讓應用開機啟動, 對百度搜尋資料越來越沒有希望了.

最後google得到一個結果,

<span style="font-size:18px;">pm revoke com.android.livevideo  android.permission.RECEIVE_BOOT_COMPLETED</span>

雖然提示(猜測用系統許可權就OK)

Operation not allowed: java.lang.SecurityException: Permission android.permission.RECEIVE_BOOT_COMPLETED is not a development permission

但是至少知道是這樣去實現, 等會兒就放假了, 先寫博文記錄下來.

查詢得到pm命令的使用方法如下:

Use Android package manager  pm
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]
ExamplesInstall the package com.twitter.android-1.apk from the SD card
pm install /sdcard/com.twitter.android-1.apk
List installed packages that contain the term  twitter
pm list packages | grep twitter
Show the install directory of the twitter package
pm path com.twitter.android
http://www.kpbird.com/2013/05/android-shell-command-pm-package-manager.html


adb shell pm命令初識, 禁止應用開機自啟動命令

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.