[MOD|HowTo] Change Dial Pad Colors - myTouch 4G Themes and Apps

How to modify of your dial pad key and background colors.
Instructions:
1: Plug your phone into your computer
2: Open a termial
3: Run ADB command: adb pull /system/framework/com.htc.resources.apk
4: Open com.htc.resources.apk
5: Navigate to /res/drawable-hdpi/
6: Locate phone_keypad_background.png and htc_pin_asset_rest.png
7: Replace with your preferred color choices
8: Go back to your terminal
9: Run ADB command: adb push com.htc.resources.apk /system/framework/com.htc.resources.apk
Your dial pad will now have your choice of the primary and secondary colors.
This is simply instructions on how to accomplish this task. It is not in anyway a request form. Please do not bother asking if you too lazy to try it for yourself. If you feel you lack the skill, well you'll never learn if you don't try.
The fine print: if it messes up your phone in anyway don't blame me... thats why phones don't come rooted

when u say open com.htc.resources.apk, where am i opening it up from at that point? and am i opening terminal from my phone or pc?

ok, i got to the point where i go in to change the color but dont have an option to change, can we get more detailed instructions? it just shows the color it already is but no option to actually change the color

You'll actually make a png of the same size with just a different color. Then replace the current color.png with the new color.png (they have to be named the same thing or it won't work) and then just follow the remaining steps.
By the way, thanks for this pack! Another awesome mod!

thanks bro.... and thanks for answering that question. I left it out originally because I figured once someone saw the files it would be self explanatory, but I guess not.

My thread and included this in the list. Great job once again bro.

???
I'm using cm7 nightlies, I can't find the com.HTC.resourses.APk anywhere! Any ideas?

can you please add this will only work for sense roms as the htc framework is only available in those roms?
hopefully this will save the confusion...
Thanks..

VibrantOwnr said:
can you please add this will only work for sense roms as the htc framework is only available in those roms?
hopefully this will save the confusion...
Thanks..
Click to expand...
Click to collapse
can i copy it from that framework and add it to the one im using?
!!EDIT!! nm. i found an app dialer that does it better!!

echoside1313 said:
I'm using cm7 nightlies, I can't find the com.HTC.resourses.APk anywhere! Any ideas?
Click to expand...
Click to collapse
I believe com.htc.resources.apk is found on sense roms only. Since you're using CM7, you will not have that (.apk) and these directions probably will not apply to your phone.
*Next time i'll read on before posting - *

have a feeling this won't work any more with sense 3.5?? since when trying to adb push.. saying read only file failed..

Related

How to port a ROM?

