[Wildfire Themes and Apps] VigiDroid:
Ok so a lot of you guys have been requesting a resizing tutorial so you can all help out on the new fresh roms like thenextsense and senseonfire.

Everyone gets directed to http://xdaforums.com/showthread.php?p=6739512#post6739512 and get all confused because it doesn't actually explain much so I decided to post one written by me (I resize things in my rom, senseonfire)

Note: I am using linux Operating System and resizing to my HTC wildfire.

First off you are going to want to download apktool and the dependences for your operating system. It runs on windows, linux and mac OSX so it won't matter what OS you are running, you will be able to use it.

Once you have got apktool installed you are going to open terminal (or command prompt on your windows)

You are then going to navigate to the directory you installed apktool into:

cd /install...dir../apktool

Once that is done you are going to look at the rom that contains the app you are about to resize. You are going to open the rom archive and navigate to the framework

/system/framework/

and extract any files ending in .apk to the apktool dir

You are going to go back to the open terminal and type in

./apktool install-framework extracted_framework_filename.apk

or if you are on a windows computer

apktool install-framework extracted_framework_filename.apk

This will install the framework file/s so apktool can decompile stock apps correctly.

Once it installs correctly you are then going to choose the app you are going to resize. For the sake of this tutorial I am going to resize HtcMusic.apk

Navigate to the app folder in the rom archive

/system/app

and extract HtcMusic.apk to apktool dir

Then you are going to decompile the app to start resizing

In the still open terminal you are going to type

./apktool d HtcMusic.apk

This will decompile the htcmusic to a folder in the apktool dir called HtcMusic

To make resizing easier you should grab your phone and open HtcMusic and see what needs resizing. Now this is where the trial and error comes in.

Navigate to the layout folder in HtcMusic

/res/layout

or

/res/layout-mdpi

and choose the .xml file you believe you are looking at on your phone screen. For example on the HtcMusic app if you are resizing the playback screen it would be audio_player.xml that you would have to edit.

Play with things that have sizes (y.y px) especially things that say layout_width=y.y px... change the y value to something smaller.

If there is something that has a value @dimen/... it means that the value is in the dimens.xml in the /res/values folder

If there is something that has a value @com.htc:dimen/... it means that the value is in the dimens.xml in the com.htc.resources.apk

Once you finish the changes you are going to have to recompile the app

Go back to the terminal app that you still should have open (if you don't you will have to open it and cd to the apktool dir)

type in this code (make sure you delete the HtcMusic.apk out of the apktool directory prior to doing this)

./apktool b HtcMusic HtcMusic.apk

if you get an error and you are on linux try this

sudo ./apktool b HtcMusic HtcMusic.apk
sudo chown [your username] HtcMusic.apk

Once you finish this you will have to sign your apk. The easiest way to do this is to use dsixda's kitchen's signing tool.

Once this is done you can either push the app to your phone using adb (this never works for me)

./adb push HtcMusic.apk /system/app

if that doesn't work

./adb remount rw
./adb push HtcMusic.apk /system/app

But if that causes HtcMusic to disappear like it did to mine you will have to use dsixda's kitchen to open the rom, add htcmusic, sign all apps, and cook the rom again, then flash it on your phone.(I will not type out how to do this, there are lots of threads on how to use the kitchen)

Actually you can do it a lot easier than flashing the whole ROM again. I will post how to do this soon [28/6/12]

Open the app and look what has changed (if any) and then try again till you get it right. Trust me it takes a long while to get it right so don't expect for it to be right on your first go :)

Oh and if this helped you hit thanks! :D