• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Editing SystemUI.apk. need some help

hey guys im just doing a few modifications to my status bar. i got the SystemUI decompiled and i edited the status_bar.xml how i needed to but when i try to recompile i get all sorts of errors. Im just trying to get the clock in the middle and remove the Boost Mobile text on status bar
 
If you're getting errors, then you've made some mistakes :D care to post what the errors are? Not guaranteeing I can help, but the specific errors may provide some insight as to where you went wrong :)
 
Also when new to theming and trying out things maybe do one thing and then try, if works then another, then another and when doesn't work then know it can't be done or did something wrong and have to fix it or do differently.
 
Also when new to theming and trying out things maybe do one thing and then try, if works then another, then another and when doesn't work then know it can't be done or did something wrong and have to fix it or do differently.
that's what i was doing. i tried just putting the clock in the middle first and im getting errors with that
 
I don't know the specifics right off the top of my head... so I'll gave to look at it when I get home. But based on those errors, that statusbar.xml references a bunch of resources that aren't there. You would need to make/edit entries to match the missing ones. That error log details everything that's missing.
 
I don't know the specifics right off the top of my head... so I'll gave to look at it when I get home. But based on those errors, that statusbar.xml references a bunch of resources that aren't there. You would need to make/edit entries to match the missing ones. That error log details everything that's missing.

ya i was reading it and noticed that. Im using someone else's code for putting the clock in the middle and i should just be editing it myself but i don't really know how so i just went the lazy way lol. could you teach me what to edit and change for what im doing?
 
Oh! And don't forget you need to retain the rom signature.

Recompiling/Finished Product

now to recompile your new apk type this:

apktool b music music-new.apk

or

apktool b framework1 framework-res-new.apk

framework1 is the folder with your edited files
framework-res-new.apk is your new apk file

Now we are NOT done... we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature

use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk

now the apk is ready to flash with your new changes

http://androidforums.com/esteem-all...roperly-decompile-recompile-apks-apktool.html
 
well i read that you have to resign the SystemUI.apk for it to work so im downloading apkmanager to resign it but ill try that way since it will be awhile before it finishes downloading :( im also downloading android sdk just i can just use adb and push the file where it needs to go instead of using a zip and all that
 
For things like systemui.apk you need it to have the original signature. That's why you copy the files to the original.
 
ok so i can't get it to install from a zip no matter what i do... i put some other files that i guess needed and it passed verification and started installing put then i got the same error except it said status 7. I'll try to just move to sdcard then use file explorer to move it to the right place. that might work...

Edit: tried my second option and it didn't work. my status bar was gone and i kept getting prompt to force close com.android.systemui every 30 seconds. what am i doing wrong?
 
ok so i can't get it to install from a zip no matter what i do... i put some other files that i guess needed and it passed verification and started installing put then i got the same error except it said status 7. I'll try to just move to sdcard then use file explorer to move it to the right place. that might work...

Edit: tried my second option and it didn't work. my status bar was gone and i kept getting prompt to force close com.android.systemui every 30 seconds. what am i doing wrong?

If you copy it with a file explorer you need to make sure to set the permissions to match the current systemui. The easiest way to do this is to copy it somewhere other than system/app, (just /system, for example) set the permissions, then move it to /system/app and overwrite...

When you get the status 7 go to advanced>last log. What's the output?

Did you use blood's apkinstaller for the prevail? If you grabbed the one for the marquee by mistake, it probably failed the system verification... which would explain the status 7.
 
If you copy it with a file explorer you need to make sure to set the permissions to match the current systemui. The easiest way to do this is to copy it somewhere other than system/app, (just /system, for example) set the permissions, then move it to /system/app and overwrite...
I made sure the permission was exactly the same.

When you get the status 7 go to advanced>last log. What's the output?
Ill post that in a few. I don't have my laptop atm to write it all down

Did you use blood's apkinstaller for the prevail? If you grabbed the one for the marquee by mistake, it probably failed the system verification... which would explain the status 7.
I used that and I even tried flashing it using CTMods zip and removing unwanted stuff and just having systemui in there and it flashed but when I restarted my phone nothing changed except all my saved settings and contacts was gone


Sent from using magic ;)
 
Back
Top Bottom