如果只有一个设备/模拟器连接时,可以省略掉 [-d|-e|-s <serialNumber>] 这一部分,直接使用 adb <command>。要使用adb命令,手机需要打开USB debug。二、adb命令大全 安装软件 adb install apk文件名称.apk 重新安装该软件 adb install -r apk文件名称.apk 卸载apk软件 adb uninstall apk包名.apk 查看手机上...
Please note that you must use the package name of an app (not the APK name) to uninstall it. For instance, if you want to uninstall the Google Photos app, type “com.google.android.apps.photos” as the package name. Install APK from SD Card via ADB If you have saved the APK file ...
adb shell dumpsys window|findstr"mCurrentFocus"::查看应用版本号adb shellpm dump com.example.test|findstr"versionName"::查看指定命令的参数 adbcommand--help adb shellcommand--help 打印方法调用堆栈: android.util.Log.d("TAG",android.util.Log.getStackTraceString(newThrowable())); 2.2 截屏/录制 :...
C:\Users\Administrator>adb Android Debug Bridge version1.0.41Version29.0.6-6198805InstalledasD:\android-sdk-windows\platform-tools\adb.exeglobaloptions:-a listen onallnetwork interfaces,notjust localhost-d use USB device(errorifmultiple devices connected)-e use TCP/IP device(errorifmultiple TCP/IP ...
adb install [-lrtsdg] <path_to_apk> 如:adb install xxx.apk:安装应用 如:adb -s设备名称 install xxx.apk:多个设备,安装到指定设备(通过adb devices获取设备名称) 一口君常用: adb -t install xxx.apk 3)卸载应用 adb uninstall[-k] <packagename>:卸载应用 ...
如:adb -s 设备名称 install xxx.apk:多个设备,安装到指定设备(通过adb devices获取设备名称) 一口君常用: adb -t install xxx.apk 3)卸载应用adb uninstall [-k] <packagename>:卸载应用 -k 参数可选,表示卸载应用但保留数据和缓存目录 adb shell pm uninstall --user 0 包名:卸载系统应用 ...
adb uninstall [-k] <package> - remove this app package from the device ('-k' means keep the data and cache directories) adb bugreport - return all information from the device that should be included in a bug report. adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-al...
adb install -r apk文件 例子: adb install -r D:\athena.apk 下面加入参数的意思 ('-r' means reinstall the app, keeping its data) #重新安装该程序,保存数据 卸载应用程序 adb uninstall packageName 例子: adb uninstall com.konka.athena adb uninstall -k D:\athena.apk 不删除程序运行所产生的数据...
Send file C:/Downloads/test.png /data/media/0/Pictures on the local device to the cloud phone directory /data/media/0/Pictures by running the following command: adb push C:/Downloads/test.png /data/media/0/Pictures. To check whether the file is sent successfully, run the following comm...
adb [-d|-e|-s <serialNumber>] <command> 1. 1、单个设备/模拟器连接 如果只有一个设备/模拟器连接时,可以省略掉[-d|-e|-s <serialNumber>]这一部分,直接使用adb <command>。 2、多个设备/模拟器连接 如果有多个设备/模拟器连接,则需要为命令指定目标设备。