[Q]Anyone tried to theme the new market? - Android Themes

I am trying to theme the new 2.2.7 market apk but I can't find the .png that corresponds to the green background on the top half of the screen. Anyone know where that is? I've looked all through the drawable-mpdi folder.

PMDColeslaw said:
I am trying to theme the new 2.2.7 market apk but I can't find the .png that corresponds to the green background on the top half of the screen. Anyone know where that is? I've looked all through the drawable-mpdi folder.
Click to expand...
Click to collapse
It's all in the values /colors.xml when you de-compile it.
Use the attached image and run a Hue/Saturation on it until ypou get the color you want. Then use the dropper tool to get the colors and add those to the colors.xml file in the correct places (Which should be easy since I have the original color codes on it).

JAguirre1231 said:
It's all in the values /colors.xml when you de-compile it.
Use the attached image and run a Hue/Saturation on it until ypou get the color you want. Then use the dropper tool to get the colors and add those to the colors.xml file in the correct places (Which should be easy since I have the original color codes on it).
Click to expand...
Click to collapse
Very cool, thank you!

JAguirre1231 said:
It's all in the values /colors.xml when you de-compile it.
Use the attached image and run a Hue/Saturation on it until ypou get the color you want. Then use the dropper tool to get the colors and add those to the colors.xml file in the correct places (Which should be easy since I have the original color codes on it).
Click to expand...
Click to collapse
Im not seeing a colors.xml in the apk. Where is it locatated? I searched the whole res folder and had no results
I don't even see a Values folder in the apk.

PMDColeslaw said:
Im not seeing a colors.xml in the apk. Where is it locatated? I searched the whole res folder and had no results
I don't even see a Values folder in the apk.
Click to expand...
Click to collapse
It's all in the values /colors.xml when you de-compile it.
Click to expand...
Click to collapse
Use apktool.

JAguirre1231 said:
Use apktool.
Click to expand...
Click to collapse
Yeah I just realized my ignorance an few ago

I saw this and have edited the colors via the xml files after de-compiling but no change. I edited all colors for the header background. Thanks in advance.

Edubyah said:
I saw this and have edited the colors via the xml files after de-compiling but no change. I edited all colors for the header background. Thanks in advance.
Click to expand...
Click to collapse
I'm having the same results. I de-compile, edit the colors.xml file, compile, sign and flash. Still shows the green header

I used ninjamorph tried to Change the new market's stat_notify_market_update
& stat_sys_install_complete
Icons with the custom icons from my macnutR14 rom. It says successful but I reboot & nothing still green
vibrant rooted
macnutR14
super io kernel+OCLF
QS 1998
2.2 froyo

please share your works, if successful...

PMDColeslaw said:
I'm having the same results. I de-compile, edit the colors.xml file, compile, sign and flash. Still shows the green header
Click to expand...
Click to collapse
Where are you flashing it to? Make sure that there's no com.android.vending-*.apk in /data/app/
Also, I was able to do it just fine right now. Made everything a blue color.

JAguirre1231 said:
Where are you flashing it to? Make sure that there's no com.android.vending-*.apk in /data/app/
Also, I was able to do it just fine right now. Made everything a blue color.
Click to expand...
Click to collapse
Well there was a com.Android.vending-1.apk in there so I deleted it and reflashed mine. Now I get a bunch of fc's. You mind posting the one you made so I can take a look?
Sent from my HERO200 using XDA App

PMDColeslaw said:
Well there was a com.Android.vending-1.apk in there so I deleted it and reflashed mine. Now I get a bunch of fc's. You mind posting the one you made so I can take a look?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
adb shell pm uninstall com.android.vending
adb remount
adb shell rm /system/app/Vending.apk
adb push <name of attached> /system/app/

JAguirre1231 said:
adb shell pm uninstall com.android.vending
adb remount
adb shell rm /system/app/Vending.apk
adb push <name of attached> /system/app/
Click to expand...
Click to collapse
I get failure on that first command "adb shell pm uninstall com.android.vending"
EDIT: I went ahead and comleted the other staeps after the failure and I was able to get yours to load. I'll decompile yours and see if I'm doing something wrong with the hex color codes or something.
Thanks for all your help!

Related

