• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Is there a way to have a single library be shared between two apps without copying to both APKs?

For example, if I have an AAR that I am using in two applications that are being used on the same device, is it possible to somehow only have one copy of the AAR on the device that both applications are using?
 
I don't think this is a Thing Which Can Be Done considering the sandboxing in place on Android. No application is able to see inside of another application.
 
Well, this is not tested, but why not simply make a symlink? Like, have a directory both apps can access and make a symlink to a library placed inside it of it from the places where it would normally be, y'now. This might require messing with file permissions and selinux, probably, but it should be doable.
 
Back
Top Bottom