Hi, I already took a look around this forum and searched for this problem on Google, but i can't find an useful solution that is not "reinstall the ROM"
and i would like to avoid it.
I'm trying to edit my SystemUI.apk, to make the status-bar background back to black. (right now it's trasparent and it's driving me crazy)
with apktool i installed the framework-res.apk and the systemui.apk, then i extracted the systemui.apk, modified it, i placed inside the resources.arsc then recompiled it, i took the apk into systemui/dist and placed back on my cellphone, then i replaced the original SystemUI.apk with fx root explorer and my jiayu rebooted by himself.
Then I saw that the status bar, notifications, wallpaper, everything, was disappeared, i can't toggle anymore my smartphone to the pc.
There was a backup of the systemui.apk, systemui.odex and framework-res.apk, so i placed back the systemui.apk and the systemui.odex (like always).
Then i rebooted the smartphone manually but the wallpaper/statusbar/etc. (all the informations inside systemui.apk) still won't load.
I tried replacing them again, shutting down, remove the battery, rebooting, replace the framework, i tried everything that was coming to mind to me.
On the internet i found a way to solve this problem with ADB toggle, but I can't find a way to make it work: it tells me that the application is installed on the SDCard where i don't even have an SDCard attached.
and i'm not able to install the SystemUI.apk using Terminal emulator either (another solution found on the internet).
Is there someone that knows how to solve this problem without installing the rom again? i would like to avoid the problem to put back in all of the stuff i have on my smartphone... there's maybe a way to regenerate the contents inside system/app without the entire rom.
Putting that stuff back in manually won't work...
-----------------
EDIT: Solved... Please delete this post and sorry for the troubles... The solution was easy: application list -> systemui -> delete updates and cache -> reboot.
Solved...
Related
(I'm new at this, any help would be appreciated)
I'm using Daneshm90's (very awesome) APK Manager to mess around with my framework-res.apk file. I've sucessfully reskinned some pngs and changed some xml files and stuff like that.
Why does the following cause a bootloop?
1) Decompile Framework-res.apk
2) Make a copy of res\drawable\btn_default_small.xml and rename it btn_default_small2.xml
3) Change the background of something to android:background="[a]drawable/btn_default_small2"
4) Compile\flash to phone etc, watch it bootloop
(please note: [a] is really the email 'at' symbol, the forums get mad at me for using it)
I can edit existing files just fine, but whenever I try to add and use a new file everything grinds to a halt, even if its just a copy of a working 'stock' file. What am I missing? Is there a list of files somewhere I need to add my new xml file to? Should I be building from source instead of using apk manager?
Hey Guys,
I have been attempting to mod my framework-res.apk to try and add a percent battery icon (unsuccessfuly so far). Here is my issue, after finding that my modded framework file isnt working properly, I go to try and restore the original. After restoring the original I still get tons of FC's and the only way to get things back to normal is to restore my backup from CWM.
The method I am using to replace my framework-res.apk is to use a root explorer (ES File Manager) to copy the file to /system/ then from there I modify the permissions and then move the file to the framework folder, overwriting the existing file. After this, I reboot the phone.
My question is, why is my original framework-res.apk file causing force closes? It is starting to make me think that even my modded files are ok, but that the issue is arising in the manual transfer.
Sorry if the answer is posted elsewhere, I googled and was only finding issues with the apk not being compiled correctly, but that shouldnt be an issue with the original apk.
*EDIT* I figured it out. It appears it was because Jkay Deluxe was installed. I decided to reflash the rom and try with a fresh copy of the framework-res.apk and everything appears to be working now.
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 :/
Hey,
I have a devastatingly annoying problem on my hands, involving my SystemUI.apk (go figure).
You see, I've been trying to edit my status bar, and make it semi-transparent.
First, I followed this guide: http://forum.xda-developers.com/showthread.php?t=2144911
And then this one: http://forum.xda-developers.com/showthread.php?t=2204389
But neither seemed to work. All I get is a message telling me that SystemUI.apk has stopped working (I have tried rebooting, it doesn't work.)
Now the process I went through to edit the .apk file was, of course:
1. I extracted /system (and all its apks) with adb
2. I installed the framework of both framework-res.apk and SystemUI.apk with apktool using:
Code:
apktool if framework-res.apk
and
Code:
apktool if SystemUI.apk
2. I decompiled the apk with apktool
Code:
apktool d SystemUI.apk SystemUI_new
3. I edited the status_bar.xml file with Notepad++
4. I recompiled with, again, apktool.
5. I went and made a copy of the original apk, and copied the altered files from the edited apk to the copied one.
6. To be safe, I got drag2sign (the bat file, yes) and signed the apk.
7. I copied the new apk onto my phone, and put it in /system/app/ to replace the original .apk
8. After rebooting my phone, my status bar was gone.
Just to be sure, I went ahead and copied back the original SystemUI.apk back into system/app just to check if I was putting it in the wrong place, but after rebooting once more it worked fine.
I have a niggling suspicion that it was something either to do with the permissions that are set on my edited apk (--- r-x rwx, which I have no idea how to change) or the fact that I'm meant to edit something in the framework-res.apk or twframework-res.apk, which both remain at a plain deodex as of now. I have attached the edited apk, just so if anyone wants to take a thorough look at the one line I changed to tell me what I have done wrong, they can go right on ahead.
The only reason I am being so unnaturally detailed in this question is I have quite honestly had it with this stupid SystemUI.apk, and am desperate for help. Please, if you have anymore questions you have to ask about what I have/haven't done, please, ask away. If you have a solution, feel free to berate my stupidity. If there is a thread on XDA which I overlooked, please shove it in my face. Anything to figure out what the hell I am doing wrong.
PLEASE HELP!
Hello,
Many users here are helpful and I have learned a lot..
To thank these good people I've modded a couple of Lollipop apk's and will upload them here for others as a thank you.
These two have been modded for my personal use.
SystemUI.apk mod:
After upgrading my Samsung Galaxy Note 4 (SM-N910G) to Android Loillipop 5.0.1 I was again facing the much disliked "S Finder" and "Quick Connect" buttons in the notification tray.
As I dislike the S Finder and Quick Connect being in the notification tray, they have been removed.
Settings.apk mod:
Since I have disabled/removed a lot of apps I have no use for the following items, they have been removed from the Settings menu
Accessibility
Easy mode
Private mode
Safety assistance
These apk's need to be copied into their original locations (will need root access)
Please back up your original files before doing any of this as I am not responsible if you stuff something up :crying:
SystemUI.apk is located in /system/priv-app/SystemUI
SecSettings.apk is located in /system/priv-app/SecSettings
You will need to set the permissions to these files once you copy them over to rw-r-r--
Regards..
Here are the files
SecSettings.apk
http://www.mediafire.com/download/ctlzcyvenc2jka8/SecSettings.apk
SystemUI.apk
http://www.mediafire.com/download/cg1ne5ab3ue8j7m/SystemUI.apk
Enjoy
Will this work on SM-N910C?
Hi jmcostales,
I am not sure. I can only suggest that you "back up" your files and then try each one and see how you go. If the SystemUI.apk doesn't work for you the worst that will happen is a crash and no notification menu/pull-down. You will be able to copy over your old file and go back. I would assume the same thing for SecSettings.apk. It will either work or just simply crash when you try to access it. If it crashes just copy the old one back. If you decide to try these files don't forget to set the permissions once you copy the files over.
Thank you this work for me. you made me happy