Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: JapaneseDrunkard on October 26, 2014, 03:33:49 AM

Title: how to include the original theme into rockbox.apk
Post by: JapaneseDrunkard on October 26, 2014, 03:33:49 AM
I got the source codes from git repository,
and successfully built the latest rockbox for android.

The problem is that the original font is too small and I cannot read the menu entries.
Could anyone let me know how to include the original theme and font into rockbox.apk ?
Title: Re: how to include the original theme into rockbox.apk
Post by: [Saint] on October 26, 2014, 02:32:21 PM
Repack the archive to include <whatever_you_want> after the "make zip" step, and before the "make apk" step, finish the build with "make apk", done.

This will only change the font, though. The default theme itself only exists for a specific set of resolutions, and in that case, an adequate font is always included in the build. You must be building for an unsupported resolution.

This is a somewhat odd way to achieve this, though. One can achieve an entirely similar effect by simply modifying the config file to point to a font that isn't tiny, extracted to emulated or external storage as intended.


[Saint]
Title: Re: how to include the original theme into rockbox.apk
Post by: JapaneseDrunkard on October 27, 2014, 05:24:08 AM
It worked!

Now I can read the menu, though the icons are still small :-)
I can replace a whole theme in the same way.

Thanks!
Title: Re: how to include the original theme into rockbox.apk
Post by: [Saint] on October 27, 2014, 06:38:40 AM
If you wanted a much easier way to do this that means you don't need to bugger around like this every time you update your build, read on:

Just place the theme assets in their expected location on the device sdcard (the exact path for this varies wildly by device, but usually boils down to /storage/sdcard0/rockbox), extract a copy of the theme's .cfg, rename this to "fixed.cfg", and place it in the aforementioned assets directory on the sdcard.

This config will be parsed at boot time and will override the corresponding settings in the main config.cfg, the upshot of this being you don't need to repack your own builds and your theme settings will even survive clearing the config entirely.

Sing out if I have been unclear or if you have any further questions.


[Saint]
Title: Re: how to include the original theme into rockbox.apk
Post by: JapaneseDrunkard on October 30, 2014, 03:19:56 AM
Thank you for the great tip.
It is much easier as you said! :-)
Title: Re: how to include the original theme into rockbox.apk
Post by: JapaneseDrunkard on October 30, 2014, 06:48:32 AM
I found that the file "WPSLIST" in the build tree specified the themes to be included into "rockbox.apk".
But it is a tough task to edit it.