How to port themes to HTC Legend (example Minimal Matte)

Westi01

Senior Member
Apr 1, 2010
426
98
0



Hey Guys,
I was asked if i could do a Tutorial how to port themes to HTC Legend. And here it is ;)

Perform a Nandroid Backup first... as usual.
Be careful i am not responsible for any damage at your device.

Method 1 = not changing your system and will integrate it to running system (ADB Method)
Method 2 = new clear install of Rom required (Flashable ZIP)

At first you need a few things:


Let's start.
METHOD 1:
STEP 1:
First you have to use the Theme-Porter so you unzip the folder to C:\Theme-Porter or something similar. In this folder there are two important folders called new and old. So you unzip your Roms and put all files in system/app/ from your current Rom in the folder Theme-Porter/new/app/ and all files from system/framework/ in Theme-Porter/new/framework/. Unpack also the themed Rom and replace files from system/framework/ and system/app/ to old/framework and old/app.

STEP 2:
Run script.bat in root folder of Theme-Porter (C:\Theme-Porter) and select the option you want.
In our case if we want to port Minimal Matte, choose Option 1 because we are porting a froyo rom to a froyo rom.
If you are porting a theme from a hdpi device ( for example Nexus One and Desire ) you have to toggle Hdpi to Mdpi with option 4 ( Legend devices. (has something to do with the resolution)).
If it's ready the files in the Theme-Porter/new folder are themed.

STEP 3:
Unzip the SDK to C:\SDK (make sure in the name of the SDK is no space in it. NOT like this C:\Android SDK ) .
Now Copy the files from Theme-Porter/new to C:\SDK\tools. Like this Theme-Porter/new/framework/framework-res.apk -> C:\SDK\tools\framework-res.apk.

Connect the HTC Legend to the Computer via USB. Go to Clockwork recovery mode via Rom Manager.
Click on restart in Recovery Mode in Rom Manager. Once rebooted go to partition menu and click on mount /system.
Turn now to your PC and follow the steps ;)

STEP 4:
Now go to your comand line (Windows Vista and Windows 7 Start->Type "cmd").

Code:
cd C:\SDK\tools
(or wherever you have placed the SDK, remember NO spaces in folder name, and make backslash = \ and NOT / ). Back in the black window:
Code:
adb shell
exit
Make a folder in C:/framework , C:/app , C:/fonts and so on. Copy the new files in there. It pretends what you want to change.
Code:
adb push C:/framework /system/framework
adb push C:/app /system/app
adb push C:/fonts /system/fonts
Push all files to phone which were themed
If you are ready you can type :
Code:
adb reboot
exit

STEP 5:


The Phone will reboot and your system will be themed.
METHOD 2:

STEP 1:
It is easier to flash a zip file but sometimes they are not available. ( In our case I contacted shiftedx from Minimal Matte to give him my ported files...)
If you like to create a flashable/themed Rom, you have to download this tool and unpack it to C:\Update-Zip-Packager\ .

STEP 2:
After that copy the unzipped files from the Rom you want to use (Cyanogenmod 6.1 Stable for example) to folder C:\Update-Zip-Packager\placehere. (should look like this: C:\Update-Zip-Packager\placehere\META-INF ... )

STEP 3:
Then copy the files from C:\Theme-Porter\new to C:\Update-Zip-Packager\placehere\system\ . (btw files like fonts or something doesn't have to be ported so copy them from old to new folder.

STEP 4:
Now run script.bat in C:\Update-Zip-Packager\script.bat. select "make Update.zip" with option 2. Ready? Ok then drag update.zip to sdcard of your phone and apply it with rom manager.
Extras:
I prepared a Cyanogenmod 6.1 Stable Rom with Minimal Matte (included fonts...) and working wifi tether, replaced FileManager with Astro and replaced ADWlauncher with LauncherPro:
Here is the link if somebody wants to use it.

CM6.1 RC 1 with Minimal Matte :) (Outdated)

DOWNLOAD

The new Stable version of CM6.1 with Minimal Matte :)

DOWNLOAD

