[SOLVED] Compiling SystemUI from ICS - Nexus S Q&A, Help & Troubleshooting

So I'm using the new ICS framework-res.apk and SystemUI.apk from this ICS ROM. I am using this version of apktool.jar to decompile
Now, I can decompile the SystemUI.apk and framework-res.apk without any errors. However, I am unable to compile, even if I didn't mod anyting
My error log is attached
If anyone could shed some light on what I would need to do to get past these errors I would greatly appreciate it
Just so there's no confusion, I'm using apktool by Brut.alll, not APK Manager. I have a W7 laptop
***This is solved, check out my thread here (post #3)***
http://forum.xda-developers.com/showthread.php?t=1365810

I too feel the same

i have same problem when recompile it ...even without change anything , still shows error when recompile

Hey guys I'll mark this thread as solved
Check out the third post here on how to set up apktool for ICS
http://forum.xda-developers.com/showthread.php?t=1365810
Sent from my Nexus S 4G using Tapatalk

THX !!! work perfectly!!

Related

Decompiling ICS 3.32.401.5 APK's using apktool.jar (APKMnanager) update

I have been playing arround with the issue of not being able to decompile the apks from OS 3.32 roms.
The issue seems to be when decompiling the systemui.apk you are getting the following errors:
--------------------------------------------------------------------------
|04/03/2012 -- 23:59:11.09|
--------------------------------------------------------------------------
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
Could Not Find C:\APKManager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\APKManager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
This points to erros in Backsmaling and the backsmali files being too old. I then hunted arround and found a neat little tool to deompile apks and the jar files to make them editable. This did not work either giving me the same error. I then found an update backsmali.jar and smali.jar ver 1.3.2 from here: and it decompiled the systemui.apk perfectly.
Can we intergrate the newer versions of the smali 1.3.2 files into apk manager to decompile ICS roms? This is a bit beyond me!
Progress update:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
rmk40 said:
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
Click to expand...
Click to collapse
Can I ask why you do not trust the results?
I have tried with the hacked version and so far I am now able to decompile and compile the systemui.apk with out any problems! But still got errors compiling framework-res.apk so still some issues there! All I did was modify value.xml file to enable crt animation!
Hi, for to decompile all apk must remove classes.dex from this apk and decompile with apktool1.4.2.....after compile with 1.4.3 and reinsert classes.dex into the apk
same problem with me,also looking for help.
rmk40 said:
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
Click to expand...
Click to collapse
In this way,decomplie is ok,but re-complie still has problem
I ive noticed that you cant compile with this just yet. Looks as if we are going to have to wait for a rebuilt tool!
From what I can see the current apktool.jar was built with API14. ICS 4.03 is built with API15. What we need is to have the apktool.jar updated with API5. This involves building the apktool from source which I believe is available but I dont know how to do this
Source code link here:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
where is this said hacked apktool?
oh nm i found it in that post...
says it only works 0n 4.0.3 tho hmmm i will try with the 4.0.4 gapps anyways and see
GhostXSeries said:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
Click to expand...
Click to collapse
I don't know either
Unfortunately I chose to learn flash ActionScript 2 years ago (it was useful at the time - I had Samsung Tocco Lite and made flash themes for it) but since moving to Android I realised flash doesn't do a lot of good when working with java so at some point I really need to learn java
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
I dont know what to do here, I have updated my sdk, made sure i installed theright framework. done everything from replacing the aapt file to replacing the apktool file. Its ridiculous that compiling the SystemUI.apk has to be this difficult, if it can be decompiled easily why cant the reverse be just as simple??
I cant get SystemUI.apk to compile, it starts the process then just errors out.
Has anybody found a workaround for this? Updating my SDK and aapt and apktool didn't work for me.
Sent from my HTC Sensation using Tapatalk
It looks as if we need to download the source of apktool from git. Add in API15 and the updated smali and backsmali tools, then recompile the apk tool. Unfortunitly this is a little out of my leauge.
If anybody is able to do this it would be awsome!
Out of my skill range as well
Sent from my HTC Sensation using Tapatalk
Do you think it would be possible to simply edit the pngs of systemui without decompiling and recompiling by taking out the .9 pngs to edit those with the .9 editor?
Sent from my HTC Sensation using Tapatalk
GhostXSeries said:
It looks as if we need to download the source of apktool from git. Add in API15 and the updated smali and backsmali tools, then recompile the apk tool. Unfortunitly this is a little out of my leauge.
If anybody is able to do this it would be awsome!
Click to expand...
Click to collapse
Maybe PM leedroid, I think he already done it but I'm not sure so don't take that as gospel truth, just he hinted at it in a post
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium

[Q] Hi all - SLIM CM7 User

hi all
this is my first thread. i'm italian...and please excuse me for my bad english....
i've a samsung galaxy next s5570 and i've tried some roms on my phone...oxigen..new experience...balt rom...emanon and other
now i've tried the new SLIM CM7...well ...this is the only one rom that not eat my battery....!!!
for me..the best CM7 based rom.
i have just a question.
i have changed some png in the status bar and i've tried to put the clock in the center of the screen.
all ok with the change of png...but when i decompile the sistemui.apk for edit the status_bar.xml and recompile it ... i put the systemui.apk in the phone with right permission..i reboot the phone but the status bar disappear.
i've tried to decompile and recompile apk without modyfy nothig but is the same.
for decompiling and compiling i've used Apk_Manager_5.0.2 or apk tools..but is the same.
i've already used apk manager for modify other systemui.apk with success...but only with the systemui.apk of SLIM CM7 i have problem
where is my error ?
thanks all for the patience
bye
GHIGO
GHIGO973 said:
hi all
this is my first thread. i'm italian...and please excuse me for my bad english....
i've a samsung galaxy next s5570 and i've tried some roms on my phone...oxigen..new experience...balt rom...emanon and other
now i've tried the new SLIM CM7...well ...this is the only one rom that not eat my battery....!!!
for me..the best CM7 based rom.
i have just a question.
i have changed some png in the status bar and i've tried to put the clock in the center of the screen.
all ok with the change of png...but when i decompile the sistemui.apk for edit the status_bar.xml and recompile it ... i put the systemui.apk in the phone with right permission..i reboot the phone but the status bar disappear.
i've tried to decompile and recompile apk without modyfy nothig but is the same.
for decompiling and compiling i've used Apk_Manager_5.0.2 or apk tools..but is the same.
i've already used apk manager for modify other systemui.apk with success...but only with the systemui.apk of SLIM CM7 i have problem
where is my error ?
thanks all for the patience
bye
GHIGO
Click to expand...
Click to collapse
Hi all
this is the APK of my problem
I hope someone can help me.
thanks all
Thanks all for your help
I've resolved my problem

SystemUI help !

Hi Everyone ! I tried to decompile and compile the systemUI apk using AndroidMultitool ! Decompiling went smoothly, but when I recompiled it, it gave many errors that I don't know as I am a bit new to these things ! Please see the log attched and the folder I want to recompile and help me out ! I edited this apk for adding the 4.2 quick toggles in 4.1 (Embryo 7) ! Just followed the steps from somewhere !
Probably used the wrong framework-res ... this may help: http://forum.xda-developers.com/showthread.php?t=1951867
Also, smali editing is the devil's work. Best of luck there.
I just used the framework-res of mohan's Embryo 7 and systemUI too ? Also I just followed the instructions of a page where it tought me how to add quick toggles !!
Sent from Skyrocket
Hit Thanks if I helped

Guys teach me how to recompile framework.jar

Hi Guys!
Im having promblem recompiling my framework2.jar im using apktool
When im recompiling its giving me an error i'ved have tried all of the apktools
old version latest version but still doesn't work it's just totally giving me an error
i dont really know about this apktool this is the first time im using it
I can't attached a screenshot im a new member at xda developers so i cant show you the error

SYSTEMUI DECOMPILE(SNAPDRAGON)oreo

Can someone tell me how to decompile systemui on Oreo. I have tried many guides about fixing the 9.png and moving files from one apk to another using 7zip. can someone please help me on to how to DECOMPILE systemui. Apply mods on to it. And recompile and be able to flash it without having ANY problems?!
Cheemaa said:
Can someone tell me how to decompile systemui on Oreo. I have tried many guides about fixing the 9.png and moving files from one apk to another using 7zip. can someone please help me on to how to DECOMPILE systemui. Apply mods on to it. And recompile and be able to flash it without having ANY problems?!
Click to expand...
Click to collapse
If you still need help message me and I will give you my hangouts and will show you what to do

Categories

Resources