I put this in the Q&A but it is really a dev question so....
No bashing please, Im just asking for help
-download dsixda's Kitchen
http://forum.xda-developers.com/showthread.php?t=633246
-install/setup the kitchen
-cd to kitchen directory and type ./menu
-type 1 'setup working folder from ROM' and enter, choose the rom you want to port
-when you get back to the menu type 0 for advanced options and choose '19-porting tools', type a for 'port from another device, then move a rom made for the eris and the rom you want to port to the /kitchen/original_update/ directory, and follow the kitchen's prompts.
-once you completed the previous step, open up build.prop located at /kitchen/WORKING_XXXXXX_XXXXXX/system/build.prop and change the name of the device to desirec or eris (Ex. ro.product.device=desirec), and the carrier to Verizon (unless its a rom from a gsm phone, then you have more things to do). After that do the same thing for the update-script at /Kitchen/WORKING_XXXXXX_XXXXXX/META-INF/com/google/android/update-script.
-after that is done go back to the kitchen, hit 0 for advanced settings, type 20 for unpack or repack a boot.img, type w to extract ramdisk, then go to /kitchen/BOOT-EXTRACTED/boot.img-ramdisk/ and change init.heroc.rc (or whatever the devices name is) to init.desirec.rc
-finally get desirec-keypad.kcm.bin, desirec-keypad.kl, and sensors.desirec.so from an eris rom at /system/usr/keychars, /system/usr/keylayout/ and /system/lib/hw respectively, and copy them to the same location in your working folder.
-now go back to the kitchen, type 99, it will build an update.zip that you can flash of your ported rom
homewmt said:
-download dsixda's Kitchen
http://forum.xda-developers.com/showthread.php?t=633246
-install/setup the kitchen
-cd to kitchen directory and type ./menu
-type 1 'setup working folder from ROM' and enter, choose the rom you want to port
-when you get back to the menu type 0 for advanced options and choose '19-porting tools', type a for 'port from another device, then move a rom made for the eris and the rom you want to port to the /kitchen/original_update/ directory, and follow the kitchen's prompts.
-once you completed the previous step, open up build.prop located at /kitchen/WORKING_XXXXXX_XXXXXX/system/build.prop and change the name of the device to desirec or eris (Ex. ro.product.device=desirec), and the carrier to Verizon (unless its a rom from a gsm phone, then you have more things to do). After that do the same thing for the update-script at /Kitchen/WORKING_XXXXXX_XXXXXX/META-INF/com/google/android/update-script.
-after that is done go back to the kitchen, hit 0 for advanced settings, type 20 for unpack or repack a boot.img, type w to extract ramdisk, then go to /kitchen/BOOT-EXTRACTED/boot.img-ramdisk/ and change init.heroc.rc (or whatever the devices name is) to init.desirec.rc
-finally get desirec-keypad.kcm.bin, desirec-keypad.kl, and sensors.desirec.so from an eris rom at /system/usr/keychars, /system/usr/keylayout/ and /system/lib/hw respectively, and copy them to the same location in your working folder.
-now go back to the kitchen, type 99, it will build an update.zip that you can flash of your ported rom
Click to expand...
Click to collapse
Wow thank you! I have messed with the kitchen before but it all seemed kinda confusing when it came to porting
Completely off-topic but, wow, another Nikolai in this forum
NikolaiT said:
Completely off-topic but, wow, another Nikolai in this forum
Click to expand...
Click to collapse
ten char
Look at Froyolicious and SgShultz. I laid out the steps that I took to get them to where they are. The links are in my sig.
And this one -
http://forum.xda-developers.com/showthread.php?t=723319
gnarlyc said:
Look at Froyolicious and SgShultz. I laid out the steps that I took to get them to where they are. The links are in my sig.
And this one -
http://forum.xda-developers.com/showthread.php?t=723319
Click to expand...
Click to collapse
What happens if i port a rom and the wifi doesnt work?
Nikolai2.1 said:
What happens if i port a rom and the wifi doesnt work?
Click to expand...
Click to collapse
The most common issue is that you have the wrong wlan.ko. You need to have the wlan.ko that is compiled against the kernel that you are using. You can also look in build.prop and make sure you are assigning the correct interface. There are also some wpa_* and dhcp* setting in the init.desirec.rc (in the ramdisk part of the boot.img) that might mess you up. I have had one instance where I could never get it working. Apparently, more than one of us is having the same issue right now. Hopefully, someone will figure that out.
I always use WinMerge to compare build.prop, init.devicenamehere.rc, and init.rc to stock Eris versions to try and catch settings that I would miss otherwise. And then rename init.devicenamehere.rc to init.desirec.rc.
gnarlyc said:
The most common issue is that you have the wrong wlan.ko. You need to have the wlan.ko that is compiled against the kernel that you are using. You can also look in build.prop and make sure you are assigning the correct interface. There are also some wpa_* and dhcp* setting in the init.desirec.rc (in the ramdisk part of the boot.img) that might mess you up. I have had one instance where I could never get it working. Apparently, more than one of us is having the same issue right now. Hopefully, someone will figure that out.
I always use WinMerge to compare build.prop, init.devicenamehere.rc, and init.rc to stock Eris versions to try and catch settings that I would miss otherwise. And then rename init.devicenamehere.rc to init.desirec.rc.
Click to expand...
Click to collapse
Wow thanks alot! I will use all this if I ever decide to port something. Lol I was gonna try porting that 2.2 Sense Rom, but it looks like 2 people with experience beat me to it
Nikolai2.1 said:
Wow thanks alot! I will use all this if I ever decide to port something. Lol I was gonna try porting that 2.2 Sense Rom, but it looks like 2 people with experience beat me to it
Click to expand...
Click to collapse
You should still try, even if you don't release it to the public. I have several ROMs that no one has ever seen but me. It's a good way to learn, and I find that it is easier to please me than me + other people. That's not necessarily a good thing, because I wind up not fixing things that I should.
I would like to add something that I have recently learned about the wifi issues. Apparently, in the past, some devs have had success with hex editing any references to the wifi driver that are in libhardware_legacy.so to make them point to wlan.ko instead of whatever driver the ROM has. So far, this hasn't worked with the 2.2 Sense as far as I know, but it's something else to add to the list.
Well I tried porting an Aria Rom, but when i flashed it, it failed..
I dont mean to resurrect a dead thread that i created, but i cant port anything to save my life. GSM or CDMA (in fact, how do you port a GSM rom?)
Help?

[MOD] Screen Animations ANY ROM

