Hi there,
With the arrival of my new SGS II I was very interested in making some of those nifty themes myself. Ofcourse I have to know a lot more about Android before I can do anything nice, but we all have to start somewhere
I was looking around on the web and found references to APK Manager and the nice stuff one can do with it. I say one, because I haven't been able to do anything with it yet.
Sure, it pulls the requested apk's, but when I try to decompile say, SystemUI.apk, it gives me an error and nothing else.
The error I get is:
Code:
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
Then, when I check the log it says:
Code:
--------------------------------------------------------------------------
|di 17-05-2011 -- 18:40:41,89|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
Could Not Find D:\Samsung\SII\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find D:\Samsung\SII\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\dateq\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a6
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a6
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)
Anyone know what to make of this?
Same error for me.
I do not know the cause!!!
You have to install framework resources pulled from a device. But I don't know how to do that using Apk Manager.
If you rename it to a .zip you can extract files from it. for example replacing the battery icons, Just remove the old battery icons and drop the new ones in, in like winrar or something
Sent from my GT-I9100 using XDA Premium App
In my case i use apktool and i have install the framework!!!
Thanks for the replies all, especially apktool, that was a real help.
However, I am now running into a new problem...
Whenever I pull SystemUI.apk, decode it with apk tool and then build it again without doing anything, I notice a reduction in size.
Some people on the net say it needs to be signed, some say that shouldnt be done at all with system apk's.
Anyone have a thought about that?
it needs to be signed!!!use signapk.jar
java -jar signapk.jar testkey.x509.pem testkey.pk8 SystemUI.apk SystemUISigned.apk
I'm running into the same problem myself (sorry for the bump - I just started getting into the modding).
I just get
"An Error Occured, Please Check The Log (option 21)"
Press any key to continue . . .
And in my log
Code:
--------------------------------------------------------------------------
|Tue 19/07/2011 -- 21:24:39.70|
--------------------------------------------------------------------------
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Could Not Find C:\Program Files (x86)\Android\android-sdk\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Program Files (x86)\Android\android-sdk\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\parker\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
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)
Click to expand...
Click to collapse
Try option 10 and drag over framework-res.apk and SystemUI.apk into the window of apktool. Worked for me to decompile SystemUI.apk.
Hi
Dont know if you found this thread yet, its over 200 pages
lots of info
http://forum.xda-developers.com/showthread.php?t=695701
I used apk manager to decompile the framework-res.apk of my GS2. Here is the log report from apk manager
===============
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
not found C:\android-sdk\platform-tools\place-apk-here-for-modding\../place-apk-here-for-modding/signedtwframework-res.apk
not found C:\android-sdk\platform-tools\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedtwframework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\wltklah\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=text, value=0x01040446
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01040446
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.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)
======================================
I did put my framework-res.apk in the "place apk here for modding"
Can anyone debug for me? Big thanks!!
I Can Not Decompile/Compile System APK
I Get This On Apk tool
Code:
C:\Users\Server\Desktop\APKtool>apktool d systemUI.apk
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(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Sou
rce)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Whats Wrong ???
I;m Using Windows 8 Pro
Look The Screenshot My PC
I Need Your Help
I'd be more bothered about running a 32bit OS on a 64bit machine, but hey ho. Give the second link in my sig a browse, it may or may not help.
Post questions, help in Q/A, Help section. Not in Theme section.
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__aeabi_memclr4" referenced by "/data/app/com.offsec.nhterm-1/lib/arm/libjackpal-termexec2nhj1.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at com.offsec.nhterm.TermExec.<clinit>(Unknown Source)
at com.offsec.nhterm.e.a(Unknown Source)
at com.offsec.nhterm.e.f(Unknown Source)
at com.offsec.nhterm.e.<init>(Unknown Source)
at com.offsec.nhterm.Term.a(Unknown Source)
at com.offsec.nhterm.Term$13.onClick(Unknown Source)
at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:163)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5437)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:163)
Plz I got this error when I open terminal on my MIUI 8
Hi when I try to install framework-res from cmd I get this
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: framework-res.apk (Impossibile trovare il file specificato)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:406)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.io.FileNotFoundException: framework-res.apk (Impossibile trovare il file specificato)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:374)
... 3 more
How can I solve it?
It seems you specified the path to framework-res.apk incorrectly.