Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6219637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:49:05+00:00 2026-05-24T07:49:05+00:00

I know it have been discussed already at some point. But after searching there

  • 0

I know it have been discussed already at some point. But after searching there are still some questions to that topic.


My situation:
I have an App A which generates information and stores it in it’s internal storage.
App B is supposed to access App As information.
The point is that App A was designed before considering a need of App B.
Also important:
App A shouldn’t get modified if it’s possible.


What I found:

  1. Content Provider: to much changes
  2. Access database of another app
  3. store the Inforation on SD: last possibility
  4. Application access permission to files on internal storage

Question to point two:
there is written:

For sharing protected files the applications must be signed with the same cert and have matching android:sharedUserId in their AndroidManifest.xml files.

I get the point with the sharedUserId, but what certificate is he refering to?

Question to point three:
Is there a way to access the Information of App A if it gets saved with a different Context.MODE ?

I really would appreciate some thoughts of you guys.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:49:06+00:00Added an answer on May 24, 2026 at 7:49 am

    Also important: App A shouldn’t get modified if it’s possible.

    Fortunately for you, that’s impossible. Otherwise, everybody could get at App A’s data whenever they want.

    I get the point with the sharedUserId, but what certificate is he refering to?

    That would be the signing key your application is signed with. For production, it would be the signing key you used for the Android Market, for example.

    Bear in mind that you cannot change the sharedUserId of App A without breaking all of your existing users. Google also does not recommend that SDK developers mess around with sharedUserId.

    Question to point three: Is there a way to access the Information of App A if it gets saved with a different Context.MODE ?

    Context.MODE has nothing to do with external storage. Every application can read (and, with WRITE_EXTERNAL_STORAGE, write) anything they want on external storage.

    Context.MODE comes into play with internal storage (openFileOutput()). However, if you make the file world-readable, then any application can read that data, not just App B.

    Content Provider: to much changes

    This, or possibly a service with an AIDL interface, is the best answer, where you use a custom permission to help ensure that only App B can access App A’s data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there have been some similar questions to this, but they haven't helped
I know this question might have already been discussed a thousands of times but
I know there have been a million questions asking this, but mine is different.
I know this topic has been discussed to death, but there is one thing
Alright I know that the .closest() have been discussed before, but I have been
I know this topic has been discussed a lot , but I have a
I know this has been discussed a number of times but I still have
I know this subject has been discussed before but still have problem with refresh
I know try catch have been discussed a lot but I haven’t found a
I know there have been many questions on grid and pack in the past

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.