本文介绍了的Andr​​oid,谷歌是否起到修改您的APK。访问内部存储器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发的字典,我需要将数据库文件复制到anothers的应用程序的内部存储。我用同样的 sharedUserId 在这两个应用程序清单做到了这一点。

 的android:sharedUserId =edu.games.main.permission.database
机器人:sharedUserLabel =@字符串/ sharedUserLabel

该系统的工作。当我产生我的字典的签署APK和我的应用程序,其中的数据安装到字典的内部存储器,它工作正常。

但是,当我上载的谷歌签署Play中的应用,并从那里下载它,会出现此问题:

  1. Does Google Play somehow modify the app? It works on without Google Play, but it does not with it.

  2. Are there any suggestions how to copy an external database from Google Play and install it into internal memory of your application without using server outside of Google Play?

解决方案

Google Play Store doesn't resign your apk, but that would explain your behavior. I'd download both onstore and offstore copies of your apk and compare their signatures with jarsigner

Source: Verifying that two apk files are signed with the same signature

Here's a similar SO question: Exception 'open failed: EACCES (Permission denied)' on Android

这篇关于的Andr​​oid,谷歌是否起到修改您的APK。访问内部存储器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 14:57