Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Solved] Error in decompiling and recompiling systemui

OP marcusflint

15th June 2014, 11:17 AM   |  #1  
marcusflint's Avatar
OP Member
Thanks Meter: 4
 
55 posts
Join Date:Joined: Apr 2013
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>
Last edited by marcusflint; 16th June 2014 at 03:04 PM.
15th June 2014, 11:21 AM   |  #2  
marcussmith2626's Avatar
Recognized Contributor
Flag London
Thanks Meter: 2,636
 
4,900 posts
Join Date:Joined: Jul 2012
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
16th June 2014, 05:11 AM   |  #3  
marcusflint's Avatar
OP Member
Thanks Meter: 4
 
55 posts
Join Date:Joined: Apr 2013
Quote:
Originally Posted by marcussmith2626

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>
Last edited by marcusflint; 16th June 2014 at 05:19 AM.
16th June 2014, 11:11 AM   |  #4  
marcussmith2626's Avatar
Recognized Contributor
Flag London
Thanks Meter: 2,636
 
4,900 posts
Join Date:Joined: Jul 2012
Quote:
Originally Posted by marcusflint

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
The Following User Says Thank You to marcussmith2626 For This Useful Post: [ View ]
16th June 2014, 01:49 PM   |  #5  
marcusflint's Avatar
OP Member
Thanks Meter: 4
 
55 posts
Join Date:Joined: 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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes