On Aug 16, 12:01 pm, celavek wrote:

- I want to run one of the native apps that will generate a
config file in its internal data storage; I will close the native
app(nothing related running in the background)
- I want to be able to start the second application and use the
config file generated by the first
- It would be nice if I could share the file in a proper Android way;
Use a shared userid, which is mostly a function of the manifest.
I could just generated the file on the sdcard and give proper
permissions to both my apps but would like to stay away from
that method
Not really, as there are no uid-locked per-file or per-directory
permissions on the sdcard
I have searched for a way to do that from native code but apparently
is not possible.
It is possible, as all the java APIs for internal storage file
permissions do is use the underlying Linux file system permissions.
However, you cannot use this to grant access to a specific foreign
uid. Since you lack the ability to define it a new unix group, it's
basically your uid only, or everyone.

You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to android-ndk@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupandroid-ndk @
postedAug 16, '12 at 4:01p
activeAug 17, '12 at 1:04p

2 users in discussion

Celavek: 2 posts Chris Stratton: 1 post



site design / logo © 2019 Grokbase