Created
January 14, 2019 14:45
-
-
Save SetareMaghari/2663f453deb9f5fc1604b22c9c5f58f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## List installed packages | |
adb shell 'pm list packages -f |
Extract installed apk from device
adb pull /data/app/{PACHAGE_NAME from above (may include -[number] in it)}/base.apk
source: https://stackoverflow.com/questions/4032960/how-do-i-get-an-apk-file-from-an-android-device
Start launcher activity
adb shell monkey -p {your.app.package.name} -c android.intent.category.LAUNCHER 1
Find current activity
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'
Connect to device through wifi
adb devices
adb tcpip 5555
adb connect 192.168.14.173 (Device ip in current network)
connected to 192.168.14.173:5555
Install apk
adb install app.apk
Install apk on specific device
adb -s emulator-5554 install myapp.apk
adb -s a3b09a6e install "c:\my apk location\here 123\example.apk"
Install apk on specific device replacing current app
adb install -r MyApp.apk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
List installed packages
adb shell 'pm list packages -f
for setting constraint on search values: adb shell pm list packages -f | grep videos(or smth)