美文网首页
nexus(cm12.1) 安装apk失败【INSTALL_FA

nexus(cm12.1) 安装apk失败【INSTALL_FA

作者: 小时候很能吃 | 来源:发表于2017-12-25 16:42 被阅读0次

百度好垃圾,google找到解决办法

老外链接:https://forum.xda-developers.com/google-nexus-5/general/fix-cm12-install-sdcard-application-t3044526

adb shell

su

pm set-install-location 1

执行上面3步,在安装即可

补充:

这个问题出现的原因是Android应用安装位置当前不可用,而Android应用安装位置有手机rom内和sd card两种。由于Android设备没有sd card便有可能出现此情况。

解决方法:

1. 在AndroidManifest.xml下:

android:installLocation="auto" >

这配置让Android系统自行决定应用的安装位置。

2. 使用adb shell命令让手机自己选择安装在哪里。

adb shell

pm set-install-location 0       #由App自行决定软件能否安装在SD卡上

pm set-install-location 1       #强制全部App安装在ROM内

pm set-install-location 2       #强制全部App安装在SD卡

相关文章

网友评论

      本文标题:nexus(cm12.1) 安装apk失败【INSTALL_FA

      本文链接:https://www.haomeiwen.com/subject/sfnlgxtx.html