adb uninstall com.test.app adb uninstall -k com.test.app # Keep the data and cache directories around after package removal.
查看包安装列表
adb shell pm list packages adb shell pm list packages -f # See their associated file. adb shell pm list packages -d # Filter to only show disabled packages. adb shell pm list packages -e # Filter to only show enabled packages. adb shell pm list packages -s # Filter to only show system packages. adb shell pm list packages -3 # Filter to only show third party packages. adb shell pm list packages -i # See the installer for the packages. adb shell pm list packages -u # Also include uninstalled packages. adb shell pm list packages --user <USER_ID> # The user space to query.
adb shell 进入 Android am start -n <package-name>/<package-name>.<activity-name>
或者直接运行
adb shell am start -n <package-name>/<package-name>.<activity-name>
一些系统应用打开方式
# 设置 am start -n com.android.settings/com.android.settings.Settings # 日历 am start -n com.android.calendar/com.android.calendar.LaunchActivity # 闹钟 am start -n com.android.alarmclock/com.android.alarmclock.AlarmClock # 音乐和视频 am start -n com.android.music/com.android.music.MusicBrowserActivity am start -n com.android.music/com.android.music.VideoBrowserActivity am start -n com.android.music/com.android.music.MediaPlaybackActivity # 照相机 am start -n com.android.camera/com.android.camera.Camera # 浏览器 am start -n com.android.browser/com.android.browser.BrowserActivity # 打开网址 am start -a android.intent.action.VIEW -d http://www.google.cn/ # 拨打电话 am start -a android.intent.action.CALL -d tel:10086