Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
bogac94
Old
#1  
bogac94's Avatar
Senior Member - OP
Thanks Meter 10
Posts: 145
Join Date: Feb 2012
Location: Istanbul
Default Help for re-compiling ics framework-res.apk

I can decompile the apk but i cant recompile it. I tried apktool,apk-multi tool and apk manager. Anyone help me please.
 
bruzzler2809
Old
#2  
bruzzler2809's Avatar
Senior Member
Thanks Meter 83
Posts: 376
Join Date: Mar 2012
Quote:
Originally Posted by bogac94 View Post
I can decompile the apk but i cant recompile it. I tried apktool,apk-multi tool and apk manager. Anyone help me please.
great error description.
what's the error msg?
 
wintel_mac
Old
#3  
wintel_mac's Avatar
Senior Member
Thanks Meter 179
Posts: 450
Join Date: Jun 2011
Location: Nuremberg

 
DONATE TO ME
Did you use the search function? Other users had similiar problems before. So try this e.g.
Current Device: Google Galaxy Nexus GSM i9250, XenonHD JB

Siemens A50 -> Siemens M65 -> Sony Ericsson Z710i -> Sony Ericsson W595 -> HTC Desire (SLCD) -> Palm Pre (Minus) -> Samsung Galaxy S Plus (GT-I9001) -> Huawei Honor U8860 (returned b.c. of bad touchscreen) -> Samsung Galaxy S Plus (GT-I9001) -> Google Galaxy Nexus

 
crybert
Old
#4  
crybert's Avatar
Senior Member
Thanks Meter 2006
Posts: 855
Join Date: Oct 2011

 
DONATE TO ME
Have a look here:

http://forum.xda-developers.com/show....php?t=1427959

It seems that apktool 1.4.3 has problems with the ics framework. So use 1.4.2 instead.

EDIT: Same Link
 
texten
Old
(Last edited by texten; 3rd May 2012 at 06:08 PM.)
#5  
texten's Avatar
Senior Member
Thanks Meter 1441
Posts: 1,271
Join Date: Apr 2012

 
DONATE TO ME
apk manager works fine,

you have to replace "AndroidManifest.xml" and the folder "META-INF" in recompiled unsigned apk with the files of the original one

edit: if you have error messages while recompile, just look in the log.txt
 
bogac94
Old
#6  
bogac94's Avatar
Senior Member - OP
Thanks Meter 10
Posts: 145
Join Date: Feb 2012
Location: Istanbul
F:\Program Files\apkmanager>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/d
rawable-sw600dp-hdpi
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/l
ayout-sw600dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/l
ayout-w600dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-h720dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-sw600dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-sw600dp-land
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-sw600dp-w1024dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-sw600dp-w1280dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-w360dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-w480dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-w500dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-w600dp
invalid resource directory name: F:\Program Files\apkmanager\framework-res\res/v
alues-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kemirgen\AppData\Local\Tem
p\APKTOOL5781810947305035951.tmp, -x, -S, F:\Program Files\apkmanager\framework-
res\res, -M, F:\Program Files\apkmanager\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a: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, C:\U
sers\Kemirgen\AppData\Local\Temp\APKTOOL5781810947 305035951.tmp, -x, -S, F:\Prog
ram Files\apkmanager\framework-res\res, -M, F:\Program Files\apkmanager\framewor
k-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

F:\Program Files\apkmanager>

It is the error log. Im using apktool v 1.4.2
 
wintel_mac
Old
#7  
wintel_mac's Avatar
Senior Member
Thanks Meter 179
Posts: 450
Join Date: Jun 2011
Location: Nuremberg

 
DONATE TO ME
Did you decompile the file freshly after installing 1.4.2? Otherwise the error may still be existent.
Current Device: Google Galaxy Nexus GSM i9250, XenonHD JB

Siemens A50 -> Siemens M65 -> Sony Ericsson Z710i -> Sony Ericsson W595 -> HTC Desire (SLCD) -> Palm Pre (Minus) -> Samsung Galaxy S Plus (GT-I9001) -> Huawei Honor U8860 (returned b.c. of bad touchscreen) -> Samsung Galaxy S Plus (GT-I9001) -> Google Galaxy Nexus

The Following User Says Thank You to wintel_mac For This Useful Post: [ Click to Expand ]
 
bogac94
Old
#8  
bogac94's Avatar
Senior Member - OP
Thanks Meter 10
Posts: 145
Join Date: Feb 2012
Location: Istanbul
Quote:
Originally Posted by wintel_mac View Post
Did you decompile the file freshly after installing 1.4.2? Otherwise the error may still be existent.
I installed 1.4.2 and then i did apktool if framework-res.apk and then decompiled

Sent from my I9001 using awesome CM9 by arco68
 
wintel_mac
Old
#9  
wintel_mac's Avatar
Senior Member
Thanks Meter 179
Posts: 450
Join Date: Jun 2011
Location: Nuremberg

 
DONATE TO ME
How about aapt? According to this issue thread, there may be problems with old versions http://code.google.com/p/android-apk.../detail?id=282
Current Device: Google Galaxy Nexus GSM i9250, XenonHD JB

Siemens A50 -> Siemens M65 -> Sony Ericsson Z710i -> Sony Ericsson W595 -> HTC Desire (SLCD) -> Palm Pre (Minus) -> Samsung Galaxy S Plus (GT-I9001) -> Huawei Honor U8860 (returned b.c. of bad touchscreen) -> Samsung Galaxy S Plus (GT-I9001) -> Google Galaxy Nexus

 
bogac94
Old
#10  
bogac94's Avatar
Senior Member - OP
Thanks Meter 10
Posts: 145
Join Date: Feb 2012
Location: Istanbul
Quote:
Originally Posted by wintel_mac View Post
How about aapt? According to this issue thread, there may be problems with old versions http://code.google.com/p/android-apk.../detail?id=282
I have the newest aapt.

Sent from my I9001 using awesome CM9 by arco68

 
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

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

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more