I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.
Muffunz said:
I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.
Click to expand...
Click to collapse
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
10tonhammr said:
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
Click to expand...
Click to collapse
I'm on UnNamed, and I'm pushing the APKs via ADB in command prompt. I'm trying to change the color of the status bar right now, but I'd also like to change the icons. I did what you suggested, but it didn't change anything. Bar is still there and no force closes, but it's still the same color even though the 9.png file is a different color.
Muffunz said:
I'm on UnNamed, and I'm pushing the APKs via ADB in command prompt. I'm trying to change the color of the status bar right now, but I'd also like to change the icons. I did what you suggested, but it didn't change anything. Bar is still there and no force closes, but it's still the same color even though the 9.png file is a different color.
Click to expand...
Click to collapse
Do this, the compiled systemui that's giving you fc open it and the unmodified version. Drag nine patch image you edited to the unedited systemui
Sent from my SGH-I777 using Tapatalk
10tonhammr said:
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
Click to expand...
Click to collapse
jivy26 said:
Do this, the compiled systemui that's giving you fc open it and the unmodified version. Drag nine patch image you edited to the unedited systemui
Sent from my SGH-I777 using Tapatalk
Click to expand...
Click to collapse
I tried that. Nothing happened, the status bar didn't change.
Muffunz said:
I tried that. Nothing happened, the status bar didn't change.
Click to expand...
Click to collapse
Don't adb push it. Just flash it. Download winrar (google it). Download one of my themes (or any theme) for unnamed, delete all the the folders except "system" and "Meta". Open system folder and delete eveything except "apps" folder. Open apps folder and delete everything. Add your modded systemui.apk to the apps folder and flash in cwm.
Its MUCH MUCH easier to use APK Manager and have it push it as an unsigned system app. After you push it, run an "adb shell killall system_server" <-- does a quick system reset, and you can test it out.
I'm not sure what changed but I finally got APK Manager set up to be able to push things itself, and I finally got a change to go through! Thanks for the help guys.
Related
Just wondering how to do it? I'm just trying to change the colour of the signal bars in the notification bar.
I'm running Lite'ning ROM 5.0 and I've replaced the .png files in systemui.apk with 7zip. I then use root explorer to copy into /system/app but the notification bar disappears after I reboot. I also tried editing with ninjamorph and resigning with signapktic with no luck.
Any idea what I'm doing wrong?
Cheers.
you need to decompile it, do changes, compile it an than copy it to the right folder.
decompiling can be done with tools like apk manager.
Great thanks! Will give it a go.
Actually for something as small as couple of image changes you don't need to de compile
You can just open the apk in 7zip add your files then put it in a flashable zip.
some things must change in the framework-res.apk too, or am i wrong?!
esk02k said:
Actually for something as small as couple of image changes you don't need to de compile
You can just open the apk in 7zip add your files then put it in a flashable zip.
Click to expand...
Click to collapse
As in a CWM update zip? Is there a program that can make it flashable?
Edit: Actually I got it all working with the app "Ninjamorph"
I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.
Update apktool.jar also in Android sdk copy aapt.exe to your apk multi tool. If that doesn't work can you tell me the steps you're taking too recompile?
Sent from my SGH-I777 using Tapatalk
I tried to decompile, modify 1 xml file and recompile the framework-res.apk.
But everytime I do it, I either get into a boot loop, or when In succeed it displays glitches (like notification bar, and messed up lock screen, and settings)
This is for AURORA ICS 4.0.3 and I do have the latest aapt.exe file .. so I don't know what is wrong!
I tried to use the original framework-res but replace the resources file inside, stored and compressed methods.
Tried to get the compiled framework-res but add the META-INF and Manifest file (again, both with compressed and stored resources file) and always.. it just glitches or bootloops.. and the mod that I tried (ICS on screen buttons or the CRT effect when you switch off the screen, mainly used in Oxygen roms, but it's available in all ROMs).. it never works.. only glitches the lock screen, notification bar etc..
Any help?
Thanks.
I might know the answer to this..
Which files are you modifying in framework-res? And how are you pushing it back to your phone?
Sent from my U20i using xda premium
Would be great
I am modifying some files in the values folder, bools.xml, arrays.xml .. but even if I edit bools.xml alone, it still glitches.
To push it back: I go to recovery mode on my phone, plug it into my linux machine (the system partition mounts), paste the new framework-res.apk to replace the old one, fix permissions (otherwise it boot loops), and restart the phone. This method works for other files and never had any problems, like the android.policy.jar
Would be great if you can help me. Thanks
Well, the XML files you're editing are all part of resources.arsc so it's something to do with that which is causing the problem. I used to get all sorts of annoying bugs when I edited anything in resources.arsc and I eventually found out that I was pushing the final apk back to the phone incorrectly.
I use a Windows PC, not Linux, so I might not be that helpful but this is what I do to modify and replace framework-res.apk. Hopefully it'll help. What I do is..
Decompile framework-res.apk
Make my changes
Recompile the file
Use a program like 7zip to open the old and the new files
Drag and drop the "res" folder from the new file into the old
Extract resources.arsc from the new framework-res.apk and add it to the old one in "STORE" mode, so it's not actually compressed
Go into recovery, mount the system partition and push the old file
..and that's it. Works a charm every time.
I would have thought that you would need to do the same thing on Linux but with the additional step of correcting the permissions. If you do all that and it still doesn't work, then there has to be a problem with the actual mod you're trying to do.
Thank you very much, I actually tried that method. It sort of worked, but everytime it breaks the notification bar. It becomes like double the size and I'm not sure why.
Thanks.
Then the issue must be with the modification itself. What exactly are you changing to what?
Sent from my U20i using xda premium
I tried different ones.. but even a simple one.. enable CRT animation.. which is pretty much open bools.xml and edit one true to false.. it breaks it :/
I try to change the various status bar icons like the downloading icon, wi-fi icon, but I always get an SHTF error on the pickup page. I think it's my ROM's fault. (Chobits v2). So I want to do it manually. My question is, how? Where can I find the icons that I need to change? :cyclops:
Install 7zip and then right-click on either SystemUI.apk or or framework-res.apk (I can't remember which one of the 2 has those icons), then extract. Browse the files in the extracted folder and see which one has them, modify/replace them, then open the apk file again with 7zip and go to the ldpi folder with the images, and just drag in the modded image files and close.
Atleast that's how I do it manually sometimes.
Where can I find the Wi-Fi signal icons?
blagginspaziyonokip said:
Where can I find the Wi-Fi signal icons?
Click to expand...
Click to collapse
Wifi, data and signal bar are located in drawable-ldpi folder inside your SystemUI.apk. Battery icon in framework-res.apk. the other, just try find them inside drawable-dpi folder of framework-res.apk and systemui.apk.
ztandroid said:
Wifi, data and signal bar are located in drawable-ldpi folder inside your SystemUI.apk. Battery icon in framework-res.apk. the other, just try find them inside drawable-dpi folder of framework-res.apk and systemui.apk.
Click to expand...
Click to collapse
WTF!? I replaced the framework-res.apk on my phone with the one I customised and the phone acted up, everything kept force closing, I had to re-enter my account details, and everything was bad. How do I properly replace the framework-res.apk with a customised one?
Dude, you shouldnt replace the entire framework-res.apk, you should replace only the pngs that you need to change(status bar pngs), replacing it will get fcs
How do I replace only the files I need to? I grabbed the framework-res.apk I currently use and I customised the pictures. I was told I need adb to do this but I think adb replaces thw whole thing.
You can use winrar to replace them, replace the png with the modified png. First modify your framework-res.apk, replace them with the pngs you want, then make a flashable zip to replace it via CWM
If you want the icons from uot kitchen... use some other framework file from other Rom to uot... then apply whatever icons and options you want... submit the work to uot... now download the modified framework from uot... now open the modified framework in winrar... and original chobits in another winrar... now replace all the pngs or whatever pngs you want from modified framework to original chobits... that's all you're done...
ALL I GOT IS INSANE ! !
i neeeeeeeeeeeeeeeed itttt
emjimadhu said:
If you want the icons from uot kitchen... use some other framework file from other Rom to uot... then apply whatever icons and options you want... submit the work to uot... now download the modified framework from uot... now open the modified framework in winrar... and original chobits in another winrar... now replace all the pngs or whatever pngs you want from modified framework to original chobits... that's all you're done...
ALL I GOT IS INSANE ! !
Click to expand...
Click to collapse
Genius
Sent from my GT-S5360 Toaster
Ok so i have had NO LUCK whatsoever trying to get this to work. My ROM for the Note 2 is a TW base (people want the S-Pen functions). And they like the AOSP feel so i decided to try and make a ROM that is AOSP themed. Well i have the launcher and a few AOSP themed apps such as the messaging app.
The flashers were very satisfied with my work so far. But they wanted an AOSP themed status bar. Meaning some AOSP battery images wifi and so on. I decided just just replace the EXACT images. I used a cm10 ROM to get the pngs. I also did use the newest Apktool to do it. I did all the framework installation. I decompiled both and started transfering. Here is what i did. I went to the drawable-xhdpi folder in both ROMs. They had pretty much identical png names. But the icons were different (one being the blue theme) so i took the blue icons (battery and wifi) and transfered them to my rom. I made sure that only the pngs with the same names were transfered. so there wasnt any issue compiling.
Next i compiled the APK file.
Then i used my backup systemui.apk file to transfer the META-INF folder to the new one using 7-zip.
Then i went and signed it and used dsixda's android kitchen to zipalign it. Then after all that i pulled that apk from the zipaligned folder and put it on my phone's sd card. I have the root explorer app. I move it to my /system/app folder. It moved successfully. Then i reboot and when it comes back up i dont have a status bar. And my wallpaper is black for a little while and then goes back to the feather thing.
I have tried signing and not signing. Zipaligning and not zipaligning.
I am stuck here. I am really wanting the AOSP themed icons in the status bar. Any help will be greatly appreciated!
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Open your fresh compiled apk, and your original apk using 7-zip (I haven't tested with Winrar, try if you wish).
Drag and drop all the files from your compiled apk to the original one, EXCEPT the AndroidManifest.xml.
Push this new cross-modded apk to your phone and reboot.
RoberGalarga said:
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Click to expand...
Click to collapse
Always zipalign.
XperienceD said:
Always zipalign.
Click to expand...
Click to collapse
I use dsixdas kitchen to zipalign my apks. Is there another tool I can use for just zipalign?
Droid Premium said:
Is there another tool I can use for just zipalign?
Click to expand...
Click to collapse
Yes, apk multi-tool.
RoberGalarga said:
Yes, apk multi-tool.
Click to expand...
Click to collapse
I appreciate it. Thanks sooo much!
Give me a hand please
RoberGalarga said:
Try this:
Decompile, mod and compile your apk as usual (don't sign or zipalign the file).
Open your fresh compiled apk, and your original apk using 7-zip (I haven't tested with Winrar, try if you wish).
Drag and drop all the files from your compiled apk to the original one, EXCEPT the AndroidManifest.xml.
Push this new cross-modded apk to your phone and reboot.
Click to expand...
Click to collapse
I am modding my status bar 2.3.4 and i want to add power toggles to it
i got a systemui.apk from another phone ( xperia arc 2.3.4) which has the same status bar like i do ( droid 3 )
when i switch systemui.apk's between them i get a FC and then i reboot and i get no status bar .
is that because it is from a different phone ( i looks exactly like my status bar ) or it might be a signature problem from android xml ?
Dorin21 said:
I am modding my status bar 2.3.4 and i want to add power toggles to it
i got a systemui.apk from another phone ( xperia arc 2.3.4) which has the same status bar like i do ( droid 3 )
when i switch systemui.apk's between them i get a FC and then i reboot and i get no status bar .
is that because it is from a different phone ( i looks exactly like my status bar ) or it might be a signature problem from android xml ?
Click to expand...
Click to collapse
You can't do that. Just because they look the same doesn't mean the coding is the same. You are gonna have to add all the missing coding from one that has it to yours. Not an easy task at all
Wayne Tech Nexus
zelendel said:
You can't do that. Just because they look the same doesn't mean the coding is the same. You are gonna have to add all the missing coding from one that has it to yours. Not an easy task at all
Wayne Tech Nexus
Click to expand...
Click to collapse
I even tried to copy a status bar from a 2.3.4 rom ( droid 3 ) to my own build ( 2.3.4 droid 3 ) and did not work
I somehow need to edit the status bar, the interface, so that I create the space needed by my toggles and then add them
And after that I need to create a command file so when I click on wifi to turn it off or on for example, right?
Do you know any place for learning coding or some tutorial that could help me in a way or another?
Dorin21 said:
I even tried to copy a status bar from a 2.3.4 rom ( droid 3 ) to my own build ( 2.3.4 droid 3 ) and did not work
I somehow need to edit the status bar, the interface, so that I create the space needed by my toggles and then add them
And after that I need to create a command file so when I click on wifi to turn it off or on for example, right?
Do you know any place for learning coding or some tutorial that could help me in a way or another?
Click to expand...
Click to collapse
You will need to use a decompiling tool such as APKtool. Then transfer the PNG files from the xperia systemui to the droid3 systemui. Make sure png file names are exactly the same on both systemui's or just rename them to match the droid3 systemui. Also make sure if you have lets say 400 png files in one folder make sure you have 400 at the end of your modding or you will have compiling issues and force closes!
Then use 7-zip to transfer the meta-inf folder to the modded apk file. Zipalign and boom you are done!
Droid Premium said:
You will need to use a decompiling tool such as APKtool. Then transfer the PNG files from the xperia systemui to the droid3 systemui. Make sure png file names are exactly the same on both systemui's or just rename them to match the droid3 systemui. Also make sure if you have lets say 400 png files in one folder make sure you have 400 at the end of your modding or you will have compiling issues and force closes!
Then use 7-zip to transfer the meta-inf folder to the modded apk file. Zipalign and boom you are done!
Click to expand...
Click to collapse
So if i understood corectly i'll have to do this
1. Decompile both apks with apktool .
2. Copy all the stuff from framework-res from xperia to my systemui ( or just for the status bar toggles )
3. Transfer meta-inf .
Question : if i transfer meta-inf folder i will copy and replace the original right ? And what is the meta inf actually ? (The command lines for each power toggle ? ( i mean what to do if i click wifi for example ☠)
4. Zipalign .
5. Replace the file in my unzipped rom ( should i unzip it normally or with apktool ) and then zip it and flash it
Dorin21 said:
So if i understood corectly i'll have to do this
1. Decompile both apks with apktool .
2. Copy all the stuff from framework-res from xperia to my systemui ( or just for the status bar toggles )
3. Transfer meta-inf .
Question : if i transfer meta-inf folder i will copy and replace the original right ? And what is the meta inf actually ? (The command lines for each power toggle ? ( i mean what to do if i click wifi for example ☠)
4. Zipalign .
5. Replace the file in my unzipped rom ( should i unzip it normally or with apktool ) and then zip it and flash it
Click to expand...
Click to collapse
Its a complicated process. It's hard to explain. Check to see if your device supports VRTheme. Go to the Themes section for your device and see if anybody has a theme that uses that system. If so that would make your life SOOO much easier!!
I want to edit my status bar style to iOS style by editing systemui.apk file ..how to do that tell me bro