Related
These are the deodexed apk files(app and framework) of Gingerbread XWJV1.
This is not a ROM so don't download if you are not a developer, wait for the Gingerbread ROM releases.
All the apk files except Email.apk are deodexed, Email.apk just kept throwing errors so I did not want to waste time on it. I have included the Email.apk from XWJS5 which worked fine and I would like to advice using it, however, that is up to you.
Link:
Download (85.4 MB) MD5:066fbbb4b8434e71a9bfd0756ce548ba
Click to expand...
Click to collapse
Click to expand...
Click to collapse
This is a 7zip compressed exe file, so it's extractable on both Windows and Linux.
I wish you all good luck and good night.
Haven't tested it fully but it runs soo....
its this firmware's email.apk
Nothing different from the looks of it.
Wow, most people got errors deodexing, how did you get to deodex it? Got to hand it to you.
@Daneshm90, thanks for the deodexed version of the email.apk.
g00ndu said:
Wow, most people got errors deodexing, how did you get to deodex it? Got to hand it to you.
@Daneshm90, thanks for the deodexed version of the email.apk.
Click to expand...
Click to collapse
A lot of times it looks for proprietary libs that are non existent in the rom but were present at compile time. So in those cases you have to take a risk and ignore those mismatched classpath's and hope its irrelevant to the functionality of the apk (A lot of the time, if a classpath is not found within the jar's in the rom, it is not critical)
perhaps you are working on framework files now,
taha_e said:
perhaps you are working on framework files now,
Click to expand...
Click to collapse
Why ? Whats wrong with those ?
Those deodexed without a hitch.
Thanks Daneshm90 for the Email.apk.
Regarding the uploaded apk files, they include both app and framework apk files, and with the Email.apk file provided by Daneshm90 all are complete and ready for download.
I'm not so exited about this firmware, it does not bring much and I think that in a few days we are going to hear a lot about it not being good especially regarding GPS and Kernel panic!.
It seems that Samsung did bind recovery to boot.bin, boot.bin does check recovery every boot, and if it's a 2e or a modified 3e then it will reinstall the original and the unmodified 3e, what I think is that the unmodified 3e is located in initramfs, so this needs to be removed or replaced.
The phone runs fine without flashing boot.bin that is included in the firmware, but that does give a screen corruption in every boot and GPS will not pick a signal.
My opinion is not to get so exited about this release and maybe not for the next release either..
Daneshm90,
Seems like I can't decompile Settings.apk, even after I chose option [10] and selected twframework-res.apk as the dependency apk.
Errors shown were as follows:
Code:
--------------------------------------------------------------------------
|01/03/2011 Tue -- 11:51:29.61|
--------------------------------------------------------------------------
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
I: Framework installed to: C:\Users\Wynsh\apktool\framework\2.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: C:\Users\Wynsh\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\Wynsh\apktool\framework\2.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020236
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020236
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020236
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Any ideas?
g00ndu said:
Daneshm90,
Seems like I can't decompile Settings.apk, even after I chose option [10] and selected twframework-res.apk as the dependency apk.
Errors shown were as follows:
Code:
--------------------------------------------------------------------------
|01/03/2011 Tue -- 11:51:29.61|
--------------------------------------------------------------------------
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
I: Framework installed to: C:\Users\Wynsh\apktool\framework\2.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: C:\Users\Wynsh\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\Wynsh\apktool\framework\2.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020236
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020236
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020236
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Any ideas?
Click to expand...
Click to collapse
I havent kept up with apktool revisions.
Upon checking his site seems his latest one is still using baksmali 1.2.4 which did not have gingerbread support if i recall.
You can always if urgent extract -> use baksmali to decompile -> make changes ....etc (ofcourse xml's will still remain in binary)
@g00ndu
You will need 1.2.6, try it.
Daneshm90 said:
A lot of times it looks for proprietary libs that are non existent in the rom but were present at compile time. So in those cases you have to take a risk and ignore those mismatched classpath's and hope its irrelevant to the functionality of the apk (A lot of the time, if a classpath is not found within the jar's in the rom, it is not critical)
Click to expand...
Click to collapse
Hi Daneshm90
how exactly we can deodexed Email.apk ignoring the mistmatched classpaths?
I'm bored with this error :/
regards
intronauta said:
Hi Daneshm90
how exactly we can deodexed Email.apk ignoring the mistmatched classpaths?
I'm bored with that :/
regards
Click to expand...
Click to collapse
Im still using my old school deodexer script.
But upon looking up the syntax its, -I added
[Ramad] said:
@g00ndu
You will need 1.2.6, try it.
Click to expand...
Click to collapse
I have 1.2.6, I can baksmali and smali. It's the value folder which I'm interested in actually.
Guess i'll have to do it differently.
Sent from my GT-I9000 using XDA App
Would it be possible to post just the browser.apk? Keen to try it on 2.2.1...
I think a lot of others are too
Sent from my GT-I9000 using XDA App
[Ramad] said:
Thanks Daneshm90 for the Email.apk.
Regarding the uploaded apk files, they include both app and framework apk files, and with the Email.apk file provided by Daneshm90 all are complete and ready for download.
I'm not so exited about this firmware, it does not bring much and I think that in a few days we are going to hear a lot about it not being good especially regarding GPS and Kernel panic!.
It seems that Samsung did bind recovery to boot.bin, boot.bin does check recovery every boot, and if it's a 2e or a modified 3e then it will reinstall the original and the unmodified 3e, what I think is that the unmodified 3e is located in initramfs, so this needs to be removed or replaced.
The phone runs fine without flashing boot.bin that is included in the firmware, but that does give a screen corruption in every boot and GPS will not pick a signal.
My opinion is not to get so exited about this release and maybe not for the next release either..
Click to expand...
Click to collapse
Does it mean that even if you got cwm installed, it won't boot into cwm recovery, and reverts back to 3e recovery?
Did you try to replace the boot.bin with an older version?
rlorange said:
Would it be possible to post just the browser.apk? Keen to try it on 2.2.1...
I think a lot of others are too
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Here you go.
Not sure if it will work on 2.2.1 though
Thanks... Didn't work with a simple system app transplant... Oh well worth a try
Sent from my GT-I9000 using XDA App
g00ndu said:
Does it mean that even if you got cwm installed, it won't boot into cwm recovery, and reverts back to 3e recovery?
Did you try to replace the boot.bin with an older version?
Click to expand...
Click to collapse
Yes, the new boot.bin will prevent using CWM, after I have flashed the whole firmware I did replace boot.bin and Sbl.bin with those I have from JPJPA and XWJS3, the device boots fine with the modified 3e and CWM can be used too, but I get graphical corruption in every boot and GPS does not work.
[Ramad] said:
Yes, the new boot.bin will prevent using CWM, after I have flashed the whole firmware I did replace boot.bin and Sbl.bin with those I have from JPJPA and XWJS3, the device boots fine with the modified 3e and CWM can be used too, but I get graphical corruption in every boot and GPS does not work.
Click to expand...
Click to collapse
I reverted back to XWJS5, using ulfk (speedmod) kernel. Everything seems to be fine, and I can get back to cwm recovery.
Sent from my GT-I9000 using XDA App
SteelBlue v3 themed ui files
Anyone who likes the SteelBlue v3 Theme from Team Carbon.... i have created the following themed apk's
framework-res.apk (includes the shutdown aimation from Daneshm90)
twframework-res.apk
SystemUI.apk
the 2 framework files can replace the ones in the /system/framework directory
and SystemUI.apk needs to go into the /system/app directory.
hope you like.
PLEASE NOTE, THIS IS LIKELY TO BE A LITTLE BUGGY IN PLACES, AND I CAN'T GET THE EVIL ANDROID GUY ONTO THE NOTIFICATION BACKGROUND YET,... BUT I HAVE ONLY DONE A QUICK TRIAL AND THOUGHT I WOULD SHARE IT
Please note, this not a FLASHABLE ZIP... just unpack the apk's replace them using root explorer, and reboot your phone.
when I try to decompile SystemUI or Settings.apk i have an error.
Code:
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Luca\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x02050029
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x0205002e
why???
Please help me!!!
In other rom i don't have this problem.
File is of rom InsertCoin CM7
May I suggest that you post this in the 'Desire Android Development' section of the forums?
Can anyone please port the good old lidroid toggles for Xperia ZL 4.2.2 .244 .
The ones that slide sideways like in gingerbread which also redirects to corresponding settings upon long press.
I came across THIS tutorial which was the closest i could find to my requirement.
I tried decompiling the systemui.apk from .244 rom but i was getting the following error
Code:
D:\Android\Tools\APK Tool>java -jar apktool.jar d SystemUI.apk SystemUI
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Windows\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080812
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080747
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080813
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080770
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080812
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawableTop, value=0x0108071e
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010459
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.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:3
5)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:144)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:131)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:218
)
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)
D:\Android\Tools\APK Tool>
So if anyone could guide me or port it all over it would be greatly appreciated.
Thanks in advance.
post in the z forums ...might get u more help
Can anybody please port 20 Lidroid Toggles For Xperia P to Xperia ZL
Help Plase.
As I resolve this error when I try to disassembly the LGSysteUI.apk, LG-E975 Android 4.4.2.
PHP:
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.
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01c4
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080684
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080685
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_height, value=0x020c0052
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010484
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.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:3
5)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:144)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:131)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:218
)
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)
An error has occured.
Thanks for everything.
Have you deoxd those apk file... I.e have you merged both .apk nd .odex file to single .apk file....??
Sent from my LG-E975 powering Stock 4.4.2 & SOLID Kernel
hasan4791 said:
Have you deoxd those apk file... I.e have you merged both .apk nd .odex file to single .apk file....??
Sent from my LG-E975 powering Stock 4.4.2 & SOLID Kernel
Click to expand...
Click to collapse
Install the Framework-res because I read that I had to do that with apktool.
Code:
apktool if framework-res.apk
I want to unpack the LGSystemUI.apk then modify it.
What I have to do to unpack and then re-edit it to use package.
Someone could give me a guide 100% for this device.
Thanks for answering greetings.
pOsHoBeLloxD said:
Install the Framework-res because I read that I had to do that with apktool.
Code:
apktool if framework-res.apk
I want to unpack the LGSystemUI.apk then modify it.
What I have to do to unpack and then re-edit it to use package.
Someone could give me a guide 100% for this device.
Thanks for answering greetings.
Click to expand...
Click to collapse
If you didn't deodex it, yu need to follow this guide
http://forum.xda-developers.com/showthread.php?t=2766474
Then for decompiling app you need to load 2 framework/resource files... Google it for those files... Then ly it will decompile app without error...
Sent from my LG-E975 powering Stock 4.4.2 & SOLID Kernel
pOsHoBeLloxD said:
Install the Framework-res because I read that I had to do that with apktool.
Code:
apktool if framework-res.apk
I want to unpack the LGSystemUI.apk then modify it.
What I have to do to unpack and then re-edit it to use package.
Someone could give me a guide 100% for this device.
Thanks for answering greetings.
Click to expand...
Click to collapse
1. Deodex your framework (pull these files from your phone) and apps (framework-res.apk, lge-res.apk, LGSystemUI.apk) as @hasan4791 said
2. Install all resource files by
> apktool if framework-res.apk
> apktool if lge-res.apk
3. Decompile
## If you want smali code and resources
> apktool d LGSystemUI.apk
## If you want to edit only resources
> apktool d -s LGSystemUI.apk
4. Edit/Replace resource files or whatever you want to do
5. Re compile it back
> apktool b LGSystemUI
6. Use 7zip to open both original and new LGSystemUI.apk then copy META-INF and AndroidManifest.xml from original apk to new one.
7. Done
APKTool failed to decompile LGAlarmClock.apk:
C:\Users\Yoav\Downloads\android>apktool d LGAlarmClock.apk
I: Using Apktool 2.0.0-RC3 on LGAlarmClock.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Yoav\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f070264
W: Could not decode attr value, using undecoded value instead: ns=android, name=
icon, value=0x7f020078
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f070264
W: Could not decode attr value, using undecoded value instead: ns=android, name=
resource, value=0x7f020079
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x7f0d0046
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f07029a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x7f0d0046
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f07029a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f07029b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f070276
W: Could not decode attr value, using undecoded value instead: ns=android, name=
resource, value=0x7f040003
W: Could not decode attr value, using undecoded value instead: ns=android, name=
resource, value=0x7f040004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x7f0d0035
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f070329
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f070264
W: Could not decode attr value, using undecoded value instead: ns=android, name=
resource, value=0x7f040005
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f070264
W: Could not decode attr value, using undecoded value instead: ns=android, name=
resource, value=0x7f040007
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x7f0d0044
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f07029b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
icon, value=0x7f050014
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x7f070264
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:45)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
1)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:153)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:134)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:296
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Click to expand...
Click to collapse
I've attached the right framework-res.apk.
Has anyone successed in decompile system apps from android 5?
yoavst said:
APKTool failed to decompile LGAlarmClock.apk:
I've attached the right framework-res.apk.
Has anyone successed in decompile system apps from android 5?
Click to expand...
Click to collapse
I havent tested with lollipop yet, but you need to add both framework resources on Kitkat. framework-res.apk and lge-res.apk
type in terminal
apktool if framework-res.apk
apktool if lge-res.apk
then you can try to decompile apps... but i warn you that you can't decompile lollipop apps yet because apktool is still buggy on lollipop
manups4e said:
type in terminal
apktool if framework-res.apk
apktool if lge-res.apk
then you can try to decompile apps... but i warn you that you can't decompile lollipop apps yet because apktool is still buggy on lollipop
Click to expand...
Click to collapse
doesn't work...
apktool has an error. if you look at c/user/apktool/framework apktool has an error, you will see that there 0.apk and 1.apk.
should have 1.apk and 2.apk.
This error is accepted from dev.
More info
https://code.google.com/p/android-apktool/issues/list
that's only for lollipop, kitkat apks are working well
ffalete said:
apktool has an error. if you look at c/user/apktool/framework apktool has an error, you will see that there 0.apk and 1.apk.
should have 1.apk and 2.apk.
This error is accepted from dev.
More info
https://code.google.com/p/android-apktool/issues/list
Click to expand...
Click to collapse
tried to play all the combinations: lge res 1, framework res 2; lge res 2 ,framework res 1.
However, it didn't solve the problem, now i got another error:
C:\Users\Yoav\Downloads\android>apktool d LGAlarmClock.apk
I: Using Apktool 2.0.0-RC3 on LGAlarmClock.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Yoav\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionCode, value=0x029f65bc
I: Loading resource table from file: C:\Users\Yoav\apktool\framework\1.apk
Cleaning up unclosed ZipFile for archive C:\Users\Yoav\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionName, value=0x00000028
I: Loading resource table from file: C:\Users\Yoav\apktool\framework\1.apk
Cleaning up unclosed ZipFile for archive C:\Users\Yoav\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionCode, value=0x029f65bc
I: Loading resource table from file: C:\Users\Yoav\apktool\framework\1.apk
Cleaning up unclosed ZipFile for archive C:\Users\Yoav\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionName, value=0x00000028
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSeria
lizer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:
673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSer
ializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:153)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:134)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:296
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
C:\Users\Yoav\Downloads\android>
Click to expand...
Click to collapse
As others stated, apktool is buggy on Lollipop apps. The only way I've found to decompile Lollipop apps is to do "apktool d -r appfile.apk". That decompiles the classes.dex itself, not the resources, but as I'm not sure what you're trying to do, I thought I'd leave my two cents.
r3pwn said:
As others stated, apktool is buggy on Lollipop apps. The only way I've found to decompile Lollipop apps is to do "apktool d -r appfile.apk". That decompiles the classes.dex itself, not the resources, but as I'm not sure what you're trying to do, I thought I'd leave my two cents.
Click to expand...
Click to collapse
Exception in thread "main" org.jf.dexlib2.dexbacked.DexBackedDexFile$NotADexFile
: Invalid magic value: 01 18 24 61 70 70 6c 69
at org.jf.dexlib2.dexbacked.DexBackedDexFile.verifyMagicAndByteOrder(Dex
BackedDexFile.java:151)
at org.jf.dexlib2.dexbacked.DexBackedDexFile.<init>(DexBackedDexFile.jav
a:70)
at org.jf.dexlib2.dexbacked.DexBackedDexFile.<init>(DexBackedDexFile.jav
a:96)
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:84)
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:59)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:94)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:46)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:91)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:126)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
you can't use apktool for LOLLIPOP since it's not working yet.. you can do it only on KITKAT
yoavst said:
Exception in thread "main" org.jf.dexlib2.dexbacked.DexBackedDexFile$NotADexFile
: Invalid magic value: 01 18 24 61 70 70 6c 69
at org.jf.dexlib2.dexbacked.DexBackedDexFile.verifyMagicAndByteOrder(Dex
BackedDexFile.java:151)
at org.jf.dexlib2.dexbacked.DexBackedDexFile.<init>(DexBackedDexFile.jav
a:70)
at org.jf.dexlib2.dexbacked.DexBackedDexFile.<init>(DexBackedDexFile.jav
a:96)
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:84)
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:59)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:94)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:46)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:91)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:126)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Click to expand...
Click to collapse
That's odd. Must be the way that LG compiled their apps. It works fine with stock (AOSP) Lollipop apps.
LGCover.apk start with 0x1 + 0x18 + $application/octet-streamre8Z/[email protected]—pEncryption-Method: AES128CBC;padding=RFC2630;plaintextlen=0000378580
all the apks should start with dex\n035\0 (LGSystemUI, LGAlarmClock... all start with dex\n035\0)
that's why you need lge-res.apk to decompile them but right now apktool is not compatible with lollipop lge-res.apk
manups4e said:
that's why you need lge-res.apk to decompile them but right now apktool is not compatible with lollipop lge-res.apk
Click to expand...
Click to collapse
https://code.google.com/p/android-apktool/issues/detail?id=713
https://code.google.com/p/android-apktool/issues/detail?id=738
So you say that the problem is with lge-res? what is this file for?
lge-res.apk is the resource apk for lg framework and is requested to make lg apps to work and to decompile too
manups4e said:
lge-res.apk is the resource apk for lg framework and is requested to make lg apps to work and to decompile too
Click to expand...
Click to collapse
so why there is also framework-res?
because framework-res is the framework for all other android apps
Apktool RC3 should work with Lollipop apps but - as I already reported the issue - it does not work with the LG system apps. See the conversation with iBotPeaches here.
Kickoff said:
Apktool RC3 should work with Lollipop apps but - as I already reported the issue - it does not work with the LG system apps. See the conversation with iBotPeaches here.
Click to expand...
Click to collapse
it workswith the patched code. However see https://code.google.com/p/android-a...tus Priority Milestone Owner Summary Modified
yoavst said:
it workswith the patched code. However see https://code.google.com/p/android-a...tus Priority Milestone Owner Summary Modified
Click to expand...
Click to collapse
What do you mean under patched code?