ADB指令之将apk安装到仿真器或真机

一、先启动好仿真器或真机

若是安装到真机先将开发者选项打开,同时要将里面的USB调试打开


二、使用adb install apk详细地址(直接将apk拖到cmd文本框中即可获取到)进行安装

 

当出现Success表示安装成功

若仿真器或手机里面已存在要安装的程序,或者安装的程序没有卸载完全,如有数据残留,则可能出现以下异常提示


若出现上图情况,请执行以下命令


三、adb install 参数说明

adb install [-l] [-r] [-d] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-d' means allow version code downgrade)
('-s' means install on SD card instead of internal storage)
('--algo', '--key', and '--iv' mean the file is encrypted already)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值