JustinVive Posted December 16, 2017 Share Posted December 16, 2017 ADB Tips Visit the Android Debug Bridge Developer Site for indepth information - https://developer.android.com/studio/command-line/adb ======== # install a custom launcher: adb install -r MatrixDD.apk # set and start launcher (e.g. the one above): adb shell cmd package set-home-activity com.htc.mobilevr.launcher/com.htc.vr.unity.WVRUnityVRActivity adb shell am start -n com.htc.mobilevr.launcher/com.htc.vr.unity.WVRUnityVRActivity # reset launcher back to the Android phone launcher: adb shell cmd package set-home-activity com.android.launcher/com.android.launcher2.Launcher adb shell am start -n com.android.launcher/com.android.launcher2.Launcher # run an app: adb shell am start -n <package-name>/<activity-name> # e.g. adb shell am start -n com.htc.bowshot_3DOF/com.htc.vr.unity.WVRUnityVRActivity # list 3rd party installed packages: adb shell cmd package list packages -3 # find activity of an installed package: (from an apk: aapt dump badging yourapp.apk) adb shell cmd package resolve-activity --brief <package-name> # uninstall a package e.g. Vysor: adb uninstall com.koushikdutta.vysor # turn bluetooth on: adb root adb shell service call bluetooth_manager 6 adb shell am start -a android.settings.BLUETOOTH_SETTINGS # use 8 to turn off # for wifi use: adb shell svc wifi enable # or disable adb unroot # power down: adb shell reboot -p # check battery level: adb shell "dumpsys battery | grep level" # adb over wifi (setup wifi connection first): # find ip address: adb shell "ifconfig wlan0 | grep 'inet addr:'" # restart adb over wifi: adb tcpip 5555 # connect over wifi: (you can now disconnect usb cable) adb connect <ip address>:5555 # to revert to usb: adb usb # or just reboot Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now