decompiling - Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl

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

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 :/

[Q] How to edit any apk file?

How to edit any apk file??
Please guide me how to edit an APK file
from the stock ROM or from any custom ROM
Please help!!!
lvabarajithan said:
How to edit any apk file??
Please guide me how to edit an APK file
from the stock ROM or from any custom ROM
Please help!!!
Click to expand...
Click to collapse
use apktool or apk multi tool to decompile apk, make changes and recompile it. you just need to know what you need to edit and how.
yeah i know that
is there any other way
but anyway thanks for the reply...
lvabarajithan said:
How to edit any apk file??
Please guide me how to edit an APK file
from the stock ROM or from any custom ROM
Please help!!!
Click to expand...
Click to collapse
First u need to rooted phone.
Then use root browser and copy ur apk file... If u have pc copy the apk file to pc.. Open apk file using winrar edit the files u want and save
Sent From Galaxy Y Duos Lite | Lunux Os v2! using XDA Premium
Why this kind of thread are you making buddy????
Please first read forum rules,There is a line that-"SEARCH BEFORE POSTING ANYTHING"
Here is many help thread for that....!

Recompiling framework-res

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

how to decompile and decompile setting.apk ???

how to decompile and decompile setting.apk
I always fail to do decompline or recompline setting.apk when I did not edit at all also still failed to file. where the problem lies ?? setting.apk the error of his or her apktol ?? but if decompline or recompline SystemUI or fremawork successfully ...
darw andi said:
how to decompile and decompile setting.apk
I always fail to do decompline or recompline setting.apk when I did not edit at all also still failed to file. where the problem lies ?? setting.apk the error of his or her apktol ?? but if decompline or recompline SystemUI or fremawork successfully ...
Click to expand...
Click to collapse
Chances are that you havent loaded the correct framework
If it is a touchwiz rom (based on stock rom) you also need to load tw-framework using the if command
Also some roms are compiled with framework of a higher version than the rom eg compiled with jellybean framework so load that framework-res instead eg from cm10
But the chances are its because you didnt also load the tw framework from the rom
Also please note that questions should be posted in the question and answe section
marcussmith2626 said:
Chances are that you havent loaded the correct framework
If it is a touchwiz rom (based on stock rom) you also need to load tw-framework using the if command
Also some roms are compiled with framework of a higher version than the rom eg compiled with jellybean framework so load that framework-res instead eg from cm10
But the chances are its because you didnt also load the tw framework from the rom
Also please note that questions should be posted in the question and answe section
Click to expand...
Click to collapse
thanks before
My problem has been resolved
I use apk manager via pc
Hey guyzz
Since m not the developer,can anyone decompile apk for me please:what::what:
Thank u
vai8080 said:
Hey guyzz
Since m not the developer,can anyone decompile apk for me please:what::what:
Thank u
Click to expand...
Click to collapse
Which apk ?
Islam2001 said:
Which apk ?
Click to expand...
Click to collapse
It is the setting apk:what::what:
Can u do it for me
vai8080 said:
It is the setting apk:what::what:
Can u do it for me
Click to expand...
Click to collapse
U mran the stock ?
Islam2001 said:
U mran the stock ?
Click to expand...
Click to collapse
It is the zip in which there is settings apk as well as keyguard apk , which I want to modify it
Can u help ..
vai8080 said:
It is the zip in which there is settings apk as well as keyguard apk , which I want to modify it
Can u help ..
Click to expand...
Click to collapse
Learn how to decompile apks yourself
It's easier doing it on a pc but can also be done on a phone if you don't have a pc
My pc guide can be found in the link in my signature
For phone guide Google search apktool mobile (you need armv6 version)
marcussmith2626 said:
Learn how to decompile apks yourself
It's easier doing it on a pc but can also be done on a phone if you don't have a pc
My pc guide can be found in the link in my signature
For phone guide Google search apktool mobile (you need armv6 version)
Click to expand...
Click to collapse
I have tired to decompile apk with pc but I was failed
So can u do it for me:what::what:
vai8080 said:
I have tired to decompile apk with pc but I was failed
So can u do it for me:what::what:
Click to expand...
Click to collapse
No - much better to learn how to do it yourself else how are you going to mod it & recompile it or do anything else in the future
If you can't decompile it you are most likely using the wrong framework-res.apk - use framework-res.apk from cm10
Without screenshot of your cmd window I can't see how you are trying to do it
Full guide in my signature - Just use correct framework-res.apk - note just because it's a Gingerbread rom doesn't mean it was built with Gingerbread framework - so if it doesn't decompile use cm10 framework
marcussmith2626 said:
No - much better to learn how to do it yourself else how are you going to mod it & recompile it or do anything else in the future
If you can't decompile it you are most likely using the wrong framework-res.apk - use framework-res.apk from cm10
Without screenshot of your cmd window I can't see how you are trying to do it
Full guide in my signature - Just use correct framework-res.apk - note just because it's a Gingerbread rom doesn't mean it was built with Gingerbread framework - so if it doesn't decompile use cm10 framework
Click to expand...
Click to collapse
K thanks man

Categories

Resources