FS#12134 - Android: install codecs as native libs instead of extracting them from

Attached to Project: Rockbox
Opened by Dominik Riebeling (bluebrother) - Sunday, 29 May 2011, 11:42 GMT
Last edited by Dominik Riebeling (bluebrother) - Tuesday, 31 May 2011, 21:26 GMT
Task Type Patches
Category Codecs
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.8.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Codec files are loaded as dynamic libraries on Android. Instead of extracting them from the packaged and therefore having them present twice on the device this patch puts them into the apk as native libraries. This decreases the size of the installed Rockbox by the compressed size of the codecs. Also, the extraction on first Rockbox startup gets notably faster since it's less data to extract.

This brings the size of installed Rockbox down from 13.0MB to 8.57MB on my device (Application / Data: 9.6 / 3.4 to 8.1 / 0.5)

(I'm using  FS#12063  so the data value will differ for stock svn but this doesn't affect the difference. Device is 480x800)
This task depends upon

Closed by  Dominik Riebeling (bluebrother)
Tuesday, 31 May 2011, 21:26 GMT
Reason for closing:  Accepted