You need to modify the manifest files for both applications, add the same "android: sharedUserId" element for both manifest nodes.
eg.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:sharedUserId="com.mycompany.myapp" .... />
If both applications have the same sharedUserId, they can access other data folders.
I forgot to add: obviously, you need to sign both applications with the same private key with the same alias.
source share