Minimal Matte LD pre release version for CM7 (any version) No wipe needed!

DOWNLOAD


Minimal Matte HD Thread


Note to Screenshots: Theme will not change widgets,Lockscreen, Launcher, Wallpaper. If you want the Lockscreen look at this beautiful Thread. It will change Statusbar, Notification windows, keyboard and fonts.


Works not so well with official Vodafone 2.2 version.
 
Last edited:

c_man

Senior Member
May 3, 2010
334
6
0
London, UK
Great post, thanks for your efforts !

I'll give this a go when my Legend has its screen fixed :( and report back with questions or success :p

Eitherway, thank you! :D

By the way, this thread should be stickied!
 

Westi01

Senior Member
Apr 1, 2010
426
98
0
Great post, thanks for your efforts !

I'll give this a go when my Legend has its screen fixed :( and report back with questions or success :p

Eitherway, thank you! :D

By the way, this thread should be stickied!
All right! I have reorganized the text a bit so you can follow easily.
 

c_man

Senior Member
May 3, 2010
334
6
0
London, UK
All right! I have reorganized the text a bit so you can follow easily.
:D Thank you.

Also thank you for this below, its ideal for most of us!

STEP 5:
I prepared a Cyanogenmod 6.1 RC1 Rom with Minimal Matte (included fonts...) and working wifi tether, replaced FileManager with Astro and replaced ADWlauncher with LauncherPro:
Here is the link if somebody wants to use it.

http://www.multiupload.com/UN01TMO9I1

FIXED.
I look forward to using it soon :cool:
 

parker09

Senior Member
Apr 27, 2010
949
173
0
eparker.me
tried porting the Elegant steel rom (http://forum.xda-developers.com/showthread.php?t=769376&highlight=elegant+steel) to the rooted froyo vodafone rom but it didnt work. =(
Maybe because of the HDPI<-->MDPI

I couldn't even get it to port

Code:
framework-res
Downsizing drawable Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-en-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-land-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
 

Westi01

Senior Member
Apr 1, 2010
426
98
0
Maybe because of the HDPI<-->MDPI

I couldn't even get it to port

Code:
framework-res
Downsizing drawable Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-en-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-land-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
There are Issues with Sense and Themes that are made for example for Cyanogenmod. And try to redownload both Roms and try again it seem to be a wrong MD5Sum or something. The files seem to be corrupt. I have tried to Port the MIUI style but it doesn't work because they modified whole Apks and not only replacing PNGs like the Theme-Porter does.
 

parker09

Senior Member
Apr 27, 2010
949
173
0
eparker.me
There are Issues with Sense and Themes that are made for example for Cyanogenmod. And try to redownload both Roms and try again it seem to be a wrong MD5Sum or something. The files seem to be corrupt.
Oh I see.

I have tried to Port the MIUI style but it doesn't work because they modified whole Apks and not only replacing PNGs like the Theme-Porter does.
I tried the one I posted and for the lockscreen it worked perfectly but once the phone gets unlocked thats when the notification bar goes black (I think its from all the other images from the dropdown menu being on top of each other).
 

Westi01

Senior Member
Apr 1, 2010
426
98
0
Oh I see.



I tried the one I posted and for the lockscreen it worked perfectly but once the phone gets unlocked thats when the notification bar goes black (I think its from all the other images from the dropdown menu being on top of each other).
Ah ok. I tried to port the original Theme. Could be that your Link works better.
 

greenolive

Senior Member
Aug 19, 2010
145
59
0
Westi01!

Is it possible to use your ported Minimal theme without flashing the whole ROM?
I would like to keep my system as it is if possible!
Thank you,
 

Westi01

Senior Member
Apr 1, 2010
426
98
0
Hey Westi01,

the picture with the surfer girl is pretty awesome. Could you please upload the picture as jpg?!
It's a picture out of UltraLinx Gallery. It a very good Site by the way !

Westi01!

Is it possible to use your ported Minimal theme without flashing the whole ROM?
I would like to keep my system as it is if possible!
Thank you,
Look at Method 1 for applying themes without Flashing. You have to use ADB.
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone