How to connect remote to emulator in another PC (macOS)
HOST WITH EMULATOR (terminal) Use ssh to connect to another PC. Then kill adb server and start it as server: ssh macmini@192.168.0.87 adb kill-server adb -a nodaemon server ON PC…
HOST WITH EMULATOR (terminal) Use ssh to connect to another PC. Then kill adb server and start it as server: ssh macmini@192.168.0.87 adb kill-server adb -a nodaemon server ON PC…
Here is the snippet for sending intent to open deeplink: adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d '{your_protocol}://{your_path_pattern}' Sample: adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d…
Get device's dimension: adb shell wm size > Physical size: 2880x1600 Get device's density: adb shell wm density > Physical density: 320 Hide status bar and navigation bar: adb shell…
Here is the command: adb shell "dumpsys window windows | grep -E 'mCurrentFocus'" The output would be: mCurrentFocus=Window{b6a99d1d0 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} My activity name is: LauncherActivity
Command to list apks on device: adb shell pm list packages Command to remove apk from device: adb shell pm uninstall -k --user 0 XX where XX is the package…
To get default dimension: adb shell wm size To get default density: adb shell wm density To change dimension: adb shell wm size XXX To change density: adb shell wm…
Download: devicesControl_jar Inside: adb.exe + jar_app + preview_pic
Here is the example how to run apk when you do not know what is the apk's name. First you need to call aapt to get info about AndroidManifest.xml from…