mio icon indicating copy to clipboard operation
mio copied to clipboard

Add support for Android AAssets mapping

Open jherico opened this issue 7 years ago • 3 comments

jherico avatar Oct 18 '18 15:10 jherico

I don't have experience with Android programming, so I'm a bit lost as to what this is (and unfortunately a quick search didn't yield me anything concrete). Could you please provide me with some additional info?

vimpunk avatar Oct 18 '18 17:10 vimpunk

In addition to the normal filesystem on Android, there is an asset filesystem whereby applications can access read-only resources that are embedded in the APK.

There is an overview of the API here. Assets can be opened as a file descriptor, or they can be opened simply as a buffer, where you get back a const void* to the contents of the asset.

jherico avatar Oct 23 '18 19:10 jherico

Thanks for the update. If assets can be opened as a file descriptor, could mio not be used as is, passing the descriptor to the constructor/mapping function?

vimpunk avatar Oct 24 '18 12:10 vimpunk