Jump to content

[FIXED][HELP] Boot loop and FC's after making transparent notification background


Recommended Posts

Posted (edited)

Hello,

I have been reading up and followed some instructions to make a transparent notification background.

I used ADB to pull framework-res.apk and services.jar from my phone (running MCR R9) and replaced the status_bar_background.png in the framework-res.apk (I didn't extract, just dragged the replacement png in to the "zip") and then I followed the following instructions to edit the services.jar:

It's not really hard to do it on your own:

First download smali.jar and baksmali.jar from here http://code.google.com/p/smali/

Open the services.jar file for example with winzip, 7z, winRar, or whatever.

Unzip the classes.dex file to your sdk/tools/ folder and place the baksmali and smali file there too. After that open a new commandbox an run following line:

java -jar baksmali.jar -o out/ classes.dex

You'll have a new folder now called "out". Browse to "out/com/android/server/status" and open the file called StatusBarService.smali with a text editor like notepad.

Search for ".line 1773" and you'll find also "const/4 v5, 0x2"

Just change this to "const/4 v5, -0x3" and save the file.

Open again a new commandbox and run this:

java -Xmx512M -jar smali.jar out/ -o edited-classes.dex

Now you'll have a new dex file called "edited-classes.dex".

Delete the old file an rename the new in "classes.dex".

Open again the services.jar file with any zip tool and overwrite the classes.dex file with the one just created.

-------------

I then used update packager to create a signed update.zip of both the framework-res.apk and services jar (they were in a subfolder called framework and the script was set to copy the folder to SYSTEM) but I just get a bootloop and a whole load of force closes.

Can someone who is making themes please help me out and tell me what I am doing wrong?

Many thanks in advance

David P

transparent_notification_background_update.zip

Edited by David_P
Posted (edited)
I tried again using the instructions from here http://forum.xda-developers.com/showthread.php?t=732370 and with the xUltimate-TP.exe tool but ended up in a bootloop again.

Any help greatly appreciated.

David P

i have a transparent background, by altering the framework-res.apk, even that altered again with battery mod kitchen, but i can't remember that i ever edited services.jar

if i'm wrong ont that, and altering services.jar is nessesary, i wouldn't do it myself, but instead take one from another rom, ie auraxtsense has transparent background

post-701207-1285602178_thumb.png

Edited by woti17
Posted (edited)

I can help you. Upload here your original services.jar and framework-res.apk and i'll make this mod for you.

Edited by furniel
Posted
I can help you. Upload here your original services.jar and framework-res.apk and i'll make this mod for you.

Hello furniel,

Thank you in advance for your help. Linked are my framework-res.apk file, my services.jar file and the new background png image. If you can make this semi transparent I would appreciated it.

Most important, I would really appreciate learning how to do this as my attempts thus far have failed. If you can tell me your process so I can work out where I went wrong, that would be great.

http://dl.dropbox.com/u/10304106/framework-res.apk

http://dl.dropbox.com/u/10304106/services.jar

http://dl.dropbox.com/u/10304106/status_bar_background.png

thanks

David P

Posted
Try thistrans_mod.zip - i recompiled both files and made update.zip - just install it via recovery.

May I ask for a step by step of the process including which tools you used etc? I had tried the edit and recompile of the services.jar and resigned everything in to an update.zip but it didn't work for me, so I want t0 know where I went wrong.

This has worked a treat, thanks :-)

David P

Posted
May I ask for a step by step of the process including which tools you used etc? I had tried the edit and recompile of the services.jar and resigned everything in to an update.zip but it didn't work for me, so I want t0 know where I went wrong.

This has worked a treat, thanks :-)

David P

I used apktool

- just rename services.jar to services.jar.apk and decompile it

- change "const/4 v5, 0x2" to "const/4 v5, -0x3" in StatusBarService.smali

- compile file, sing it and rename to services.jar

- then you should only add transparent status_bar_background.png to framework-res apk and resing it(i recompiled your file because there was something strange in your file - my archiver force closed when i tried to replace png)

- and the last step is to make update.zip

Posted
I used apktool

- just rename services.jar to services.jar.apk and decompile it

- change "const/4 v5, 0x2" to "const/4 v5, -0x3" in StatusBarService.smali

- compile file, sing it and rename to services.jar

- then you should only add transparent status_bar_background.png to framework-res apk and resing it(i recompiled your file because there was something strange in your file - my archiver force closed when i tried to replace png)

- and the last step is to make update.zip

Thanks,

It seems we were doing the same things in maybe a slightly different order. Maybe i'll try again and see if I can make the App Drawer Semi transparent as well - lol

Do you happen to know the line to edit for that?

David P

Posted (edited)
Thanks,

It seems we were doing the same things in maybe a slightly different order. Maybe i'll try again and see if I can make the App Drawer Semi transparent as well - lol

Do you happen to know the line to edit for that?

David P

You should edit rosie.apk for that, but at this moment i don`t remember what exectly.

Edited by furniel
Posted (edited)
There is only one line with const/4 v5, 0x2 - use search to find it.

Thanks, does that mean I just need to make a transparent png to replace the current app drawer background and edit the one remaining line in services.jar and recompile sign and create update?

thanks

David P

Just seen your edit, thanks, I'll keep searching for the Rosie edit :-)

Thank you again, am very happy with new notification background :-)

DP

Edited by David_P

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.