How can I recompile my SystemUI APK? - Android Q&A, Help & Troubleshooting

I was trying to decompile, modify and then recompile my SystemUI.APK to put THIS mod into it. I am using THIS TOOL.... Now I can successfully decompile my SystemUI.APK, but when I go to recompile it, nothing happens and there is nothing in the recompiled folder. Can someone help me out, it'd be much appreciated :good:
BTW I have a Sprint GS4 running a custom ROM (TouchWiz based) on Android 4.3.

Anyone?!

Related

[Q] apktool

Hey guys just wondering if you guys can point me in the right direction to a apktool that is working on the s3.
I've attempted to extract and set the framework.apk and decompile systemui.apk, which worked fine but when compiling the modded file I'm getting errors..
Wont compile with out any modifications either..
Any tips and comments will be appreciated... excuse my grammer as I'm writing this on my phone.
I managed to recompile framework-res.apk with apk tool however it boot looped so not convinced.
Do you have to decompile with dependencies with samsung frameworks?
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
I managed to recompile framework-res.apk with apk tool however it boot looped so not convinced.
Do you have to decompile with dependencies with samsung frameworks?
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
I'm not sure to be honest... hopefully someone can clear this up for us !
https://docs.google.com/open?id=0Bx7xmGB4IFU7bHNSdUtaWjFTOVMtN1VjZnJBcUFWUQ
framework-res.apk won't compile with samsung based roms...i don't know why but in most cases it doesn't.
Make sure to press the thanks button.!!!!
Thanks for the tip, although not being able to recompile SystemUI.apk is a different issue all together..
Iv tried setting framework.apk & twframework-res.apk from the stock firmware which came with my phone.. attempted to compile.. fails.
Iv got a feeling this is going to be something silly..
EDIT: Something has come to mind, iv only ever been able to decompile systemUI for CM9 based roms.. forgot were working with stock Samsung.. last time I had this issue I hit a brick wall pretty much apktool couldnt decompile sammy systemUI .. this may have changed.
rohan999 said:
https://docs.google.com/open?id=0Bx7xmGB4IFU7bHNSdUtaWjFTOVMtN1VjZnJBcUFWUQ
framework-res.apk won't compile with samsung based roms...i don't know why but in most cases it doesn't.
Make sure to press the thanks button.!!!!
Click to expand...
Click to collapse
There was a way of doing it where there was one apktool.jar for decompile and another for recompile. It seemed to work for me but it was not successful.
I'll create my own thread.
I need some help on this too. APKTOOL is not taking if apktool framework-res.apk in CMD. Any ideas? I'm just trying to decompile SystemUI.apk, lol. It shouldn't be this hard.
I have a big problem.
When i use untouched original framework-res and systemui, i can decompile and compile but only when i made no changes.
when i got the framework-res and systemui from my checkrom to mod some xmls ican decompile. but i can not compile
I`ve a look to my pathes but there correct.
My phone SGS3 with checkromV4
AndroidGraphix said:
I need some help on this too. APKTOOL is not taking if apktool framework-res.apk in CMD. Any ideas? I'm just trying to decompile SystemUI.apk, lol. It shouldn't be this hard.
Click to expand...
Click to collapse
apktool work fine here!
i guess you should mount twframework-res.apk in apktool
Code:
apktool if twframework-res.apk
apktool if framework-res.apk
I've managed to compile both SystemUI and framework-res using APK manager for ICS.
Sometimes when you try to use a FW res or system ui from a custom or themed rom you will get errors because of the customizations they made to them. That's why a lot of time they will tell you to start with a stock fw or systemui.
For example, when I tried to recompile a themed FW res (JB domination) I got errors, when I used a stock "virgin" copy it was fine.

cant recompile apk

Hi Im using cm10.1 on my desire s.
I'm using latest apktool. I'm trying to mod in call screen to make more transparent I did found out how to do it thanks to XDA.
but when I recompile it I got error as in screenshot.
I installed framework-res.apk from my rom and decompiled phone.apk
than I edited Phone\res\layout\in_call_screenui.xml that's it.
when I try to recomple it. I get errors in Phone\values\strings.xml which I didn't even edited. I don't get error in every values folder though.
so what am I doing wrong here? can any1 help please?

[DEV][REQ]Decompile systemui.apk

Hello, i would like to modify this systemui.apk but everytime i decompile and then recompile the apk it is no longer functional and is of a smaller size.For example, i decompiled and recompiled the apk without any modifications and then signed it but the file was 2.25mb instead of 2.53mb and didn't function
so can you please decompile the apk and recompile the apk, if it is about 2.5mb please upload the decompiled folder
I have uploaded the systemui.apk nd framework-res.apk
thank you
Anyone??
You need to add the manifest/metadata from original apk when working with system apks. And the loss of mb is normal. I see its tw but what firmware?
andrewwright said:
You need to add the manifest/metadata from original apk when working with system apks. And the loss of mb is normal. I see its tw but what firmware?
Click to expand...
Click to collapse
Thank you very much it worked It's actually an 4.4.2 aosp rom themed like touchwiz
No problem. :thumbup:

Modifying SystemUI.apk odex vs deodex?

I want clarification, for example lets use samsung s6, stock ROM which is odexed, if I wanted to modify say the date on the status bar, it is located in status_bar.xml. Do you need to deodex SystemUI.apk before making changes to the xml file or can you just use apktool to decompile SystemUI.apk, open status_bar.xml, make the changes, and recompile SystemUI.apk and push to the phone? Does SystemUI.apk need to be deodexed first, than re-odexed before being pushed back to the phone?
Thanks
arf8 said:
I want clarification, for example lets use samsung s6, stock ROM which is odexed, if I wanted to modify say the date on the status bar, it is located in status_bar.xml. Do you need to deodex SystemUI.apk before making changes to the xml file or can you just use apktool to decompile SystemUI.apk, open status_bar.xml, make the changes, and recompile SystemUI.apk and push to the phone? Does SystemUI.apk need to be deodexed first, than re-odexed before being pushed back to the phone?
Thanks
Click to expand...
Click to collapse
You should be able to mod it without deodexing.
Deodexing is needed when you have to edit the smali file, layout editing and image replacement can be done on odexed :good:
Great thanks for the confirmation.
With regards to deodexing and odexing what is your favorite tool?

twframework-res.apk

Hi everybody
I've used apktool V2.0.3 for decompiling and compiling my
framework-res.apk
SystemUI.apk
SecSettings.apk
ClockPackage_Osup.apk
MultiWindowTrayService.apk
SecContacts_Phone_OSup.apk
SecMms_Candy.apk
SamsungMusic_20.apk
without any problem.
But now I want to make afew changes to "twframework-res.apk" and I'm getting a huge list of error while compiling this apk ( I posted the error log at end of the post)
I use twframework-res of two different rom but still getting the same error
I think it can not locate or read the Values folder when compiling because all those resource that Apktool claimed not there is actually there (all those value are present at "Colors" and "drawables" at "values" folder)
when I enter the hex color directly at "color" folder files, the error for colors at compiling disappeared but there are too much error at drawable for fixing manually
when I remove (( forced-package-id: '2' )) line from the "apktool.yml" file, apk compile ok with just a few error in "Style" but when I use this compiled apk on my phone it won't boot
does anybody have any idea how I can fix this issue because I really need to modify this apk file
My phone is Samsung Galaxy Note 3 SM-N900 on Lollipop 5.0 (Deodexed Rom)
Log.txt:
http://s000.tinyupload.com/download.php?file_id=22857363641838387918&t=2285736364183838791824181
Go here....http://forum.xda-developers.com/showthread.php?t=1633333
I cant remember exactly, but you decompile with one apktool.jar and compile with a different one. There are like 5 different apktool.jar.
Try searching that thread.
The Sickness said:
Go here....http://forum.xda-developers.com/showthread.php?t=1633333
I cant remember exactly, but you decompile with one apktool.jar and compile with a different one. There are like 5 different apktool.jar.
Try searching that thread.
Click to expand...
Click to collapse
Thanks alot
It really worked
Thank you so much for your help
I use Apktool V2.0.3 for decompile the apk and Apktool V2.0.0rc2 for compile it
again thank you:good::good::good::good:
badboy_6120 said:
Thanks alot
It really worked
Thank you so much for your help
I use Apktool V2.0.3 for decompile the apk and Apktool V2.0.0rc2 for compile it
again thank you:good::good::good::good:
Click to expand...
Click to collapse
what framework did you use I can decompile it with 2.1.1 only but wont recompile with Apktool V2.0.0rc2 or any other one I have tried

Categories

Resources