[MOD]/[HOWTO] Make Sense ROMs Show 3G/1X - Some ROMs Already Done - EVO 4G Themes and Apps

Update: Since I have moved on to the Epic 4G Touch, I created a thread over there that describes how to do it for that phone.
The E4GT is a Gingerbread ROM, so if you want a detailed set of instructions for Gingerbread ROMs, you can try that thread out. You will still need to search for and replace the data mentioned in this thread, but the instructions for extracting the classes.dex out of SystemUI.apk and putting them back are the same.
Disclaimer: I have only (successfully) tested this with Koni's ELITE Series II ROM. I believe this to be a fairly easy fix for most Sense ROMs, and is likely portable to any CDMA ROM initially provided by HTC. I also searched the forums and didn't see a walkthrough like this, so I'm putting on my flame-resistant suit.
I take no responsibility for what dissatisfaction or damages to your phone this causes. It may, in fact, set your house on fire or cause you to always lose at Yahtzee!
Credits:
Calk for pointing me in the right direction!!!
The brave XDA members who try these instructions and report their success or failure!!!
XDA for being a great source of information!!!
XDA members for thinking outside of the box!!!
Background: One of the main things I like about CyanogenMod is the fact that it shows when your signal is on 3G/1X. Calkulin's EViO ROM also has the ability to show 3G/1X. In a thread discussing the signal indicator in the status bar, Calk mentioned that the secret lies in HtcCdmaStatusBar.smali in the services.jar file. I've never really done any modifications before, besides trying to hack the framework-res.apk file (aimlessly) in this pursuit before I saw Calk's post.
This mod relies on the assumption that your ROM developer has not deleted any of the 1x files in the ROM. The developer CAN theme or otherwise change the images as long as the file names remain the same.
WARNING!! If you have already performed mods to your ROM (new status bar stuff, transparancies, etc), it's likely you already have a modified services.jar file. In this case, you NEED to use step 1b to pull the services.jar file from your phone. If you do not, it is quite likely that your pre-existing mods will either break, or your phone may bootloop, etc.
Now to the good stuff.
What you need to perform this mod:
1. A HTC Sense ROM ZIP file, or a phone running a Sense ROM -- AOSP already has the correct indicators.
2. The Java SDK -- So you can run Smali.
3. Smali/Baksmali -- So you can decompile/compile the classes.dex file.
4. Android SDK -- To push/pull files from your phone (adb only).
Ease Of Use Tip: Install Java SDK first, then Android SDK (if you need adb). Download the smali files (smali-1.2.6.jar and baksmali-1.2.6.jar at the time of this writing) to a new "working" folder where we can do our magic.
Instructions:
1a. [If you are using a base Sense ROM ZIP File]: Use 7zip/WinRAR/WinZip to open the ROM ZIP file. Navigate to system\framework and extract services.jar to your "working" folder.
1b. [If you want to grab your services.jar from your running phone]: Use adb to pull services.jar to your working folder. Example: adb pull /system/framework/services.jar C:\Working\services.jar To avoid problems, ONLY USE adb to pull/push services.jar. Phone apps may cause unknown issues.
2. Open services.jar in 7zip/WinRAR/WinZip (it's really a ZIP file) and extract classes.dex to your "working" folder.
3. Go to a command prompt in your "working" folder and run the following command: java -jar baksmali-1.2.6.jar -o output/ classes.dex
4. Browse to your "working" folder and see that there is now an "output" folder inside, with other subfolders. Browse to "output"\com\android\server\status.
5. Edit the file named HtcCdmaStatusBar.smali and look for the following text. The key is to search for "getDataNetworkIconList_1x" to make sure you don't change the wrong icons. The line in bold is the problem:
Code:
.method public static final getDataNetworkIconList_1x()[I
.registers 1
.prologue
.line 308
[B] sget-object v0, Lcom/android/server/status/HtcCdmaStatusBar;->sDataNetType_3g_cdma:[I[/B]
return-object v0
.end method
6. Change that line to say sget-object v0, Lcom/android/server/status/HtcCdmaStatusBar;->sDataNetType_1x:[I
7. Save HtcCdmaStatusBar.smali.
8. Go back to your command prompt and change to your "working" folder and issue the following command: java -jar smali-1.2.6.jar output/ -o newclasses.dex
9. If there weren't any errors, go ahead and rename the original classes.dex to classes.old and rename newclasses.dex to classes.dex.
10. Use 7zip/WinRAR/WinZip and drag your new classes.dex file into services.jar (replacing the old one).
11. Push the new file to your phone. Run the following commands from a command prompt in your "working" folder. NOTE: The last command will reboot your phone. To avoid problems, ONLY USE adb to pull/push services.jar. Phone apps may cause unknown issues.
a. adb remount
b. adb push services.jar /system/framework
c. adb shell reboot
The first boot after following step 11 may take a really long time. The phone likely needs to reprocess the dalvik cache because of the services.jar change. Please be patient while this occurs. Thanks snovvman for that tip.
For those of you on ELITE Series II ***BASE ONLY, NO MODS***, I am attaching an already updated services.jar file. It is currently named elite-services.zip. You must rename it to services.jar before you push the file, or rename it in your "adb push" command.
Please let me know whether or not this worked for you. I'd like to make a list of ROMs (with applicable mods) this works for or doesn't work for.
I will do whatever I can to help if you are struggling. If there's something you don't understand, please let me know. I can update the instructions if I accidentally wrote something wrong.

Updates
Well, somehow my little thread has made it to the front page. Thanks to anyone who voted it there!
Just another note -- we have at least one non-EVO ROM that has been successfully modified (IncROM). I'd love it if some other CDMA HTC phones got some love too. It's really silly of HTC and the carriers to keep the phones displaying 3G all the time. This mod should work with ANY CDMA HTC Sense phone.

Working/Broken ROMs
This section lists ROMs and versions of successful 1x mods. Please let me know if you have a successful mod and whether or not it is a stock ROM or a mod has already modified the services.jar file.
Make sure if you want to use any of the attached files that you rename the file either while you are pushing with adb or before you push with adb. Do not use Root Explorer or other phone apps to push/pull the services.jar as they may cause unknown issues.
ROMs by Name/Version/Other Mods (Alpha Order)
ELITE Series II by Konikub / ACS [Stock] - Modded by nivron [here].
ELITE Series III by Konikub / ACS [Stock] - Modded by nivron [here].
Eternal Prophecy by DrRyder - Already built-in to his ROM.
EViO 2 v1.8 by Calkulin - Already built-in to his ROM.
Fresh Evo v3.5.0.1 by Flipzmode [Stock] - Modded by Ph33zy [here]. JoeLithium mentions that this version also appears to work without issues on Sprint Lovers ROM.
IncROM v1.5 Beta by lllboredlll [Stock] - Modded by jonno95 [here]
MikFroYo v4.2 by aamikam [GPS Reticle Removed] - Modded by snovvman [here]
MikFroYo v4.5 (deodex) by aamikam [Stock] - Modded by debarron [here]
MikFroYo v4.6 B2 (odex) by aamikam [GPS Reticle / USB Debug Removed] - Modded by debarron [here]
VaelPak 3.2 RC 1 by vaelek [Stock] - Modded by kcbedo [here]

Every ROM I've ever used shows 1x when texting. Are you talking about when you're actually on a call, and the symbol goes away?

I'm referring to data signals on Sense ROMs. They all default to 3G even when you are on 1X. Calk's EViO being the only exception I know about.
CM and other AOSP ROMs also show the correct signal type.
clamknuckle said:
Every ROM I've ever used shows 1x when texting. Are you talking about when you're actually on a call, and the symbol goes away?
Click to expand...
Click to collapse

Ill have to try this out on the new mik rom. I haven't seen any sense rom showing 1x yet.
Sent from my EVO using Tapatalk

Cool, let me know if you get stuck.
fr0st420 said:
Ill have to try this out on the new mik rom. I haven't seen any sense rom showing 1x yet.
Sent from my EVO using Tapatalk
Click to expand...
Click to collapse

Thanks... this worked perfectly for me I think for Fresh's ROM. Haven't been in a 1X area yet, but sent myself a text message and briefly saw a 1X symbol pop up. Just wanted to point out that you had the spelling of "output" wrong in step 8, but other than that, the instructions were pretty easy!
I attached the file for Fresh 3.5.0.1 in case any other Fresh users want it- Just remove .zip from the file and push to your phone.

Awesome news! Thanks for the typo find. I will fix it when I get home. If you're okay with it, I will link it in my reserved post above (with credit to you, of course) and mark it "working". Do you know for sure if its a stock services.jar from Fresh, or do you have other mods that may have changed it?
Ph33zy said:
Thanks... this worked perfectly for me I think for Fresh's ROM. Haven't been in a 1X area yet, but sent myself a text message and briefly saw a 1X symbol pop up. Just wanted to point out that you had the spelling of "output" wrong in step 8, but other than that, the instructions were pretty easy!
I attached the file for Fresh 3.5.0.1 in case any other Fresh users want it- Just remove .zip from the file and push to your phone.
Click to expand...
Click to collapse
Sent from my EVO 4G via Tapatalk

nivron said:
Awesome news! Thanks for the typo find. I will fix it when I get home. If you're okay with it, I will link it in my reserved post above (with credit to you, of course) and mark it "working". Do you know for sure if its a stock services.jar from Fresh, or do you have other mods that may have changed it?
Sent from my EVO 4G via Tapatalk
Click to expand...
Click to collapse
It's a stock Fresh Jar...and of course it's okay.. you and Calk did all the work.. i just followed your instructions...

MikFroyo 4.2, looking good. I too, sent an SMS and saw 1x for a brief moment for the first time. Looking at HtcCdmaStatusBar.smali, it is so clear that the phone is told to display the 3G graphics when in 1x. Good find and thanks for sharing!
By the way, you might want to mention in the first post that first reboot will take a while. There is nothing wrong, just wait and let it finish. I'm gussing it is re-compiling or something...

Calk found it. I just wrote it up since I couldn't find it anywhere.
If you have a "stock" Mik services.jar with the fix, do you want to upload it so we can share it in the third post?
I didn't have a long time after my first reboot... It's probably related to a dalvik rebuild or something because of the jar changes. I'll make a note of it. Thanks!
snovvman said:
MikFroyo 4.2, looking good. I too, sent an SMS and saw 1x for a brief moment for the first time. Looking at HtcCdmaStatusBar.smali, it is so clear that the phone is told to display the 3G graphics when in 1x. Good find and thanks for sharing!
By the way, you might want to mention in the first post that first reboot will take a while. There is nothing wrong, just wait and let it finish. I'm gussing it is re-compiling or something...
Click to expand...
Click to collapse

nivron said:
Calk found it. I just wrote it up since I couldn't find it anywhere.
If you have a "stock" Mik services.jar with the fix, do you want to upload it so we can share it in the third post?
I didn't have a long time after my first reboot... It's probably related to a dalvik rebuild or something because of the jar changes. I'll make a note of it. Thanks!
Click to expand...
Click to collapse
My services.jar also has the GPS reticle removed. When the GPS is being used, the indicator will still come on. It simply removes the static GPS "enabled"/"diabled" indicator for more room on the notification bar. Thus, the attached file has the 1x and GPS mods, for anyone who wants that. It is again for MikFroyo 4.2.
The other item that might be important is to instruct people NOT to use Root Explorer to move/copy services.jar. Use ADB ONLY. I made that mistake before...
Cheers nivron.

I added a link to your post in the "working ROMs" section. I also put a note about Root Explorer in post #1 and #3. Thanks for testing this out.
snovvman said:
My services.jar also has the GPS reticle removed. When the GPS is being used, the indicator will still come on. It simply removes the static GPS "enabled"/"diabled" indicator for more room on the notification bar. Thus, the attached file has the 1x and GPS mods, for anyone who wants that. It is again for MikFroyo 4.2.
The other item that might be important is to instruct people NOT to use Root Explorer to move/copy services.jar. Use ADB ONLY. I made that mistake before...
Cheers nivron.
Click to expand...
Click to collapse

One more test to confirm that it works: I forced the phone into roam, and 1x popped right up, for the FIRST TIME!!!
Regardless of the discovery, I always appreciate someone taking the time to write up detailed information/instructions. I will try this later tonight on my Epic. I expect that it will also work there. Cool!!

Share the love over there if it works. I really think it will work with any HTC Sense phone.
snovvman said:
One more test to confirm that it works: I forced the phone into roam, and 1x popped right up, for the FIRST TIME!!!
Regardless of the discovery, I always appreciate someone taking the time to write up detailed information/instructions. I will try this later tonight on my Epic. I expect that it will also work there. Cool!!
Click to expand...
Click to collapse

snovvman said:
My services.jar also has the GPS reticle removed. When the GPS is being used, the indicator will still come on. It simply removes the static GPS "enabled"/"diabled" indicator for more room on the notification bar. Thus, the attached file has the 1x and GPS mods, for anyone who wants that. It is again for MikFroyo 4.2.
The other item that might be important is to instruct people NOT to use Root Explorer to move/copy services.jar. Use ADB ONLY. I made that mistake before...
Cheers nivron.
Click to expand...
Click to collapse
can you do the same thing for me for a stock sense rom without the 1x, please? i really wanna remove my gps reticule the proper way without simply deleting it.

I got the hack done in my rom, Eternal Prophecy. I don't exactly know how to force the icon to show to make sure that it works, but the hack has been done.
Here's the link to my rom: http://forum.xda-developers.com/showthread.php?t=959776

If you go into EPST with ##3282# and edit the EVDO section, you can change the mode from automatic to cdma only.
raiden89 said:
I got the hack done in my rom, Eternal Prophecy. I don't exactly know how to force the icon to show to make sure that it works, but the hack has been done.
Here's the link to my rom: http://forum.xda-developers.com/showthread.php?t=959776
Click to expand...
Click to collapse
Sent from my PC36100 using Tapatalk

nivron said:
If you go into EPST with ##3282# and edit the EVDO section, you can change the mode from automatic to cdma only.
Click to expand...
Click to collapse
Worked perfectly and confirmed.

Related

Ultimate One Click Theme Injector (Teaser 1/15) Screenies... Need some feed back!

New Ultimate Version
I'm looking for some feed back and interest in a gui version of this app, below are some screnshots. Currently I have written interfaces for Optipng, Apktool, ADK, Z7a and a buncha other theming tools. Think of this new version as a way to manage your themes and roms in a workspace like setting, where files will show up in a explorer like ui.
Please ask questions and make suggestions Please!
READ THIS FIRST:
UPDATE 9 PATCH TWEAKS:
This new version will port your favorite hdpi theme to an mdpi rom... yes 9 patch resizing. I want to be the first to say this is not 100% and it probably never will be, and over the next couple of days we can discuss this.
What it will do is resize every 9 patch in a rom and move it over to the mdpi theme. Yes this is the same method I used for all my hdpi ports.
What it might not get is the 9 patching data correctly, which means that it might get stretched incorrectly, most times you won't noticed but others it will be obvious. This will happen anywhere from 1% to 30% of the 9 patch pngs in a port, but all you will need to do is redraw them using the 9 patch draw tool in the adb folder.
Please respect other peoples work. If you port a theme using this and repost it don't just link back to the op... mention the author and give them props.
Also want to say I spent a looooong time trying to figure this out, and I tried many different ways, and I'm open to others suggestion on making this better
Oh and don't forget to to install Image Magick, its included and the HDPI to MDPI will not work without this.
This tool will take your favorite theme and inject it into your favorite rom... provided they are compatible with each other (might work if they aren't but thats for later). I did this cause alot of themers and people who like themes are always waiting for the nightly theme to get applied, well this will do it for you.
You can think of this as almost a theme installer.
INSTRUCTIONS by Norm12:
1. Download and extract.
1.5 Install image magick from the image magick folder... just run the installer and its ready to go. This is important the hdpi to mdpi will not work without it.
2. Copy both the theme and rom into the 1 click folder---the extracted one.
3. Open the 1-click folder and you should see your theme, rom, lib folder, and the injector script.
4. Doubleclick on the injector script----if you did everything correct it will open a cmd prompt
5. Enter the names of the rom and theme when asked...I did use the exact names and added ".zip" to the end.
5.5 Answer y if this is an hdpi to mdpi port otherwise n.
6. Hit enter and wait. When it is really done it will auto-close the cmd prompt. This may take 15 minutes.
7. Your newly themed rom will be in the same folder as the unthemed rom and theme zips. If it worked it should be slightly larger than the original rom. Enjoy
!!!IMPORTANT... BECAUSE 7ZIP SHOWS OUTPUT IGNORE THE "EVERYTHING IS OK" LET THE SCRIPT FINISH WHEN ITS DONE IT WILL CLOSE ITSELF IF YOU DOUBLE CLICKED IT OR IT WILL RETURN TO COMMAND PROMPT!!!
Ignore any errors your seeing while it runs, this is normal like before let it run completely through till it closes out.
Run time could be up too 20 minutes (60 with HDPI to MDPI) on a big theme/rom, but faster that waiting!
You must now install Image Magick if you would like to use the hdpi to mdpi resizing!
ISSUES:
There also seems to be an issue with the gallery3d.apk and the differences in the mdpi and hdpi version. For now remove this from the theme your porting otherwise it won't come out right.
Update 4:
HDPI to MDPI porting!!!!!
Update 3:
Removed verbose but added optopng verbose just let it run. It works but you have to let it finish, the cmd window will close it self.
Update 2:
Added verbose output so that you guys will know to close it out before its done...even tho 7zip says everything is ok... just let it do its thing.
Update 1:
Had the optimization stuff commented out... sorry its back on.
Script will clean up now after it finishes.
JAVA CLASSPATH:
Its needed for the signer to work properly goto a command prompt and type in java -version. if you get and error back java is not in your classpath and needs to be.
just right click on my computer, then goto properties, then click on the advanced tab, at the bottom click on the "Environment Variable" button.
Now click on the new button... the one on the bottom for system variable and put in this
variable name: JAVA_HOME
variable value: C:\<path-to-where-java-is>
Now click ok and select the path system variable and then click edit. IMPORTANT only append to the end of the value this... ;%JAVA_HOME%\bin
then click ok and ok out of all those windows and open a new command prompt and type java -version you should get no error if you do your path to java was wrong follow the steps above again and make sure the path is correct.
WHAT THIS WON'T DO:
It won't port over xml or smali edits.
It wont port over what it can't find... so if your theme has a facebook widget or something but the rom does not then it will ignore that.
It will not port over fonts or anything other than the framework-res.apk and all the themes apks in the system/app folder. If this is popular Maybe other stuff can get included.
WHAT THIS WILL DO:
Shrink a 9 patch from HDPI size to MDPI size.
Push over all the themes pngs from the apk with it to the roms matching apk.
Optimize every png in the theme you are porting over.
Zip align all the apks in your newly themed rom.
Sign the newly themed rom.
Give me feed back.
I might make this easier and make the injector steal the apks for injection right from your phone and then inject and make a flashable to put right back on... tell me what you think.
New HDPI to MDPI version (v2) with 9 patch porting download here
Screenies from Ultimate One Click Theme Injector
This is great, going to give it a try! Want to use steel my elegance on AOSP mod!
pwachleman said:
This is great, going to give it a try! Want to use steel my elegance on AOSP mod!
Click to expand...
Click to collapse
Nice this is what I made it for... so sorry but I just noticed that I forgot to attach the program. Its up now.
What does yours do that this one doesn't do? I'm just curious because this one will re-size the png's.
ehac1680 said:
What does yours do that this one doesn't do?
Click to expand...
Click to collapse
well it optos and zip aligns annnd it signs all in one step. while I have looked at that one a while back it has been buggy (it might not now haven't really checked).
So while this isn't necessarily a porter per say. its one step and alot easier to use than that, and it does the extras like zip aligning all the apks, optos and signing. Your finished product is ready to be flashed.
Its your choice!
Edit:
While I do have a technique for doing hdpi to mdpi even the 9ptach, its buggy and reallies on assumptions.
I know for a fact that his does not work (or barely works just read the thread) for hdpi to mdpi and is over all very tricky to use. While mine does not include the hdpi to mdpi I might include that later to my one click suite of tools. But I can tell you 9 ptach porting is likely impossible at best mine will port a 9patch but in about 5-15% of the time is gets bad patch data because of the method I use to port it.... witch I can tell you is the only way you can do it.
Mine will also work across roms and if you guys want I'll put the theme porting code in even the 9patch resizing... so you guys can se my super secret method of porting 9patch pngs.
ehac1680 said:
What does yours do that this one doesn't do? I'm just curious because this one will re-size the png's.
Click to expand...
Click to collapse
So wait is that what you used to do Black and Gold?
ASimmons said:
So wait is that what you used to do Black and Gold?
Click to expand...
Click to collapse
No, I didn't find this until after I ported Black and Gold. Would of been very helpful if I had used it. This doesn't re-size the .9's but it does port them over. I have been using it to put theimpailers changes into the nightly though.
Well try it out and tell me if you think his is easier to use... i made it specially for making nightlies easier to theme.
Does his zip align and optimize... does it produce a final flashable product? All mine needs are the 2 zips (theme and rom names) and the rest is done.
Sent from my PC36100 using XDA App
ASimmons said:
Well try it out and tell me if you think his is easier to use... i made it specially for making nightlies easier to theme.
Does his zip align and optimize... does it produce a final flashable product? All mine needs are the 2 zips (theme and rom names) and the rest is done.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I'm definitely going to try it. It sounds like it will make updates to the nightlies easier, if there ever is a successful one again
Sent from my HERO200 using XDA App
well tried to put Steel My Elegance with darchdroid 2.8.. it did everything with no errors.. but when after I flashed the zip. it just stayed at the htc boot screen...
spiritcrusher33 said:
well tried to put Steel My Elegance with darchdroid 2.8.. it did everything with no errors.. but when after I flashed the zip. it just stayed at the htc boot screen...
Click to expand...
Click to collapse
hold on let me try and see what happened give me a few minutes.
Edit:
So it never got to bootanimation?
Were you going to this rom from another?
How long did you wait for it at the splash screen.
The reason I ask is that this will only push over pngs and shouldn't in anyway affect the rom, save for the new pngs. The only thing I can think of is that you might want to wipe dalvik and data before if your coming from another rom.
I let it sit for bout 10 mins.. etc. then just nand back.
im currently running dd 2.8.
so after it compiled the new theme zip.. i just copied it to my sd card and flashed it..
unless im missing something etc.
So basicly u take the theme.zip and the rom.zip.. tell your script the locations. etc. and then it does its thing..
then take the theme.zip ( before renaming it ) and flash that. correct?
Im gonna try another theme and see what happens...
spiritcrusher33 said:
I let it sit for bout 10 mins.. etc. then just nand back.
im currently running dd 2.8.
so after it compiled the new theme zip.. i just copied it to my sd card and flashed it..
unless im missing something etc.
So basicly u take the theme.zip and the rom.zip.. tell your script the locations. etc. and then it does its thing..
then take the theme.zip ( before renaming it ) and flash that. correct?
Click to expand...
Click to collapse
Ok not sure if you got it backwards but just in case. The script will take the theme and the rom and push the theme into the rom. the final output will be the rom with this appended to the front of the name... themed-darchdroid-v28.zip and that you can flash to your system. You don't need to rename or anything just put themed-darchdroid-v28.zip on your sdcard and flash it to your system.
I can check when I get home and see what happens when I flash it since I don't have my hero on me.
here is whats in the folder once its complete..
im at work so.. dont have too much time to mess with it..lol
spiritcrusher33 said:
here is whats in the folder once its complete..
im at work so.. dont have too much time to mess with it..lol
Click to expand...
Click to collapse
oh it seems to be failing then, since the theme.zip and rom.zip are temporary and used by the script to make changes on.
Try this, copy darchdroid-v28.zip into the folder and sme6_signed.zip into the folder then run the script and give those names when asked for them.
The final output should be "themed-darchdroid-v28.zip" I just ran it and the resulting rom looks fine... I can test it of course but will try when I get home.
ok will try that. thanks man.. brb..
All I get are the theme.zip and rom.zip, never outputs the final product. Not sure what I am doing wrong.
jtpterp said:
All I get are the theme.zip and rom.zip, never outputs the final product. Not sure what I am doing wrong.
Click to expand...
Click to collapse
hmm not sure why... been using this script for months now. Try this
1. copy your rom into the folder.
2. copy your theme into the folder.
3. tell the script the names (i.e. my-theme.zip, cm6.zip)
4. let script run.
Final output should be themed-<nameofrom>.zip this is your flashable.
How long after the "everything is ok" message appears does it take to complete?
Maybe i'm just not be patient enough
tried your method.. and like the above.
theme.zip and rom.zip, never outputs the final product
im stumped....lol maybe I will try on my pc at home.

[Q] Icon location and question to themers about framework-res.apk

Well I've started theming myself since I wanted a Windows Phone 7 Theme and learning as I go along but I've come across a few hurdles.
1. How do I push framework-res.apk without losing configurations like my email/gmail set up or wallpaper being back to default?
2. Where do I find the icons for the top right voice search and search buttons? I've found a couple that look identical within the files but when I change them nothing happens.
3. Any good guides or tools on how to make a flashable zip? I used to just use a script to make an updater script but it doesn't work anymore since they changed it to edify. I'm a lowly designer and can't figure out how to make a working updater script.
Thanks in advance.
Bump to the top.
and another bump ):
hope this helps...
seshmaru said:
Well I've started theming myself since I wanted a Windows Phone 7 Theme and learning as I go along but I've come across a few hurdles.
1. How do I push framework-res.apk without losing configurations like my email/gmail set up or wallpaper being back to default?
2. Where do I find the icons for the top right voice search and search buttons? I've found a couple that look identical within the files but when I change them nothing happens.
3. Any good guides or tools on how to make a flashable zip? I used to just use a script to make an updater script but it doesn't work anymore since they changed it to edify. I'm a lowly designer and can't figure out how to make a working updater script.
Thanks in advance.
Click to expand...
Click to collapse
1. grab an old zip for a system/framework file
toss the previous file(s)
toss in your new edited framework res
resign using this and this
flash via recovery
2. let you know when i get a chance to look.
3. grab apk manager.
MagnusRagnarok said:
1. grab an old zip for a system/framework file
toss the previous file(s)
toss in your new edited framework res
resign using this and this
flash via recovery
2. let you know when i get a chance to look.
3. grab apk manager.
Click to expand...
Click to collapse
1 is as simple as that? Sweet.
Also I have apk manager and Update zip packer but they use the old updater script ): But if I can simply use other peoples update script and replace their files with mine then that shouldn't be a problem, thanks for the help.

[ATTN][DEV] VillainROM and Partners Presents VillainTheme System 0.3.5 [THEMERS ONLY]

VillainTheme System 0.3.5 for the TF101
http://www.villainrom.co.uk/forum/showthread.php/4971-About-VillainTheme-System
pulser_g2 said:
OK, so I think it's time to explain what this is about. It's born from the idea that came about on IRC, for a way to make a theme once for a ROM, rather than have to adjust it for each incremental update for a given ROM or ROMs.
As a user, you don't need to know much - just flash this zip like a regular zip, and you'll get your theme running. But you should be able to apply themes to any device, ROM, and version of the ROM, without it causing adverse effects. That means less time spent by themers making the original theme, and less time spent modifying it constantly for new versions of ROMs.
As a themer? Well, here is the information:
Inside the zip, in the vrtheme folder, you can create a folder called "system" and "data". The former is required, the latter is not required unless you wanted to theme a data app (strongly not recommended, unless you know the app will be there on every phone)
Inside the system or data folder, create a subfolder "app", and in these, make subfolders named EXACTLY after the APK name. For example, to theme the Browser, you need a folder called "Browser.apk". It must be correctly capitalised.
Within there, place the files you require for your theme, in the relevant locations. So most PNGs will be in res/drawable-hdpi/. You can put in xml files too (those which are not in resources.arsc), if you compile them via apktool, and extract them with a zip tool.
In the vrtheme folder, as well as system and data folder, one called "raw" can exist. Within here, you can place files to be copied verbatim to the ROM (for example, modified JAR files). Note that using this may make the theme device dependent (read WILL make it device dependent)
And that's about it.
Features
Will modify APKs in a ROM, without changing signatures, and can be used on any ROM where the filenames of themed files is the same.
Should not need updated between versions of a ROM
Zipaligns all APKs before installation
Stores a backup of all files being modified in /cache/vrtheme-backup/
Requires no coding abilities or editing of files - just drag and drop
Can copy "raw" files, though at risk of not working on other devices (well, let's face it, it won't work on likely a slightly different ROM, so this feature is not recommended or encouraged)
Credits
Doctorcete for the original idea in a discussion on IRC
Stericson for the original idea of metamorph. While totally different, it's a shared goal to separate themes from ROMs
Matt from the Metamorph team, for the zip binary compiled for Android
Seshy, for testing
EULA
Click to expand...
Click to collapse
Nothing evil or complicated - just a few little things. You should not charge for access to this code. That includes a zip containing this, or a derivative of it. So please don't sell themes using it. That's not particularly cool. If you want to use it commercially for some reason, get in touch with us.
If you spot a bug or error, and find a fix, please reply in this thread and let us know, or post the changes you made. If you're going to distribute the changed version, it is expected that you share the change made by contacting us, or posting it here.
Finally, don't be a douche - don't rip this off or call it your own, and leave all headers and comments identifying the origin of the code in place. Don't rename this to match your ROM or "team" name - it's not cool, and it's not yours to go and adjust. I chose to make this a readable "plain" script, but can easily obfuscate and encrypt it if you want to be a douche.
Copyright VillainROM (2011). All rights reserved
Click to expand...
Click to collapse
Now this project was created around the SGS2, and as such it did not work on the TF101 at first, however me and Pulser have spent the day looking for solutions and finally got it working for the TF101.
IMPORTANT: DO NOT USE THE SGS2 TEMPLATE FROM THE VILLAINROM WEBSITE.
Download:
0.3.6 experimental
Clean template without theme included: http://www.mediafire.com/?5bs9srz88i4wdq4
Asus Eee Pad TF101 VRTheme template: http://www.mediafire.com/?5gyr1g0xgd05t70
Note: for now the template is my windows phone 7 theme since it shows you where everything goes really well
If you find any issues or bugs PM me with as much info as you can and if possible a recovery log (found in /cache/recovery/) so I can try and find a solution to your problem.
Changelog
0.3.5
Fixed ASCII art in updater script.
Minor clean up of installtheme.sh
Added preview.png to template.
0.3.3
Modified installtheme.sh as it was giving possible problems.
0.3.2
Fixed a problem with raw folder copying. Put contents of /raw in /system now on the root of the .zip
Fixed some status 0 errors.
Currently known bugs:
You may have issues trying to flash framework files and app files in the same .zip (code 0 error).
Temporary solution: Flash the framework folder and the app folder in seperate .zip files.
hello,
is that you can see screen pls ?
And this theme is compatible with any rom ?
wallah said:
hello,
is that you can see screen pls ?
And this theme is compatible with any rom ?
Click to expand...
Click to collapse
If you had taken 3 seconds to read the post you would know it's not a theme.
This is for themers only.
yes I have read and I have not really understood ...
sorry I disturb
For any themers who want a better example of how it works, I just updated my own theme to use this method:
http://forum.xda-developers.com/showthread.php?t=1120525
Hey seshmaru,
This is definitely a great method! As soon as I get a chance, I will experiment with adapting PCB Blue to use the VillainROM theming method (with leaving all credit intact of course )
If someone wants to uninstall any themes applied this way, what would be the best method though? Just reflash their ROM?...(is what I'm thinking).
Thanks for working on this with the Villain Team, and if there's anything I can do (help/test/etc.), please don't hesitate to PM me.
Thanks again, and cheers for now!
scar45 said:
Hey seshmaru,
This is definitely a great method! As soon as I get a chance, I will experiment with adapting PCB Blue to use the VillainROM theming method (with leaving all credit intact of course )
If someone wants to uninstall any themes applied this way, what would be the best method though? Just reflash their ROM?...(is what I'm thinking).
Thanks for working on this with the Villain Team, and if there's anything I can do (help/test/etc.), please don't hesitate to PM me.
Thanks again, and cheers for now!
Click to expand...
Click to collapse
Well seeing as the current .zip makes a backup of the original files, in the future there will probably be a script made to restore the back up.
Till then the easiest way is to just reflash your ROM without a wipe or to reflash whatever theme you had before.
If you want to help with testing (constantly fixing things since pulser is away so it's my task to keep the SGS2 template and TF101 template as identical as possible) or have any questions you can pop by the VillainROM IRC since I'm generally in there.
Hmm... I can't quite figure out why, but it is not working right for me.. My framework-res.apk file is exactly the same after flashing....
I managed to do some debugging, and i found out that the file file is actually created, but it doesn't copy it over for some reason...
within the VRTheme folder (which i prevented from being deleted so i could check out the contents) the framework-res.apk file is in apply/system/framework/framework-res.apk...
So i tried editing the install script, all the way down at the bottom, and i changed the code from from cd /cache/vrtheme/apply/system/framework/aligned/ to cd /cache/vrtheme/apply/system/framework/ and it worked!
All i can guess is that the file isn't getting aligned for some reason, so that folder/file is never created, but the script is still calling for it...
Can you please let me know if my fix is acceptable, or if there is something off with it that can be fixed and would allow it to be aligned therefore creating the folder and the file?
-trailblazer101
I just want to confirm this. I made some xml edits for the framework, finsky, and gmail were I change the color of the text. Those are in the values folder in the colors.xml file. After you compile the apk you cannot see that folder so I am guessing that you cannot use this to flash that xml correct?
went toflash the theme i get error 0
MetAloid said:
went toflash the theme i get error 0
Click to expand...
Click to collapse
just try the new version now i get error 6
MetAloid said:
just try the new version now i get error 6
Click to expand...
Click to collapse
I got error 6 as well.
Error 6
I'm gettting same error ^ as cescribed by others.
I have been wanting to get into the Honeycomb theme arena and this looks like a good place to start, thanks for your work and I hope I can figure it out. Would it be ok to drop by IRC if I have any questions?
Hi all, just looking for confirmation that the VillainTheme flasher is able to apply .XML files (specifically in framework-res/drawable)?
Thanks in advance!
It should be able to, although it's had some issues at times.
Anyone getting status 6, try this new updated template: http://www.mediafire.com/?5bs9srz88i4wdq4
seshmaru said:
Anyone getting status 6, try this new updated template: http://www.mediafire.com/?5bs9srz88i4wdq4
Click to expand...
Click to collapse
That 0.3.6 template works for me
Regards, folgui.
I'm having a problem with Recovery giving "E:Error in... / Error 0" with my theme for the TF101 below.
Can someone please test it and report their findings? Note that you should do a Nandroid backup first!
Thanks in advance...
** EDIT ** - Found the problem and fixed it...sorry for the post!

[MOD] Remove Recent Apps from Notification Bar

I haven't seen this around, so I went ahead and made this for myself, and I decided to share it with anyone who wants it...
I hate the Recent Apps section of the Notification Bar Dropdown... so I removed it.
I wanted the Recent Apps to be removed without having to flash a complete ROM or use some theme.
1. Flash the attached file in CW Recovery
2. Clear Cache and Dalvik Cache
3. Reboot
4. Profit (It will remove the recent apps section)
There are no side-effects that I have noticed.
It was made from the SystemUI.apk from the stock US 2.3.4 Build, and should work on any 2.3.4 build for the Sensation.
There are no other changes in this from stock 2.3.4 besides removing the Recent Apps.
It will work alongside the Battery Mods I made with no issues... One mod does not affect the other.
Let me know if you have any issues.
As always, I'm not responsible if your phone breaks beyond repair and you lose all your data.
Thanks to j4n87 for the smali change required.
Work for me on EagleBlood rom.
It would be helpful.
NoRecents - installed with tiwili - take it, work it, leave it
Hi,
thanks for this mod. As always all actual modifications in existing SystemUI.apk are changed by this installation.
I took both of your modified files in my tiwili-installation method. So all other existing files in SystemUI.apk will rest in peace.
I publish it here because it´s your work, your files; It took 5 minutes for me, that´s nothing to be proud of...
Greets
idephili
So pretty much this needs root?
Sent from my HTC Sensation 4G using XDA App
thevietmonk said:
So pretty much this needs root?
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
Absolutely. You can't push SystemUI.apk to the apps directory without root.
Thanks for this...finally I can remove it...just a small issue...where I am, there is no 4g network yet...however it is now showing 4g icon on the notification bar, anyway I can change it to 3g icon?
Sent from my HTC Sensation Z710e using xda premium
This will also remove the extended quick settings I had installed, flashed the EQS again though, no prob just thought I'd let ya know
Edit: Flashing EQS again, makes the recent apps come back..
ARHD 3.1.1
bigg8k said:
This will also remove the extended quick settings I had installed, flashed the EQS again though, no prob just thought I'd let ya know
Edit: Flashing EQS again, makes the recent apps come back..
ARHD 3.1.1
Click to expand...
Click to collapse
That's because both mods modify the same system file. You can only choose one or the other unless the EQS Dec decides to put this in his mod.
sorry.
No worries, thanks for the effort anyways
This does not work on 3.5 SENSE but thank you for your work
EQS-Mod + Recent App
Hey
What do i do if i want the Recent App, with EQS-Mod ?
thanks...... I'll try this app
If any of you want to do it youself.....
1.Pull Systemui.apk from system/app
2.Decompile SystemUI.apk
3.navigate to com/android/systemui/statusbar
3.open up StatusBarFlag.smali using notepad or notepad++ (recommended)
4.Around line 89 (using notepad++) you should see this:
Code:
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
5. Change v0 to v2.
6. Recompile Systemui.apk and push via adb to system/app or copy to system/app using root explorer.
**NOTE**If using root explorer make sure to set permissions as Owner = Read/Write Group = Read Others = Read. A reboot will be required after pasting SystemUI.apk before you can change persmissions.
7. Reboot and your done!
same outcome for me with p3d had to reflash to get extended settings
I tried this but it appears to remove the entire header bar. That is, there was no pull down bar at all pushing it and rebooting. Any suggestions?
mfrost66 said:
I tried this but it appears to remove the entire header bar. That is, there was no pull down bar at all pushing it and rebooting. Any suggestions?
Click to expand...
Click to collapse
Sounds like you have decompiled SystemUI.apk incorrectly and then not signed it before pushing it. What method did you use for decompiling the APK?
I'm having some trouble with decompiling the SystemUI.apk. I get a bunch of "Invalid config flags detected" error when I try to load the com.htc.resources.apk framework; when I try to recompile I get a handful of other errors (related I'd imagine) and it doesn't recompile. Googled around a bit, found similar problems but no answers - any advice?
jimhart3000 said:
I'm having some trouble with decompiling the SystemUI.apk. I get a bunch of "Invalid config flags detected" error when I try to load the com.htc.resources.apk framework; when I try to recompile I get a handful of other errors (related I'd imagine) and it doesn't recompile. Googled around a bit, found similar problems but no answers - any advice?
Click to expand...
Click to collapse
How are you decompiling the apk...??
Didn't work. Edited what was suppose to be edited and the recent apps still show up....

[MOD/TUT]CRT Off Animation & SIP Over LTE/HSPA

I know there is already a CRT Off Animation flashable zip in this section, but if you already have a themed framework then it can be a pain in the a$$ trying to flash it over whatever you have. As for SIP over LTE/HSPA, I've seen a lot of requests from people on how to enable it, so here it is. I'm also making this kind of for myself, since I always search for tutorials on how to change things, but always just end up finding .zip files, which can get quite annoying if I only want to change one thing. In any case, here we go...
Prerequisites
Superuser (Duh)
Apk Manager by Daneshm90
ADB + Understanding How To Pull/Push Files (Need help? Read this!)
Patience
A Good Texteditor (I recommend Notepad++)
Know why "sudo rm -rf /" is always a bad idea
Steps To Follow
Pull your framework-res.apk file from your system folder
Place said framework-res.apk file into the "place-here-for-modding" folder included in the Apk-Manager Folder
Run the Script.bat file also included in the Apk-Manager Folder.
Run option 9 in the newly opened window (Don't use the dependency option)
Go back into the Apk-Manager Folder; there should now be a folder dubbed "projects".
Head into that folder and open framework-res/res/values/bools.xml with that good texteditor you're supposed to have if you read the prerequisites.
Don't be intimidated by some of the code you see. Ignore everything else in the file and head straight for/search "config_animateScreenLights". This controls the state of the CRT Off Animation.
This step may sound a little counter-intuitive, but in order to get the CRT Off to activate correctly, you need to set the boolean to "False".
Now that CRT Off Animation taken care off, we can move on to enabling SIP over HSPA/LTE. Go to/search for "config_sip_wifi_only" and set this boolean to false as well.
There are actually other things you can enable/disable in the bools.xml file, although I would not recommend poking around unless you know what you're doing. Example: Enable Menu Unlock by setting that specific bool (not entirely sure of its name) to true.
Save the bools.xml file, and return back to the main menu of Apk Manager.
Select option 11 and say y (system app) and then n (no need to retain anything)
If you head back to your "place-apk-here-for-modding" folder, there should be a new file named unsignedframwork-res.apk. Open this (DO NOT EXTRACT THE FILES) using a tool such as winrar or 7zip, and delete both the META-INF folder and the AndroidManifest.xml
Copy the META-INF and the AndroidManifest.xml from the original framework-res.apk and place it in the new unsignedframework-res.apk. Remember to not extract the files, just copy/paste.
Rename unsignedframework-res.apk to framework-res.apk and push that back to the system folder on your phone.
Reboot
Enjoy Your CRT Off Animation + SIP Over HSPA/LTE!
FAQ
What is SIP? SIP stands for Session Initiation Protocol, and is used for controlling communications such as Voice over Internet Protocol, or Video over Internet Protocol. It's used in a lot of applications on the market, a big one being Skype. If you want to learn more, go here, here, or here.
Why would I need SIP over HSPA/LTE? Because I told you so. No, but seriously, this will allow you to use all kinds of SIP applications found on the market not only on wifi networks, but also on the go.
Can you haz build me a flashable zip? The whole point of this thing is to teach people how to mod their own already modded files without having to replace everything. But yeah, if you PM me I'll probably do it.
IAQ
Why is jomeister15 so amazing? Sorry, this question is not infrequently asked.
nice tutorial, it took me a while to find this information a few days ago, good to know someone has gathered it and made it easy to find.
very nice i know i did that while back ago and i was like ughhh ** also there is a post for crt animation on you should include that too. i know id like to get it on my theme but im working through it and it blows my head into 2 .. but moderator please pin this thread or make it a sticky right @ top with cherry.
Awesome tutorial! Been wanting to add the CRT off animation to my ROM for a while now, just haven't gotten around to it. And I will definitely be following your guide. However, can someone please explain to me what SIP is? I've seen a couple of threads about it but none of them have actually explained what it is. Thanks!
Sent from my SAMSUNG-SGH-I727 using XDA App
plwalsh88 said:
Awesome tutorial! Been wanting to add the CRT off animation to my ROM for a while now, just haven't gotten around to it. And I will definitely be following your guide. However, can someone please explain to me what SIP is? I've seen a couple of threads about it but none of them have actually explained what it is. Thanks!
Sent from my SAMSUNG-SGH-I727 using XDA App
Click to expand...
Click to collapse
Just updated OP with FAQ section that includes explanation of SIP if you want to take a look.
i am getting FC. Not working. After changing the file size reduced to around 5mb which before it is 7mb.
gkrananth said:
i am getting FC. Not working. After changing the file size reduced to around 5mb which before it is 7mb.
Click to expand...
Click to collapse
What app in specific are you getting FC with? It may just be in issue with fixing permissions. Try that first, and if that doesn't work, re-try the procedure but do not carry the android manifest and meta-inf over. May I also ask what rom you're on? Every dev's framework is different.
oh CRT
hay i did it.. no FC no ERRORS or no CRT off animation.. phone is working normally .. (i made a zip also)
im using samsung skyrocket with embryo 6.1 plz help me to fix this(as above mentioned my framework-res also decreased like 2mb)
sakunakia said:
hay i did it.. no FC no ERRORS or no CRT off animation.. phone is working normally .. (i made a zip also)
im using samsung skyrocket with embryo 6.1 plz help me to fix this(as above mentioned my framework-res also decreased like 2mb)
Click to expand...
Click to collapse
Dude you just necro'd a thread that's almost a year since last post and half these guys aren't even around anymore.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Originally Posted by sakunakia
hay i did it.. no FC no ERRORS or no CRT off animation.. phone is working normally .. (i made a zip also)
im using samsung skyrocket with embryo 6.1 plz help me to fix this(as above mentioned my framework-res also decreased like 2mb)
Click to expand...
Click to collapse
Dude you just necro'd a thread that's almost a year since last post and half these guys aren't even around anymore.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
omg this
Sent from my SGH-T999 using xda premium

Categories

Resources