Change the colour of the Progress Bar

Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
jpool81 said:
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
Click to expand...
Click to collapse
Not sure.. but i would think it was a .png-file actually
Thanks, but all the .png files I can see are just the progress bar containers. There are no coloured images there at all.
in BeHero+ (a 2.1 rom) it's found at:
framework-res.apk\res\drawable-mdpi\statusbar_background.png
Ah, no I am referring to the "progress bar" that you see when downloading a file from the Browser, not the status/notification bar. Or what you see in the Market when downloading a file. By default it's green.
jpool81 said:
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
Click to expand...
Click to collapse
It's in framework-res/res/drawable/progress_horizontal.xml
Use apktool to decompile and rebuild the files.
Cool, thanks
I'm having trouble using the apktool. I am on Windows but can't get the right command lines. To be fair I've not used this tool before so would appreciate some kind of "dummy" guide.
jpool81 said:
I'm having trouble using the apktool. I am on Windows but can't get the right command lines. To be fair I've not used this tool before so would appreciate some kind of "dummy" guide.
Click to expand...
Click to collapse
Code:
apktool.bat d -s framework-res.apk out
that will extract/decompile it to the folder out. There is however some issues when you try to rebuild framework-res again. What I do is put the altered files into a framework-res from a 1.5 rom, and rebuild it. That works. Command to rebuild is:
Code:
apktool.bat b out
Thank you. Will give it a go. Much appreciated

.png question

