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?
Trying to decompile the HtcClockWidget so that I can do some XML edits and this is what I get. Anyone know what the issue is?
Code:
D:\android-sdk-windows\tools\apktoolold>apktool d HtcClockWidget.apk ./outclockb
lue
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Jeffrey\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Jeffrey\apktool\framework\2.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0208013b
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x020c00ba
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:50)
at brut.androlib.res.data.value.ResScalarValue.serializeXmlBody(ResScala
rValue.java:81)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:67)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Hello ,
I want to install this mod -- > http://forum.xda-developers.com/showthread.php?t=1695202
I decompiled SystemUI.apk and changed bools.xml by Notepad. And I returned script.bat and I selected Compile apk. But error. I tried lots of apk manager but error.
On Notepad , need changed Coding / Character Group ??
If I open apk manager and I saw ADB not found. But apk manager is working , I selected decompile apk , Apk manager decompiled systemUI.apk but I can't compile apk. Thank you..
Arnadel said:
Hello ,
I want to install this mod -- > http://forum.xda-developers.com/showthread.php?t=1695202
I decompiled SystemUI.apk and changed bools.xml by Notepad. And I returned script.bat and I selected Compile apk. But error. I tried lots of apk manager but error.
On Notepad , need changed Coding / Character Group ??
If I open apk manager and I saw ADB not found. But apk manager is working , I selected decompile apk , Apk manager decompiled systemUI.apk but I can't compile apk. Thank you..
Click to expand...
Click to collapse
Try Notepad++, post here the log of compiling error
Sent from my GT-I9100 using XDA
xator91 said:
Try Notepad++, post here the log of compiling error
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
I'm using Notepad++ but I can't compile apk. Where is Error Compiling ?
This problem in adb ?
If I open apk manager , adb not found..
In your apk manager folder there will be a log.txt
Attach that here and someone will be able to help you
Sent from my GT-I9100 using xda premium
Have you installed your framework?? im guessing no.
Have you checked the log to see if you have decompile errors? if you have errors decompiling you will have errors compiling.
Simply posting "elp, my apk won compil" without a log isnt good enough. There could be all kinds of reasons why it wont compile.
Post your log.txt like mikey suggested and then people can see the problem.
Apkmanager isnt a a tool that you can just pick up and play, you require a bit of knowledge how it works, a simple search will tell you all you need to know how to use it, here's one:
http://forum.xda-developers.com/showpost.php?p=23479136&postcount=179
dully79 said:
Have you installed your framework?? im guessing no.
Have you checked the log to see if you have decompile errors? if you have errors decompiling you will have errors compiling.
Simply posting "elp, my apk won compil" without a log isnt good enough. There could be all kinds of reasons why it wont compile.
Post your log.txt like mikey suggested and then people can see the problem.
Apkmanager isnt a a tool that you can just pick up and play, you require a bit of knowledge how it works, a simple search will tell you all you need to know how to use it, here's one:
http://forum.xda-developers.com/showpost.php?p=23479136&postcount=179
Click to expand...
Click to collapse
Log ;
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Users\HP\Desktop\Galaxy S II\APK Dzenleme\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSecBrowser.apk not found
C:\Users\HP\Desktop\Galaxy S II\APK Dzenleme\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSecBrowser.apk not found
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Have you tried using this apk manager?
If you haven't, give that a try...if that doesn't work search for 'bad magic value' there's lots of info on here to help you deal with that error
Arnadel said:
Log ;
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Users\HP\Desktop\Galaxy S II\APK Dzenleme\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSecBrowser.apk not found
C:\Users\HP\Desktop\Galaxy S II\APK Dzenleme\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSecBrowser.apk not found
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Click to expand...
Click to collapse
A google search turns this up:
http://rootzwiki.com/topic/24894-patch-one-apktool-to-rule-them-all/
What apktool version is in apkmanager?
Open up the script and type "23"
If you use the wrong apktool you will recieve errors
1.4.2
HTML:
Could Not Find D:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedContacts.apk
Could Not Find D:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedContacts.apk
I: Baksmaling...
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -29FF0000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -17FD0000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR1
W: Config flags size > 32. Exceeding bytes: -17FD0000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR2
W: Config flags size > 32. Exceeding bytes: -29FF0000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: -17FD0000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR4
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f080004 dimen/editor_round_button_padding_left, config=-v13
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:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
1.4.3
HTML:
Could Not Find D:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedContacts.apk
Could Not Find D:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedContacts.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Administrator\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
You can get a program called xdaautotool which lets you select which apktool to decompile/compile with.
Or
If you like apkmanager here is my modified version that allows you to use v1.4.2 and v1.4.3
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm using 5.0.2 Apk Manager..
Wanam's apk manager log , error ;
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Users\HP\Desktop\Yeni klas”r (3)\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk Bulunamad
C:\Users\HP\Desktop\Yeni klas”r (3)\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk Bulunamad
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\HP\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-hdpi/jkay_statusbar_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quick_panel_off.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_plmn_bg.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quick_panel_on.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quickpanel_title_background.9.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030305
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
dully79 's apk manager ICS Log , error (1.4.2)
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Users\HP\Desktop\Yeni klas”r (2)\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk Bulunamad
C:\Users\HP\Desktop\Yeni klas”r (2)\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk not found
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
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:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
(1.4.3)
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Users\HP\Desktop\Yeni klas”r (2)\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk Bulunamad -- (not found)
C:\Users\HP\Desktop\Yeni klas”r (2)\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk Bulunamad -- (not found)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\HP\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-hdpi/jkay_statusbar_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quick_panel_on.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quick_panel_off.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quickpanel_title_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_plmn_bg.9.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030305
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Have you installed TW framework??
Have you installed Jkays framework??
If no then install it.
Also, always try and decompile a UN MODIFIED apk.
That means straight out of the Rom zip into the modifying folder with no themes flashed over. This will help eliminate errors.
---------- Post added at 03:12 PM ---------- Previous post was at 03:06 PM ----------
Here's XdaAutoTool
http://forum.xda-developers.com/showthread.php?t=1053227
---------- Post added at 03:21 PM ---------- Previous post was at 03:12 PM ----------
Have you renamed your SystemUI.apk to
SystemUI.apk Bulunamad
???
dully79 said:
Have you installed TW framework??
Have you installed Jkays framework??
If no then install it.
Also, always try and decompile a UN MODIFIED apk.
That means straight out of the Rom zip into the modifying folder with no themes flashed over. This will help eliminate errors.
---------- Post added at 03:12 PM ---------- Previous post was at 03:06 PM ----------
Here's XdaAutoTool
http://forum.xda-developers.com/showthread.php?t=1053227
---------- Post added at 03:21 PM ---------- Previous post was at 03:12 PM ----------
Have you renamed your SystemUI.apk to
SystemUI.apk Bulunamad
???
Click to expand...
Click to collapse
I want to edit modified apk ? :/ How can I ?
How can I install tw framework , jkays framework , framework-res ?
Bulunamad = not found.
Arnadel said:
I want to edit modified apk ? :/ How can I ?
How can I install tw framework , jkays framework , framework-res ?
Bulunamad = not found.
Click to expand...
Click to collapse
Put your systemui.apk and framework-res.apk in this thread. Maybe I (other people) can do it for you.
im trying to decompile my mms.apk and i keep getting an error
heres the log
I hope this is the right section didnt know where to post in here or Q & A
--------------------------------------------------------------------------
|Fri 11/23/2012 -- 22:01:21.49|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
Could Not Find C:\Users\the\Desktop\New folder\place-apk-here-for-modding\../place-apk-here-for-modding/signedMms.apk
Could Not Find C:\Users\the\Desktop\New folder\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedMms.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\the\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=parentActivityName, value=0x00000041
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
So it seems that when i try to decompile apk files i get a error (scroll down for log) , and no matter what version of apktool i use or what app i use or even website, i still can NOT decompile the Xperia S settings APK successfully
and before you say update your apk tool , ive tried all version of almost everything
so id love you if you could give me a fully decompiled Settings APK or you could tell me how to Decompile without faliour
i love you longtime
here is the error:
[email protected]:~$ cd adt
[email protected]:~/adt$ cd decompile
[email protected]:~/adt/decompile$ apktool if Settings.apk
I: Framework installed to: /home/ubuntu/apktool/framework/127.apk
[email protected]:~/adt/decompile$ apktool d Settings.apk Settings
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ubuntu/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010303a6
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.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
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)
[email protected]:~/adt/decompile$
Envious_Data said:
So it seems that when i try to decompile apk files i get a error (scroll down for log) , and no matter what version of apktool i use or what app i use or even website, i still can NOT decompile the Xperia S settings APK successfully
and before you say update your apk tool , ive tried all version of almost everything
so id love you if you could give me a fully decompiled Settings APK or you could tell me how to Decompile without faliour
i love you longtime
here is the error:
[email protected]:~$ cd adt
[email protected]:~/adt$ cd decompile
[email protected]:~/adt/decompile$ apktool if Settings.apk
I: Framework installed to: /home/ubuntu/apktool/framework/127.apk
[email protected]:~/adt/decompile$ apktool d Settings.apk Settings
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ubuntu/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
W: Could not decode attr value, using undecoded value instead: ns=android, name=textCursorDrawable, value=0x01080923
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010303a6
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.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
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)
[email protected]:~/adt/decompile$
Click to expand...
Click to collapse
Maybe in here :
apktool if Settings.apk
Search :
framework-res.apk
SemcGenericUxpRes.apk
from you rom..
And try again with :
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
Then decompile again..
Sent from my LT26i using xda premium
thanks
thanks this helps alot
(lol trying to do things without help ,untill i need it... not a good tactic)
Envious_Data said:
thanks this helps alot
(lol trying to do things without help ,untill i need it... not a good tactic)
Click to expand...
Click to collapse
u r welcome.
Sent from my LT26i using xda premium