This is a meta morph do not flash in cwm if you do not know what a meta morph is read up on it at my link how to apply a meta morph​
OK guys i put together a bunch of meatamorph files for you guys to be-able to install with different animations i hope you like it if anything wont install or work please let me know and i will fix it right away.
Look here for videos on what a few of these look like Videos here
Install instructions:
How-To Apply a Metamorph
http://forum.xda-developers.com/showthread.php?p=11695218#post11695218
2. Manually Add Animations: should work for most roms
This process will be helpful for those wanting to mix and match animations from the folders. In fact, why don't you create your own mix and post it here so everyone else can appreciate your awesomeness. I'll add new mixes below if they come in.
-Simply get a hold of the anim folder with the animations you want to use and the framework-res.apk from the rom you're interested in modifying (/system/framework/framework-res.apk).
- Open up the framework-res.apk in 7zip (right click on it, and select "open archive").
- Drag the anim folder with the animations (which you can download below) into /res folder in your framework-res.apk. This will replace the files currently in /res/anim.
- Exit out of 7zip.
- You now need to push the modified framework-res.apk onto the phone. You can do this by placing the modified framework-res.apk in the root sdcard folder, and entering the following into terminal emulator on your phone or using ADB when the sdcard is mounted:
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/framework-res.apk /system/framework
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
reboot
If you're using terminal emulator, your phone will probably reboot before you finish re-mounting and/or typing reboot.
If you want to install the framework-res.apk that you just made in CWM recovery you can put it in this .zip make sure to put your framework-res.apk in the framework folder for this to work Your anim .zip
3.ninjamorph insatll find it in the market.
- create a new project of your framwork-res.apk.
- on your sdcard put the anim you want in this folder but first extract the folder out of the .zip first. (sdcard\androidthemes\workspace\framework-resapk\res\anim)
- make a copy incase you dont like the altered animations!!!
-replace the folder attached with the one in this zip
-go back to ninjamorph and finish project your phone should automatically reboot and there ya go animations are changed.
These will work with any rom and any phone enjoy
If you have any prob please post witch animation you used, that did not work so i can look into it.
BlurAnimations.zip
Bounce.zip
Custom my set up.zip
My set up 2.zip
Drop in.zip
Flip1.zip
Flip2.zip
Flyin and flip.zip
Fly in 1.zip
Fly in 2.zip
fold.zip
Shift.zip
Sliding1.zip
Slide2.zip
If you would like more custom one with animations together let me know what you would like
Theses are the .xml files in the anim folderi will tell you witch ones i know and what they do if you know what others do that i did not mention please let me know and i will update this thank you.
This is the anim of the opening of a new page
activity_close_enter.xml
activity_close_exit.xml
Theses are if you go back on your page
activity_open_enter.xml
activity_open_exit.xml
Dialog box is the box that comes up if you were for example adding a widget to the home screen
dialog_enter.xml
dialog_exit.xml
Theses will control how the keyboard comes into the screen
input_method_fancy_enter.xml
input_method_fancy_exit.xml
This is the anim when you unlock your screen
lock_screen_exit.xml
The options panel is the panel if your on any screen and you click on your settings button for example if your on the home screen and you click on your settings button you will see a options panel that askes if you want to add a widget change wall paper etc...
options_panel_enter.xml
options_panel_exit.xml
I think this one speaks for its self
search_bar_enter.xml
search_bar_exit.xml
please post others
I am having problems getting any of them to install it just sits there and says applying.
Mine also just says applying. On Rubik's dl30
Sent from my SCH-I500 using XDA App
Go to: Settings-> Applications-> Development-> check USB debugging. It should work now.
Also check out Anim Mod on the market for easy animation switching
May I ask what these do
Updated try out fly in 2 i really like it im working on bounce next hope you like it if your having trouble installing these im very sorry but i test them before i release them so i hope you can get them to work.
Jacked up AOSP vanilla froyo version .5. I don't really have much experience with MM though. I followed the instructions exactly. Just a warning...
Sent from my SCH-I500 using XDA App
cabjmb said:
Jacked up AOSP vanilla froyo version .5. I don't really have much experience with MM though. I followed the instructions exactly. Just a warning...
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Well with anything you should always make a back up and i have never jacked up my phone from using any of these if you can thos let me know witch you used that you say jacked up your phone.
calebv2 said:
Well with anything you should always make a back up and i have never jacked up my phone from using any of these if you can thos let me know witch you used that you say jacked up your phone.
Click to expand...
Click to collapse
The custom one. I had just installed .5 though so I just did a reinstall and I was fine. Maybe I'll try again later tonight. I really liked the animations in the doctored version of SC you posted originally. Maybe I'll just pull the /anim file and replace the one in my framework-res though. I didn't mean to sound ungrateful. I really appreciate the work you put into these. I just wanted to post a warning in case there is something specific to the AOSP Froyo that would keep this from working.
Edit: Just tried again in MM and it worked fine. I must have messed it up the first time. Thanks again for the awesome animations!
cabjmb said:
The custom one. I had just installed .5 though so I just did a reinstall and I was fine. Maybe I'll try again later tonight. I really liked the animations in the doctored version of SC you posted originally. Maybe I'll just pull the /anim file and replace the one in my framework-res though. I didn't mean to sound ungrateful. I really appreciate the work you put into these. I just wanted to post a warning in case there is something specific to the AOSP Froyo that would keep this from working.
Edit: Just tried again in MM and it worked fine. I must have messed it up the first time. Thanks again for the awesome animations!
Click to expand...
Click to collapse
no prob and thank you
I am using your "Custom" theme, and it is working great, thanks.
I did also try "Flip 1" and even after reboot it seemed to do absolutely nothing but change my background, that might have been MM's fault who knows.
Running the custom on Rubik's dl30 and its awesome. Thanks to whoever told me to enable USB debugging haha. Had these on my DX and was really wanting them back. Thanks man.
Sent from my SCH-I500 using XDA App
Have you guys seen the Gingerbread Screen Off Animation that looks like a TV turning off, with the line and a small flash (not sure exactly how to describe it). And when i say "screen-off" i mean by tapping your power button, not holding it in to power down, but to turn-off the screen and lock the phone.
It might be kinda stupid to some, but i think it's pretty neat and unique...
possible?
lucas.scott said:
Running the custom on Rubik's dl30 and its awesome. Thanks to whoever told me to enable USB debugging haha. Had these on my DX and was really wanting them back. Thanks man.
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
No problem. It's one of those little steps that is rarely mentioned. Enjoy!
Any documentation out there on which xml file controls what (other than guessing from their name)?
obliviator33 said:
Any documentation out there on which xml file controls what (other than guessing from their name)?
Click to expand...
Click to collapse
Ill post later on the ones that I know do what
calebv2 said:
Ill post later on the ones that I know do what
Click to expand...
Click to collapse
Thanks. I have been playing around mixing/matching the animations with some decent results. Is there a program that can convert just the xml files from to and from the binary and text formats?
I am using apk manager to compile/decompile the entire .apk file but that is kind of annoying.
obliviator33 said:
Thanks. I have been playing around mixing/matching the animations with some decent results. Is there a program that can convert just the xml files from to and from the binary and text formats?
I am using apk manager to compile/decompile the entire .apk file but that is kind of annoying.
Click to expand...
Click to collapse
updated 2nd post

[THEME] CherryBlur v2.0 for GingerBlur v4 pROM (4.1.83)

First and foremost, before installing this ZIP through Tenfar's recovery, you MUST have GingerBlur v4 already installed!
GingerBlur files/instructions can be found HERE!
* Please DO NOT ask for assistance with rooting or installing GingerBlur in this thread, follow the link above and ask there!
**THIS HAS ONLY BEEN TESTED BY ME (ON MY OWN HANDSET) USING GINGERBLUR v4 (4.1.83 based)**
This theme is a compilation of graphics both original by me and from MANY other themes including:
Watermark'd
ShadowFrost
URBaN
ProDX Red
Criskelo ROM for I9000
I DO NOT ACCEPT DONATIONS! If you like my work please follow the hyperlinks for the original sources and donate there!
* Special thanks to DesignGears and kennethpenn for providing me assistance in editing some of the system files!
THEME FILES DOWNLOAD
*MultiUpload Link this time, 4shared has been flakey lately
Reserved (10char)
[EDIT] Running this with GingerBlur 4.5 - working great with NO issues..
Nice work man!! This looks great!!
Thanks! I JUST finished updating the OP with install instructions and I also attached a RAR file with the dock/icons to use if you wanted to make LauncherPro look just like it does in the screenshots.
Also, while I like red and/or blue themes, my wife likes purple so I'll probably be working on a GrapeBlur theme next.
If anyone tries pushing these files to a release other than 4.1.57 (such as Adeo or Gingerblur based on 4.1.52) I would be interested to know the results!
Looks great sir, thanks for the work.
Looks great man, thanks for putting this together. One question though, is it posible to make a blue theme as I love blue!
Thanks for great work! One question though, any errors during the deodexing process?
shady_lanem said:
Thanks for great work! One question though, any errors during the deodexing process?
Click to expand...
Click to collapse
I had one error, I think it was on PhotoEditor.apk and PhotoEditor.odex. I've seen or used a built-in photo editor so I just removed those then restarted the deodex process for apps and it completed successfully.
just tried deodexing and yes, getting the same errors from the two apks as well. Ok thanks for the heads up will try again
Successfully applied the theme!
Found 1 bug. The clock in notification bar is black in mine instead of white. Any idea why?
This might be a nobrainer but, if I change the icon files inside the apk and then push it to my phone will it still work? In this way will I be able to make my own 4.1.57 themes?
hey.. i am sorry to ask this how am i suppose to install the grapeblur and the launcherpro.. i have no idea .. i am soo sorry to ask such a dum question.. but this is my first time with an android
okay I may be kinda slow how do I make use of the launcherpro files?
hey how would you install cherryblur in the first place.. i have my phone deodexed and all but having trouble knowing how to install cherryblur...
Beautiful theme and I love battery icon... what clock app are you using?
Sent from my MB860 using XDA Premium App
You added a few icons to the /drawable-hdpi directory. Do you actually use them via the xml files, or are they just remains of whatever framework-res.apk you used?
txtsd said:
This might be a nobrainer but, if I change the icon files inside the apk and then push it to my phone will it still work? In this way will I be able to make my own 4.1.57 themes?
Click to expand...
Click to collapse
yes
just get framework-res.apk, back it up, open it with winrar.
drag and drop the files, of the same name, that you would like to replace into the open winrar window. choose normal and 'add and replace', then close the window to save. replace the one in system/framework with your modified version.
Be sure to set the priviledges correctly after you copy into system/framework.
They should match the original, full read and user write.
Thats how I made this.
Edit: Every time I replace the framework-res.apk I lose my google, twitter, and facebook accounts. Anyone know why, all I'm doing is replacing images.
Nottach said:
yes
just get framework-res.apk, back it up, open it with winrar.
drag and drop the files, of the same name, that you would like to replace into the open winrar window. choose normal and 'add and replace', then close the window to save. replace the one in system/framework with your modified version.
Be sure to set the priviledges correctly after you copy into system/framework.
They should match the original, full read and user write.
Thats how I made this.
Edit: Every time I replace the framework-res.apk I lose my google, twitter, and facebook accounts. Anyone know why, all I'm doing is replacing images.
Click to expand...
Click to collapse
oh nice!
Yea I did the same. Just used 7zip instead of crappy winrar. Didn't check for permissions though, I'll do that tomorrow.
txtsd said:
You added a few icons to the /drawable-hdpi directory. Do you actually use them via the xml files, or are they just remains of whatever framework-res.apk you used?
Click to expand...
Click to collapse
Correct, just remains. Possibly for future use as well
DKRussell said:
Beautiful theme and I love battery icon... what clock app are you using?
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
That is Beautiful Widgets in the Android Market. I forgot the name of the actual skin I'm using with it though, I'll reply to your PM later this morning.
anirudh15891 said:
hey how would you install cherryblur in the first place.. i have my phone deodexed and all but having trouble knowing how to install cherryblur...
Click to expand...
Click to collapse
The instructions are on the first page, but you need to be at least somewhat familiar with adb.
blaque72 said:
okay I may be kinda slow how do I make use of the launcherpro files?
Click to expand...
Click to collapse
When you long press on any of the icons in the dockbar of LauncherPro you should see an option to change the icon. You need to have the icons/dock I attached saved to your sdcard ahead of time so you can choose "custom" for the icon and select the graphic you want to use.
For the dock you go to Menu -> Preferences -> Appearance -> Dock Background
* Pretty sure that's correct, but my phone is in on the charger in my bedroom where my wife is sleeping so I don't want to accidentally wake her up.

