Translucent notification tray background in 2.3 Gingerbread Guide ? - EVO 4G Themes and Apps

Anyone know how to get a Translucent notification tray background in 2.3?

martijua said:
Anyone know how to get a Translucent notification tray background in 2.3?
Click to expand...
Click to collapse
It has to be done in systemui.apk. Have to open that specific file to the rom your running and edit the files inside. What exact rom are you running?

fdb8231 said:
It has to be done in systemui.apk. Have to open that specific file to the rom your running and edit the files inside. What exact rom are you running?
Click to expand...
Click to collapse
Thanks. I am running the stock rooted deodexed rom.
Here is what I did:
1 nandoid backup
2 adb devices
3 adb pull /system/app/SystemUI.apk SystemUI.apk (made a backup copy of this file)
4 open the SystemUI.apk file with winrar
5 inserted the "status_bar_header_background.9.png", "status_bar_close_on.9.png" and a transparent "status_bar_background.png" into the SystemUI.apk's \res\drawable-hdpi folder
6 adb remount
7 adb push SystemUI.apk /system/app/
8 adb reboot
as you can see from the attached screen shot...the "status_bar_header_background.9.png" and the "status_bar_close_on.9.png" worked but the transparent "status_bar_background.png" isnt transparent.
Any ideas?

martijua said:
Thanks. I am running the stock rooted deodexed rom.
Here is what I did:
1 nandoid backup
2 adb devices
3 adb pull /system/app/SystemUI.apk SystemUI.apk (made a backup copy of this file)
4 open the SystemUI.apk file with winrar
5 inserted the "status_bar_header_background.9.png", "status_bar_close_on.9.png" and a transparent "status_bar_background.png" into the SystemUI.apk's \res\drawable-hdpi folder
6 adb remount
7 adb push SystemUI.apk /system/app/
8 adb reboot
as you can see from the attached screen shot...the "status_bar_header_background.9.png" and the "status_bar_close_on.9.png" worked but the transparent "status_bar_background.png" isnt transparent.
Any ideas?
Click to expand...
Click to collapse
You should use 7 zip then you can open and edit without unzipping. Is this like what you want
Sent from my PC36100 using XDA App

More like this
It used to work in 2.2.
Oh, you dont have to unzip the apk when using winrar.

I believe that in system ui that is actually part of an xml and needs to be moddified using xml.

Is this a simple PNG swap, or are there any XML/smali edits required?

if you're having a bunch of trouble, send it on over to me and i'll help u out.

_Burst_ said:
Ok, check it out, obviously you will need to know how to use apktool. Do not ask me how to use it. Educate yourself.
To make the Notification Bar transparent I followed these steps:
-decompile SystemUI.apk
This is a direct quote and was very similar to what I had to do. The only different is that the code:
isn't exactly that. But, just look for the the const/4 and corresponding 0x2 and change that one to "-0x3."
Also, you may have to hunt for it, but it is there about 5-8 lines up.
To make the Notification Bar Shade transparent I followed these steps:
Again, direct quote and same situation, the v# might not match but just change the "0x2" to "-0x3."
And there ya go. Thanks to Master and ogdobber.
Click to expand...
Click to collapse
Enjoy yoself

SteelH said:
Is this a simple PNG swap, or are there any XML/smali edits required?
Click to expand...
Click to collapse
"status_bar_header_background.9.png" and the "status_bar_close_on.9.png" are simple PNG swap in the SystemUI.APK
Transparent notification background in the deodexed [ROM][STOCK] --- Version 4.22.651.2 --- Odexed & De-Odexed --- that was posted by xHausx requires that the SystemUI.apk be decompiled and then edit the status_bar_tracking.xml changing the default "android:background="#ff000000"" to "android:background="@drawable/shade_bg"". I'm getting a W: could not decode attr 0x20 error when decompiling so I havent been able to successfully make the changes to get the transparent shade_bg notification tray backdound to work.
If anybody can get this done an post the updated SystemUI.apk we'd appreicate it!

I finally figured out what was causing the error and have successfully decompiled the systemui.apk. Next i'm going to try what _Burst_ posted.

_Burst_ said:
Enjoy yoself
Click to expand...
Click to collapse
status_bar_tracking.xml does not have the line in it that is referenced in the link that you posted. I've attached the file.

martijua said:
status_bar_tracking.xml does not have the line in it that is referenced in the link that you posted. I've attached the file.
Click to expand...
Click to collapse
What? yes it is.
so the numbers are different...
Here comes the airplane.... zoooooooooooooooooooooom.
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/background" android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<LinearLayout androidrientation="vertical" android:id="@id/swtich_buttons" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="@drawable/divider_horizontal_dark_opaque" android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:id="@id/tab_header" android:background="@drawable/list_item_background" android:layout_width="fill_parent" android:layout_height="4.0sp" />
Click to expand...
Click to collapse

