multiple apps, sharing same data directory

前端 未结 1 406
天命终不由人
天命终不由人 2021-02-06 19:15

my end goal is to have two apps, a \"main\" app (which will do all the work the user wants it to do), and a \"licence\" app, which will check if the app is licensed.

my

1条回答
  •  孤街浪徒
    2021-02-06 19:35

    You need to modify manifest files for both apps, add the same 'android:sharedUserId' element to both manifest nodes.

    e.g.

    
    

    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.

    0 讨论(0)
提交回复
热议问题