[Q] Apk Edit Problem - Galaxy S II Themes and Apps

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 Dzenleme\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSecBrowser.apk not found
C:\Users\HP\Desktop\Galaxy S II\APK Dzenleme\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 Dzenleme\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSecBrowser.apk not found
C:\Users\HP\Desktop\Galaxy S II\APK Dzenleme\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.

Related

[Q] Decompile question HtcClockWidget

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)

[Q] Apk Manager SystemUI.apk Compile Problem

Hello my friends.
I installed frameworkres and tw framework resources files. I decompiled SystemUI.apk and changed drawables.xml and status bar smali.
But I can't compile SystemUI.apk Error.
Log is here :
Code:
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:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk Bulunamad
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk Bulunamad
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\HP\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
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.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeP****r.getSourceName(TreeP****r.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.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:243)
at brut.androlib.Androlib.buildSources(Androlib.java:200)
at brut.androlib.Androlib.build(Androlib.java:191)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
You need to apply your Framework-res file and twframwork file to your library
In your APK directory you need to do a "apktool if framework-res.apk" and the same with the tw one.
That should register the framework you are working with
toxicdust said:
You need to apply your Framework-res file and twframwork file to your library
In your APK directory you need to do a "apktool if framework-res.apk" and the same with the tw one.
That should register the framework you are working with
Click to expand...
Click to collapse
I installed framework-res.apk and twframework.apk's resources.
And I can't find apktool if framework-res.apk or twframework.apk options ?
{
"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"
}
Code:
--------------------------------------------------------------------------
|Thu 08/02/2012 -- 22:10:55.31|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find C:\Users\prashanth\Desktop\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\prashanth\Desktop\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\prashanth\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x010404b3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302f7
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/alert_bar_background_normal.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_call_ongoing_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/compat_mode_help_divider_bottom.9.png". Renaming it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x010301ea
W: Cant find 9patch chunk in file: "drawable-hdpi/alert_bar_background_pressed.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...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010301e9
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.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.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:128)
at brut.apktool.Main.main(Main.java:65)
i am getting error while decompiling systemui.apk...can anybody help me with this
up
Type in CMD
Sent from my GT-I9100 using xda premium
What does it mean ?
Arnadel said:
What does it mean ?
Click to expand...
Click to collapse
To install sources on Windows
open cmd [if you are running x64 with java x32, open C:\Windows\SysWOW64\cmd.exe]
cd [your apktool folder] [exemple: cd C:\Users\YourUsername\Documents]
apktool if framework-res.apk
done.
To install sources on Linux
open terminal
cd [apktool folder again]
apktool if framework-res.apk
y u no post in Q&A?

Decompiling Mms.apk

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)

[Q] [please help]Decompiling apk files

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

Need Help for decompile SystemUI apk from s5

Hello...Is there any way to decompile KitKat SystemIU.apk?
I have framework-res and twframework-res instales....I decompile a lot of apk....but I cant decompile the SystemUI.apk
D:\Administradorrrr\apkt>cmd
Microsoft Windows [Versión 6.3.9600]
(c) 2013 Microsoft Corporation. Todos los derechos reservados.
D:\Administradorrrr\apkt>apktool d -f SystemUI.apk
I: Using Apktool 2.0.0-Beta9 on SystemUI.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Administrador\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawa
ble, value=0x01081093
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawa
ble, value=0x01081093
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawa
ble, value=0x01081094
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010
81093
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceVal
ue.java:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReference
Value.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarVa
lue.java:45)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourc
eParser.java:351)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Xml
PullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(St
aticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlS
erializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecode
r.java:87)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder
.java:146)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecode
rContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:304)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:116)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
D:\Administradorrrr\apkt>
Click to expand...
Click to collapse
Any help is wellcome.
Cocolopes said:
I have framework-res and twframework-res instales
Click to expand...
Click to collapse
Are the two from an S5 Rom? I think you need the base frameworks to work.
erljayp said:
Are the two from an S5 Rom? I think you need the base frameworks to work.
Click to expand...
Click to collapse
Thanks...its working now....I have a lot of frameworks and maybe I use the 4.3 one....or something...my bad....
Cocolopes said:
Thanks...its working now....I have a lot of frameworks and maybe I use the 4.3 one....or something...my bad....
Click to expand...
Click to collapse
what i need for decompliler Samsung S5 apk?

Categories

Resources