Last active
December 13, 2016 14:27
-
-
Save lsurvila/6da803172f8a320c01615b056faf5961 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
Genymotion emulators are already rooted and with SU installed | |
To fix "adb server version (<server-version>) doesn't match this client (<client-version>); killing...": | |
Change SDK location https://stackoverflow.com/questions/30757191/adb-and-genymotion-error-adb-server-is-out-of-date-killing-cannot-bind-tc | |
To find current SDK location: | |
https://stackoverflow.com/questions/34532063/finding-android-sdk-on-mac-and-adding-to-path | |
System apps reside in: | |
/system/app/<AppName>/<AppName>.apk | |
Read package name of .apk: | |
aapt dump badging <path-to-apk> | grep package:\ name | |
Remove system app in rooted device: | |
adb shell | |
su | |
mount -o rw,remount /system | |
rm -rf <path-to-apk> | |
rm -rf /data/data/<package-name> | |
mount -o ro,remount /system | |
exit | |
exit | |
Start specific activity: | |
am start -n <yourpackagename>/<Activity-with-absolute-or-relative-path> | |
Put device into doze mode: | |
adb devices (it gives you the device serial) | |
adb -s <device_serial> shell dumpsys battery unplug | |
adb -s <device_serial> shell dumpsys deviceidle step | |
the states 'stepped to' were as follows: IDLE_PENDING, SENSING, LOCATING, IDLE. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment