Errors: Decompile Apk


Oct 5, 2015
27
3
15
#1
Hi
I would try to translate the app for xiaomi ants. But I have some errors.
For the framework I used the file extract from my mi3.
What can I do?
Code:
C:\android>apktool if framework-res.apk
I: Framework installed to: C:\Users\Gianluca\apktool\framework\1.apk

C:\android>apktool if MiuiSystemUI.apk
I: Framework installed to: C:\Users\Gianluca\apktool\framework\127.apk

C:\android>apktool if miui.apk
I: Framework installed to: C:\Users\Gianluca\apktool\framework\16.apk

C:\android>apktool d yi.apk
I: Using Apktool 2.0.0-RC2 on yi.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Gianluca\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=touchscreenBlocksFoc
us, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010490
        at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
        at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:60)
        at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)

        at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:564)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:327)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
        at brut.apktool.Main.cmdDecode(Main.java:170)
        at brut.apktool.Main.main(Main.java:86)
 
Oct 5, 2015
27
3
15
#3
There are still errors.
I also use framework-ext-res.apk



Code:
C:\android>apktool if framework-ext-res.apk
I: Framework installed to: C:\Users\Gianluca\apktool\framework\17.apk

C:\android>apktool if GoogleServicesFramework.apk
I: Framework installed to: C:\Users\Gianluca\apktool\framework\127.apk

C:\android>apktool d yi
Input file (yi) was not found or was not readable.

C:\android>apktool d yi.apk
Destination directory (C:\android\yi) already exists. Use -f switch if you want to overwrite it.

C:\android>apktool d yi.apk
I: Using Apktool 2.0.0-RC2 on yi.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Gianluca\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=touchscreenBlocksFoc
us, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010490
        at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
        at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:60)
        at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)

        at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:564)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:327)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
        at brut.apktool.Main.cmdDecode(Main.java:170)
        at brut.apktool.Main.main(Main.java:86)