Recompiling framework-res - Galaxy S 4 Q&A, Help & Troubleshooting

Hey all,
Was trying to make some change to my framework-res.apk and decompiling went fine. But I was getting massive error spam @ recompiling the apk. See screenshot:
http://tinypic.com/view.php?pic=idyy3d&s=5
I should also say that I'm using MIUI by bmarko82 for the i9505. I did install both framework-res.apk and framework-miui-res.apk so that shouldn't be an issue.
Hope someone can help me out here.
Thanks <3

Related

[Q] I cant Recompile SystemUI.apk on Aurora ICS 4.1

Hi guys,
I was decompile SystemUI and i have changed Statusbar.xml and i want recompile SystemUI but i cant recompile when i want recompile;
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.j
ava:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeN
odeStream.java:106)
at org.antlr.runtime.tree.TreeParser.getSourceName(TreeParser.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecogniz
er.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeWalker.java:451)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
this error. Please give me advice thanks...
uppp! Any idea ?
freidel1 said:
uppp! Any idea ?
Click to expand...
Click to collapse
Try recompiling without changing anything. If it fails it means your apktool has a problem. Otherwise you are making a bad change... what are you trying to modify?
Sent from my U8800
spirosbond said:
Try recompiling without changing anything. If it fails it means your apktool has a problem. Otherwise you are making a bad change... what are you trying to modify?
Sent from my U8800
Click to expand...
Click to collapse
Thanks your post i tried recompiling without changing anything but same error. After i tried decompile X5settings and i tried recompile X5settings it gives same error im using http://forum.xda-developers.com/showthread.php?t=1805408 this guide. i was download https://www.dropbox.com/s/z60enehmswxmceb/Decompiling.zip and i extract it(its include java.exe i was copyed java.exe to System32). I wasn't download java. How to download java(Which version jdk jdr etc) ?
uppp

[Q] Decompile framework-res - please help

Hi all, can someone help for me with decompile framework-res.apk
when i use apktool for this i have in log
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080293 drawable/ic_ab_back_holo_dark, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:459)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)
Click to expand...
Click to collapse
and folder framework-res is empty.
How to solved??
Make sure you're using the most up-to-date apktool and aapt files,
check that you've installed all your framework files before decompiling and
do nothing if you're on 4.2. apktool isn't fully compatible with 4.2. yet.
Sent from my SK17i using xda premium
thanks for the replay,
i try most of apktools,
yeah when i decompile framework-res from 4.1 all working fine, but this one it's from 4.2.
maby there is problem
thanks
(i just try to make smaller navbar )
I found correct files!!!
Thanks all for help.
How did you decompiled 4.2 files?? I'm using apktool 1.5.0 latest version
maxrdlf95 said:
How did you decompiled 4.2 files?? I'm using apktool 1.5.0 latest version
Click to expand...
Click to collapse
Later will send you the files that I use.
I try 1.5.0 and not working for me.
krystiano said:
Later will send you the files that I use.
I try 1.5.0 and not working for me.
Click to expand...
Click to collapse
hey man , how did u get it to work ,, not all 4.2 roms work with me :/

(REQ) Decompile - recompile System.apk

Can anyone decompile and recompile for me my system.apk ? i have change a string for have the signal-icon on the left side but i can´t recompile the apk. i´m shure that a developer can do this and is not more than 5 min. work.
Thanks in advance
Moved here as this does not belong in the Dev Sections, please read the Form Rules on posting....
Nussi29 said:
Can anyone decompile and recompile for me my system.apk ? i have change a string for have the signal-icon on the left side but i can´t recompile the apk. i´m shure that a developer can do this and is not more than 5 min. work.
Thanks in advance
Click to expand...
Click to collapse
I have the same but when i recompile it and then install it ,it gives me app not installed even after uninstalling it

decompiling

helo guys i am using cm7.2_reincarnation_v.1_s5_edition_totoro rom in my galaxy y
my question is
whenever i am trying decompiling systemui apk i got error like..
error
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101038c
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:588)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:344)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:133)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
please guys help me to solve this....
here is the log file....
View attachment 2015-05-23-14-50-02.txt
here is the framework-res.apk & systemUI.apk
View attachment framework-res.apk
View attachment SystemUI.apk
rahul54321 said:
helo guys i am using cm7.2_reincarnation_v.1_s5_edition_totoro rom in my galaxy y
my question is
whenever i am trying decompiling systemui apk i got error like..
error
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101038c
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:588)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:344)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:133)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
please guys help me to solve this....
here is the log file....
View attachment 3327306
Click to expand...
Click to collapse
Either wrong framework-res.apk loaded into apktool (try cm10 framework-res.apk)
Or wrong apktool version - use version 1.5.2
i tried apktool 1.5.2 but still that error................
TheFixItMan said:
Either wrong framework-res.apk loaded into apktool (try cm10 framework-res.apk)
Or wrong apktool version - use version 1.5.2
Click to expand...
Click to collapse
Same problem im also greeting on apktool 2.0.1 please help

NEED help: Trying to make oreo systemui color light

hey guys
Im trying to change systemui color in android oreo to the default color by google which is light/white
im using this thread for guidance:
https://forum.xda-developers.com/cr...-light-color-systemui-xperia-oreo-fw-t3715197
but Im not able to recompile framework-res.apk
im getting some errors and it dosent matter if i make changes or not
im not a pro in terms of compiling/recompiling
if anyone was successful please help me out!
thanks!
btw i have posted the errors in that topic
Kianush said:
hey guys
Im trying to change systemui color in android oreo to the default color by google which is light/white
im using this thread for guidance:
https://forum.xda-developers.com/cr...-light-color-systemui-xperia-oreo-fw-t3715197
but Im not able to recompile framework-res.apk
im getting some errors and it dosent matter if i make changes or not
im not a pro in terms of compiling/recompiling
if anyone was successful please help me out!
thanks!
btw i have posted the errors in that topic
Click to expand...
Click to collapse
I encountered a similar problem where I couldn't recompile. It was because the referenced package I was referencing (in framework-res.apk) was missing from the compile command. I had to use the -I command to reference the framework-res.apk package for compilation.
Code:
aapt package -S res/ -M AndroidManifest.xml -f -v -F framework-res-overlay.apk -I ~/Documents/framework-res-overlay/framework-res.apk
Additional resources I used:
-Framework Hacking General
Damn i dont know anything about this stuff...i hope i can do this
Thank you
Kianush said:
Damn i dont know anything about this stuff...i hope i can do this
Thank you
Click to expand...
Click to collapse
It certainly takes a little time investment. Make sure you download the android SDK. That will give you the ability to download the build tools. I personally haven't had luck with apktool for making overlays. Anecdotal, I know but the official dev tools are just as easy to use once you understand how to use them properly.

Categories

Resources