Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's a quick tut I put together fom making CM/Tmobile Themes...
- Start by getting the source, you may want to go to the CM wiki to get setup. May want to build CM/AOSP before trying this since it's more documented.
- Open your terminal...
- $ mkdir themes
- $ cd themes
- $ repo init -u git://github.com/tmobile/themes-platform-manifest.git -b master
- $ repo sync
- $ source build/envsetup.sh
- $ lunch themes_generic-eng hdpi
- We can make now to make sure it compiles before moving on
- $ make
- After you see it works lets start our theme
- $ cd tree_root
- $ cd vendor/tmobile/themes
- $ git clone git://github.com/haxzamatic/Templatebread-.git
- The themes are all going to be located in...
- /home/<USER-DIR>/android-themes/vendor/tmobile/themes/
- In that directory we see the source for Templatebread, open it.
- Now this is the source we edit.
- package="com.gfxandroid.theme.Templatebread" to com.yourname.theme.themename
- Then edit...
- <theme
- pluto:themeId="Cyanbread" to pluto:themeId="Themename"
- pluto:styleId="@style/Cyanbread" to pluto:styleId="@style/Themename"
- Save the AndroidManifest.xml
- Now open /res/values folder
- Open the Strings.xml and edit the following...
- <resources>
- <string name="app_name">Templatebread Theme</string> to <string name="app_name">YouPickIt</string>
- <string name="theme_name">Templatebread</string> to <string name="theme_name">YouPickIt</string>
- <string name="style_appearance_name">Templatebread</string> to <string name="style_appearance_name">YouPickIt</string>
- <string name="author">Haxzamatic</string> to <string name="author">YouPickIt</string>
- <string name="copyright">Haxzamatic</string> to <string name="copyright">YouPickIt</string>
- </resources>
- Save the strings.xml
- Open themes.xml and edit
- <resources>
- <style name="Purpbread" parent="@android:style/Theme" > to <style name="YouPickIt" parent="@android:style/Theme" >
- Save themes.xml
- Now open the /src/com/gfxandroid and rename gfxandroid to yourthemename
- So it should be /src/com/yourthemename/theme/foo.java (So you know this is what the apk will com name will be... ex: com.gfxandroid.theme.purpbread)
- Before "make" we need to edit one more thing, navigate to
- /home/<USER-DIR>/android-themes/vendor/tmobile/products/themes
- Now open themes-base.mk and add your theme name in this case we added Purpbread
- PRODUCT_PACKAGES += \
- ThemeManager \
- ThemeChooser \
- com.tmobile.themes \
- Templatebread \
- Cyanbread
- Now your ready to make :)
- After steps above are done once you can cd to themes dir and just make for testing new addtions or changes...
- $ cd themes
- $ source build/envsetup.sh
- $ lunch themes_generic-eng
- $ make
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement