1. ADB helps obtain
Command: Adb–help
Description: After executing this command, you can view all the commands supported by ADB.
2. App security loading and unloading
The command details are as follows, and the following will explain your usual scenes.
2.1 Installing an APK
Command: ADB install package
Description: Package refers to the APK bundle file to be installed.
2.2 Overlay Install an APK
Command: ADB install–r package
Description: Package refers to the APK bundle file to be installed.
2.3 Uninstalling an APK
Command: ADB uninstall PackageName
Description: PackageName refers to the package name of the app that needs to be uninstalled.
-K: Represents the Save data and cache folder.
3. File transfer
The command details are as follows, and the following will explain your usual scenes.
3.1 Local file transfer to Android device
The fact is that the files on the computer are copied to the Android device, the file here also includes folders.
Command: ADB push Localfilepath RemotePath
Description: Localfilepath is the absolute path of the file that the computer is going to transfer to the Android device. RemotePath refers to the location of the path on the Android device where the file will be stored.
3.2 Files on your Android device to your local computer
Command: ADB [-a] remotefilepath LocalPath
Note: A: This parameter is based on the actual situation, can be added without adding. Refers to saving file timestamps and patterns. Remotefilepath refers to the absolute path of files on an Android device. LocalPath refers to the location where the local computer will be saved.
4. View Current Activity
Command: adb shell Dumpsys Activity Top | Find "ACTIVITY"
Description: View the activity that is currently being displayed.
5.ADB command launches specified activity
Command: ADB shell am start com.android.dialer/. Dialtactsactivity
Note: This command can start the corresponding activity directly.
Android ADB Common Commands