adb install [-l] [-t] [-r] [-s] <file> - push this package file to the
device and install it
('-t' uses for install debug apk)
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
如果你想安装debug.apk
没有clear the data
:
adb install -t -r D:/debug.apk
如果你想安装debug.apk
文件clear the data
:
adb shell pm clear com.package.app
adb install -t D:/debug.apk
并通过 adb 命令在设备上启动应用程序:
adb shell am start -n com.package.app/com.package.app.activity.MainActivity