The prerequisite for the ADB command is to configure the Platform-tools path in the configuration environment variable or to switch to the Platform-tools directory of the SDK in the command-line program (CMD.EXE). I habitually direct the ADB command directly in the Android Studion de terminal window (I have configured the Platform-tools path to the environment variable).
1. Install the application
ADB install-r application. APK (this needs to include the path of the APK)
For example: ADB install-r e://test.apk
2. Push writes a file to the phone
ADB push <local> <remote>
ADB push D://test.apk/system/app
Note: This is to push the test.apk file under the D packing directory to the System/app directory of the phone, although some file paths may require root to push the file to the appropriate folder.
3. Pull to get files from a folder on your phone
ADB pull <remote> <local>
ADB Pull/system/app D:/file.txt
Transfer file.txt files from your phone's System/app folder to your computer's D-Packing directory
4. View system drive letter
ADB Shell DF
5. Output all installed applications
ADB shell PM List packages-f
6. Restart
ADB reboot