android - Access another app's data with sharedUserId -
I have an app that is already on the market, let's call it "old app". I would like to create a "new app" which shares the data with an old app that I have decided to use a shared ID.
I have modified the new app's manifest by adding the following line:
android: sharedUserId = "com.myname.myoldapp" Where com.myname.myoldapp is the name of the old app package. But it does not work.
How can I access older app data with the new app? Matching the old app's userId to share new, obviously, there is no option because old apps are already online and all users who update will lose their personal data.
PS: The certificates are the same.
Thank you.
I already have an app on the market, let's call it "old app" . I would like to create a "new app" which shares the data with an older app, I have decided to use it with a shared ID.
It will no longer be possible, without breaking all your current installation.
I have added a new app by adding the following line: Android: sharedUserId = "com.myname.myoldapp" where com.myname.myoldapp is the old name app but it does not work .
If you read, you will see that you have been told: "However, if this feature is set to the same value or more applications, they all Identical ID "(Throne Khan) since you do not have android: sharedUserId in your old app, you can not set a new app to the android: sharedUserId value of the old app . How can I access older app data with the new app?
Use a service . Or any other form of IPC, supported by a ContentProvider or Android, the old app will need to expose the IPC-based API, which can be used to access the latest app data from the old app. You can use custom signature -level permissions to restrict access to these APIs for your API.
Comments
Post a Comment