Skip to content

Instantly share code, notes, and snippets.

@Javvadilakshman
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save Javvadilakshman/4050814cbf289790cd77 to your computer and use it in GitHub Desktop.

Select an option

Save Javvadilakshman/4050814cbf289790cd77 to your computer and use it in GitHub Desktop.
Droid Stufff

Collection of Android & Related Codes,Concepts

Android

Android.com
I. ADB Commands

Android ADB Commands

View connected device's

adb devices

Connect to device

adb -s device_id shell

Example : adb -s 05ssfsssssc343e shell

Install an application

adb install -r APK_FILE

Example :	adb install -r ~/application.apk

Uninstall an application

adb uninstall PACKAGE_NAME
Example : adb uninstall com.growingwiththeweb.example

Start an activity

adb shell am start PACKAGE_NAME/ACTIVITY_IN_PACKAGE
adb shell am start PACKAGE_NAME/FULLY_QUALIFIED_ACTIVITY

Example:
adb shell am start -n com.growingwiththeweb.example/.MainActivity
adb shell am start -n com.growingwiththeweb.example/com.growingwiththeweb.example.MainActivity

Package Manager

List the installed packages

		pm list package -f

To unintall a app

	pm uninstall packagename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment