zdzhjx / android-apktool

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

Framework install issue #741

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I tried to install the framework-res files, but I got a following error.

(IUNI OS for Xiaomi Mi4)

https://drive.google.com/file/d/0B3T0RlCvTtOqaTBPMEJ1alVBMnM/view?usp=sharing

Whats wrong?

[*] framework-res.apk 
decompiling framework-res.apk... 
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 0000D002000000000000000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -3FFD0000000000000000000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR1
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: 
spec=0x01050001 dimen/thumbnail_height, config=-v13
    at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
    at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
    at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
    at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
    at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
    at brut.androlib.Androlib.getResTable(Unknown Source)
    at brut.androlib.ApkDecoder.getResTable(Unknown Source)
    at brut.androlib.ApkDecoder.decode(Unknown Source)
    at brut.apktool.Main.cmdDecode(Unknown Source)
    at brut.apktool.Main.main(Unknown Source)

Original issue reported on code.google.com by vagyu...@gmail.com on 4 Jan 2015 at 2:02

GoogleCodeExporter commented 9 years ago
ibotpeaches@raganok:~/Downloads/Apktool/Bug741$ apktool if framework-res.apk -t 
bug741
I: Framework installed to: /home/ibotpeaches/apktool/framework/1-bug741.apk
ibotpeaches@raganok:~/Downloads/Apktool/Bug741$ apktool if 
framework-miui-res.apk -t bug741
I: Framework installed to: /home/ibotpeaches/apktool/framework/6-bug741.apk
ibotpeaches@raganok:~/Downloads/Apktool/Bug741$ apktool if 
aurora-framework-res.apk -t bug741
I: Framework installed to: /home/ibotpeaches/apktool/framework/7-bug741.apk
ibotpeaches@raganok:~/Downloads/Apktool/Bug741$ 

Installed all 3.

ibotpeaches@raganok:~/Downloads/Apktool/Bug741$ apktool d framework-res.apk -t 
bug741
I: Using Apktool 2.0.0-2bd1e5-SNAPSHOT on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:~/Downloads/Apktool/Bug741$ 

Decompiled framework-res.apk (no error). Don't know what to say. Can't 
duplicate this one either.

Original comment by connor.tumbleson on 5 Jan 2015 at 1:34