desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Cannot Recompile framework-res.apk for AOKP build... #546

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Apktool if framework-res.apk
2. Apktool d framework-res.apk framework-AOKP
3. Apktool b -f -d framework-AOKP NEWframework-res.apk

What is the expected output? What do you see instead?
There should be a new APK created, as well as a build folder with the 
respective recompiled files in framework-AOKP. Instead I see:

W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
-Followed by numerous errors about entry index is larger than available 
symbols...
-Followed by several brut errors.

If it helps, when the framework-res.apk is first decompiled it does have a few 
of these before finishing:

W: Invalid config flags detected. Dropping resources: ...

What version of the product are you using? On what operating system?
My normal version is from 12/2012. However, I did try the newest available beta 
with the same results... I am on Windows 7 64-bit.

Please provide any additional information below.
There is no other APKs in the /system/framework folder that I can attempt to 
use as framework files. I tried SystemUI.apk (as well as Settings.apk and a few 
random others) and it gave me a 127.apk - in addition to the 1.apk for the 
framework-res.apk, but this did not change the results.

The AOKP ROM is based on JB 4.3.

Original issue reported on code.google.com by lucidphu...@gmail.com on 9 Nov 2013 at 8:17

GoogleCodeExporter commented 9 years ago
AOKP uses some "inverted" qualifier, which isn't supported by default Apktool 
which is why the decode doesn't work.

You can google for "Slimbean Apktool", that is patched for it.

Original comment by connor.tumbleson on 9 Nov 2013 at 8:41

GoogleCodeExporter commented 9 years ago
Thank you! Worked like a charm.

Original comment by lucidphu...@gmail.com on 9 Nov 2013 at 8:57