Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
itiskonrad
Old
(Last edited by itiskonrad; 3rd August 2012 at 07:11 PM.) Reason: Ninjamorph doesn't work!
#1  
Senior Member - OP
Thanks Meter 175
Posts: 239
Join Date: Dec 2009
Default Editing XML! (To remove carrier logo - NinjaMorph doesn't work for this!)

*I made this before any of these new roms came out and as such it was meant for and has been tested on only the stock Gingerbread rom that comes with the phone. I doubt it will be compatible with the new roms.*

*Must have root access and root explorer!*

Let me preface this by saying I am NOT by any stretch of the imagination a pro at this stuff. I'm just a guy who was SO annoyed by the AT&T logo in the notification bar, I had to figure out a way to get rid of it and save my precious real estate up there for notification icons, etc (I understand how unhealthy it is to be that anal). So that said, take everything I say with a grain of salt, and for the love of god, please don't hold me responsible if you get different results or you brick your phone!! I'm just sharing my experiences since threads in general seem really limited for this phone right now. If you're feeling dangerous and want to give it a whirl, do so at your own risk. I'm smart enough to play with it, but not smart enough to fix it if disaster strikes =)

Now! That aside, after messing with the colors (I HATE android green! Switched all the icons with that green to a nice blue instead) and getting rid of the lock pattern buttons so they don't cover my wallpaper when my phone is locked, I just had to do something about the AT&T logo in the upper left corner!



It pushes notification icons over and takes up just too much space. I'm aware I'm on AT&T. I don't need to be reminded. Anyway, after a lot of work (for me. I'm a total noob at this) I managed to decompile SystemUI.apk, change the status_bar.xml to shrink the carrier logo font and width down to 0, and reinstall it, and voila! No more carrier logo!




And plenty of room for icons!


