[Request] H+ Icon on JB, need some help - Samsung Galaxy Nexus

Hi xda devs,
there was a Thread by BraydenJames that modded a H+ Icon in AOKP. As a T-Mobile user, I find that very useful. All it did was changing case 15 (HSPAP) in statusbar/policy/NetworkController.java/updateDataNetType() to use the 4G Icon.
Problem is, I'm using bigxie's stock JB ROM now and there is no such mod available. (At least, not to my knowledge)
I tried modding it in myself, but got stuck. Windows is bad plattform for developing. Still, I managed to extract the relevant part of the source with dex2jar and edited the 4G Icon into an H+ icon. All left to do would be applying the diff and compiling the source back in an apk.
I zipped the JB SystemUI.apk, the diff and the changed png files and uploaded them to Dropbox:
SystemUI-HplusIcon.zip
I know I'm asking a lot, but I would be very grateful if someone could spend a moment of his time to decompile the apk, apply the changes and compile it
Thanks
ReggX
PS: If I could install it in CWM per update.zip, that would be awesome.

Related

Keeping custom theme when changing roms

I have changed the battery symbol, soft keys, and keyboard all using different flashable zip files. I modified one to include the battery symbols and soft keys and have a seperate one for the keyboard. My first question is the file I use has the systemui.apk in it is there a way to incorporate the keyboard in the file as well so I can flash one zip to get all my custom settings? Second question is im debating going from AOKP M3 to Build 23 being the flashable zip is structured for M3 will I have to find a new one for Build 23? Last question is being if I cant use the same zip as I use for M3 can I just pull the systemui from build 23 and put my files in that systemui and flash it using the same zip file. Thanks for any help its greatly appreciated im new to customizing my own stuff so trying to learn as I go.
jfafard81 said:
I have changed the battery symbol, soft keys, and keyboard all using different flashable zip files. I modified one to include the battery symbols and soft keys and have a seperate one for the keyboard. My first question is the file I use has the systemui.apk in it is there a way to incorporate the keyboard in the file as well so I can flash one zip to get all my custom settings? Second question is im debating going from AOKP M3 to Build 23 being the flashable zip is structured for M3 will I have to find a new one for Build 23? Last question is being if I cant use the same zip as I use for M3 can I just pull the systemui from build 23 and put my files in that systemui and flash it using the same zip file. Thanks for any help its greatly appreciated im new to customizing my own stuff so trying to learn as I go.
Click to expand...
Click to collapse
Not sure about this post as a whole haha. Little confusing at times. What I can answer though, is that you can try flashing the m3 mods to your aokp23. If that doesn't work, then yes you can open up the system.apk and take files out of your m3 and replace them in your b23 systemUI.
Are you using flash able zips as in you are going in to recovery and flashing them, or are they zips you run through metamorph or zipthemer?
The zip im using goes through recovery its on I originally just used to change the battery symbol. Thanks for the reply I guess I put a bunch in there I can see now how it can be a bit confusing lol.
Look into making it a metamorph. It's not that hard, that way your mods work on any ROM and not just the original.
The basic idea of metamorph is that it just contains the resources for your mod (ie just the battery pngs) and it will copy the resources to where they need to go.
Sent from my Galaxy Nexus using xda premium

[Q] Where do you start? THEMING

I have been reading a lot of posts about theming and people are talking about decompile apk's and where different images are located within the system and apps, however, I am somewhat confused as to where to start and what they mean. Could anyone shed some light and maybe get me started in the right spot. Trying to learn how to create my own themed phone.
I should mention I am currently running a custom rom, rooted, cwm, and have the basics down.
I think ICS still has issues with the apktool to decompile, need an older version to compile and newer to decompile. So its tricky. But you just pull your systemUI apk for example, make changes and flash it back. Or the real way is just mod the source code directly and compile. Search the apktool thread.

[Q] How to theme resources.apk?

Does any one know how to theme the htc resources with out crashing? im theming MikG 3.11, but every time i theme the resources, it crashes on the weather widget. any help?
Hmmmm.
What are you using to theme it? Have you extracted the resources and right clicked an image and tried using a paint shop program then simply painting over the images? Thats what I am doing on CM7 and did some cool stuff with the widgets and MMS on the latest build (such as blach background and neon edges). What OS are you using? I'll try it since I wanna theme sense now. I'm too new to XDA to post my new roms. I'm focusing on stability and HD modifications but like your idea
alexthesniper21 said:
Does any one know how to theme the htc resources with out crashing? im theming MikG 3.11, but every time i theme the resources, it crashes on the weather widget. any help?
Click to expand...
Click to collapse
First thing you will need is an apktool then folow the directions to install the proper framework. Then use paint, photoshop, or gimp to make your changes. Be careful of anything that ends in .9 as these are special pngs and need to be handled differently. I used to theme Sense but stopped due to having to rewrite to many files for the changes I needed and have moved on the AOSP based roms which are much more straight forward.
Thank blaz1nr for this, all info he passed on to me, Hope it helps you,,,Later,,,
When you start working on transparency. The status bar/footer should be 20% less transparent than the background. Header starts at 10% less than background. Pop ups are where is gets a little harder. They must be opposite each other (ie) black/white text or white/black text. Black looks better but is more of pain. Make sure to keep pop ups slightly transparent, you should be able to see through them a little. Once you have the first one done then you be able to see what % to change and where,but these are good starting points. Status bar/header/footer should be the 3 darkest. It should look something like this. Status/[email protected] 60%, [email protected]%,[email protected]% pop [email protected] to 80%. So 100% is solid as you move down towards 10% it gets more see through.
PART 1:
Im going to to try to sqeeze this down as much as possible.Basically I'm gonna give you, the how to do stuff.Then I'm going to give the short cut's to figuring out what to do.First your gonna need some stuff.
1 Java EE jdk, jre
2 Apk tool
3 Android Sdk
4 Eclipse IDE
5 7 Zip
6 M10 editor
7 Cygwin
8 Android Kitchen
9 Notepad++
10 Alot of patience
Listed above is everything needed to build or theme a rom.
You wont need android kitchen or cygwin,if you just want to theme.You will need everything else.
This is a easy way to learn how to set up android kitchen so you can build your own roms from unrooted stock roms----> http://www.androidmerom.com/2012/01/11/4/
How to dev correctly----> http://forum.xda-developers.com/show....php?t=1273044
Porting things like clocks or widgets---> http://forum.xda-developers.com/show....php?t=1222746
Adding transparancies to status bar(its in the galaxY s forum but this is what you do) http://forum.xda-developers.com/show....php?t=1327565
Learn how to recompile and decompile apk's first,Since this is a sense rom, you need 3 things to do this,SystemUi.apk,its in system/apps,
framework-res.apk & com.htc.resources.apk, they are in system/frameworks
PART2
Ok so now I'm gonna give you a bunch of info that will speed up your learning of what to do.
Since this is a sense rom, When you decompile SystemUi.apk it needs dependencies.These are the two apk's you got from system/frameworks.Learn how to use apk tool there's guides everywhere when its time to add dependencies you need to use both of these commands in cmd. apktool if framework-res.apk,apktool if com.htc.resources.apk, i cant stress enough that you first learn building apk's and how to use apk tools. once you know how apk tools works the commands earlier will make sense.Learn how to push your new apk to your phone with sdk.
A system app cannot just be dropped in the system. Unless your rom zip is open and your building it. Here come's the good stuff, when your trying to do something like move you clock to the center of the status bar.What you can do is decompile the apk's from earlier out of a rom that has a feature you like.Open it and find what files you need, copy them to your desk top. Now find the same files you need to change in your rom and look through them to see whats different in yours that you need to change(Notepad ++ is used for this/also M10 editor). 7zip will be your best friend from here on out.In 7zip all you need to do is click open archive. now you can add or remove anything you want,when your done just close it.This works for every zip file.UOT kitchen can be used to do a small amount of theme work.
Build.prop work is done the same way using notepad++. Say you built your own rom,but your not sure how to get your rom name or add 3g/4g/wifi tweaks or hardware acceleration or what ever.There's a lot that can be done in a build.prop that will do some major magic.you could compare mine to yours and see whats different and make changes.Use common sense here.Don't just go changing things if you don't know what it is first. That's it all you need to know right there to get you started. Now all you have to do is search around for whatever it is you want to do. locate the things you need to change and your on your way.
Although basically I've given you everything you need to get you stared.Not everything can done by simply changing lines of code in one spot some things have files located in multiple location that will need to be edited so...RESEARCH RESEARCH RESEARCH.Remember don't be a **** and steal someone's thunder,just so you can say you built a rom. Give props and ask the other dev's if you want you use something they worked hard making.

