[Solved] Error in decompiling and recompiling systemui

Search This thread

marcusflint

Senior Member
Apr 14, 2013
56
7
Hey everyone,

Im trying to decompile systemui using , i get these list of errors. What's possibly wrong? Im on Reincarnation V6


D:\SGYroms\apktool1.5.2>apktool d systemui.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0101038c
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
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:62)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:51)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)



Errors on recompiling...


D:\SGYroms\apktool1.5.2>apktool b -f -d systemui
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more

D:\SGYroms\apktool1.5.2>
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
decompiling error is caused by wrong framework being used - You wont be able to recompile because the resources were not decompiled


Make sure you use correct framework-res.apk - This may not always be the one that comes with the rom as it may of been compiled with jellybean framework

You can try loading this framework and then try to decompile
http://d-h.st/zAg
 

marcusflint

Senior Member
Apr 14, 2013
56
7
decompiling error is caused by wrong framework being used - You wont be able to recompile because the resources were not decompiled


Make sure you use correct framework-res.apk - This may not always be the one that comes with the rom as it may of been compiled with jellybean framework

You can try loading this framework and then try to decompile
http://d-h.st/zAg

Thanks for reply, Decompiling worked like a charm ..but i got these errors while installing framework?


D:\SGYroms\apktool1.5.2>apktool if framework-res.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-hdpi-v8-ERR2
I: Framework installed to: C:\Users\user\apktool\framework\1.apk


and these on recompiling systemui


D:\SGYroms\apktool1.5.2>apktool b systemui.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: java.io.FileNotFoundException: systemui.apk (The system cannot fi
nd the file specified)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: sys
temui.apk (The system cannot find the file specified)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.io.FileNotFoundException: systemui.apk (The system cannot find t
he file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
D:\SGYroms\apktool1.5.2>
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
Thanks for reply, Decompiling worked like a charm ..but i got these errors while installing framework?


D:\SGYroms\apktool1.5.2>apktool if framework-res.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-hdpi-v8-ERR2
I: Framework installed to: C:\Users\user\apktool\framework\1.apk


and these on recompiling systemui


D:\SGYroms\apktool1.5.2>apktool b systemui.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: java.io.FileNotFoundException: systemui.apk (The system cannot fi
nd the file specified)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: sys
temui.apk (The system cannot find the file specified)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.io.FileNotFoundException: systemui.apk (The system cannot find t
he file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
D:\SGYroms\apktool1.5.2>

framework install is normal - thats fine no problem there

recompile is because you have typed in the incorrect commands

the command should be (assuming the command prompt is at the correct location)

apktool b NameOfDecompiledFolder NameYouWantForNewApk.apk

eg
apktool b mydecompiledsystemui mynewsystemui.apk
 
  • Like
Reactions: marcusflint

marcusflint

Senior Member
Apr 14, 2013
56
7
the command should be (assuming the command prompt is at the correct location)

apktool b NameOfDecompiledFolder NameYouWantForNewApk.apk

eg
apktool b mydecompiledsystemui mynewsystemui.apk

Ah my bad, working fine now, thanks for your help :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Thanks for reply, Decompiling worked like a charm ..but i got these errors while installing framework?


    D:\SGYroms\apktool1.5.2>apktool if framework-res.apk
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected: drawable-nodpi-v8-ERR0
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected: drawable-v8-ERR1
    W: Config flags size > 36. Exceeding bytes: 0x2000000.
    W: Invalid config flags detected: drawable-hdpi-v8-ERR2
    I: Framework installed to: C:\Users\user\apktool\framework\1.apk


    and these on recompiling systemui


    D:\SGYroms\apktool1.5.2>apktool b systemui.apk
    Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
    toryException: java.io.FileNotFoundException: systemui.apk (The system cannot fi
    nd the file specified)
    at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
    at brut.androlib.Androlib.build(Androlib.java:183)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)
    Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: sys
    temui.apk (The system cannot find the file specified)
    at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
    at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
    at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
    at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
    ... 4 more
    Caused by: java.io.FileNotFoundException: systemui.apk (The system cannot find t
    he file specified)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
    ... 7 more
    D:\SGYroms\apktool1.5.2>

    framework install is normal - thats fine no problem there

    recompile is because you have typed in the incorrect commands

    the command should be (assuming the command prompt is at the correct location)

    apktool b NameOfDecompiledFolder NameYouWantForNewApk.apk

    eg
    apktool b mydecompiledsystemui mynewsystemui.apk