Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
macked
Old
#1  
Senior Member - OP
Thanks Meter 35
Posts: 164
Join Date: Apr 2011
Location: Springfield MA
Default Recompiling ICS SystemUI.apk

Hey guys, I'm trying to mess around with the SystemUI from DAGr8's latest ics rom. I can't get it to recompile with apktool. Are there any other ways to edit XML and recompile?

sent from my iPhone killers killer, Samsung Galaxy Note.
 
hyukki
Old
#2  
Senior Member
Thanks Meter 15
Posts: 133
Join Date: Mar 2009
I was trying to decompile/compile the ICS framework-res.apk to try to get CRT off animation working and encountered this problem too. I don't know how the Devs do it so easily.
 
Bradl79
Old
#3  
Senior Member
Thanks Meter 81
Posts: 425
Join Date: May 2008
y don't u just rename to .zip and unpack then when u r done repack and then rename to .apk, the apk is that same as a zip file. or are u just trying to edit the xml files?
 
macked
Old
#4  
Senior Member - OP
Thanks Meter 35
Posts: 164
Join Date: Apr 2011
Location: Springfield MA
Quote:
Originally Posted by Bradl79 View Post
y don't u just rename to .zip and unpack then when u r done repack and then rename to .apk, the apk is that same as a zip file. or are u just trying to edit the xml files?
I am trying to edit the xml files.
 
macked
Old
#5  
Senior Member - OP
Thanks Meter 35
Posts: 164
Join Date: Apr 2011
Location: Springfield MA
Here is the output generated by apktool when I try and recompile:
justin@justin-MS-7681:~/themes/ics$ apktool b -d -f ./systemui/
I: Smaling...
I: Building resources...
invalid resource directory name: /home/justin/themes/ics/./systemui/res/drawable-sw600dp-hdpi
invalid resource directory name: /home/justin/themes/ics/./systemui/res/values-sw400dp
invalid resource directory name: /home/justin/themes/ics/./systemui/res/layout-sw600dp
invalid resource directory name: /home/justin/themes/ics/./systemui/res/values-sw600dp-port
invalid resource directory name: /home/justin/themes/ics/./systemui/res/values-sw720dp
invalid resource directory name: /home/justin/themes/ics/./systemui/res/layout-sw800dp
invalid resource directory name: /home/justin/themes/ics/./systemui/res/values-sw600dp
invalid resource directory name: /home/justin/themes/ics/./systemui/res/drawable-sw600dp-xhdpi
invalid resource directory name: /home/justin/themes/ics/./systemui/res/values-sw720dp-port
invalid resource directory name: /home/justin/themes/ics/./systemui/res/values-sw800dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2621526238038345530.tmp, -I, /home/justin/apktool/framework/1.apk, -S, /home/justin/themes/ics/./systemui/res, -M, /home/justin/themes/ics/./systemui/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2621526238038345530.tmp, -I, /home/justin/apktool/framework/1.apk, -S, /home/justin/themes/ics/./systemui/res, -M, /home/justin/themes/ics/./systemui/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:191)
... 6 more
justin@justin-MS-7681:~/themes/ics$
 
lactardjosh
Old
#6  
lactardjosh's Avatar
Recognized Contributor
Thanks Meter 299
Posts: 550
Join Date: Dec 2010

 
DONATE TO ME
Open up the apk with 7 zip and remove the classes.dex before decompiling and then put it back in after recompiling. See if that helps. Did you change any of the files in the folders that are throwing errors?
 
lactardjosh
Old
#7  
lactardjosh's Avatar
Recognized Contributor
Thanks Meter 299
Posts: 550
Join Date: Dec 2010

 
DONATE TO ME
Quote:
Originally Posted by hyukki View Post
I was trying to decompile/compile the ICS framework-res.apk to try to get CRT off animation working and encountered this problem too. I don't know how the Devs do it so easily.
Decompile with apktool 1.4.2 and recompile with 1.4.3. But the CRT animation is not an easy framework change like GB. It is further ingrained in the system and will require modifying additional files.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more