Is there a way i can change png files on my phone from my phone? I want to change the calling icon in the framework-res.apk. i found out a way to change it with an app in the market. But i dont know how to put it back in the apk. Help please.
find the picture --> backup it --> put in your picture with the same name and exactly the same bigness (pixels) --> bingo
cheers, stephan1
its not that easy. any other ideas anybody please.
Well if the file is a .9.png then it won't be that easy because these files are compiled to binary. (correct me if I'm wrong devs) You will need to do a little more reading to figure this one out. Also, you can't just "unzip" an apk and mess around with the pics and think that it's going to work when you zip it backup. My understanding is that you have to place the file that you are replacing into the compressed(i.e. zipped) apk.
Once again, Devs, correct me if I am wrong but all my info comes straight from using the search button...Try it out
jballz0682 said:
Well if the file is a .9.png then it won't be that easy because these files are compiled to binary. (correct me if I'm wrong devs) You will need to do a little more reading to figure this one out. Also, you can't just "unzip" an apk and mess around with the pics and think that it's going to work when you zip it backup. My understanding is that you have to place the file that you are replacing into the compressed(i.e. zipped) apk.
Once again, Devs, correct me if I am wrong but all my info comes straight from using the search button...Try it out
Click to expand...
Click to collapse
You're right, and wrong. You can unzip an .apk and mess with the images, then rezip it back up and rename it to (yourapk).apk from (yourapk).zip, you just need to sign it when you're done.
I haven't messed with anything entitled ".9.png", but if it's binary then hex editing it is probably the quickest way to edit it, otherwise there is a program called 'apktool' that can decompile apk's and is pretty effective, I've used it a few times
dmullins80 said:
its not that easy. any other ideas anybody please.
Click to expand...
Click to collapse
Pull framework-res.apk from your phone, to your computer's desktop. Use Winrar, or a similar archive extracting program, to open the file, then click Extract -> (some folder on your desktop that has nothing else in it)
Find the picture you want to change, make sure your new picture is the same dimensions (e.g; 320x480) and is the same type of file (e.g; .png) and replace the stock image with your custom image.
Once that's done, highlight all files and folders in the root of the folder you extracted framework-res.apk to -> (if using Winrar) Right-Click -> Add to archive -> Change archive type to .zip and click OK -> Right click on your newly created framework-res.zip and change the extension to .apk (you might need to open a windows explorer window and select tools->folder options->view tab->uncheck 'hide extensions for known filetypes).
Once that's done, you'll need to sign your new framework-res.apk. You can do that with EasySign. Download EasySign to your desktop, extract the archive and open a Windows Command Prompt (Start->All Programs->Accessories->Command Prompt). You'll need the Java JDK installed.
Drag your newly created framework-res.apk file into your EasySign folder on your desktop and down the following;
Type the following, assuming you have Windows 7 or Vista:
Code:
cd C:\Users\(your username on your PC)\Desktop\EasySign
You should now see the following;
Code:
C:\Users\(your username on your PC)\Desktop\EasySign>
You should now type the following;
Code:
java -jar signapk.jar testkey.x509.pem testkey.pk8 framework-res.apk framework-res_signed.apk
It'll take a moment, then you'll see;
Code:
C:\Users\(your username on your PC)\Desktop\EasySign>java -jar signapk.jar testkey.x509.pem testkey.pk8 framework-res.apk framework-res_signed.apk
C:\Users\(your username on your PC)\Desktop\EasySign>
...and you should now have framework-res_signed.apk in your EasySign folder on your desktop.
Pull it to your desktop and rename it framework-res.apk and put it back where you got it, most likely using adb (if using adb, put it in C:\(your androidsdk folder)\tools and type the following;
Code:
adb remount
adb push framework-res.apk /system/framework
adb reboot
Alternatively, you can place it on your sdcard and use a program like Astro to move it to /system/framework and immediately reboot your phone for the changes to take effect.
Enjoy, it took me like 10 minutes to type this
-mak
Thanks for the wirte up, (i've been try to do something simaler to this for a while). I got to the end but then I get this error in the cmd window. Any thoughts?
'java' is not recognized as an internal or external command,
operable program or batch file.
jadesdan said:
Thanks for the wirte up, (i've been try to do something simaler to this for a while). I got to the end but then I get this error in the cmd window. Any thoughts?
'java' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
Sorry, I should have mentioned you'll need the Java JDK installed.
.mak is that the same one by Stericson?
here
sorry if that is slightly OT, just rebuilding the PC setup and need the files, so not sure which one I want to use - his worked last time for me well.
thanks~
dianeofarcadia said:
.mak is that the same one by Stericson?
here
sorry if that is slightly OT, just rebuilding the PC setup and need the files, so not sure which one I want to use - his worked last time for me well.
thanks~
Click to expand...
Click to collapse
EasySign? I'm not sure, I've only downloaded it from grdlock's site. The one you linked to actually looks easier to use..
when you re-zip the file after editing do you use normal compression or store?
Magnum72 said:
when you re-zip the file after editing do you use normal compression or store?
Click to expand...
Click to collapse
Normal if you're in Windows, otherwise .gz (most compatible) under linux.
.mak said:
Sorry, I should have mentioned you'll need the Java JDK installed.
Click to expand...
Click to collapse
I've installed it, but I still get the same error. Do I need to set a system path within java?
If I get this working it will solve many of my 'problems' Thank you!
I used ubuntu... what I did was change the default unknown call icon... I opened the Phone.apk in ubuntu and replaced the pic with another icon from another rom of my choice making sure it had the exact same name.. then went back to windows, pushed phone.apk and got it no problem... ubuntu opens the apk's without having to unzip them...
droidfreak said:
I used ubuntu... what I did was change the default unknown call icon... I opened the Phone.apk in ubuntu and replaced the pic with another icon from another rom of my choice making sure it had the exact same name.. then went back to windows, pushed phone.apk and got it no problem... ubuntu opens the apk's without having to unzip them...
Click to expand...
Click to collapse
I did that with the numbers on the dialer and the home launcher icon in the Tainted Vanilla thread. But there are other apk's that are a bit touchy. Once I learn how to sign them, I think it might open up a whole new world of skinning for me.
Yeh it would be good to get that down... it would open a huge door.. make things easier..
Question; in order for the above process to work, must you be rooted? I would love to change icons...unfortunately my naive-impatient self flashed the leak when it was first brought public.
Ngmanis said:
Question; in order for the above process to work, must you be rooted? I would love to change icons...unfortunately my naive-impatient self flashed the leak when it was first brought public.
Click to expand...
Click to collapse
Unfortunately you do need to be rooted for these changes to occur, however you can still do some customization with apps like Bettercut or ones similar.
jadesdan said:
I've installed it, but I still get the same error. Do I need to set a system path within java?
If I get this working it will solve many of my 'problems' Thank you!
Click to expand...
Click to collapse
I didn't, and it works for me. Are you using the proper commands, exactly as shown in my tutorial?
.mak said:
I didn't, and it works for me. Are you using the proper commands, exactly as shown in my tutorial?
Click to expand...
Click to collapse
Yes! Even coy and paste (except for changing the name of the apk I'm trying to sign).
I've downloaded the java link that you provided and installed, redownloaded and installed the JRE, rebooted. THe java site tells me I have the latest and greatest of everything.
I know it's got to be something I'm doing wrong, I get the same error with Autosign and other batch signing tools. I just don't know what my problem is.
jadesdan said:
I've installed it, but I still get the same error. Do I need to set a system path within java?
If I get this working it will solve many of my 'problems' Thank you!
Click to expand...
Click to collapse
jadesdan said:
Yes! Even coy and paste (except for changing the name of the apk I'm trying to sign).
I've downloaded the java link that you provided and installed, redownloaded and installed the JRE, rebooted. THe java site tells me I have the latest and greatest of everything.
I know it's got to be something I'm doing wrong, I get the same error with Autosign and other batch signing tools. I just don't know what my problem is.
Click to expand...
Click to collapse
Did you make sure to cd into the proper folder from command prompt? I've made this mistake a time or two;
Code:
cd C:\Users\(your username on your PC)\Desktop\EasySign>
^^ assuming you have EasySign in a folder called EasySign on your desktop, and that you change (your username on your PC) to your actual username.

Evdo icon to 3G

I have a (Sprint) HTC Hero rooted, running Fresh rom 2.3.3. I have read somewhere that people have managed to change the Ev-Do icon in the taskbar to say 3G. I know that it does not make a difference, but i would like to know if someone can post a step by step guide on how to do this.
It depends on the ROM. There is no other way of changing it unless there is a kernel out there that changes it. I have never heard of it.
Hi, I have managed to build a theme for this exact purpose. The attached file I posted is to be used with MetaMorph, which is downloaded from the Android Market, and you place the file onto your sd card, and choose new theme, and select it. Hit apply all and your EV-DO Icon will be changed to 3g, and the 6 Bars used to display signal will be reduced to 4 for a nicer appeal. I have tested it on Fresh 2.3.3 and it works great.
this should be in Q&A
Sent from my HERO200 using XDA App
Thank you! Exactly what I needed. Had to install 3 times before it showed 3g icon but worth it. Can you show me exactly how you did it?
Sent from my HERO200 using XDA App
Well I'm not much of a developer, but all I did was modify a metamorph theme for the sense taskbar. I made it into a zip file, and replaced the EvDo taskbar icons and the Status icons with the 3g ones, and then repacked it, so the 3g bars show up. Its pretty simple, glad I could help
jpp44345 said:
It depends on the ROM. There is no other way of changing it unless there is a kernel out there that changes it. I have never heard of it.
Click to expand...
Click to collapse
Wut?
OP,
The icons are in com.htc.resources.apk in the res/mdpi folder. I also believe the 3G icons are in there as well, but you just have to pull them out and change the name. This also belongs in Q&A.
There is a metamorph on here in themes that will change nothing but the evdo to 3g. I can't upload the file from the phone but will try to upload it in a little while.
Sent from my HERO200 using XDA App
VinceOB said:
Wut?
OP,
The icons are in com.htc.resources.apk in the res/mdpi folder. I also believe the 3G icons are in there as well, but you just have to pull them out and change the name. This also belongs in Q&A.
Click to expand...
Click to collapse
Like vince said, that is where the icons are stored at. Once in there, all that's needed is a simple renaming. Rename the 3G icons to the EvDO icons, and the EvDO icons to the 3G icons. Now Android thinks it's displaying 3G icons, but it's really displaying the EvDO icons. Just think of it as fooling Android.
1. Unzip com.htc.resources.apk
2. Navigate into res/mdpi
3. Rename the 3G and EvDO icons as stated above
4. Drag them OUT of the unzipped folder.
5. Find the original, untouched com.htc.resources.apk (NOT unzipped)
6. Open com.htc.resources.apk as an ARCHIVE (not unzipping it!)
7. Navigate to res/mdpi inside of the archive
8. Drag the changed files into there
9. adb push the modified com.htc.resources.apk to your phone.
nilemann said:
There is a metamorph on here in themes that will change nothing but the evdo to 3g. I can't upload the file from the phone but will try to upload it in a little while.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Did you not see my post for that file already?
mrinehart93 said:
Like vince said, that is where the icons are stored at. Once in there, all that's needed is a simple renaming. Rename the 3G icons to the EvDO icons, and the EvDO icons to the 3G icons. Now Android thinks it's displaying 3G icons, but it's really displaying the EvDO icons. Just think of it as fooling Android.
1. Unzip com.htc.resources.apk
2. Navigate into res/mdpi
3. Rename the 3G and EvDO icons as stated above
4. Drag them OUT of the unzipped folder.
5. Find the original, untouched com.htc.resources.apk (NOT unzipped)
6. Open com.htc.resources.apk as an ARCHIVE (not unzipping it!)
7. Navigate to res/mdpi inside of the archive
8. Drag the changed files into there
9. adb push the modified com.htc.resources.apk to your phone.
Click to expand...
Click to collapse
Could yall elaborate on how to execute the above instructions? Do I need something more than my phone and a computer? The instructions seem easy enough. Is it a matter of pulling files? Im new at that.
Id like to do this by the instructions above. Thank you.
tailsthecat3 said:
Could yall elaborate on how to execute the above instructions? Do I need something more than my phone and a computer? The instructions seem easy enough. Is it a matter of pulling files? Im new at that.
Id like to do this by the instructions above. Thank you.
Click to expand...
Click to collapse
You need sdk installed on your pc the open terminal go to where the androidb files are installed and type adb remount hit enter type adb pull system/framework/htc.resources. apk to where you want to file to go. Once you pulled the files you want to modify then follow the prior post steps.
Ex:
Adb remount
Adb pull system/framework/htc.resources.apk c:\desktop\themes\
chubbzlou said:
You need sdk installed on your pc the open terminal go to where the androidb files are installed and type adb remount hit enter type adb pull system/framework/htc.resources. apk to where you want to file to go. Once you pulled the files you want to modify then follow the prior post steps.
Ex:
Adb remount
Adb pull system/framework/htc.resources.apk c:\desktop\themes\
Click to expand...
Click to collapse
Thanks! How is easy is this?! Im gonna try this out as soon as I finish dl'ing some updates. Had to do my semi-annual xp pro reinstall...
tailsthecat3 said:
Thanks! How is easy is this?! Im gonna try this out as soon as I finish dl'ing some updates. Had to do my semi-annual xp pro reinstall...
Click to expand...
Click to collapse
If you could install xp or use a pc should be a piece of cake.
Check out how to create themes in the sticky should guide you better.
chubbzlou said:
If you could install xp or use a pc should be a piece of cake.
Check out how to create themes in the sticky should guide you better.
Click to expand...
Click to collapse
well, i pulled comhtcresources but thats as far as ive gotten...any help is appreciated, ill check that guide to see if the answer is there...thank you
tailsthecat3 said:
well, i pulled comhtcresources but thats as far as ive gotten...any help is appreciated, ill check that to see if the answer is there...thank you
Click to expand...
Click to collapse
All it takes is a basic knowledge and understanding of how to work with files.
Now that you've pulled it, I'd recommend downloading a program called 7zip. It is an EXTREMELY lightweight, fast, and flexible archive manager. It also integrates with Windows Explorer in the right-click menu (very useful).
With 7zip, extract the com.htc.resources.apk file just like you would a .zip file. Once inside, navigate to res/mdpi or similar folder (I'm not sure how HTC arranges their files... haven't used an HTC ROM in ages!). Once inside, look for the icons that you want to mess with. Copy the icons out, and then do your editing to them. Once they are edited, you need to find the ORIGINAL, unzipped com.htc.resources.apk file. Right click that, and then go to 7zip, then go to Open Archive. The file will now be OPEN, but not unzipped. Navigate in there to the folder location where you got the files that you modified from. Now drag the modified icons into that folder location. Congratulations, you just modified your phone by yourself!!
Now all that's left is to push the file back to your phone.
Code:
adb remount
adb push com.htc.resources.apk /system/framework
Some things to keep in mind, are that you must use the Open Archive method to modify the .apk itself, otherwise you will have to resign the file (pain in the ***). Every graphic -MUST- be a .png file. That's all I can really think of. Have fun
thank you veryvery much. im rebooting now. i hope i did it right. i have to go out now but ill be back for some more hacking. and questions if i messed it up. again, thanks all
Well, it worked. Thank you!
It really couldnt have been easier.
I prefer to change things like this within the system rather than having an app or something or other... what else can we change this way??
tailsthecat3 said:
Well, it worked. Thank you!
It really couldnt have been easier.
I prefer to change things like this within the system rather than having an app or something or other... what else can we change this way??
Click to expand...
Click to collapse
You could create a whole new theme all the status bar icon, clocks, dialer ect. What ever you like to change just pull the apk's edit the png's and push them back. You can also pull all the apk's and edit them create a signed zip and load them via recovery.
Check out this Post it will help you out creating themes. Glad it worked out for you.
HAVE FUN
chubbzlou said:
You could create a whole new theme all the status bar icon, clocks, dialer ect. What ever you like to change just pull the apk's edit the png's and push them back. You can also pull all the apk's and edit them create a signed zip and load them via recovery.
Check out this Post it will help you out creating themes. Glad it worked out for you.
HAVE FUN
Click to expand...
Click to collapse
another question... is there a way to change the signal bars to the fatter, fewer, shorter variety? is there the files already in there like the 3g files? thank you thank you

[TUT] Build Metamorph themes on your phone

Go to market
Download mm, ninjamorph, silver edit, and astro.. While here pick up a random icon pack... (your first morph)
Open silver edit..pick new xml.. Here is a template. Replace the dashes - with less than/greater than < .. They won't show on xda
-?xml version="1.0"?-
-themename-Theme_Name-/themename-
-themeversion-1.x-/themeversion
-screenshot--/screenshot-
-author-that's you-/author-
-authorweblink--/authorweblink-
-phone-Samsung Vibrant-/phone
-rom-Stock-/rom-
-themedescription-whatever changes-/themedescription-
-item-your app.apk-/item-
-path-/system/app/-/path-
-description-changes the...-/description-
-item-framework-res.apk-/item-
-path-/system/framework/-/path-
-description-Morphs the ...-/description-
Open ninja morph, choose the apk you want to modify.. The images you want to change are in res folder in the drawable dir.. choose the icon and replace it with one out of the icon pack..
Open astro.. Go to android themes.. Make new directory, Theme_Name.. Open the workspace folder..this is where the changed apk is... Copy res folder.. Paste it inside Theme_Name.. Delete everything but drawable... Open the silver edit folder in astro and copy Theme_Name.xml and paste it with your new res folder... You just made a morph on your phone...
Open meta morph..start checks and chose existing... Click Theme_Name and Theme_Name.xml, apply all...
Your original images from your apk are in backup inside android themes...
Thanks stericson for 2 apps..
My phone has been flashed more than Girls Gone Wild..
I can't find silver edit in the market :/ .. i'm starting to think something is wrong with my market because I couldn't find simply lockscreen either.. :/
In the directions it says "Samsung_Vibrant" so is this just for the captivate or can you insert which ever phone you want?
sabo2000 said:
In the directions it says "Samsung_Vibrant" so is this just for the captivate or can you insert which ever phone you want?
Click to expand...
Click to collapse
that's just the name of the phone he's editing..
its more of a header or a title if anything..
This will work for any device, on any android device... Just edit the xml to be compatible with your device..
Im hoping this could bring some would be themers out the wood works...
Sent from my SGH-T959 using XDA App
Is metamorph able to put in modified XML files as well? If so, can you explain how this is done? I tried updating some XML files in framework-res.apk via metamorph with no luck...
If i compile + sign my own framework-res.apk, then it works. But i like to use it in metamorph instead so I can change things on the fly.
xDarKnighTx said:
Is metamorph able to put in modified XML files as well? If so, can you explain how this is done? I tried updating some XML files in framework-res.apk via metamorph with no luck...
If i compile + sign my own framework-res.apk, then it works. But i like to use it in metamorph instead so I can change things on the fly.
Click to expand...
Click to collapse
That might be a problem with Super User or something.. That I've read about..
darkamikaze said:
That might be a problem with Super User or something.. That I've read about..
Click to expand...
Click to collapse
do you recall where you read it? and is there some sort of workaround? or is it just not possible?
I think I read it in the meta morph topic in the android theme forum..there's another meta morph thread there
Sent from xdaApp - Captivate
Metamorph only replaces files... doesn't add new ones... so if its a new xml going to have to use an update.zip
Sent from my SGH-T959 using XDA App
I did everything by the guide in the first post but when I try to install the theme in metamorph I get the error The theme you selected is invalid because the theme control file could be missing, or is not correctly written.
Any help would be much appreciated.

[MOD] Lower Auto-Brightness levels to save battery

This is best done after you flash a ROM as you might lose some settings.
(I noticed my wall paper changed and i had to sign back into Google account)
---This framework-res.apk file is different for every ROM---
Hi,
I wanted to share a little mod that could help in extending battery life - lowering default auto-brightness levels. As all of You know our big, bright SuperLCD is an excelent display but for that it uses most of our battery:/
I like the idea of auto-brightness but I find it too bright for most of the time. Setting brightness manualy to one level makes it either too dim or it uses too much battery and switching it all the time that You go outside or turn on the light is a little bit inconvenient.
In order to lower auto-brightness levels You have to change values in framework-res.apk/res/values/arrays.xml and here is how (read whole post first )
These are stock HTC Raider values:
Click to expand...
Click to collapse
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>75</item>
<item>75</item>
<item>75</item>
<item>97</item>
<item>120</item>
<item>142</item>
<item>170</item>
<item>198</item>
<item>227</item>
<item>255</item>
</integer-array>
These are values that I use and found best for me:
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>20</item>
<item>40</item>
<item>50</item>
<item>70</item>
<item>90</item>
<item>100</item>
<item>130</item>
<item>155</item>
<item>180</item>
<item>225</item>
</integer-array>
These brightness levels are corresponding to the amount of light that light sensor is getting - the lowest value is while in the low light the highest when for example your phone is in direct sunlight. Brightness values are defined by numbers 1 is the lowest possible setting and 255 is the maximum brightness that can be set.
As You can see I was pretty aggressive with lowering these values and yet the screen is still bright in every situation. You can set them a little bit higher or lower in order to suit your preferences.
Here is a guide on how to perform this mod on any framework-res.apk using apk manager (thanks for the guide goes to desean):
1. Download APK manager and unpack somewhere
2. Grab framework-res.apk from your phone under \system\framework\ (e.g. adb pull) and place it in the "place-apk-here-for-modding" folder
3. Run Script.bat and select option 9
4. Once done, go to projects\framework-res.apk\res\values\arrays.xml and edit your values as per first post.
5. Once edited, compile the apk using option 11
6. Qn: Is this a system apk. Ans: y
7. Qn: Aside from the signatures, would .... least. Ans: y
8. Prompt: In the apk manager folder u'll find a keep folder..... done then press enter on this script. Press any key to continue . . . You have to go to "keep" folder and delete resources.arsc because arrays.xml have been changed. After this You can press any key in apk manager window.
9. Once done, input 25 in apk manager and select "unsignedframework-res.apk" by entering the number that stands for it. After selecting it You should see in apk main window in the top right corner "Current-App: unsignedframework-res.apk".
10. Now press 5 to zipalign apk. You will find your completed, zipaligned apk under place-apk-here-for-modding\unsignedframework-res.apk.
11.Rename it back to framework-res.apk and adb push the file back to your phone
Click to expand...
Click to collapse
To send it back to your phone
Prerequisites have...
The file you are pushing must be placed in the platform-tools folder of adb so if you are pushing file "framework-res.apk" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\platform-tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\platform-tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices:
Code:
adb push framework-res.apk /system/framework
7. adb reboot this is how you finish
Click to expand...
Click to collapse
You have to copy the file to your phone with ADB or you will get a boot loop and have to re install your ROM.
Link for APK Manager HERE
If you have problems with apk manager showing java error (like it did) this post helped me fix that
Sources:
http://forum.xda-developers.com/showthread.php?t=1235212
http://forum.xda-developers.com/showthread.php?t=695701
http://forum.xda-developers.com/showthread.php?t=642437
APK Manager 4.9 download link (currently original thread link down)
http://www.zshare.net/download/99034654c32618ba/
WOW! I was just about to ask if anyone knew how to accomplish this! Thanks dude!
Edit: Er..phone just went into a bootloop. Lemme try again..
Edit2: I first replaced the framework-res.apk using root explorer...big mistake, phone went into a bootloop and I couldnt adb to it to push the apk correctly, whoops. Just reinstalled the ROM I was using and pushed the apk using adb and all is well.
I noticed two other very similar looking values: config_autoBrightnessLcdBacklightValuesUp and config_autoBrightnessLcdBacklightValuesDown. Is it necessary to change these as well?
m0biusace said:
WOW! I was just about to ask if anyone knew how to accomplish this! Thanks dude!
Edit: Er..phone just went into a bootloop. Lemme try again..
Edit2: I first replaced the framework-res.apk using root explorer...big mistake, phone went into a bootloop and I couldnt adb to it to push the apk correctly, whoops. Just reinstalled the ROM I was using and pushed the apk using adb and all is well.
I noticed two other very similar looking values: config_autoBrightnessLcdBacklightValuesUp and config_autoBrightnessLcdBacklightValuesDown. Is it necessary to change these as well?
Click to expand...
Click to collapse
Yes you have to use adb ill put that in the first post,
to be honest i am not entirely sure what that is for i assume, that it is when you move the slider what values it displays when you slide it, i noticed a change without changing those values.
also i changed the button back lights to 200, i find it more than enough for me.
Is there a working mirror to APK manager? The link in the thread is down.
uploaded
sbddude said:
Is there a working mirror to APK manager? The link in the thread is down.
Click to expand...
Click to collapse
uploaded here
http://www.zshare.net/download/99034654c32618ba/
Serious props to you jul644 for detailing this process! I've always hated how the Hero, Evo, & now Vivid I've had never got dark enough in pitch black rooms, and now I'm excited to fix that problem. I was curious though since I just modded my battery meter using UOT Kitchen, if I could drop in the backlight-modded framework-res.apk via 7-zip replacing the UOT framework-res.apk file then flash it via recovery. I wonder if that would make me sign into Google and mess with settings like you mentioned. Thanks.
How-To with UOT
jul644 said:
You have to copy the file to your phone with ADB or you will get a boot loop and have to re install your ROM.
Click to expand...
Click to collapse
How, if it's possible, do we integrate this modded framework-res.apk into a UOT Kitchen zip flash file? I want to mod my battery icons and would like to install at the same time so one doesn't interfere with the other. Should I upload the framework-res.apk from this to UOT Kitchen (with my original SystemUI.apk) and then change the battery icons, then download and flash?
Thanks for your help!
*****EDIT - 2/15/2011*****
Ok so I did the framework-res.apk edits by decompiling/recompiling per jul644, uploaded that into UOT Kitchen along with original SystemUI.apk and com.htc.resources.apk. I chose my battery icon mod, downloaded, cleared all the caches and flashed in recovery with no problems ) Just wanted to let you guys know how to make it a recovery flashable zip instead of pushing via ADB.
ICS?
So can anyone confirm or deny if this still works wit ICS will be trying it myself, when I get a chance, but would rather not waste time if it wont work!
It does work, I have done it. ICS it's just more difficult to decompile & recompile. I added it & 1% stock-style battery icons into Pirateghost's CWM .56 flashable ROM.
Keep getting errors when recompiling using stock telstra ICS+ root
error on 1st line after selecting option 11 ie. step 5 above
could not find sources????
Any suggestions what I am doing wrong????
---------- Post added at 09:37 PM ---------- Previous post was at 09:24 PM ----------
okay also getting this error twice before it de-compiles
the system cannot find the path specified
then seems to decompile happily???????????
Any suggestions?
I'm getting an 'Operation not permitted' when I try to remount before pushing the file back. Anyone else having this problem? I'm running a WCX GB ROM (no ICS, I'm on Rogers).
formicae said:
I'm getting an 'Operation not permitted' when I try to remount before pushing the file back. Anyone else having this problem? I'm running a WCX GB ROM (no ICS, I'm on Rogers).
Click to expand...
Click to collapse
are you trying to remount your sd card? if so do not, just select charge only
No, just trying to remount as per the instructions in the first post, so /system is R/W. Setting it to charge only. No dice.
I tried doing it in recovery (by mounting /system, then going through the ADB commands, all of which are successful), but the result is a bootloop once I'm done.
Edit: It's also worth noting that newer versions of APK Manager/Multi-tool seem to have different numbering for the operations. In step 9, number 22 sets the compression level, whereas I think it used to set the active APK (which I think is 25 now).
I ended up taking the stock framework-res from the ROM, modifying the arrays.xml values as per the OP instructions, then going through the UOT Kitchen (I had a battery mod anyway). Worked perfectly.
Thanks to pauley for reporting success earlier, which provided me with the workaround.
Has anyone done this that could possibly create a flashable zipped version of it? I tried to do it myself but with the new APK Multi Tool things were different to the instructions of OP and I couldn't get it to work
Edit: Nvm managed to fix it and make my own flashable zip. Thanks for the effort OP
I have tried to do this... And I keep getting an error on the recompile side...
Just wondering... Does apkmanager require windows 7 or something... Or is there some reason it wouldn't work on windows xp?
Sent from my HTC PH39100 using Tapatalk 2
rignfool said:
I have tried to do this... And I keep getting an error on the recompile side...
Just wondering... Does apkmanager require windows 7 or something... Or is there some reason it wouldn't work on windows xp?
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
The errors I encountered when compiling were solved by:
1) Putting Java in the windows path
2) Putting ADB in the windows path
3) Not having any spaces in the APK Manager file path
There are no OS dependencies that I'm aware of. Just open the log from within the APK manager and you should be able to identify the error.
The problem is I don't really speak java all that well...
Could I just move the java executable to the working directory?
Sent from my HTC PH39100 using Tapatalk 2
rignfool said:
The problem is I don't really speak java all that well...
Could I just move the java executable to the working directory?
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
For java, all you have to do is download the JDK (i got the 32 bit version), and then add 'C:\Program Files (x86)\Java\jdk1.7.0_03\bin' to the windows path so it becomes something like:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MATLAB\R2011a\runtime\win64;C:\Program Files\MATLAB\R2011a\bin;C:\Program Files (x86)\MKVToolNix;C:\Program Files (x86)\Java\jdk1.7.0_03\bin;C:\Android\android-sdk\platform-tools\;C:\Android\APKMultiTools\
For Windows XP, you'd probably be running 32 bit and so it would be installed in the regular program files.
pod0087 said:
For java, all you have to do is download the JDK (i got the 32 bit version), and then add 'C:\Program Files (x86)\Java\jdk1.7.0_03\bin' to the windows path so it becomes something like:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MATLAB\R2011a\runtime\win64;C:\Program Files\MATLAB\R2011a\bin;C:\Program Files (x86)\MKVToolNix;C:\Program Files (x86)\Java\jdk1.7.0_03\bin;C:\Android\android-sdk\platform-tools\;C:\Android\APKMultiTools\
For Windows XP, you'd probably be running 32 bit and so it would be installed in the regular program files.
Click to expand...
Click to collapse
thanks for the help! can you tell me the new number system with apk manager?

Categories

Resources