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 ......
- PM list packages-F
- PM list permission-groups
- PM list permissions-g-F-D-u Group
- PM list Instrumentation-F target-Package
- PM path package
- PM install-l-R path
- PM uninstall-K package
- PM enable package_or_component
- 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
- The-G option to organize by group. Use
- The-F option to print all information. Use
- The-s option for a short summary. Use
- The-D option to only list dangerous permissions. Use
- 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
- The-L option to install the package with forward_lock. Use
- The-r option to reinstall an exisiting app, keeping its data.
- The uninstall command removes a package from the system. Use
- The-K option to keep the data and cache directories around after the package removal.