转自:http://sunzeduo.blog.51cto.com/2758509/1279335/
root过了手机,发现再次安装程序出现了 Installation failed due to invalid APK file
这样的错误,后来再看logcat 发现是
Unable to open zip '/data/local/tmp/QuanZi.apk': Permission denied
这样的原因,但是将data/local/tmp 的权限修改了发现还是不行,最后通过查找,发现使用软连接的方式,将/data/local/tmp 到 /mnt/sdcard/tmp 这个下面,发现就可以了,也就是以后我的这个手机程序的安装都首先要在sdcard下安装了
ln -s /mnt/sdcard/tmp /data/local/tmp 下面的查找的资料
I got exactly the same problem, and this solution fixed it, so i hope it does for you too.
The reason for "permission denied" is that apk files uploaded to /data/local/tmp had to low permissions, and the installer process obviously did not have permissions to read any such file.
I never found a solution, but have a workaround that satisfies me. I have simply moved/symlinked the tmp directory to the SD card. Since SD card is formatted as FAT, it does not have owners/permissions and all files created there are always readable by everyone. So open a terminal emulator on your phone. Get root ("su") and type in:
# cd /data/local
# mv tmp tmp-old # (or simply rm -rf tmp)
# mkdir /mnt/sdcard/tmp
# ln -s /mnt/sdcard/tmp ./tmp
相关推荐
主要介绍了Android adb安装apk时提示Invalid APK file的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: /data/app/vmdl890369339.tmp/7_slice__ signatures are inconsistent. It is possible that this ...
关于Your page is blocked due to a security的解决方案
天天动听播放器可免费下载各种无损音乐,兼容更多格式
支持反编译class文件,jar,zip等,窗口版本, windows下可直接运行。
关于java_encrypt-jiami.的资料关于java_encrypt-jiami.的资料 关于java_encrypt-jiami.的资料关于java_encrypt-jiami.的资料
让fme支持mapgis的插件。 1.将CopyToFme文件夹中的文件全部拷贝到FME的安装目录下 2.<FME>\MDLL\MapEnv.exe,将其中的目录设置为<FME>\MDLL(需要写完整路径) 3.设置系统环境变量中的path,添加MDll所在目录。...
在用的apache服务器,启动报错: 代码如下:shmget() failed: Invalid argumentFailed to start up concurrent users module!经检查为kernel.shmmax设置未生效(copy另一系统的,数值设置大了) 如下: 代码如下:...
jar文件查看jar文件查看jar文件查看jar文件查看jar文件查看
install.log文件,找到卸载工具unwise32.exe,双击打开,即可实现方便轻松干净完全卸载。
强烈推荐,arcgis卸载出现,install.log文件复制到bin目录,找到卸载工具unwise32.exe
两步,帮助大家很容易实现卸载。 (1)下载压缩包并解压得到install.log文件 (2)找到License的默认安转路径,找到卸载工具unwise32.exe,双击打开,选择(1)步下载的install.log文件,并点击next,即可实现完全...
Caused by: android.system.ErrnoException: write failed: ENOSPC (No space lef
最近一台HP服务器卡在启动过程中,ilo查看提示问题The AHS file system mount failed with(i/o error).最后更新这个固件后成功解决,顺利启动。如果有其它问题欢迎留言
主要介绍了Android 中Failed to read key from keystore解决办法的相关资料,希望通过本能帮助到大家,需要的朋友可以参考下
附件解决dbf读取文件时遇到乱码问题,下载下来可以直接使用,无需使用dbf的jar包了,可以直接使用.
•memoQ server could not be started due to invalid time format in SSOConfig.xml - fixed. •A divided documents related bug has been fixed that prevented checking out an online project. •Some ...
The application could not be installed: INSTALL_FAILED_DEXOPT 清除模拟器数据 在AndroidStudio中打开AVD Manager: 使用WipeData清除数据: 调整模拟器内存 使用上面的WipeData还是一样的问题的话,建议重新...