So if you want to just give the edited status_bar.xml a try, feel free at your own risk! Just make sure you back up your original SystemUI.apk!! I'm attaching the edited one. The ONLY thing I changed was the font size and width of the carrier logo so that it would be 0. Everything else in that xml should be the same. Swap it out with the one in SystemUI.apk (in res/layout) (*Edit: I can confirm from my experience and another user's that ninjamorph, for whatever reason, CAN'T shove the xml into SystemUI.apk, so it WON'T WORK.) The way I know how is to copy SystemUI.apk from your phone onto your computer, open archive (DON'T EXTRACT/UNZIP) SystemUI.apk with 7zip, and just drag and drop the modified status_bar.xml into res/layout of the SystemUI.apk you got from your phone (let it overwrite the original). Then you can put SystemUI.apk with the new status_bar.xml in it back onto your phone's sdcard, copy it to system folder on the root of your phone, using root explorer CHANGE THE PERMISSIONS TO THOSE MATCHING THE ORIGINAL SystemUI.apk!!! (owner: read write, group: read, others: read), and then move it into system/app on your phone and let it overwrite your first SystemUI.apk. Then restart your phone! If you're a rookie like me, I know it sounds like a lot of work, but it's nothing compared to figuring out how to decompile and recompile the damned SystemUI.apk, which took me forEVER.

So anyway, you brave ones (and ones who know how to backup your SystemUI.apk and revert back to it in case this one screws up your phone) let me know how it goes if you try it! I don't know if it's common knowledge already or not that everyone knows how to decompile/recompile system apks in the Nitro, so I won't go into detail, but if someone wants to know so they can play with the xml's on the phone as well, let me know and I'll be glad to explain what I did in gross detail! Now to play with the other xml's...

*edit, Fyi, for those having difficulty finding it, the full path is:
system/app/SystemUI.apk/res/layout/status_bar.xml
Attached Files
File Type: zip status_bar no carrier.zip - [Click for QR Code] (1.1 KB, 81 views)
The Following 7 Users Say Thank You to itiskonrad For This Useful Post: [ Click to Expand ]
 
Namuna
Old
#2  
Namuna's Avatar
Senior Member
Thanks Meter 74
Posts: 454
Join Date: Jan 2010
Location: New York

 
DONATE TO ME
If you're anal for not liking that AT&T crap taking up screen estate that could (and SHOULD!) be used for actual notifications...Then I'm just as anal!

And so a 'Thanks' for you for doing this!
Phone: LG Nitro HD (rooted)
Battery: Stock (Hyperion 3800mAH now unreliable)
Carrier: AT&T
ROM: CM10.1 Nightlies
Kernel: Wind Kernel
Storage: Sandisk 32gb SD
Core Apps:
--> Titanium Backup
--> SetCPU
--> Go Launcher EX
--> aNdClip
--> ClockworkMod Rom Manager


__________________________________________
There is no "Truth", only perception and deception
 
schwin97
Old
#3  
Senior Member
Thanks Meter 32
Posts: 123
Join Date: May 2010
You would think with a 720p screen we would be ok with AT&T plastering their name on our phone, but that is not the case... I will also be trying out your version shortly.
 
scott0
Old
#4  
scott0's Avatar
Senior Member
Thanks Meter 85
Posts: 709
Join Date: Dec 2011
dang, nice work, thanks!

i am the same, besides, ATT is written on the phone about a 1/2" from the spot on the notification bar, irritating to say the least.
 
aquariuz23
Old
#5  
aquariuz23's Avatar
Senior Member
Thanks Meter 79
Posts: 829
Join Date: Mar 2011
Location: Clifton, NJ
WE HAVE OUR FIRST DEV!!! well....somewat roflmao!!


Motorola Atrix 4G > Unlocked BL!! > GingerBlur 2.3.4 > Navalynt's Mod (v1.4) > Tenfar's CWM Recovery Mod > CM7

LG NITRO HD P930 >> Root via SuperOneClick v2.3.2 >> Bytecode64's CWM v.5.** >> KernelPan!c's v0.3
 
itiskonrad
Old
#6  
Senior Member - OP
Thanks Meter 175
Posts: 239
Join Date: Dec 2009
Haha, oh dear god, no. I'm just obsessive =)

Anyone actually try it? Have any problems? The only problem I can envision is not putting the proper permissions on the new SystemUI.apk or someone trying to unzip SystemUI.apk instead of just dragging and dropping status_bar.xml into the layout folder of the unzipped archive. Otherwise, I tested it a bunch and had no problems on my phone! Someone please let me know I'm not sabotaging phones all over the world right now =)
 
netnerd
Old
#7  
Senior Member
Thanks Meter 94
Posts: 1,590
Join Date: Dec 2006
Location: ATT California USA
can you also replace the stupid annoying battery icon with "% battery".
WTF is google thinking?? that stupid stock battery icon doesn't do anything but take up spaces!

WARNING! you might brick your phone, i tried it, and my freaking phone wont boot! and freaking LG is not putting the recovery rom on their "LG software updater"!
 
itiskonrad
Old
#8  
Senior Member - OP
Thanks Meter 175
Posts: 239
Join Date: Dec 2009
Well, crap. Sorry dude. I can't change the battery icon to individual single percentages yet. The best I can do is replace it with images that will show % at 5% intervals (there's a different png for every 5% charge of the battery in the framework already).

How did you try to put the status_bar.xml into your SystemUI.apk? I'm sorry it's doing that! Is your systemui otherwise stock?
 
netnerd
Old
#9  
Senior Member
Thanks Meter 94
Posts: 1,590
Join Date: Dec 2006
Location: ATT California USA
Quote:
Originally Posted by itiskonrad View Post

How did you try to put the status_bar.xml into your SystemUI.apk? I'm sorry it's doing that! Is your systemui otherwise stock?
i didnt try your status_bar.xml cus i'm scare! haha
i used uot kitchen to cook % battery and i replaced the files, and my phone wont boot up.
 
itiskonrad
Old
#10  
Senior Member - OP
Thanks Meter 175
Posts: 239
Join Date: Dec 2009
Ohhh, thank god. I thought I ruined your phone! Yeah, you can't use uot kitchen right now. If whatever it produces doesn't bootloop your phone, it still won't work. Most of the image files are in xhdpi folders (for 720p screens), and since kitchen only supports up to qhd, it'll change the files in the hdpi folders, most of which are useless to us. But it will still screw with the xml's causing disaster. Can you do anything with your phone now? Can you push files or anything? Kitchen uot will only screw with framework-res.apk and SystemUI.apk. If you could at least still push files to your phone through your computer, I could give you the original two system files to put back onto your phone and overwrite the kitchen uot crap...

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...