Bug 6144 - Android APK support
Status: RESOLVED MOVED
Alias: None
Product: PhysicsFS
Classification: Unclassified
Component: everything
Version: all
Hardware: Other other
: P3 enhancement
Assignee: Ryan C. Gordon
QA Contact: Ryan C. Gordon
URL:
Depends on:
Blocks:
 
Reported: 2014-04-27 18:48 EDT by rettichschnidi
Modified: 2022-05-20 13:07:37 EDT
1 user (show)

See Also:


Attachments
Simple Android.mk file. Enables ZIP and APK support. (585 bytes, text/x-makefile)
2014-04-27 18:48 EDT, rettichschnidi
Patch with the implementation and the required changes for src/physfs.c and the CMake build script (4.83 KB, patch)
2014-04-27 18:50 EDT, rettichschnidi

Description rettichschnidi 2014-04-27 18:48:46 EDT
Created attachment 3439 [details]
Simple Android.mk file. Enables ZIP and APK support.

Based on the archiver_zip.c file I created a super simple hack which allows to use physfs to mount an Android APK file.

It basicly just prexfixes each filename with "/assets/" and then forwards the real work to the ZIP implementation in archiver_zip.c. 

There is also a simple Android.mk file which is configured to enable ZIP and APK support.
Comment 1 rettichschnidi 2014-04-27 18:50:33 EDT
Created attachment 3440 [details]
Patch with the implementation and the required changes for src/physfs.c and the CMake build script
Comment 2 Ryan C. Gordon 2022-05-20 13:06:52 EDT
This bug report has migrated to our GitHub issue tracker:

https://github.com/icculus/physfs/issues/40
Comment 3 Ryan C. Gordon 2022-05-20 13:07:37 EDT
(marking RESOLVED MOVED)