更新时间:2022-12-20 21:54:21
您需要修改清单文件,这两个应用程序,添加相同的机器人:sharedUserId元素,既体现节点。
You need to modify manifest files for both apps, add the same 'android:sharedUserId' element to both manifest nodes.
例如。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:sharedUserId="com.mycompany.myapp" .... />
如果这两个应用程序具有相同的sharedUserId,他们可以互相访问的数据文件夹。
If both apps have the same sharedUserId, they can access each other's data folders.
忘了补充:很明显,你需要登录这两个应用程序与相同的别名相同的私钥
Forgot to add: obviously you need to sign both apps with the same private key with the same alias.