[Android Q&A, Help & Troubleshooting] carloscarvalho:
Hi guys,

I'm trying to decompile MiuiSystemUI.apk using Virtuous Ten Studios, but i'm getting errors. Someone can help me what i need to do ?

This MiuiSystemUI.apk is from Miui JB (20120817) version

New Error:

22:06:01.834: [Debug] - <>c__DisplayClass2.<ImportFilesAsync>b__1: 'Decompiling apk'
22:06:01.835: [Normal] - ApkTool.DecompileApk: 'Decompiling apk: MiuiSystemUI.apk'
22:06:01.837: [Debug] - FileSystem.GetJavaInstallationPath: 'Found java path: C:\Program Files (x86)\Java\jre7\bin\java.exe'
22:06:01.838: [Debug] - ApkTool.DecompileApk: 'ApkTool args: -jar "C:\Users\Administrator\Downloads\APK-Multi-Toolv1.0.8\other\apktool.jar" d -t miui4 -f "C:\Users\Administrator\Desktop\Miui\system\app\MiuiSystemUI.apk" "C:\Users\Administrator\Documents\Virtuous Ten Studio\Projects\MIUI Softkeys - Teste 1\MIUI SoftKeys - FrameWork MIUI4\Data"'
22:06:06.653: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table...'
22:06:06.653: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
22:06:06.656: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding AndroidManifest.xml with resources...'
22:06:06.657: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table from file: C:\Users\Administrator\apktool\framework\1-miui4.apk'
22:06:06.657: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
22:06:06.657: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.658: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.658: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.658: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0020'
22:06:06.658: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0020'
22:06:06.659: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0020'
22:06:06.659: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0020'
22:06:06.659: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0020'
22:06:06.659: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.660: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.660: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.660: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.660: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060d0015'
22:06:06.661: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding file-resources...'
22:06:06.661: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x060a0015'
22:06:06.661: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x060201fc'
22:06:06.662: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0602013f'
22:06:06.662: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginBottom, value=0x060a0013'
22:06:06.662: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0013'
22:06:06.662: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=innerRadius, value=0x060a0024'
22:06:06.663: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x06020203'
22:06:06.663: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x060a0025'
22:06:06.663: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff'
22:06:06.663: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x06020142'
22:06:06.664: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x06020142'
22:06:06.664: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x06020142'
22:06:06.670: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x060a0015'
22:06:06.750: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x06020150'
22:06:06.764: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x06020150'
22:06:06.781: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0013'
22:06:06.800: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0013'
22:06:06.800: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0000'
22:06:06.801: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=innerRadius, value=0x060a0024'
22:06:06.813: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x06020203'
22:06:06.818: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x060a0025'
22:06:06.820: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff'
22:06:06.822: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x060a0015'
22:06:06.828: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0602014a'
22:06:06.828: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x060201ff'
22:06:06.842: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=innerRadius, value=0x060a0024'
22:06:06.849: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x06020203'
22:06:06.851: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x060a0025'
22:06:06.851: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff'
22:06:06.852: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=innerRadius, value=0x060a0024'
22:06:06.852: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x06020203'
22:06:06.877: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x060a0025'
22:06:06.892: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff'
22:06:06.903: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x060a0000'
22:06:06.908: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0000'
22:06:06.913: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x060201fd'
22:06:06.914: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x06020141'
22:06:06.914: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x06020142'
22:06:06.915: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0013'
22:06:06.915: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0602013f'
22:06:06.915: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x060201fc'
22:06:06.916: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x06020140'
22:06:06.916: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0602013f'
22:06:06.916: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0013'
22:06:06.917: [Error] - ApkTool.DecompileApk: 'ApkTool: W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x060a0013'
22:06:06.917: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding values*/* XMLs...'
22:06:06.917: [Error] - ApkTool.DecompileApk: 'ApkTool: Can't find framework resources for package of id: 6. You must install proper framework files, see project website for more info.'
22:06:06.918: [Debug] - ApkTool.DecompileApk: 'ApkTool failed, see log for further details'
22:06:06.918: [Debug] - ApkTool.DecompileApk: 'Exitcode: 1'
22:06:06.918: [Error] - <>c__DisplayClass2.<ImportFilesAsync>b__1: 'Decompiling apk failed!'

Old Error

21:12:22.290: [Normal] - ApkTool.DecompileApk: 'Decompiling apk: MiuiSystemUI.apk'
21:12:22.291: [Debug] - FileSystem.GetJavaInstallationPath: 'Found java path: C:\Program Files (x86)\Java\jre7\bin\java.exe'
21:12:22.291: [Debug] - ApkTool.DecompileApk: 'ApkTool args: -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool\apktool_1.4.7.jar" d -f "C:\Users\Administrator\Desktop\MiuiSystemUI.apk" "C:\Users\Administrator\Documents\Virtuous Ten Studio\Projects\softkey\MiuiSystemUI\Data"'
21:12:22.993: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table...'
21:12:22.994: [Error] - ApkTool.DecompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a009c string/status_bar_date_format, config=-zh-rCN'
21:12:22.998: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)'
21:12:23.019: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)'
21:12:23.021: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)'
21:12:23.021: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)'
21:12:23.022: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)'
21:12:23.022: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)'
21:12:23.023: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)'
21:12:23.023: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)'
21:12:23.024: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)'
21:12:23.024: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)'
21:12:23.025: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)'
21:12:23.025: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.Androlib.getResTable(Androlib.java:45)'
21:12:23.026: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:151)'
21:12:23.026: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)'
21:12:23.027: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.apktool.Main.cmdDecode(Main.java:128)'
21:12:23.027: [Error] - ApkTool.DecompileApk: 'ApkTool:	at brut.apktool.Main.main(Main.java:65)'
21:12:23.028: [Debug] - ApkTool.DecompileApk: 'ApkTool failed, see log for further details'
21:12:23.028: [Debug] - ApkTool.DecompileApk: 'Exitcode: 1'
21:12:23.028: [Error] - <>c__DisplayClass2.<ImportFilesAsync>b__1: 'Decompiling apk failed!'