Android adb Tips / Android adb 相關資訊

Published:
Last modified:
adb 最新版下載位置

常用指令
透過 adb CLI 來開啟 App 指定畫面
# 範例 開啟 Google Play 
adb.exe shell am start -n com.android.vending/com.google.android.finsky.activities.MainActivity

# 範例 開啟 My App Share
adb.exe shell am start -n com.yschi.MyAppSharer/com.yschi.MyAppSharer.MyAppSharer
找出目前 Android 設備上畫面所屬的 App Activity 名稱
# For Mac/Linux
adb shell dumpsys window | grep -E 'mCurrentFocus' 

# For Windows:
adb shell dumpsys window | find "mCurrentFocus"

參考資料



Henry Yang© 2020 ·