[Q] Help needed for transparent status bar - Desire Q&A, Help & Troubleshooting

Hey,
I really need help for modding the status bar of my Desire (ROM: Pre-rooted Stock FroYo 2.10.405.2; fully deodexed). I would like to get something like the shaded/transparent for the Droid Incredible and read about every tutorial I could find on how to customize the framework-res.apk.
So I basically did this (phone in recovery):
update-zip a modded services.jar on the phone (I used the one on from LeeDrOiD's customization options for FroYo 2.10.405.2 modded by snq-; directlink: here)
adb pull my framework-res.apk
use 7zip to extract the image and put it back into the apk after editing it in Photoshop
adb push framework-res.apk back to /system/framework and overwrite the old one
When I reboot my phone after that it boots correctly straight to the PIN input and the unlock pattern after that. But after that when the Sense launcher tries to start I get a whole lot of error dialogs and force closes and the phone goes back to the boot screen and boots normally until I hit the PIN input again. Strange enough the modded status bar is displayed correctly all the time (means: transparent). It also makes no difference if the apk is signed or not. Oh, and the framework-res.apk is already modded by Smooth Sense Icons if that matters...
What am I doing wrong here? Does anyone have a hint?

Related

Custom lockscreen, white clock, constant batt meter, and more...

MoonSpoon was the first to implement an image on the lockscreen and it was his idea. While he has not posted his yet the credit for the idea of having a graphical batt meter came from his mind. So, much thanks goes to Moonspoon for this. Check out his progress on this and more at his twitter page http://twitter.com/moonsspoon
Credit: The image for the lockscreen box is not my design, I stole it from Moonspoon, specifically from Gloss Suite. So the credit goes to him for the image.
The image for this battery meter was created by Androidd Please thank him for his creativity and time regarding this.
Major Update: This is an update to all three of the files I made available before. If you have these files now, please update all of them with what I am offering now.
This update adds a skinnable 5% graphical battery meter on the homescreen as well as a real time percentage of the remaining battery life.
This update also adds a transparent image in the drawable folder of framework-res.apk that can be changed to a solid image which will replace the current lockscreen image, please size image accordingly.
This also includes a custom image for the box on the lockscreen which holds the information on the lockscreen. This image is independent of all other images on the phone and will not affect any other part of the phone, please size accordingly.
This update also fixes the blackout issues being experienced by some.
This framework-res.apk includes the white text for the statusbar as well, if you don't want it take statusbar.xml out and replace with your own.
If you have a theme, add your own images to the drawable folder in Framework, However, be sure to leave my custom images I have in there, they all start with ZZ.
If you have any questions please don't hesitate to ask, but also look through this thread for the answer before asking.
Please be aware I will no longer be providing a lockscreen with T-mobile on it.
This COULD cause problems with certain features that have been implemented in other 1.5 versions. I am not working to maintain compatibility with any one specific build, so USER BEWARE! The reason that this could cause problems is because there may be changes that have been made for other 1.5 versions that have been made in these files and by replacing all of these files you will most certainly overwrite their changes. So use at your own risk!
Remember when pushing these files from recovery to mount system first by typing: adb shell mount /system
Remember all of these files go in /system/framework
By using these files you are agreeing that you have read and understand the above warnings! You assume all liability by using these files on your device.
White clock: http://www.fightforthepits.com/Androidstuff/services.zip
Lockscreen (push both files): http://www.fightforthepits.com/Androidstuff/framework.zip
Second file: http://www.fightforthepits.com/Androidstuff/android-policy.zip
From BrandenK
So I put together the JesusFreke ADP 1.5 with the custom lock screen from Stericson and keeping black text for notifications and the date. You should be able to rename to update.zip and flash if you already have JFv1.5 without having to wipe. And for me it took a long time to make it past the animated android logo so be patient.
DOWNLOAD HERE [37.1MB]
Enjoy,
Stericson
very nice so all we do is push this thru adb?
Yes but it is only the white clock for now....you need to push services.jar to /system/framework
The batt meter I will release later, it requires a update file....Which would wipe out themes people may have had installed, and reflashing a theme would erase it again...so....this would have to be incorporated into an actual theme. The white clock wont be affected by a theme because it is usually not replace during a theme update.
Stericson
thanks alot bro. will push right now :]]
can't wait for what else you can cook up for the lock screen!!
Please let me/us know if it works for JF's 1.5 build.
okay here's the problem.
i dont have adb avaiable because im on a mac and don't really know how to use this thru terminal
i know you can push this thru the terminal emulator on the g1
think you can give me the codes to push it thru
i tried this
su
mount -o rw,remount /dev/block/mtdblock03 /system
push /sdcard/services.jar /system
gives me an error saying i couldn't push
any ideas.
thanks.
I just replaced the file in the framework folder and resigned the update. Also, this works on JF's 1.5 build from what I see. Haven't had it on for any extended period of time so I don't know if any errors will occur.
okay i found the right prompt but it didnt work
maybe im doing it wrong :/
i also cp it to /system and reboot, but still black clock
can you make a update.zip with glosstheme battery lockscreen and white clock ?
Aw man good stuff.. im going to see if i can port the ORIGINAL gloss suite with the sexy jet black status bar before moon made it more gray because of complaints of the clock
Any clue on the white notification text? Can't get that one going... Thanks for this!
BTW - this works great on JF 1.5.
Edit - I tried copying the status_bar.xml from a 1.1ADP theme over, and had troubles with it not booting. I just tried one more time - this time the only thing that I have changed is the status_bar.xml in my framework_res.apk, re-signed it & my update.zip, did a nandroid (just in case!) and it is booting now.... but, all I get are force closes upon bootup, and a loop.
So, now I am restoring my nandroid of the system partition, which should get me back up and running. Can you tell me what I am doing wrong. When I compare the two xml's in HxD, there is only one difference (which I assumed was the text color), should I be modifying the new xml manually, or has something changed?
Thanks for being so patient with me, this is the last piece of the theme I am trying to get right...
DUH! I'm so sorry guys, you have to push this to /system/framework Then it will work. Sorry that was my fault.
Anyone that put it in /system can either remove the file from there or move it to the correct location.
rm -r /system/services.jar
That will remove it.
White notification text I can get but it will need to be replaces in framework-res.apk. I will postthat file tonight possible along with the battery meter on the lockscreen.
Stericson
Stericson said:
DUH! I'm so sorry guys, you have to push this to /system/framework Then it will work. Sorry that was my fault.
Anyone that put it in /system can either remove the file from there or move it to the correct location.
rm -r /system/services.jar
That will remove it.
White notification text I can get but it will need to be replaces in framework-res.apk. I will postthat file tonight possible along with the battery meter on the lockscreen.
Stericson
Click to expand...
Click to collapse
Thanks a million, I guess I already knew that it needed to go into the framework directory - cause that's where I put it!
But the notification text is just kicking me in the ass. The battery % on the lockscreen sounds cool - is that just an xml edit or does it require another app to be installed?
Looks like someone already ported the white notifications text for 1.5, here is the link http://forum.xda-developers.com/showpost.php?p=3719895&postcount=1
You can just flash the update or pull the xml file from it, which is statusbar...something something, don't remember, but just pull all the statusbar xmls in res/layout and put them in your own framework-res.apk and you'll be good to go.
The batt meter is a conbination of edits I made to the source it requires some new files and a new framework.apk, the easiest way to do this would be to take my framework-res.apk and put your drawables in, whatever they may be.
At any rate I'll see if I can get that up tonight.
Stericson
You got a bad link in that post, I tried looking for threads that ended in 95, but couldn't find it.. Care to correct it, thanks...
for some reason i can't mount my phone anymore?
could this be because of removing the original services.jar?
Fixed and tested.
Stericson said:
Fixed and tested.
Click to expand...
Click to collapse
Much obliged, running off to try this out now.
Edit - So, I dropped the xml into my framework, made a quick update, and bingo bango! Got white text, no force closes, I am rocking this now! Thank you again, just gotta finish setting up my apps like they were before (and custom ringtones - why can't that be backed up?) and I can make a final 1.5 nandoid stable backup!
johnnylicious said:
for some reason i can't mount my phone anymore?
could this be because of removing the original services.jar?
Click to expand...
Click to collapse
I believe that this could be a side effect but I'm not sure, I can mount it fine in recovery, just not while the phone is on....
Maybe you can try putting the opriginal service.jar back and let me know if it is from mine?
Stericson
Stericson said:
I believe that this could be a side effect but I'm not sure, I can mount it fine in recovery, just not while the phone is on....
Maybe you can try putting the opriginal service.jar back and let me know if it is from mine?
Stericson
Click to expand...
Click to collapse
I used your services.jar, and can still mount while the phone is on. You are talking about mounting the sdcard via the usb cable, right?

[Guide] How to change the color of your notification bar / background

This is my first "guide" so bare over with me
In order to change your status bar color along with the Background color, do this:
First we need the framework-res.apk from the phone
- adb remount
- adb pull /system/framework/framework-res.apk framework-res.apk
Take a backup of this file in case you failed and wants to go back.
Rename your local framework-res.apk to: framework-res.apk.zip
Open the Zip file and go here:
/res/drawable/
Locate these files and unzip them:
statusbar_background.png
status_bar_background.png
status_bar_close_on.9.png
status_bar_header_background.9.png
status_bar_item_background_normal.9.png
These are the files you want.
I sugest that you use Photoshop to do what you want with the colors, if you are using Photoshop, be carefull editing status_bar_close_on.0.png, it might look weird if you are doing it wrong.
After your done editing these pictures go here:
/res/drawable_land/
Locate and unzip:
statusbar_background.png
Do the same here as you done with the first pictures.
After you are done editing the png's, save them in your zip file.
Rename framework-res.apk.zip to framework-res.apk.
- adb push framework-res.apk /system/framework/framework-res.apk
Now restart your phone, and your Notification bar has been fixed
I'm using Open Home along with HTC Hero skin and this just looks PERFECT!
This doesn't change the Text's on your Notification Screen, that you will have to find out for yourself, or post a solution here.
Can't wait to try that out I want mine to be changed..
Update:
For changing the color of the clock, take a look at this topic:
http://forum.xda-developers.com/showthread.php?t=535630
Solution will be there during the week.
It's already available for Rogers ROM's.
WebghostDK said:
Update:
For changing the color of the clock, take a look at this topic:
http://forum.xda-developers.com/showthread.php?t=535630
Solution will be there during the week.
It's already available for Rogers ROM's.
Click to expand...
Click to collapse
Yeah i have tried to push a heap of different G1 services.jar files over to my Magic (ion rom) but was in boot loop city for every one. Oshaka has said he will modify a sapphire services.jar for me... still waiting on that- will post my results as soon as he has it for me.....
TBH though, having a status bar background black with green behind the black clock is actually probably easier for me to read than the white one......will test it out when i get the correct services.jar
got green notifications but for some reason the services.jar doesn't change....
working on it... maybe oshaka can come up with a reason for me...
I cant seem to get the services.jar to change either. I have asked Oshaka to fix it for me, and he said he would do it like 3-4 days ago.
Waiting
WebghostDK said:
I cant seem to get the services.jar to change either. I have asked Oshaka to fix it for me, and he said he would do it like 3-4 days ago.
Waiting
Click to expand...
Click to collapse
services.jar will work on hofo rom or any rom without .odex files. The problem with hero and ion roms are that they dont have the classes.dex files within services.jar. I am assuming they are in the services.odex file, which so far i have been unable to open and read to find the correct smali files.
I have called it quits trying to figure it out for now...... until the colorchanger app includes support for this i am putting it in the too hard basket.
Let us know if ohsaka gets back to you. If we get this we can theme anything we want- i made a theme template for ion which worked......
***edit*** just got a reply from Ohsaka, he said there is no way he knows of to open .odex files to edit colour inside of them. that kind of means those of us running ION or hero are **** out of luck. Until someone starts modding the HTC build a bit more (kind of like how cyanogen mods the standard 1.5 and also pulls from donut etc) then we are stuck with what we have got
Hofo rom has some potential.... maybe we should all chip in and buy cyanogen a Magic (32A of course )?
Is it possible to edit the png's in the framework zip to a translucent opacity, and push the entire zip back in to make the notification bar have some transparency?
Edit: Nm, tried it and it is more complicated than I thought lol. Screenshots of a 50% status bar png to come
I have adb etc set up and willing to try ,would be my first action on editing my phone.
Does my phone need to be rooted/re-rommed for this to work ?
I own a original out of the box T-Mobile G1 , and I really would like to change the colouring of the notification bar to match the colour of my background picture, but not at the expense of giving up my warranty ( not yet ) , depends on future updates of G1 which is doubtfull at the moment I believe
jinglebinkie said:
I have adb etc set up and willing to try ,would be my first action on editing my phone.
Does my phone need to be rooted/re-rommed for this to work ?
I own a original out of the box T-Mobile G1 , and I really would like to change the colouring of the notification bar to match the colour of my background picture, but not at the expense of giving up my warranty ( not yet ) , depends on future updates of G1 which is doubtfull at the moment I believe
Click to expand...
Click to collapse
I haven't tried this out at a non-rooted phone, but yes, it will work on a non-rooted phone, so just go ahead.
Don't be affraid about the warrenty, you can always say you downloaded a skin on market
MontAlbert said:
services.jar .......
Click to expand...
Click to collapse
Totally noob to this crazy world, what does the services.jar do?
What effects does it have? I'm trying to edit the notification bar/icons.
Am I limited to what can be done because of this "services.jar" ?
I keep getting "remount failed: Operation not permitted" when i try to remount
can you do this on the droid eris
should work on eris,just do a nandroid backup first just in case you need to roll back
I just wanted to let people know, i ran into a problem with force closing constantly.
Solution i came up with is if you have the custom OC kernel, you must edit the
pictures and stuff for your UI and then flash the kernel. If the kernel is already in place
it will conflict with the 'adb push framework-res.apk /system/framework/framework-res.apk'
And a data value will change, causing force closes.
~
So, is there any way I can grab the smileys aswell and change them? I want the SonyEricsson smileys instead of those android ones.
I also get force close (of the market app) after modifying images in a custom ROM, on a T-Mobile Pulse. jamsk8er1994, could you explain in more detail what you mean by "edit pictures and flash your kernel"?
The same goes for those of you who want to change the smileys that you see on your phone. If you're tired of those robots you go into
- framework-res.apk\res\drawable-mdpi-v4
and find the files called "emo_im_"
There is 17 files, png's. open photoshop and make the smileys you'd like in a 20x20 canvas (pixels). save for web and devices -png 24, with the same name. In example: (The grinning smiley :-D) is emo_im_laughing.png
Then you drag the new png you've made into the apk file and choose replace existing.
Note: this is only for your viewing, others will not see the smileys you have on your phone unless they got the same on theirs. If they have the droid ones that is what they see when you send. But if they send you a droid smiley you see the custom one you've put in yourself.
i changed all the colors to black on PS. dragged them back into the zip file, renamed it to "framework-res.apk" and typed in the command in the cmd. I got a message saying "failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk' : No space left on device".
what do i do?
Awesome thingy, I'll make everything non-glossy.

"porting" lockscreens

I've searched through the forums but i can't find an answer that works.
I want to take a semi-transparent lockscreen from one hero rom and put it on another hero rom that doesn't have a transparent lockscreen
i've tried replacing com.htc.resources.apk and when the phone reboots i hear the notification sound that the USB is connected but all i see is the htc loading symbol. the home screen never loads.
mgorman said:
I've searched through the forums but i can't find an answer that works.
I want to take a semi-transparent lockscreen from one hero rom and put it on another hero rom that doesn't have a transparent lockscreen
i've tried replacing com.htc.resources.apk and when the phone reboots i hear the notification sound that the USB is connected but all i see is the htc loading symbol. the home screen never loads.
Click to expand...
Click to collapse
totally going in the wrong way for that
the reason your getting a htc screen hang is bcuase the resources.apk your using prolly came from a different WWE build than the one your applying it to.... so go back to the one that came with your rom ... moving on to transparent lockscreen
what hero rom are you trying to modify and are you trying to mod the lockscreen grafics as well?
if your modding the graphics for the lockscreen bar unzip (using winrar) the apk (keep the original apk file) and inside one of the folders is one called draw port 480x280 the loscreen bar images are right there to edit
when your done editing
open the original resources.apk with winrar and navigate to that drawport480x280 folder
drag your modified images to the winrar window that is opened to the drawport480x280 when you modify the images keep the names that were originally corresponding with the images...so that the system can find them when it loads the lockscreen. and it will have a prompt click on ok and it will put those images back in your apk
now adb push your new resources.apk to your phone reboot to enjoy your modified lockscreen bar.
to change the image to transparent....(use photoshop to make a transparent .jpg image) get in root explorer on your phone and navigate to your /system/etc/lockscreen/port/ folder and the htc.lockcscreen1.jpg image is the one were gunna replace so name your custom image from photoshop the same thign that that htc.lockscreen1.jpg and then adb push (or root explorer copy) it to the /system/etc/lockscreen/port/ to replace original effects should apply immediatly then enjoy your fully modified lockscreen
i'm looking for original lock screen from android to replace hero's one cuz the time and date in original is bigger and backlight timeout is set to 5 sec ( in hero is 15- waste of battery). If you find a way how to do this - please let mi know cuz i've been trying and asking and nobody answered me...
Zarboz said:
totally going in the wrong way for that
the reason your getting a htc screen hang is bcuase the resources.apk your using prolly came from a different WWE build than the one your applying it to.... so go back to the one that came with your rom ... moving on to transparent lockscreen
what hero rom are you trying to modify and are you trying to mod the lockscreen grafics as well?
if your modding the graphics for the lockscreen bar unzip (using winrar) the apk (keep the original apk file) and inside one of the folders is one called draw port 480x280 the loscreen bar images are right there to edit
when your done editing
open the original resources.apk with winrar and navigate to that drawport480x280 folder
drag your modified images to the winrar window that is opened to the drawport480x280 when you modify the images keep the names that were originally corresponding with the images...so that the system can find them when it loads the lockscreen. and it will have a prompt click on ok and it will put those images back in your apk
now adb push your new resources.apk to your phone reboot to enjoy your modified lockscreen bar.
to change the image to transparent....(use photoshop to make a transparent .jpg image) get in root explorer on your phone and navigate to your /system/etc/lockscreen/port/ folder and the htc.lockcscreen1.jpg image is the one were gunna replace so name your custom image from photoshop the same thign that that htc.lockscreen1.jpg and then adb push (or root explorer copy) it to the /system/etc/lockscreen/port/ to replace original effects should apply immediatly then enjoy your fully modified lockscreen
Click to expand...
Click to collapse
alright ill give that a shot. thanks
pegaz said:
i'm looking for original lock screen from android to replace hero's one cuz the time and date in original is bigger and backlight timeout is set to 5 sec ( in hero is 15- waste of battery). If you find a way how to do this - please let mi know cuz i've been trying and asking and nobody answered me...
Click to expand...
Click to collapse
just delete htclockscreen.apk?
idk
haha

How to extract thinks of a theme ?

Hello,
I like http://forum.xda-developers.com/showthread.php?t=541841 the slider of this theme the widgets, and the green highlighting color ?
Cann anyone say how can i extract the slider and widgets of this theme and port it to cyan 4.1.999 ??
I mean this here
I want each think in its self update.zip so i can test what is good looking for me.
mfg
get the theme you want or rom. extract it. the go to system, framework, then extract framework-res.apk, then go into res and theres most of the highlights and stuff. now it you want the launcher get the theme/rom, then extract it, go to system, app, then extract launcher.apk and theres all of your desktop highlights and launcher.
if you have anymore questions just ask.
Okay thx , drpfenderson helped me too and sayed me the same but i dont
can sign my apks my windows say with my auto signer tool i dont have java but i have java installed... >.<
Could anyone fusion the launcher apk from this theme with the advanced launcher.The black notification bar and the green highligting colour ?
This would be really great
mfg
go get winrar and then right click on the apk/zip and go to properties then go to open with, winrar. then click on the apk/zip and then a little folder will pop up and the you can just drag what you want into it. you will not need to sign it. put it in your working adb directory. and then
adb remount
adb push (file name) /(directory)
adb shell reboot
I got the framework working now
Cann anyone fusin me the launcher from ted with the advanced launcher for 4.1.999
mfg
sorry wrong thread.
if you get winrar and do what i said you dont need it to be signed. you can do it your self and its really easy.
I have it
But i cant port it to 4.199 because its from 1.5 to 1.6 and i cant do this i hope ted port his theme soon
thank you
you can put his launcher in 1.6 im running jacs stuff in my drizzy 1.6. as long as its nothing completly different then you can put it in any rom. i have xroms launcher in 1.6 but just dont put the whole entire launcher in just go into drawable port/land. and take the thing that looks like what your talking about.
I have it
Now i port the framework-res
EDIT: I have a little question i ported the launcher.apk and it works but when i reboot my phone stocks every time in boot logo tmobile and i have to flash new >.< (Is this because my file is not signed ?)
mfg
what you have to do is go find teds launcher.apk and extract it. then go to res, drawable-land and drag those out to your desktop, and then go back to res, then drawable port, and then drag those out to your desktop. and then go find you cyan 4.1.999 and extract it, then click the extracted, then go to system, then app, Launcher.apk (you should be in winrar now), then click res, then click drawable-port, then drag the ones that are in portrait mode into the winrar box. then go back out to res, then click drawable-land, and and drag the ones that are sideways into the winrar box.
put the cyan 4.1.999 Launcher.apk in your working adb directory and type this...
adb remount
adb push Launcher.apk /system/app
adb shell reboot
if you every thing exactly how i told you it will work i do this 10 times a day.
I did this and i see my new launcher but when i reboot the g1 stuck on g1 tmobile screen ... Its just when i modified the launcher when i use the standard launcher it works but when i modified a thing it doesnt boot afer reboot
mfg
for me to be able to help and understand 100% will you explain step by step what you do.
Thx
I got it working now But now is my problem the framwork-res.apk
do you know how i can port this ?? I tried it but it says me a lot of errors like google process gapps is not working right.
mfg
every thing i said for launcher do for frame works. its exactly the same deal. youll start to get the hang of it. its not all that hard it just seems hard.
Now i portede the whole theme but a little problem is in the notification bar , the bar is black and the font colour too where i find this data to change the font colour
Search the Q&A forum for the thread 'help porting theme' david answered that question for me a week ago.
did you have to sign what you did? because when i do it this way i dont.
I tried this on framework-res.apk using the recovery console to place it back on my phone.
i got endless FC. tried fix permissions and wipe dalvik neither worked.
does it have to be ADB? is using the recovery console where i went wrong?
the graphical changes i made worked, but the phone was unuseable.
I always sign mine when I change something. It only takes an extra second, and I flash mine from the phone rather than in adb cuz I always do a backup first just in case.
As for the font colors on the notification bars, you hafta edit some xml files. Those which are posted in the other thread in the Q&A section.

Battery Percentage Mod and HTC Setup FCs

OK. So I have looked and looked, and found no answer to the following:
I have been cookingn a ROM based on the deodexed/rooted stock 3.26.605.1 ROM I got from the Virtuous site. As a final step in this process, I am trying to apply the percentage battery mod to that ROM's framework-res.apk. Basically, all I am doing is (1) decompiling framework-res.apk using apktool, (2) editing stat_sys_battery.xml, stat_sys_battery_charge.xml to allow for the percentage battery and 33-stage charging animation in res/drawable, (3) adding the appropriate extra battery icons to res/drawable-hdpi, (4) recompiling using apk manager (also tried apktool).
When I push the apk to my phone running my tweaked ROM or the untouched ROM, everything works fine. However, if I put the apk in a cooked ROM (tweaked or untouched) and flash (having wiped everything), I get a force close during HTC setup, right after it asks me if I want to run VZW's backup service, and I hit skip. Then I get sent back to the start of the setup process. I also get an FC at the same point if I push the apk to the working, untouched ROM and try to go through HTC setup.
Could anyone please help me with this? Am I missing an XML I have to edit, as well?
It is driving me nuts, and the rest of the ROM is all ready to go except this one strange issue...
I attach the portion of my logcat showing the setup process leading up to FC. If any additional info is needed, please let me know.
Thanks in advance.
Steve

Categories

Resources