martijua said:
"status_bar_header_background.9.png" and the "status_bar_close_on.9.png" are simple PNG swap in the SystemUI.APK
Transparent notification background in the deodexed [ROM][STOCK] --- Version 4.22.651.2 --- Odexed & De-Odexed --- that was posted by xHausx requires that the SystemUI.apk be decompiled and then edit the status_bar_tracking.xml changing the default "android:background="#ff000000"" to "android:background="@drawable/shade_bg"". I'm getting a W: could not decode attr 0x20 error when decompiling so I havent been able to successfully make the changes to get the transparent shade_bg notification tray backdound to work.
If anybody can get this done an post the updated SystemUI.apk we'd appreicate it!
Click to expand...
Click to collapse
I'm working on it . I'm at work now but tomorrow I'm going to hit it pretty hard.
Uot kitchen wouldn't even work for it so.... I'll have to look at the smalis and change the const/
But the v #'s are off and don't match like the op said. But it only looks like there is 2 options for it . I'm just going to do both and report back. If you get it working before I do hit me up. Thanks.

I havent got this to work. I dont think much people have as I dont see any themes or roms with this feature.

martijua said:
I havent got this to work. I dont think much people have as I dont see any themes or roms with this feature.
Click to expand...
Click to collapse
it's in many cm7 themes. should be around soon enough for sense.

Finally got it. I used the uot kitchen site to get it going. Will be sending them a donation after I get home from work. \m/

Widgets
martijua said:
Finally got it. I used the uot kitchen site to get it going. Will be sending them a donation after I get home from work. \m/
Click to expand...
Click to collapse
What are all the various widgets you are using there? They all look pretty useful!

Minimal Text Date, Time, Weather, Battery
S2 Calendar widget
CalWidget

martijua said:
Finally got it. I used the uot kitchen site to get it going. Will be sending them a donation after I get home from work. \m/
Click to expand...
Click to collapse
Looks sweet. Unfortunately the kitchen does not work for the drop down on any kingdom ROM. I've tried to no avail.
Sent from my PC36100 using XDA App

Related

Status Bar Clock Removal

I Have figured out how to do this if you pull the systemui.apk from your phone then decompile it you can remove the line that puts the clock in the status bar.
I did this using a program called gingerscript i got from XDA it allows you to pull the file from your and decompile them with a simple menu so you do not have to use bali or smali
Once you have the Ginger script utility run the gigerscript bat file it will give you a menu with 5 options choose number 3 to process sysui this will take you to a framework utility script then you dot the following steps
1 choose menu item 1 to download current systemui.apk from phone
2 choose menu item 2 to decompile systemui.apk
Once you have done this you will find in the directory where you installed Gingerscript a folder called extracted-systemui
open this folder then you want to open the res folder then you want to look for a folder named layout open it and look for statusbar.xml and open it with a xml editor that will allow you to make change I used microsoft word with no problems
find this line <com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="left|center" android:id="@id/clock" androidaddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and delete it
then go back to gingerscript and recompile the system.apk
The chose menu item number item 4 to push it to your phone and follow the instructions it will tell you to boot to recovery it says use clockwork but I use Amon RA and it worked just fine after it pushes the file to your phone wipe the Dalvik Cache and repair permissions then reboot and if every thing goes well you will have a task bar with no clock and does no leave a blank space on the bar all the icons shift to the right so every thing looks right this method is a lot easier than when I did it on the Sprint lovers rom
See attached screen shot
Here is the thread for GingerScript
http://forum.xda-developers.com/showthread.php?p=14561328
Good work man! Its not for me, but im sure some others around here may try it.
UMMMM it didnt work for me on MikG!
gruesomewolf said:
UMMMM it didnt work for me on MikG!
Click to expand...
Click to collapse
I am running mikg also and from you see from the screen shot it work for me and i did it twice once on a the systemui.apk that come on mikg and again on one I had modified with a modified taskbar and both worked
what xml editor did you use?
ginger script utility
is there a link to the tool?
dirk411 said:
is there a link to the tool?
Click to expand...
Click to collapse
Interested in this as well !
dirk411 said:
is there a link to the tool?
Click to expand...
Click to collapse
Here is the thread where I found it
http://forum.xda-developers.com/showthread.php?p=14561328
CDobra58 said:
Here is the thread where I found it
http://forum.xda-developers.com/showthread.php?p=14561328
Click to expand...
Click to collapse
Thank you it works. Thank you button pressed.
i dont have a statusbar.xml only status_bar_latest_event_content.xml
im on Mikg 1.04
cds36 said:
i dont have a statusbar.xml only status_bar_latest_event_content.xml
im on Mikg 1.04
Click to expand...
Click to collapse
Did you open it and see if it had line refering to the clock
i have amon ra recovery not clockwork my bad
Nice guide. Always good to see more than one way to skin a cat!
Here's another clock removal method - LINK
Must be dumb!
Update,
Sorry about that man this did end up working for me! I must not have done it corectly when I previously tried. I tried to do this a while back when I was trying to make the dropdown bar semi-trans. Must have done it wrong then. I went back through and did it again and it worked like a charm. Thanks.
gruesomewolf said:
Update,
Sorry about that man this did end up working for me! I must not have done it corectly when I previously tried. I tried to do this a while back when I was trying to make the dropdown bar semi-trans. Must have done it wrong then. I went back through and did it again and it worked like a charm. Thanks.
Click to expand...
Click to collapse
Gald it works for you
Got it to work finally, amon ra wasn't playing nice with it for some reason had to manually push it
This worked fantastic for me. No issues whatsoever, thanks! I'm on the MikG 1.04 rom and used Amon RA 2.3.
Worked great here also thank you.
Perfect instructions! Worked awesome THX!!!
help
I have one this to a T and yet no results im sure i am doing everything right help pls
If you could find how to take off just the am/pm that would be super!
;D

