D:\DpAPK\apktool-1.5.0>apktool d dianping.apk dp I: Baksmaling... I: Loading resource table... W: Skipping "android" package group I: Loaded. I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: C:\Users\Administrator.AEOLUS-PC2\apktool\f ramework\1.apk I: Loaded. I: Decoding file-resources... W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= alpha, value=0x42480000 W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= showDividers, value=0x00000002 W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff W: Could not decode attr value, using undecoded value instead: ns=android, name= splitMotionEvents, value=0xffffffff I: Decoding values */* XMLs... Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300dd at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57) at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53) at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen ceValue.java:62) at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe renceValue.java:46) at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca larValue.java:44) at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re sStyleValue.java:48) at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResB agValue.java:40) at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour ces.java:339) at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:174 ) at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99) at brut.apktool.Main.cmdDecode(Main.java:131) at brut.apktool.Main.main(Main.java:68)
4. 再反编译一次!ok!
5. 如果不行把framework-res.apk 也安装了试试
效果完成:
D:\DpAPK\apktool-1.5.0>apktool d TestBIM.apk TB I: Baksmaling... I: Loading resource table... I: Loaded. I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: C:\Users\Administrator.AEOLUS-PC2\apktool\f ramework\1.apk I: Loaded. I: Decoding file-resources... I: Decoding values */* XMLs... I: Done. I: Copying assets and libs... D:\DpAPK\apktool-1.5.0>apktool b TB I: Checking whether sources has changed... I: Smaling... I: Checking whether resources has changed... I: Building resources... I: Building apk file...
注:安装 com.htc.resources.apk 后
D:\DpAPK\apktool-1.5.0>apktool if com.htc.resources.apk W: Config flags size > 36. Exceeding bytes: 0x2000000. W: Invalid config flags detected: dimen-hdpi-ERR0 W: Config flags size > 36. Exceeding bytes: 0x4000000. W: Invalid config flags detected: dimen-hdpi-ERR1 W: Config flags size > 36. Exceeding bytes: 0x5000000. W: Invalid config flags detected: dimen-hdpi-ERR2 W: Config flags size > 36. Exceeding bytes: 0x6000000. W: Invalid config flags detected: dimen-hdpi-ERR3 W: Config flags size > 36. Exceeding bytes: 0x2000000. W: Invalid config flags detected: dimen-ja-hdpi-ERR4 W: Config flags size > 36. Exceeding bytes: 0x4000000. W: Invalid config flags detected: dimen-ja-hdpi-ERR5 W: Config flags size > 36. Exceeding bytes: 0x5000000. W: Invalid config flags detected: dimen-ja-hdpi-ERR6 W: Config flags size > 36. Exceeding bytes: 0x2000000. W: Invalid config flags detected: dimen-ko-hdpi-ERR7 W: Config flags size > 36. Exceeding bytes: 0x4000000. W: Invalid config flags detected: dimen-ko-hdpi-ERR8 W: Config flags size > 36. Exceeding bytes: 0x5000000. W: Invalid config flags detected: dimen-ko-hdpi-ERR9 W: Config flags size > 36. Exceeding bytes: 0x2000000. W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR10 W: Config flags size > 36. Exceeding bytes: 0x4000000. W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR11 W: Config flags size > 36. Exceeding bytes: 0x5000000. W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR12 W: Config flags size > 36. Exceeding bytes: 0x2000000. W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR13 W: Config flags size > 36. Exceeding bytes: 0x4000000. W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR14 W: Config flags size > 36. Exceeding bytes: 0x5000000. W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR15 W: Config flags size > 36. Exceeding bytes: 0x2000000. W: Invalid config flags detected: integer-hdpi-ERR16 W: Config flags size > 36. Exceeding bytes: 0x4000000. W: Invalid config flags detected: integer-hdpi-ERR17 W: Config flags size > 36. Exceeding bytes: 0x5000000. W: Invalid config flags detected: integer-hdpi-ERR18 W: Config flags size > 36. Exceeding bytes: 0x6000000. W: Invalid config flags detected: integer-hdpi-ERR19 I: Framework installed to: C:\Users\Administrator.AEOLUS-PC2\apktool\framework\2 .apk