Adb command

Install apk

adb install <path-to-the-apk>

 

In case that you have both simulator and device connected but you want to install the app on device, then use the global option “-d” just right after the “adb” command will help.

-d      use USB device (error if multiple devices connected)

Update existing apk on device.

adb -d install -r <path-to-apk>

Uninstall apk

uninstall [-k] PACKAGE
     remove this app package from the device
     '-k': keep the data and cache directories

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s