I am trying to decompile the latest ics systemui.apk to install the toggle mod, and when i try to decompile it, i get errors and the apk is not fully decompiled.
Any one else getting this problem? or does anyone know the fix? this apk is the ule2 latest leak out.
Are you trying to do this on the original ICS leak version or is this already a deodexed version you are using from say a custom ROM that someone already put on on the latest ICS leak?
If its the original, then its Odex'ed and you can just straight decompile it, the other half the file is the .ODEX that sits in that same directory which you would have to run through a complex procedure of actually deodexing it, then make your changes, then re-odex it back.
Dixit
Tried using kitchen to deodex the files but that even gives me errors. Using the latest version of kitchen and setting the variable to either 14 or 15 still gives me errors. Even went back to do single file and ignore errors, works, but when i try to decompile the apk i get errors and still cant get to the files i need to edit. This lateest leak is the only one i had problems doing this.
Sent from my SAMSUNG-SGH-I727 using XDA
I've run into this issue with 4.0.4 the kitchen has been unsupported for so long now that I think she needs a good old fashioned overhaul people have made add ons and stuff but I have yet to find one that works
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
nrm5110 said:
I've run into this issue with 4.0.4 the kitchen has been unsupported for so long now that I think she needs a good old fashioned overhaul people have made add ons and stuff but I have yet to find one that works
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
well appartenly there has been some updates to the kitchen, the last update was may 5, 2012.. I hope that they keep updating it. I have been using that program to do all my decompiling - recompiling- etc.. Is there any thing else out there that i can use to do this?
Where is this may 5th update I have yet to see it link please
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
nrm5110 said:
Where is this may 5th update I have yet to see it link please
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
You of all people should know this.. GOOGLE IT.. SEARCH SEARCH.
http://forum.xda-developers.com/showpost.php?p=5626296&postcount=2
Release Notes
Version 0.193 (May 5, 2012):
•Fixed some stability issues in ICS (especially for Galaxy S2) when creating ROM from stock firmware in Cygwin
•Remove .DS_Store files when initializing kitchen in OS X
Version 0.192 (April 14, 2012):•Fixed syntax issue with newer versions of Mac OS X when copying RFS files from mounted volume. Files under /system were copied to a subfolder named 'RFS' by mistake.
•Fixed 'Resource busy' issues in OS X when unmounting RFS file system.
I have been Googling that thing has been dodging me I been after it for a while lol thanks
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Oh wtf it was in main and I'm a retard lol wow
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
this is the error i keep getting when i try to deodex..
NOW AT FILE 103 OF 124 IN system/app: SystemUI.odex
Disassembling SystemUI.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d ../framework -x SystemUI.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find interface Lcom/sec/android/app/minimode/manager/MiniModeAppCallback$OnFocusChangedCallback;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadAllImplementedInterfaces(ClassPath.java:865)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:690)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/android/systemui/statusbar/tablet/MiniModeAppsPanel$1; from file SystemUI.odex
Error while loading ClassPath class Lcom/android/systemui/statusbar/tablet/MiniModeAppsPanel$1;
-> Using brute-force method (ignore above error if successful):
Disassembling SystemUI.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d ../framework -c :am.jar:android.policy.jar:android.test.runner.jar:apache-xml.jar:bmgr.jar:bouncycastle.jar:browsermanagement.jar:bu.jar:cneapiclient.jar:com.android.future.usb.accessory.jar:com.android.location.provider.jar:com.android.nfc_extras.jar:com.att.vvm.sharedlib.jar:com.cequint.platform.jar:com.google.android.maps.jar:com.google.android.media.effects.jar:com.google.widevine.software.drm.jar:com.qualcomm.location.vzw_library.jar:com.quicinc.cne.jar:com.samsung.device.jar:core.jar:core-junit.jar:ext.jar:filterfw.jar:framework2.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:libvtmanagerjar.jar:minimode.jar:modemwarmup.jar:monkey.jarm.jar:seccamera.jar:sec_feature.jar:secframework.jar:sechardware.jar:secmediarecorder.jar:sec_platform_library.jar:services.jar:svc.jar:twframework.jar -x SystemUI.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Util.ExceptionWithContext: Cannot locate boot class path file com.att.vvm.sharedlib.jar
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClassPath(ClassPath.java:237)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:151)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
ERROR: Aborting SystemUI.odex
Just need to include minimode.jar in the classpath. Select the option to deodex a single file, when it asks if you want to include something in the classpath (don't recall the exact wording) type in: minimode.jar then it should work fine.
I actually learned how to deodex before you said anything dude taught myself wtf I was doing wrong its simple now
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
cschmitt said:
Just need to include minimode.jar in the classpath. Select the option to deodex a single file, when it asks if you want to include something in the classpath (don't recall the exact wording) type in: minimode.jar then it should work fine.
Click to expand...
Click to collapse
ok this worked. now the problem is that when i try to decompile the app i get a boat load of errors. This systemui.apk looks totally different then the previous versions.
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Could Not Find C:\Users\Desktop\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\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\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x010404d0
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010404d0
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)
Might try jdk 1.6, think I've read somewhere there are issues using these toolkits with 1.7.
cschmitt said:
Might try jdk 1.6, think I've read somewhere there are issues using these toolkits with 1.7.
Click to expand...
Click to collapse
I just tried that and it still didnt work. oh well.. Back to the drawing board.
It's unable to resolve some resource ids. Do you have the correct framework version in /apktool/framework/1.apk?
cschmitt said:
It's unable to resolve some resource ids. Do you have the correct framework version in /apktool/framework/1.apk?
Click to expand...
Click to collapse
How would i check to see if i have the correct framework version. I downloaded the apt-tool and have java 1.6,
Sent from my SAMSUNG-SGH-I727 using XDA
You'll need to pull the correct framework apks from the rom that you're working with. Assuming that you're running apktool from the root working directory of the rom the correct commands are:
Code:
apktool if system/framework/framework-res.apk
apktool if system/framework/twframework-res.apk
The framework resources will be copied to: <user's home dir>/apktool/framework directory.
Did you ever get this resolved?
Sent from my GT-P7510 using xda premium
OK boys I tried deodexing the gs3 leak got everything but smemo and slideshow I tried brute force method and I tried to find a change going through the jars 1 by 1 I personally think something be missin
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Ok here is my phone setup:
HTC one sv
S-off
Supercid
Supermid
Aos is 4.1.2
My problem is I'm trying to decompile make changes and recompile apk/odex files ie.....
Framework.apk
Framework.odex
It seems to decompile ok but when recompiling I get this message:
W: could not find resources
when recompiling the apk
I'm trying to change the sdk values
I have apktool installed on my internal sd card.
Am I doing something wrong or is there something else I need to add/do
Sent from my C525c using xda app-developers app
I'm using apktool quite some time. But can't figure out why I'm always unable to decompile some app like Nova launcher, Solid Explorer and most of play store app like them. The errors don't even leave any trace on log file. They just stopped decompile. So far, I've successfully decompiled framework-res, system apks & Whatsapp without any error. I'm using latest apktool & my device's framework-res & system-UI already added. By the way, I'm adding a little apk which I failed to decompile. Thanks.
Iam just tried to replace all pngs and .9.pngs of cm theme apk with xperia's theme.Also edited the xml files. But when compiling getting this error: pastebin.com/sUbsK02G
Any one help me how can i solve this error
Hello everybody i tried multi apktool to decompile apks but when i recompile those apps and try to install app on my phone its shows app not installed. Even when i don'T EDIT any file in the app. Please give me simple and best way to edit apk files.
Thanks.!!!