Android OS Forum banner
1 - 3 of 3 Posts

·
The Jittery Gentleman
Joined
·
1,760 Posts
Hey all.

Just wanted to post this up for the masses. This is a theme chooser template that can be integrated into any rom that is being compiled from source. It is based off of AOSP and will successfully compile but may require additional editing of redirections, xmls and adding/subtracting images to fully work with some roms.

Source:
https://github.com/mrh3llman/android_vendor_tmobile
https://github.com/m...hemes_common.mk

Instructions:

1. Clone the "android_vendor_tmobile" repository into the vendor directory of your source.
Code:
<br />
git clone [email protected]:mrh3llman/android_vendor_tmobile.git<br />
2. Switch over to the config folder in whatever teams vendor you are using at the moment.
Code:
<br />
cd ~/source/vendor/****/config<br />
3. Create a new text file called "themes_common.mk" and copy+paste the following (you will need to edit for your local directories):
Code:
<br />
# T-Mobile theme engine<br />
PRODUCT_PACKAGES += \<br />
	   ThemeManager \<br />
	   ThemeChooser \<br />
	   com.tmobile.themes \<br />
	   NexusPlus<br />
PRODUCT_COPY_FILES += \<br />
	   vendor/****/config/permissions/com.tmobile.software.themes.xml:system/etc/permissions/com.tmobile.software.themes.xml<br />
4. Change to root of source tree:
Code:
<br />
cd ~/android<br />
5. Set up build environment:
Code:
<br />
. build/envsetup.sh<br />
6. Lunch time:
Code:
<br />
lunch<br />
7. Choose device

8. Build NexusPlus:
Code:
<br />
make NexusPlus -jx<br />
9. .......

10. Profit

This is not a perfect system and will require your editing to be perfect for whatever teams work you are building for but is a great building block. Please also note that you can edit the manifest and values xmls to reflect whatever your own themes name is. Enjoy and please let me know if you have any questions!

Huge thanks to JayRThemer for providing the awesome skeleton directory that I integrated into the T-Mobile vendor directory!
 

·
The Jittery Gentleman
Joined
·
1,760 Posts
Discussion Starter · #4 ·
So this is only for ROM's? not to build to make it compatiable to be used on different resolutions and not get the aset eros when switchign to theme?
It can be either actually. With this setup you can integrate it to be built into the rom OR you can build it individually via the 'make NexusPlus' command.
 

·
The Jittery Gentleman
Joined
·
1,760 Posts
Discussion Starter · #6 ·
Call me dense. So this makes the theme.apk file to be flashed...
Yes sir! I couldn't find any "templates" that would play well with AOSP based Roms as opposed to CM/AOKP so I wanted to post this up for that purpose. All the necessary make files are present as well as a proper manifest that only needs to be edited to reflect your individual package name and style.
 
1 - 3 of 3 Posts
Top