Stop: Recovery theme is not valid!

While compiling OmniRom 6.0.1 for the Samsung Galaxy S4, T-Mobile variant (JFLTETMO, SGH-M919), I ran into this problem, which halted the compiling process:

[CODE]
bootable/recovery/gui/Android.mk:127: ****************************************************************************
bootable/recovery/gui/Android.mk:128: * TW_THEME is not valid: ”
bootable/recovery/gui/Android.mk:129: * Please choose an appropriate TW_THEME or create a new one for your device.
bootable/recovery/gui/Android.mk:130: * Available themes:
bootable/recovery/gui/Android.mk:131: * landscape_hdpi landscape_mdpi portrait_hdpi portrait_mdpi watch_mdpi
bootable/recovery/gui/Android.mk:132: ****************************************************************************
bootable/recovery/gui/Android.mk:133: *** stopping. Stop.
[/CODE]

The problem appears to be that the bootable/recovery/gui/Android.mk file is expecting someone to tell it the default theme to set the recovery to. Fortunately it was kind enough to tell us the available options and the name of the variable it was expecting: TW_THEME. So, I added these two lines to the JFLTETMO BoardConfig.mk file:

[CODE]
# WJH TWRP theme options = landscape_hdpi landscape_mdpi portrait_hdpi portrait_mdpi watch_mdpi
TW_THEME := portrait_hdpi
[/CODE]

The best part was that this actually solved the problem! I really like it when the problem actually gets fixed, rather than just putting in a workaround, or removing a feature.

Linux – Keep it simple.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s