[MOD] jholtom's CRT animation on Screen Lock

jholtom said:
Hi, All,
I got it working for screen off only
The changes are in framework-res.apk
Attached is the apk for Prime 2.0.4 ONLY!
To Use:
remove the unsigned- part from the name and use root explorer or adb push to put it in system/framework/
and then reboot!
To do this mod to another rom:
Decompile using apktool or apkmanager (which utilizes apktool) and then...
find bools.xml in res/values of a decompiled framework-res and then find this line
Code:
<bool name="config_animateScreenLights">true</bool>
and change the true to false
save and recompile and push or use root explorer to apply the new file
Click to expand...
Click to collapse
I'm quoting and reuploading to this post in case anyone else wants to try it out.
Jholtom do you mind if I post this on RootzWiki as well, giving you full credit?
+1
Would be nice.
Nothing so far. I too have been looking.
http://forum.xda-developers.com/showthread.php?t=1267728
I know you already mentioned it but there's actually two apps
Sucesss!!!!!!!!!!!!!!!
Hi, All,
I got it working for screen off only
The changes are in framework-res.apk
Attached is the apk for Prime 2.0.4 ONLY!
To Use:
remove the unsigned- part from the name and use root explorer or adb push to put it in system/framework/
and then reboot!
To do this mod to another rom:
Decompile using apktool or apkmanager (which utilizes apktool) and then...
find bools.xml in res/values of a decompiled framework-res and then find this line
Code:
<bool name="config_animateScreenLights">true</bool>
and change the true to false
save and recompile and push or use root explorer to apply the new file
Made a stupid mistake!! I can't remember how to push the file using ADB and my Transformer is force closing like crazy hahaha. Can someone give me some quick instructions? Watched a couple videos but they're all different and not working. I've got ADB running, it's mounted, the .apk is in the ADB folder but I can't get it to push. Please help! Thanks so much!
EDIT: Nevermind. Also a stupid mistake haha, that was a close one.
Thanks for doing this jholtom, I've wanted this for a while as well!
awesoe works nice man ought to make a thread for it so people can find it... or edit this one...
Sent from my Optimus Prime Transformer
Nice work. Seems I have to choose between this or the battery percentage mod but not both.
Thanks jholtom . You should contact roach so he can have it built in the rom!
It works! Tha mate.
I dont really mind where it gets posted
Credit is always nice though
jholtom said:
Decompile using apktool or apkmanager (which utilizes apktool) and then...
find bools.xml in res/values of a decompiled framework-res and then find this line
Code:
<bool name="config_animateScreenLights">true</bool>
and change the true to false
save and recompile and push or use root explorer to apply the new file
Click to expand...
Click to collapse
Can't seems to find res/values (using apkmanager do I need to decompile or extract APK?)
^ decompile.
Sent from samsung vibrant
Alex9090 said:
^ decompile.
Sent from samsung vibrant
Click to expand...
Click to collapse
Thanks. Yeah finally figured how to decomplie. Changed the field from true to false. Just trying to see what i'm doing wrong cause after compiling it back it doesn't have the crt shut down
Theres some sort of setting that can apparently cause it to work about 7/8 of the time but not that other 1/8. I'm looking around to see what it is and how it can be resolved.
And just in case did you push or install with root explorer?
jholtom said:
Theres some sort of setting that can apparently cause it to work about 7/8 of the time but not that other 1/8. I'm looking around to see what it is and how it can be resolved.
And just in case did you push or install with root explorer?
Click to expand...
Click to collapse
I used Root Explorer, I'll try to push it to see if it's any better.
EDIT: I just compile again and it seems to be working better. Thank you.
Hi all! First off, thanks to jholtom for figuring this out. I have thrown this mod in my PCB Blue theme (beta testing only now), and confirm that it works, BUT only when on the homescreen. I.E. if you are in any other app, the CRT animation will not run. Switching back to the homescreen does allow it to work again though. Another trick (if you have the kb dock) is to hit the "LOCK" key (top-right) while in another app, and then the CRT animation appears to play on further on/off toggles, but without unlocking the screen.
Not sure what the cause/solution of that may be, but I did find this thread on RootzWiki that also shows how to edit a .smali file in 'services.jar'. I am too lazy to decompile 'services.jar' and the .smali script, but if someone else is able to, maybe we can see if the further mods will allow it to work 100% of the time. Here's that thread:
[DEV] Enabling CRT ON & OFF Animation in Roms [HOW-TO]
I hope Roach gets wind of this, and maybe his expertise will point us in the right direction for how to get it working perfectly. It is such a simple animation overall, but one that gives us such joy and pleasure
Cheers!
Was hoping you would catch wind of this scar45 and put it in your theme. And nice work to you jholtom!
I hadn't looked at the CRT off animation for HC before as I read it didn't work right but I also didn't know about the potential fix in the services.jar file.
I'll have a wee play about and see what I can come up with.
Can any tell me if the issue still exists where it only works in landscape?
Roach2010 said:
Can any tell me if the issue still exists where it only works in landscape?
Click to expand...
Click to collapse
It work while in portrait also but the animation only shut down in landscape.
Like on the phone it only shut down in portrait. Hope I make sense.
It only work when you're on one of the home screen and not anywhere else.
Yeah, I got it working for screen on and off but only from the Home Screen. When you do if from within an app the TF flips out.