[HOWTO] Theming your Sense framefork for newbies

It's not much, but I thought everyone should be able to theme their Legend
Requirements: WinZip(or any other zipping program), Android SDK, testsign, some graphics editor...
So what you need to start with is your framework files:
framework-res.apk, com.htc.resources.apk ... both are located in SYSTEM:framework/
These files are just renamed zip files, so rename them back to .zip and extract them (you can also edit them inside WINRAR or something, but it is more comfortable if you extract them)
In these, images are usually saved in res/drawable-mdpi or such, but you have to think here, allways modify all files from one resource
Now locate the images you want to edit but I only know how to edit .png files (.9.png files are for a different howto, probably not by me as I've never really mastered it)
Pick those you want to edit, and edit them (I'm not gonna tell you how here, I usually use photoshop to do that )
Once you have edited those images, it is recomended to optimize those png's (Firstly to make them smaller, but more importantly, most of the times the png's from Windows graphics editor didn't work for me...)
To optimize png's you can use:
OptiPNG: DOWNLOAD This one is drag'n'drop batch conversion capable...
Pngcrush: DOWNLOAD Command line utility, but it has more settings
...or something else, but I find these two the best
Once you have these optimized, copy and re-write them to folders you took them from to edit...
Now you need to zip these back, for framework files I was told it is usual to zip them as "store", but correct me someone if I'm wrong.
After you have zipped those, they will have to be re-signed. To do this, use testsign from code.google.com
Then run this in cmd line (or create a .bat file as I did, it's much easier):
Code:
java -classpath testsign.jar testsign [COLOR="DarkRed"]file.zip[/COLOR] [COLOR="DarkRed"]file-signed.zip[/COLOR]
Now that you have signed it, it is recomended to zipalign it:
(zipalign.exe is located in /tools in your SDK)
Run this in cmd line:
Code:
zipalign 4 [COLOR="DarkRed"]infile.zip[/COLOR] [COLOR="DarkRed"]outfile.zip[/COLOR]
(4 is alignment in bytes)
Now that you have aligned the .zip, rename it to the original name and then you just need to push it back to your phone:
Code:
adb shell mount /system
adb push [COLOR="DarkRed"]com.htc.resources.apk[/COLOR] /system/framework/[COLOR="DarkRed"]com.htc.resources.apk[/COLOR]
or
adb push [COLOR="DarkRed"]framework-res.apk[/COLOR] /system/framework/[COLOR="DarkRed"]framework-res.apk[/COLOR]
And you're done
I hope this helps someone! Enjoy!
note: This way you should be able to modify any apk I think
Is this the thing that has the potential to break the power menu in BlaY0's ROM, among other things?
Amongst other things...but this works on any ROM as long as you follow the guide I've succesfully ported my BattMod and Cryshop's navbar/lockscreen to B0.8 while doing these exact steps
Dr.Romca said:
Amongst other things...but this works on any ROM as long as you follow the guide I've succesfully ported my BattMod and Cryshop's navbar/lockscreen to B0.8 while doing these exact steps
Click to expand...
Click to collapse
can you post them?
stegg said:
can you post them?
Click to expand...
Click to collapse
Why? He gave you quite simple instructions on how to construct it yourself, so he wouldn't need to do that for every single release for any of you.
Sent from my HTC Legend
Right on I think it's simple enough...besides, I had to figure this all out myself...
It's nice when people use that round head sitting on their neck
BlaY0 said:
Why? He gave you quite simple instructions on how to construct it yourself, so he wouldn't need to do that for every single release for any of you.
Sent from my HTC Legend
Click to expand...
Click to collapse
you have some personality disorder, you'd better see someone specialised in mental health care
stegg said:
you have some personality disorder, you'd better see someone specialised in mental health care
Click to expand...
Click to collapse
I will do that as soon as you contribute at least one theme for three different roms and then supply new updates for every new release of those roms...
Sent from my HTC Legend
stegg said:
you have some personality disorder, you'd better see someone specialised in mental health care
Click to expand...
Click to collapse
Oh come on stegg, that was uncalled for I just think it's a better idea to share how I did it rather then do all the work for you. Hell it would be a full time job - making themes for everyone
...too bad there isn't a "what the hell?" button ...
Question ; are there any limitations to what you can port like different functioning slide bar / nav bar?
Sent from my HTC Legend using XDA Premium App
This howto only tells you how to replace png's inside those framework .apk packages. And you can change navbar as well, but you'd have to make it in the same shape as long as you don't want to decompile the apk...
Cool thanks, I'm giving this a go now
Sent from my HTC Legend using XDA Premium App
I guess my device has to be rooted to do this?
You are correct, sir
Damn...

How-To's

How to modify your framework-res.apk
There are plenty of "How-to's" out there that I've seen for modifying the framework-res.apk. I've tried probably 20 of them...all resulted in getting stuck in a bootloop. Finally figured out a method that works.
Here goes:
THIS IS FOR LINUX BASED USERS
Go to www.jokersax.com and grab my tool.zip under Th3Bill Mods
Extract it in your HOME folder
Inside it you will find 2 versions of apktool. There is a good reason for that, which you will see later.
You also need a good xml editor like Editra (available in most distros packages)
Need an archive manager as well (I recommend File Roller)
[COLOR="green"[B][U]]Initial Setup:[/U][/B][/COLOR][/SIZE]
[SIZE="3"]1) Open your Home folder and select to show hidden files
2) Open your .bashrc file
3) Add the following lines to the bottom of the file
export PATH=${PATH}:~/bin
export PATH=${PATH}:~/tool/reg
export PATH=${PATH}:~/tool/ics
Then save the file
4) Open your .profile file
5) Add the following line to the bottom of the file
PATH="$HOME/tool/ics:$HOME/tool/reg:$PATH"
Then save the file.
Now, on to editing
1) Navigate to the framework folder that your framework-res.apk is in.
2) Open a terminal
3) Type in "reg if framework-res.apk" no quotations and press Enter
4) Type in "reg d framework-res.apk" no quotations and press Enter Now minimize terminal (you'll use it later)
5) You should see in your file manager the folder called framework-res. This is your decompiled framework-res.apk
6) Make your edits. be careful....this file controls a TON of things in your system, and you can make some major problems for yourself if you edit things incorrectly.
7) Once your edits are done, go back to your terminal session
8) Type in the following "ics b framework-res" no quotations (where *username* is your account username) and press Enter.
9) It should recompile correctly. You'll have a framework-res.apk in the /framework-res/dist folder. DO NOT USE THIS ONE WILL CAUSE BOOTLOOPS!!
10) Open it with an archive manager and extract the resources.arsc as well as any files you edited in the xml folder.
11) Go back to your ORIGINAL framework-res.apk and open (not extract) it in your archive program
12) Add in the files you extracted from the edited framework-res.apk, placing them in the appropriate folders
13) You're done!
Cheers!
P.S. If you get a recompile error that mentions plurals, you have some work to do. Go to the values folders one at a time and look for the plurals.xml files. You will see a bunch of entries....scroll all the way down till you see a section that looks like this:
<plurals name="matches_found">
<item quantity="other">%d of %d</item>
<item quantity="one">1 match</item>
you need to edit this section to look like this:
<plurals name="matches_found">
<item quantity="other">%1$d of %2$d</item>
<item quantity="one">1 match</item>
This must be done for EACH plural.xml file...placing 1$ behind the first % and 2$ behind the second one. Save each as you go. Then recompile, and you should be good to go.
HOW TO LOGCAT PROPERLY
Here's how to logcat so that a dev can actually help fix your issue
SETUP
1) Download Android SDK from HERE
2) Place it directly in your HOME folder
3) Extract the file there and rename the folder android-sdk
4) Go to the platform-tools folder and double-click android
5) Download at least the tools and platform-tools. You can download other stuff, but that's unnecessary for this exercise.
6) Close SDK when it's done
Now to LOGCAT
1) Navigate to the /platform-tools folder.
2) Open a terminal
3) Type in either A or B depending on your system
A) (works on Ubuntu derivatives)
sudo ./adb kill-server
sudo ./adb start-server
B) (Suse, Fedora, etc)
su
(enter your password)
./adb kill-server
./adb-start-server
Now, the server should be running....leave it open!
4) Plug your phone into the PC (making sure that if it's ON, that you have android debugging enabled...or the proper edit in build.prop listed below)
5) If your phone is OFF(meaning you can't get it to boot from a rom/mod you did), follow A). If your phone is ON (meanint working but has a FC somewhere), follow B)
A) Type into the terminal the following
./adb logcat -C
and press enter. Should say waiting for device. Turn on your phone. When it gets to a section where you see a large amount of red pass by on the screen (like 8-10 lines), go to step 6
B) Be sure to turn off ALL apps that are NOT related to your FC (this makes it nice and neat for us to read the logcat)
Open terminal and type in the following
./adb logcat -C
and press enter. You should see it start to log stuff...it'll be going by really fast...don't worry about that right now.
NOW, do whatever it is that fcs (open the app, process, etc) and wait for it to FC. When it does, go to step 6
6) With the Terminal being your primary window in the PC, Press Ctrl +Z. This will stop the logcat output
7) Search through the logcat for the section with all the red (you'll see a bunch of E's). Don't cut this up on us...we may need some of the other info
8) Select about 30-40 lines ABOVE the red error section through about 10-20 lines AFTER the error section
9) Paste this into Pastebin. Please don't send us this in an e-mail...it just looks a hot mess that way.
10) Link to the Dev.
CHEERS!​
Blank flashable zip
For all of you out there wanting to flash an app or framework file, here is a flashable zip that is blank. It contains instructions inside it, so PLEASE
READ THE FILE LABELED "READ ME FIRST!!!!"
This will make a simple process of flashing the items you want to flash.
CHECK POST 8 FOR CORRECTED INFORMATION
Any questions...ask me
Could we use this to turn our phones into a space/time bending machine??
Lol jk. Thanks for the information and flash able zip!!!
Sent from my MB855 using XDA
tsdeaton said:
Could we use this to turn our phones into a space/time bending machine??
Lol jk. Thanks for the information and flash able zip!!!
Sent from my MB855 using XDA
Click to expand...
Click to collapse
Don't I wish...or an intelligence enhancer...LOL
Glad to share
th3bill said:
don't i wish...or an intelligence enhancer...lol
glad to share
Click to expand...
Click to collapse
lmao! +1476930593
Bad ass thread buddy thanks for the how to's and blank flash zips these will surely come in handy....
MIUI/ICS for the Photon
http://forum.xda-developers.com/showthread.php?t=1536161
For deodexed I'm guessing.
Th3Bill said:
For all of you out there wanting to flash an app or framework file, here is a flashable zip that is blank. It contains instructions inside it, so PLEASE
READ THE FILE LABELED "READ ME FIRST!!!!"
This will make a simple process of flashing the items you want to flash.
If you wish to flash other items, you simply need to make sure that the item you want is in the folder it would be in within your phone, so if you want something to go into /system/lib, make sure that you create a folder /lib inside the /system folder in the zip and put the file inside that folder.
Any questions...ask me
Click to expand...
Click to collapse
Also, I should add that I forgot something in the explanation for this file. Wherever you are putting the file you're flashing (app, framework), you will need to adjust the permissions portion of the updater-script to show that file. Otherwise, you will set your entire /system to those permissions and you will get wonderful boot-loops
So, for app Music.apk, that line would look like:
set_perm(0, 0, 0755, 0644, "/system/app/music.apk");
Here is the updated file with the corrected instructions inside it Sorry for any issues fellas!
Blank CWM2.zip
Go to the site to download the file
Cheers!
TOOLS
Who doesn't love tools?
I've seen a lot of confusion over which versions to use for decompiling. Magic values being off with the current version of Android being pushed to 4.0.4.
Here's a helpful little tool kit. Disclaimer: It's for Linux based systems(save for the Androidsuite). I will try to find all these for Windows at some point, but with MIUI for Photon and Atrix, CNA for Photon, and Kitchen Sinks for both Photon and Atrix, I'm spread a little thin for some of these how-tos. I will post more soon once Kitchen Sink is Beta.
Tool.zip
Go to the site and download the file.
There's a small file inside with an explanation of each tool. NOTE: I put that Android suite works in Wine. It does not. It will OPEN and look like it might work, but does not recompile or decompile anything. It's a windows only wonder...LOL
Is there any way you'd be able to write up a How-To on how to use Diff/Patch in the laments terms, with Android specific type files directions cuz I'm trying to figure it out but since all the info I find is for applying it to everything other than Android. I'm on a mac and have it all setup correctly but I fk shyt up cuz I lose a step or something.
By the way, thanks for this How to also. Awesome.
MoPhoACTV Initiative
moonzbabysh said:
Is there any way you'd be able to write up a How-To on how to use Diff/Patch in the laments terms, with Android specific type files directions cuz I'm trying to figure it out but since all the info I find is for applying it to everything other than Android. I'm on a mac and have it all setup correctly but I fk shyt up cuz I lose a step or something.
By the way, thanks for this How to also. Awesome.
MoPhoACTV Initiative
Click to expand...
Click to collapse
What are you trying to do? You looking to do rom porting? Try to change some features? Change colors in a menu? Need a bit more info. Depending on what you're wanting to do will determine what the steps will be.
Idiots guide to porting ROMs for Photon, now THAT would be great. Sure it'd be a PITA and 3/4 to make though lol, great work on keeping up this how-to thread and all your ROM work!
w0lf215 said:
Idiots guide to porting ROMs for Photon, now THAT would be great. Sure it'd be a PITA and 3/4 to make though lol, great work on keeping up this how-to thread and all your ROM work!
Click to expand...
Click to collapse
<<<[----RECOGNIZED CONTRIBUTOR now
I feel bad that I haven't written more "how to's" in a while, but with 6 downloads I'm currently doing (MIUI Photon, MIUI Atrix, CNA Photon, Kitchen Sink Photon, Kitchen Sink Atrix, TabletUI Photon), I'm being spread pretty thin....LOL. It's all good. I love doing this stuff.
I promise to write more of these as I get a chance. I like to have more people help with stuff.
Th3Bill said:
<<<[----RECOGNIZED CONTRIBUTOR now
I feel bad that I haven't written more "how to's" in a while, but with 6 downloads I'm currently doing (MIUI Photon, MIUI Atrix, CNA Photon, Kitchen Sink Photon, Kitchen Sink Atrix, TabletUI Photon), I'm being spread pretty thin....LOL. It's all good. I love doing this stuff.
I promise to write more of these as I get a chance. I like to have more people help with stuff.
Click to expand...
Click to collapse
I noticed that a little while ago, Congrats on the new title thats whats up.
btw check your pm
moonzbabysh said:
I noticed that a little while ago, Congrats on the new title thats whats up.
btw check your pm
Click to expand...
Click to collapse
Check yours...got a book in there for ya...LOL
Updated OP How Tos.....Framework-res edit and Logcatting
Th3Bill said:
Updated OP How Tos.....Framework-res edit and Logcatting
Click to expand...
Click to collapse
Just setting up on pc. Ready to try this. You may be hearing from me! LOL

Categories

Resources