The adb shell pm command is first recognized, and the auto-start command of the application is forbidden. The adbpm command

Source: Internet
Author: User

The adb shell pm command is first recognized, and the auto-start command of the application is forbidden. The adbpm command

Many people on the Forum wanted to cancel the auto-start startup of the application, so they wanted to know how it was implemented. However, Baidu once found out how to enable the application to boot, there is no hope for Baidu search materials.

Finally, google gets a result,

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

Even though the prompt (the system permission can be guessed)

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

But at least we know it is implemented in this way. We will have a holiday later. write a blog record first.

You can use the pm command to obtain the query result as follows:

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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.