Android PM command and how to install and uninstall the installation package on the terminal

Source: Internet
Author: User
The PM command is used as follows:

The PM command is the packagemanage command line in Android for installation package operations. Generally, run the following command to install a new installation package.

1. Install APK. For example, enter:

PM install-r/data/card/apicalradio.apk

You can reinstall apicalradio.apk on the Android system. By default, it is installed in the data/APP/directory of the system.

The-R parameter indicates re-installation. If it is already installed, the original installation package will be overwritten.

 

2. Uninstall

PM uninstall-K com. apical. apicalradio

Among them, Com. apical. apicalradio is the package name of your APK package.

 

3. Besides the PM command, you can use CP or RM to achieve the installation effect. If you are operating in terminal mode, you may feel more convenient to use CP and RM.

Installation: CP/data/card/apicalradio.apk/data/APP

Uninstall: Rm-F/data/APP/apicalradio.apk

These two commands are actually the delete and copy commands in Linux.

 

The following is a detailed usage of the PM command. the original English text cannot be understood, so it will not be translated ......

 

    • Usage: PM list
    1. PM list packages-F
    2. PM list permission-groups
    3. PM list permissions-g-F-D-u Group
    4. PM list Instrumentation-F target-Package
    5. PM path package
    6. PM install-l-R path
    7. PM uninstall-K package
    8. PM enable package_or_component
    9. PM disable package_or_component
    • The list packages command prints all packages. Use the-F option to see their associated file.
    • The list permission-groups command prints all knownpermission groups.
    • The list permissions command prints all known permissions, optionally only those in Group. Use
    1. The-G option to organize by group. Use
    2. The-F option to print all information. Use
    3. The-s option for a short summary. Use
    4. The-D option to only list dangerous permissions. Use
    5. The-u option to list only the permissions users will see.
    • The list instrumentation command prints all instrumentations, or only those that target a specified package. Use the-FF option to see their associated file.
    • The path command prints the path to the. APK of a package.
    • The Install command installa package to the system. Use
    1. The-L option to install the package with forward_lock. Use
    2. The-r option to reinstall an exisiting app, keeping its data.
    3. The uninstall command removes a package from the system. Use
    4. The-K option to keep the data and cache directories around after the package removal.
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.