adb install parameter

来源:互联网 发布:广联达土建预算软件 编辑:程序博客网 时间:2024/06/06 02:21

adb install [-l] [-r] [-s] <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) 
                                 ('-s' means install on SD card instead of internal storage) 

adb install [-l] [-r] [-s] <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)
                                 ('-s' means install on SD card instead of internal storage)

 

-r 参数表示重新安装 apk,所以加上这个参数就不会有上述错误。

-s 参数表示安装 apk 到 SDcard.

-l lock app

原创粉丝点击