[Q] ediing SystemUI.apk

I am using a T989 4.0.3 UVLE1 rooted, otherwise stock. **DEodexed (added .bak to systemUI.odex) and 14togglesBlue.zip MOD added
When i extract the SystemUI.apk in Root Browser i find resources/assests (images in .png format) relating to the battery, wifi/mobile data, and signal bar icons for the status bar. The stock look is a green motif/theme for the battery and gray for the other icons, but included in the files are ICS blue colored icons that i have yet to see in my status bar, these .png files are named slightly different or are in a folder that is named slightly different.
If i wanted to use the ICS Blue styled icons, which i do, would it be as easy as replacing the green icons with the blue ones and renaming them?
Root browser allows me to extract SystemUI.apk so i can manipulate the files, ie rename and copy them, then when i am finished it only allows me to .zip SystemUI.apk
Is the .zip file created "flashable"? Is there a stndard/correct way of doing this?
Thank you.
HATe410 said:
I am using a T989 4.0.3 UVLE1 rooted, otherwise stock. **DEodexed (added .bak to systemUI.odex) and 14togglesBlue.zip MOD added
When i extract the SystemUI.apk in Root Browser i find resources/assests (images in .png format) relating to the battery, wifi/mobile data, and signal bar icons for the status bar. The stock look is a green motif/theme for the battery and gray for the other icons, but included in the files are ICS blue colored icons that i have yet to see in my status bar, these .png files are named slightly different or are in a folder that is named slightly different.
If i wanted to use the ICS Blue styled icons, which i do, would it be as easy as replacing the green icons with the blue ones and renaming them?
Root browser allows me to extract SystemUI.apk so i can manipulate the files, ie rename and copy them, then when i am finished it only allows me to .zip SystemUI.apk
Is the .zip file created "flashable"? Is there a stndard/correct way of doing this?
Thank you.
Click to expand...
Click to collapse
Okay this is totally wrong.... lol
In order to edit any apk you need 7zip and apk manager or apk tool. And you need to properly deodex your system. Simply renaming systemui.odex to .bak will not "deodex" your ROM. I dont remember how to deodex anymore cause i dont run ROMs odexed. There are numerous threads explaining how to deodex so use search and google my friend
But you are on the right track. you could simply rename the .png files. But you have to rename them to exactly the same name as the ones which are being displayed currently. Or you could edit the status_bar.xml file and target the new .png files which is a bit more difficult but cleaner. Cause if you rename the new png files, you have to either delete or rename the old png files. Which i recommend the later.
Then you need to recompile the systemUI.apk with apk manager or apk tool (whichever you decide to use) google them both to get a better understanding of them. I dont wanna just "tell" you what exactly to do because i had to google everything myself, and in my googling i learned a lot more than what i wanted which made everything so much easier to do.
Also, when you recompile the apk, do not sign the apk. You could zip align the apk which i do to all my mods to ensure they are correct.
Hope this helped and good luck! If you need help just PM me or post in the thread. I respond to PMs quicker though. But have fun
So i used a MOD created by jim93 (http://forum.xda-developers.com/showthread.php?t=1616189) to edit a systemUI.apk to add ICS style blue battery, blue WiFi status with blue/white upstream/downstream symbols, and blue Signal bars. All while maintaning the toggles and quick panal settings.
Now i would like to:
1. ICS Blue Clock + Remove AM/PM
2. Obtain a better battery icon with percentage inside battery
3. Transparent Notification window
4. Activate 180 degree rotation
I would like to make these adjustment on stock 4.0.3 UVLE1 software
I cant find a custom ROM that doesnt compromise on at least 1 basic feature, also very bad experinces with ROMs in the past. For me the Stock system is very stable and EVERYTHING WORKS
Can someone please help me locate the Files needed to edit these items, or at least let me know if any of my goals are completely impossible
Any advice or information is greatly appreciated
THANKS XDA!
if anyone would like my modded file (.zip) i can gmail it to you, really i only replaced .png (image files) no big deal
HATe410 said:
So i used a MOD created by jim93 (http://forum.xda-developers.com/showthread.php?t=1616189) to edit a systemUI.apk to add ICS style blue battery, blue WiFi status with blue/white upstream/downstream symbols, and blue Signal bars. All while maintaning the toggles and quick panal settings.
Now i would like to:
1. ICS Blue Clock + Remove AM/PM
2. Obtain a better battery icon with percentage inside battery
3. Transparent Notification window
4. Activate 180 degree rotation
I would like to make these adjustment on stock 4.0.3 UVLE1 software
I cant find a custom ROM that doesnt compromise on at least 1 basic feature, also very bad experinces with ROMs in the past. For me the Stock system is very stable and EVERYTHING WORKS
Can someone please help me locate the Files needed to edit these items, or at least let me know if any of my goals are completely impossible
Any advice or information is greatly appreciated
THANKS XDA!
if anyone would like my modded file (.zip) i can gmail it to you, really i only replaced .png (image files) no big deal
Click to expand...
Click to collapse
I have done most of these edits that you would like to try and I will tell you this if you search google with the information you need you will find tutorials on everything you are asking for. This is what I did and how I learned these fun tasks. Everything you want to do especially in ICS can be accomplished. Also check out a site called UOT Kitchen, it may save you on a step or two. Although learning how to do it is still quite educational as well.
over it
Of course i googled these topics, i google things ALL the time lol I've also used this site as a resource for over a year, tried all the apk modification tools suggested to no avail. Not understanding the instructions given here and being a tech/computer savvy person has made me very upset. This has caused me allot of stress and loss of sleep, Gave up returned my phone to factory settings goodnight
Thanks?

[Q] [REQ][HOW TO?] How to theme a system app?

I just recently switched my stock rom to be deodexed and I'm now looking at the possibility of theming and mods for my rom.
I already have a little experience modding the signal icons on a different Android device, and I've already downloaded a mod from this forum that turns part of the stock dialer to a holo dark/material theme, but I want to do more with it.
So far I can't seem to find a good tutorial on how to properly mod system files, especially knowing that the stock rom on the Moto G is a Motorola variant of Android KitKat, and not AOSP or similar, although it's close enough that I figure some mods might work since many Xposed modules for AOSP work fine on my stock rom.
Would it be safe to look for a tutorial based on AOSP 4.4.4, or does anyone know a good place to learn the proper way to modify and theme a Motorola stock rom?
chuman72486 said:
I just recently switched my stock rom to be deodexed and I'm now looking at the possibility of theming and mods for my rom.
I already have a little experience modding the signal icons on a different Android device, and I've already downloaded a mod from this forum that turns part of the stock dialer to a holo dark/material theme, but I want to do more with it.
So far I can't seem to find a good tutorial on how to properly mod system files, especially knowing that the stock rom on the Moto G is a Motorola variant of Android KitKat, and not AOSP or similar, although it's close enough that I figure some mods might work since many Xposed modules for AOSP work fine on my stock rom.
Would it be safe to look for a tutorial based on AOSP 4.4.4, or does anyone know a good place to learn the proper way to modify and theme a Motorola stock rom?
Click to expand...
Click to collapse
get apktool
with this decompile your apks you want to theme/mod
hapy theming! (there plenty of tutorials of how to edit images or the .9 patch files. with gimp etc.. just search )
after that recompile, if you just have edited some images (ressources) pull them afterwards from the new COMPILED apk out in a folder.
take the original apk & open with 7zip & pull the edited stuff into the right directions.
if you have done some advanced modification such as in values folder, you need after the new apk is compiled, open it with 7zip & pull from the original app the meta-inf folder into the new compiled one (singing) after tthat replace it on that phone

Categories

Resources