How to decrease the number of home screens of jellybean stock launcher?

Hey guys, I need some assistance of those who know please. I decompiled the launcher2.apk of eos Xoom ROM and made changes to
res/layout-port/launcher.xml
And to
res/layout-land/launcher.xml
By deleting some lines related to launcher screens. By default they come 5, I made them 3.
<include android:id="@id/cell1" layout="@layout/workspace_screen" />
<include android:id="@id/cell2" layout="@layout/workspace_screen" />
<include android:id="@id/cell3" layout="@layout/workspace_screen" />
<include android:id="@id/cell4" layout="@layout/workspace_screen" />
<include android:id="@id/cell5" layout="@layout/workspace_screen" />
I also made launcher:defaultScreen="1" to set the default screen to be the middle one.
I compiled the apk and replaced the original one with the same permission , however' the launcher remains with 5 screens...
Can anyone please point out how to get around this?
The way I compiled is using apktool manager and deleted resources.arcs from the keep folder !!! Does this need to be signed even if it is a system apk?
As soon as this works, I thought to provide a mod for xoomers...
Sent from my MZ601 using Tapatalk 2
Guys... no one?!!
Come on.... someone must have an answer here.
I decompiled the modded launcher and found the changes I made are gone and back to 5 screens !!
Sent from my MZ601 using Tapatalk 2
Have you tried adding workspaces? I for one would like 7 instead of 5.
Off topic: are there any launchers that work like compiz fusion under ubuntu?
Sent from my SGH-I717R using xda premium
Eun-Hjzjined said:
Have you tried adding workspaces? I for one would like 7 instead of 5.
Off topic: are there any launchers that work like compiz fusion under ubuntu?
Sent from my SGH-I717R using xda premium
Click to expand...
Click to collapse
The problem is that I am trying to make the changes I do persistent . However, whenever I compile the apk, it goes back to 5 screens. If I can manage removing screens, I will be able to add more. All I need is a little help of guideness if someone knows, plz step in...
Sent from my MZ601 using Tapatalk 2
wesamothman said:
The problem is that I am trying to make the changes I do persistent . However, whenever I compile the apk, it goes back to 5 screens. If I can manage removing screens, I will be able to add more. All I need is a little help of guideness if someone knows, plz step in...
Sent from my MZ601 using Tapatalk 2
Click to expand...
Click to collapse
ok you have it right, however i can 99.99% guarantee you that your problem is with apkmanager
becasue there is no why that once you make the changes that the changes will "revert" back to that what is was previously
use good old fashion cmd or terminal ( if on linux) or even simpler build it from the source,
however if you insist on using apktool use these ( which are moddified for ICS/JB) https://dl.dropbox.com/u/25886627/apktoo_8.15.12.zip
only follow these steps to the "T"
put the zip anywhere, open cmd ( command promt)
and CD to C:\were\extracted\zip\is\
and then take the framework-res.apk and the Launcher2.apk
and place both in the same folder you extraacted zip to
now in cmd type
apktool if framework-res.apk
followed by
apktool d Launcher2.apk
now this will decompile the apk to :\were\extracted\zip\is\Launcher2\
make changes
back in cmd type
apktool b Launcher2
now navigate to :\were\extracted\zip\is\Launcher2\build\apk\
copy the original Launcher2.apk from :\were\extracted\zip\is\ to :\were\extracted\zip\is\Launcher2\build\apk\
OPEN not extract the apk with 7zip ( or any archive manager) and now click and highlight from the :\were\extracted\zip\is\Launcher2\build\apk\ the res folder the classes.dex file and the resouces.arsc and drag them into the root of the Launcher2.apk that is open in 7zip
now that is the ready file to be sent to device
about signing...
system apps you dont sign becasue you dont have the authers signing tools, so if you try to simple sideload it an error of mismatching keys will prevent the app from installing
becasue we are flashing it ( or adb push) signing is not needed.
now i have not looked at the launcher as far as the amoutn of home screens ( done some customization for my own use on the n7) but what you have said you did should without a doubt work
runandhide05 said:
ok you have it right, however i can 99.99% guarantee you that your problem is with apkmanager
becasue there is no why that once you make the changes that the changes will "revert" back to that what is was previously
use good old fashion cmd or terminal ( if on linux) or even simpler build it from the source,
however if you insist on using apktool use these ( which are moddified for ICS/JB) https://dl.dropbox.com/u/25886627/apktoo_8.15.12.zip
only follow these steps to the "T"
put the zip anywhere, open cmd ( command promt)
and CD to C:\were\extracted\zip\is\
and then take the framework-res.apk and the Launcher2.apk
and place both in the same folder you extraacted zip to
now in cmd type
apktool if framework-res.apk
followed by
apktool d Launcher2.apk
now this will decompile the apk to :\were\extracted\zip\is\Launcher2\
make changes
back in cmd type
apktool b Launcher2
now navigate to :\were\extracted\zip\is\Launcher2\build\apk\
copy the original Launcher2.apk from :\were\extracted\zip\is\ to :\were\extracted\zip\is\Launcher2\build\apk\
OPEN not extract the apk with 7zip ( or any archive manager) and now click and highlight from the :\were\extracted\zip\is\Launcher2\build\apk\ the res folder the classes.dex file and the resouces.arsc and drag them into the root of the Launcher2.apk that is open in 7zip
now that is the ready file to be sent to device
about signing...
system apps you dont sign becasue you dont have the authers signing tools, so if you try to simple sideload it an error of mismatching keys will prevent the app from installing
becasue we are flashing it ( or adb push) signing is not needed.
now i have not looked at the launcher as far as the amoutn of home screens ( done some customization for my own use on the n7) but what you have said you did should without a doubt work
Click to expand...
Click to collapse
Thx a million times. I will do as said
Sent from my MZ601 using Tapatalk 2
Hi runandhide05. First allow me to send you a bigggggg thank you for your apktool. It really was apktool problem.
I did as you suggested, still, didn't work from the first time (modified to 3 screens) although the changes were persistent this time. so, in addition to the above files, i had to modify the following as well:
workspace.xml in layout-sw720dp
and public.xml in res/values in which I had to delete
<public type="id" name="cell4" id="hex val xxxxx" />
<public type="id" name="cell5" id="hex val xxxxx" />
So, now I tested with these changes and I got 3 screens
I will try to do 1 screen, and 7 screens.
Thanks again. you are truly appreciated.
EDIT: 1 Screen is successful too. I will try 7 soon.
EDIT: 7 Screens is successful too
I will try to write a flashable zips for them and post them as mods ...
wesamothman said:
Hi runandhide05. First allow me to send you a bigggggg thank you for your apktool. It really was apktool problem.
I did as you suggested, still, didn't work from the first time (modified to 3 screens) although the changes were persistent this time. so, in addition to the above files, i had to modify the following as well:
workspace.xml in layout-sw720dp
and public.xml in res/values in which I had to delete
<public type="id" name="cell4" id="hex val xxxxx" />
<public type="id" name="cell5" id="hex val xxxxx" />
So, now I tested with these changes and I got 3 screens
I will try to do 1 screen, and 7 screens.
Thanks again. you are truly appreciated.
Click to expand...
Click to collapse
ah, sorry completely forgot about the public XML. glad u got it
Sent from my Galaxy Nexus using Tapatalk 2
runandhide05 said:
ah, sorry completely forgot about the public XML. glad u got it
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Dear runandhide, your brilliant advises/expertise is what helped me getting these mods in place. Thx again trillion times and I shall never forget that. I will finalize the flashable zips as mods in dev forum for xoomers of team eos jellybean interest.
Sent from my MZ601 using Tapatalk 2
Awesome work. Pm me when you have 7 screens cwm.zip
EOS3 N132 @ MZ604 [XDA HD]
Stock ICS @ SGH-i717R [XDA Premium]
Eun-Hjzjined said:
Awesome work. Pm me when you have 7 screens cwm.zip
EOS3 N132 @ MZ604 [XDA HD]
Stock ICS @ SGH-i717R [XDA Premium]
Click to expand...
Click to collapse
It will available today on DEV Forum. 1 screen, 3 screens, 5 screens (default) and 7 screens.
Keep an eye on the dev section.
Here is the link for the mods. 1,3,5,7,9 screens mods added.
http://forum.xda-developers.com/showthread.php?p=30306937
Sent from my MZ601 using Tapatalk 2

