> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
.apk
file is saved on the external storage, but all private user data, databases, optimized .dex
files, and extracted native code are saved on the internal device memory.Loaded from the SDcard that was just removed...
- Swapping large modules to do different functions (although probably a non-issue on Android with Linux demand paging from readonly native code sources)
- To swap to a different version of a library (testing, upgrade, option of some kind)
- Security schemes (exotic maybe, but potentially very secure against various attacks)
Can 2.2 load a shared library from the sdcard if given an explicit path? If so, for just 2.2, could have code that simulates the 2.3 library placement.
On Fri, Apr 22, 2011 at 3:43 PM, Stephen Williams <stephend...@gmail.com> wrote:
Loaded from the SDcard that was just removed...If your app is on the SD card, the app will need to be killed.
- To swap to a different version of a library (testing, upgrade, option of some kind)
You could just let your process be killed in the background and restarted.
- Security schemes (exotic maybe, but potentially very secure against various attacks)
If security is a concern, you could also run these different schemes in different processes.
Can 2.2 load a shared library from the sdcard if given an explicit path? If so, for just 2.2, could have code that simulates the 2.3 library placement.
No, the sdcard is noexec. You really don't want to be loading code off of it since basically any other app can modify its contents.
So in 2.3+ the shared libraries in an app installed on the sdcard are in the encrypted read-only apk/apk-like device-specific loopback-mounted application-specific filesystem, and that does not have noexec set in the mount options? Cool.
Is the secure access to that simply the app userid or more aggressive kernel-level app association? Are group permissions usable between multiple apps for access to resources, assets, and/or shared libraries? Presumably multiple processes from the same app would share that access. Is there a way to pass access between apps?
For something like the Qt library installer vs. applications, you want the big shared libraries in a separate app from the actual apps, shared securely. I know they support passing the shared library paths from the (large, shared) "library app" to the actual (small) apps, but haven't determined if that scheme works for installing the library app on the sdcard.