
Hi all,
I’ve been getting this request for quite a while, and decided to finally get off my lazy ass and do it. Basically, Spare Parts can now read the list of colours
. The update.zip that you download and flash replaces SpareParts.apk, framework.jar, framework-res.apk, android.policy.jar and services.jar.
Note: This has been tested on CM5.0.7.1 for N1, and should work on CM5.0.7/CM5.0.8-test1 for D/S.
Changelog:
040610 #2:
Added function to export to XML
Updated sample XML
040610:
Added function to import from XML
Previous (Difference from CM5.0.7):
Added bcrook’s patches to show/hide PLMN/SPN on lockscreen/status dragdown
Made notification count colour configurable
Download:
Sample XML (295)
Nexus One (update.zip) (418)
Dream/Sapphire (update.zip) (344)
How to Use?
0. NANDROID BACKUP FIRST ^^
1. Flash the update.zip via recovery
2. Download the sample XML
3. Read the instructions (comments in the XML)
4. Edit the XML as you like, simply replace the colours with your choice. See http://wiki.cyanogenmod.com/index.php/User:Wysie for what each change will affect.
5. Place the XML (do NOT rename it) on the sdcard, go to Spare Parts, and select the “Import colors from XML” option.
6. Reboot the phone
Exporting to XML
1. Go into Spare Parts, edit the colours as you like
2. Once it is to your liking, export the XML by going to Spare Parts, and select “Export colors to XML”.
3. Copy the XML from the sdcard to wherever you want, for distribution or whatever.
So What?
For themers, whether you’re using MetaMorph or the update.zip method, you can now simply create an additional XML file, and tell the user to import it using spare parts for the colours, instead of making the user go through the trouble of setting each colour manually
.
What’s Next?
- Learn about intents, so other apps (eg. MetaMorph), can call SpareParts to apply the colour changes
- Apply/read from the XML on phone boot-up
Source:
http://github.com/Wysie
If you like what I do, buy me a beer!
(Click me already damn it!)
Tags: framework, spareparts, themes, theming