[MOD]TF700T Battery % Mod

This is a mod for the TF700T to add 1% battery indicators for both the tablet and dock.
This posting is for developers, not newbies who usually do not know what they are doing.
First things first: I am a retired software engineer (and approaching retirement age). I do not have much time for support of this mod as I spend most of my time teaching English in Thailand and I develop ROMs for the SGS3. With that said, you are free to use this however you wish. BUT, please give me credit for the work. A link back to this page would be great. AND, I cannot guaratee it will will for everyone. Use at your own risk.
I will try to answer questions as soon as I can. Hopefully, some of the better developers can jump in and help with questions. If I do not answer a question right away, it is because I am busy with school.
This is probably not one of the better how-to-do-it posts, but it is the best I can do at this time.
What you will need:
1. Winmerge - you can get it here: Winmerge
This is a great app for making changes to newer ROMs without having to manually find all your previous changes. It is a pretty much cut 'n paste layout as you can see where the changes are and just copy them into the new source file. It uses a split window format for comparing previous and new source files. I usually view the original modded file in the right window and the new file I want to mod in the left window. Differences will be highlighted. Just marked the changes and copy them from the right window to the left window. Don't forget to save the file before exiting.
2. The attached zip file which contains the battery icons for both the dock and tablet and the modified xml files. The icons were created using BatteryIconCreator_V9.0 which you can find on the web. Makes creating icons easy plus you can merge 2 icons into 1. The zip file contains xml files for JellyBean v10.4.4.20 ROMs. It should work on previous versions as I started working on this with v10.4.4.16.
3. apktool150.jar - from here: http://miui.connortumbleson.com/other/apktool/apktool_1.5.0.jar
4. aapt.exe - from here: http://miui.connortumbleson.com/other/apktool/aapt/win/aapt.exe
For items 3 and 4, I have included them for Windows only. You should already know how to use apktool already and where these files go.
IF your ARE NOT on Windows O/S, go to this link to get the correct aapt file: APKTOOL
You MUST HAVE both of the files (3 & 4). Very important.
There are no install zips attached to this post. I am just too lazy to make them.
This is mostly for developers of TF700T Roms.
The files we will be modding:
framework-res.apk
SystemUI.apk
Transformer.apk
First thing to do is to decompile all 3 files:
java -jar apktool150.jar d <source.apk> <folder>
where <source.apk> is one of the above 3 files and <folder> is where you want them decompiled to.
Example: java -jar apktool150.jar d SystemUI.apk systemui
First the tablet battery mod:
SYSTEMUI.APK
Tablet icons
1. Copy the tablet battery icons to: /res/drawable-sw720dp-hdpi
2. Copy stat_sys_battery.xml AND stat_sys_battery_charge.xml to /res/drawable
3. Add the following to the end of /res/values-sw600dp/styles.xml:
<style name="StatusBarBatteryNotificationText2">
<item name="android:textSize">1.0dip</item>
<item name="android:textColor">#00999999</item>
</style>
4. Change /res/layout/status_bar_quick_settings_title.xml
(change both dock and battery) below is the modified script change (partial script).
<TextView android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="1.0dip" android:layout_marginTop="-4.0dip" android:src="@drawable/ic_notification_open" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" android:layout_below="@id/battery" android:layout_centerHorizontal="true" style="@style/StatusBarBatteryNotificationText2" />
FRAMEWORK_RES.APK
Dock-icons
1. Copy the dock battery icons to /res/drawable-hdpi
2. Copy stat_sys_dock_battery.xml AND stat_sys_dock_battery_charge.xml to /res/drawable
TRANSFORMER.APK
1. Change res/layout/status_bar_docking.xml:below is the modified script change (partial script).
<ImageView android:layout_gravity="center_vertical" android:src="@drawable/asus_ep_kb_battery_dock" android:layout_width="32.0dip" android:layout_height="32.0dip" android:scaleType="centerInside" />
<TextView android:layout_gravity="right|center" android:id="@id/battery_level" androidaddingRight="12.0dip" android:layout_width="56.0dip" android:layout_height="wrap_content" android:singleLine="true" android:layout_toRightOf="@drawable/asus_ep_kb_battery_dock" android:layout_alignBaseline="@drawable/asus_ep_kb_battery_dock" style="@style/StatusBarNotificationText" />
2. Add asus_ep_kb_battery_dock.png to /res/drawable-hdpi/
After you have done all of that, you need to compile them:
BUT FIRST: SystemUI.apk will not be decompiled correctly -> res/values/public.xml
We need to change some things or it will not compile.
Open /res/values/public.xml and go all the way to the end.
Change the last 2 entries to look like the following (the decompile hex value ordering in out of sequence):
<public type="menu" name="notification_popup_menu" id="0x7f0f0000" />
<public type="menu" name="recent_popup_menu" id="0x7f0f0001" />
Save the file and exit.
Now we can compile all the files.
java -jar apktool150.jar b <source folder>
where <source folder> is where you decompile the apk to.
Example: java -jar apktool150.jar b systemui
the apk file will be in the dist subfolder under systemui
After all 3 files have been compiled, you need to copy the META-INF folder and the AndroidManifest.xml from the original apk to the newly built apk. You need to do this for each of the 3 files.
The TF700T does not like the resources.arsc entry compressed. So...we have to extract the contents from SystemUI.apk and Transformer.apk. Create a new apk (using store only) no compression. You can use 7zip for this.
After you have done this for the SystemUI.apk and Transformer.apk files, zipalign all 3 files and install them in their proper folders on your tablet. I have included a zip align program in the attached zip file. Put the 3 files in the align folder and run the zip-app.bat program.
I have tried to make this easy, especially if you use WinMerge. It's as easy as copy 'n paste.
All files, including the modded source files (except Winmerge) are included in the attached zip file.
ZIPFILE: TF700T 1% Battery Mod
Thanks man, donno if im gonna implement this but hopefully we can get some devs to preload it onto other roms. You should pm scott and hiemanshu! thanks again.
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
gutts10 said:
Thanks man, donno if im gonna implement this but hopefully we can get some devs to preload it onto other roms. You should pm scott and hiemanshu! thanks again.
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
Click to expand...
Click to collapse
I'm sure users would prefer percentage anyways, right?
From TF700, hit THANKS for others
Hi! thanks for this mod and for opening a dedicated thread.
Does the zip have a version to go for the latest job update? I can implement it straight into the ROM quickly if so. Otherwise I'll work through instructions and ask as I go.
sbdags said:
Does the zip have a version to go for the latest job update? I can implement it straight into the ROM quickly if so. Otherwise I'll work through instructions and ask as I go.
Click to expand...
Click to collapse
The easiest way is to just do file compares based on the files mentioned in Post #1.
If you use winmerge.exe it is easy to find the differences and cut and paste. It's what I use for all my ROM development for TF700T and GS3.
The files are from 104420.
OK Couple of questions - I tried to use the .20 files but SystemUI.apk is different.
There is no res/values folder......
neither is there a /res/values-sw600dp either ....
Are they important or have Asus changed the files?
Edit: Ah figured it out - ignore me!
I'm watching you
sbdags said:
OK Couple of questions - I tried to use the .20 files but SystemUI.apk is different.
There is no res/values folder......
neither is there a /res/values-sw600dp either ....
Are they important or have Asus changed the files?
Edit: Ah figured it out - ignore me!
Click to expand...
Click to collapse
Sent from my ASUS Transformer Pad TF700T
chogardjr said:
I'm watching you
Sent from my ASUS Transformer Pad TF700T
Click to expand...
Click to collapse
Figured it out and got it working
Thanks OP!
The icon and the % are not clear like stock...hard to read.
buhohitr said:
The icon and the % are not clear like stock...hard to read.
Click to expand...
Click to collapse
Agreed.
For my GNex I use circlesmod by hooolm, which is a lot clearer. I think I'll try throwing a mod together with those icons...
http://circlesmod.dk/?s=dl

