Other General ADB commands

adb commands

1. adb install command
This command is used to install an app on your device using adb command. Once the app is installed an icon appear on your device.


In this command you have to give the path of the .apk file which you wish to install on your device.

There are multiple options available while you install the app
adb install [option] <path>

    1.  Forward lock application
adb install -l facebook.apk  
    2.   Replace existing application
adb install -r facebook.apk 
    3.  Allow test packages
adb install -t facebook.apk 
    4. Install application on sdcard
adb install -s facebook.apk
    5. Allow version code downgrade
adb install -d facebook.apk
    6. Partial application installation
 adb install -p facebook.apk     

2. adb push command

This command is used to upload specific file from your computer to device

adb push test.mp4 /sdcard/test.mp4
3. adb pull command

This command is use to download the specific file from device to your computer.
adb pull /sdcard /test.mp4 
4. adb uninstall command

This command is use to uninstall specific application from your device/emulator
adb uninstall com.facebook.com

No comments:

Post a Comment

Feature Posts

Python Appium - Step by step procedure for capturing screenshot

 Why To capture screenshot? It is as important as your logs. If there is any failure for any test scenario, we can provide screenshot for th...