Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,807 Members 52,352 Now Online
XDA Developers Android and Mobile Development Forum

[Solved] Error in decompiling and recompiling systemui

Tip us?
 
marcusflint
Old
(Last edited by marcusflint; 16th June 2014 at 02:04 PM.)
#1  
Junior Member - OP
Thanks Meter 1
Posts: 21
Join Date: Apr 2013
Default [Solved] Error in decompiling and recompiling systemui

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(ResPa ckage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:54)
at brut.androlib.res.data.value.ResReferenceValue.get Referent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResStyleValue.seriali zeToResValuesXml(ResStyleValue.java:51)
at brut.androlib.res.AndrolibResources.generateValues File(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(Androli bResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androli b.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:11 4)
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(Abst ractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 160)
... 4 more

D:\SGYroms\apktool1.5.2>
 
marcussmith2626
Old
#2  
marcussmith2626's Avatar
Recognized Contributor
Thanks Meter 2341
Posts: 4,374
Join Date: Jul 2012
Location: 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

My Work And Threads For Galaxy Y GT-S5360


My PM is not a Question & Answer thread - Dont treat it as such!
 
marcusflint
Old
(Last edited by marcusflint; 16th June 2014 at 04:19 AM.)
#3  
Junior Member - OP
Thanks Meter 1
Posts: 21
Join Date: Apr 2013
Quote:
Originally Posted by marcussmith2626 View Post
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>(ZipRODirector y.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirector y.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFil e.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>(ZipRODirector y.java:53)
... 7 more
D:\SGYroms\apktool1.5.2>
 
marcussmith2626
Old
#4  
marcussmith2626's Avatar
Recognized Contributor
Thanks Meter 2341
Posts: 4,374
Join Date: Jul 2012
Location: London
Quote:
Originally Posted by marcusflint View Post
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>(ZipRODirector y.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirector y.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFil e.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>(ZipRODirector y.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

My Work And Threads For Galaxy Y GT-S5360


My PM is not a Question & Answer thread - Dont treat it as such!
The Following User Says Thank You to marcussmith2626 For This Useful Post: [ Click to Expand ]
 
marcusflint
Old
#5  
Junior Member - OP
Thanks Meter 1
Posts: 21
Join Date: Apr 2013
Quote:
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes