[MOD] Decompile and Rebuild ICS framework-res.apk without errors

This method is tested, and working for ICS 4.0.3 IML74K (stock) framework-res.apk
ICS 4.0.3 framework-res.apk rebuild is not working with apktool 1.4.3 and latest aapt from SDK R16
Because the 'string encoding' is not correct in the 'plurals.xml' with apktool 1.4.3, and if you tried to rebuild, you get some error...
 Credit to stars2
Decompile

1. Download these files:


apktool1.4.2.31e6dc5.jar
md5: 38db374a2f733000b1b0309b2b99f74b
aapt.exe (from the latest R16 SDK)
md5: 26a35ee028ed08d7ad0d18ffb6bb587a
apktool.bat
md5: 2bf3b895011fc4b1801edcfbabfdc295

2. Copy all files to your 'Windows' directory and rename apktool1.4.2.31e6dc5.jar to apktool.jar
3. Open command prompt, and install framework (apktool if framework-res.apk)
4. Decompile with apktool1.4.2.31e6dc5.jar (everytime use this to decompile framework-res.apk)

apktool d framework-res.apk

Rebuild

1. Download apktool1.4.3.tar.bz2 and copy to your windows directory (overwrite the old apktool.jar)
md5: 3d0478c4d23c7829edc024266697fef9

2. apktool b framework-res
3. extract all files from 'dist\apktool-res.apk' and create new archive with winrar or 7zip (archive type: zip | compression method: store)
4. resign
5. zipalign
6. Rename to famework-res.apk

0 comments:

Post a Comment

Open Panel

Blogroll

counter