Android adb Tips / Android adb 相關資訊
Published:
Last modified:
adb 最新版下載位置
- Windows 版本:https://dl.google.com/android/repository/platform-tools-latest-windows.zip
- Mac 版本:https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
- Linux 版本:https://dl.google.com/android/repository/platform-tools-latest-linux.zip
常用指令
透過 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"
- Samsung 手機實用資訊July 18, 2024
- Android adb Tips / Android adb 相關資訊
- Android Root Tips / Android Root 相關資訊July 7, 2020
- Android Tips / Android 實用資訊July 7, 2020
Articles
Henry Yang© 2020 ·