Transparent Status Bar

See Post Eight for download link for fixed SystemUI- thanks to mentose457.
Loving the new CleanRom 6 R2. One thing I have had no luck with is getting the status bar to be transparent. I have tried flashable zips, I have tried the method below which seems to be the consensus on how to go about doing this and I have tried changing out the status bar png's as well but each time I get no status bar and the inability to change my wallpaper (it just goes black). Is there anyone out the who has had success on changing the status bar to 100% transparent or is there a flashable zip that works with Scott's CleanRom 6 R2? I can attach my SystemUI, framework-res, lidroid-res and twframework-res if there is anyone that can help me out.
Credit to team-nocturnals website for where I found this method
1. You should decompile SystemUI.apk
2. Open /SystemUI/res/layout/tw_super_status_bar.xml and change android:background to 100% transparent:
Code:
<com.android.systemui.statusbar.phone.StatusBarW in dowView android:background="#00000000" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
3. Save /SystemUI/res/layout/tw_super_status_bar.xml
4. Open /SystemUI/res/values/drawables.xml and edit this line to get transparency you need, for example, 100% transparent:
Code:
<item type="drawable" name="status_bar_background">#00000000</item>
5. Save /SystemUI/res/values/drawables.xml
6. Recompile SystemUI.apk
Done... Now you have 100% transparent homescreen statusbar
anarchyhunter80 said:
Loving the new CleanRom 6 R2. One thing I have had no luck with is getting the status bar to be transparent. I have tried flashable zips, I have tried the method below which seems to be the consensus on how to go about doing this and I have tried changing out the status bar png's as well but each time I get no status bar and the inability to change my wallpaper (it just goes black). Is there anyone out the who has had success on changing the status bar to 100% transparent or is there a flashable zip that works with Scott's CleanRom 6 R2? I can attach my SystemUI, framework-res, lidroid-res and twframework-res if there is anyone that can help me out.
Credit to team-nocturnals website for where I found this method
1. You should decompile SystemUI.apk
2. Open /SystemUI/res/layout/tw_super_status_bar.xml and change android:background to 100% transparent:
Code:
<com.android.systemui.statusbar.phone.StatusBarW in dowView android:background="#00000000" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
3. Save /SystemUI/res/layout/tw_super_status_bar.xml
4. Open /SystemUI/res/values/drawables.xml and edit this line to get transparency you need, for example, 100% transparent:
Code:
<item type="drawable" name="status_bar_background">#00000000</item>
5. Save /SystemUI/res/values/drawables.xml
6. Recompile SystemUI.apk
Done... Now you have 100% transparent homescreen statusbar
Click to expand...
Click to collapse
not sure, but after doing this, then go into res/colors.xml and look for the status bar color, (it's either black or that ugly gray) and change that to "00000000" as well. see if that works.
Use morphology. Keep everything else the same but make the status bar transparent.
Sent from my SCH-I535 using xda app-developers app
so i tried the color xml and morphlogy and I still get the same results no status bar and with morphology I am getting a Unfortunately, No recent apps has stopped message.
anarchyhunter80 said:
so i tried the color xml and morphlogy and I still get the same results no status bar and with morphology I am getting a Unfortunately, No recent apps has stopped message.
Click to expand...
Click to collapse
Alright send your sysui here and ill do it.
mentose457 said:
Alright send your sysui here and ill do it.
Click to expand...
Click to collapse
Thanks for the assistance. Attached is the SystemUI.apk, I cannot attach the framwork-res.apk it is to big.
anarchyhunter80 said:
Thanks for the assistance. Attached is the SystemUI.apk, I cannot attach the framwork-res.apk it is to big.
Click to expand...
Click to collapse
Out of curiosity, have you flashed any mods or are you on stock CleanROM?
anarchyhunter80 said:
Thanks for the assistance. Attached is the SystemUI.apk, I cannot attach the framwork-res.apk it is to big.
Click to expand...
Click to collapse
Rename to SystemUI.apk then push to /system/app/ then change permissions to rw-r--r-- then restart. You may have to restart then change the permissions as SystemUI will stop working till you restart. Note that when you first restart the status bar will be black. You need to pull down on the status bar for it to go transparent.
Enjoy.
https://dl.dropbox.com/u/44601870/SystemUICROM6.apk
mentose457 said:
Out of curiosity, have you flashed any mods or are you on stock CleanROM?
Click to expand...
Click to collapse
no flashing just stock clean rom 6 r2
mentose457 said:
Rename to SystemUI.apk then push to /system/app/ then change permissions to rw-r--r-- then restart. You may have to restart then change the permissions as SystemUI will stop working till you restart. Note that when you first restart the status bar will be black. You need to pull down on the status bar for it to go transparent.
Enjoy.
https://dl.dropbox.com/u/44601870/SystemUICROM6.apk
Click to expand...
Click to collapse
My friend I don't know what you did but would love to know how you did it. This is much better. Thank you. If you don't mind may I share your link on the CleanRom 6 thread?
anarchyhunter80 said:
no flashing just stock clean rom 6 r2
Click to expand...
Click to collapse
anarchyhunter80 said:
My friend I don't know what you did but would love to know how you did it. This is much better. Thank you. If you don't mind may I share your link on the CleanRom 6 thread?
Click to expand...
Click to collapse
All that needed to be changed was #4 from the OP. I also used 00ffffff instead of 00000000, though I dont think it would make a difference. Go ahead and share it.
mentose457 said:
All that needed to be changed was #4 from the OP. I also used 00ffffff instead of 00000000, though I dont think it would make a difference. Go ahead and share it.
Click to expand...
Click to collapse
So I didn't need to change the tw_super_status_bar? Only had to change the values/drawable.xml.
anarchyhunter80 said:
So I didn't need to change the tw_super_status_bar? Only had to change the values/drawable.xml.
Click to expand...
Click to collapse
Yep. I didnt look at what the other changes did. It may be that they make it so it boots up transparent.
I'm using kindacrap mods over cleanrom.. just make sure you don't use the kindacrap policy mods. I love the transparent status bar.
Sent from my SCH-I535 using xda app-developers app

Categories

Resources