[Q] Help with deodex on LG P500 needed - Android Software/Hacking General [Developers Only]

Hi all,
i've tryed to de-odex my LG P500 files in system/app and system/framework with "xUltimate-2.2.2". It works for the most of files, but MoviePlayer.odex doesn't deodex because of an error: "Error occured while loading boot class path files." and so the xUltimate application stops complete
Code:
After this, a stacktrace follows:
[code]
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find int
erface Lcom/nextreaming/NexSubtitle$IListener;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadAllImplementedInte
rfaces(ClassPath.java:819)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:
675)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280
)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:16
3)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPath(ClassPath.j
ava:131)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:105)
at org.jf.baksmali.main.main(main.java:278)
Error while loading class Lcom/wise/movie_player/movie_player$23; from file .\or
igi_app\MoviePlayer.odex
Error while loading ClassPath class Lcom/wise/movie_player/movie_player$23;
Can anyone help me please or give a tip, to deodex my system?
Thanks

Problems are now solved: we can't use xUltimate here, because we must apply some class pathes for deodexing the odex-files.
All files are now copied to the phone, it boots now in deodexed format, but two apps are crashing:
com.android.phone and com.android.settings
Any suggestions ???

can you please tell that how it worked. i wanna deodex samsung galaxy 3.
with xultimate settings are not deodexed , everything does.
so if i keep the settings as it is and deodex everything else and put to phone, would it work..???

is this ICS or Gingerbread?

Related

Deodex Q

Move to Q+A Please
Having a tough time with deodexing Mms.apk from the new Rodgers build.
I simply wanted to figure out how to deodex a file so I can use it in Pinnacle(learning), I downloaded baksmali and loaded it up pointed to the framework directories and tried to deodexing and that didn't work.
So I copied the all the /app and /framework folders from the mounted image to a local project folder /home/dan/project tried it that way too and this is now the error I get:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Util.ExceptionWithContext: ./services.odex: file too short
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClassPath(ClassPath.java:220)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:145)
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:282)
Caused by: java.lang.RuntimeException: ./services.odex: file too short
at org.jf.dexlib.Util.FileUtils.readFile(FileUtils.java:103)
at org.jf.dexlib.DexFile.<init>(DexFile.java:293)
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClassPath(ClassPath.java:216)
... 4 more
Error while reading boot class path entry "services.odex".
Click to expand...
Click to collapse
Anyone have any ideas?
Running RHEL 6.1 x64

Need a little help deodexing HC...

I'm trying to deodex the stock HC rom and I've run into a few issues. First, I know that there are deodex'ed HC roms out there, but I'm doing this for my own edumacation. I've deodex'ed a donut and gingerbread rom and they work just fine, but honeycomb is giving me issues.
I'm using roach's patched baksmali jar that he fixed for HC. I'm using the 8.6.5.13 as a starting point. Here's my process in a nutshell:
I use baksmali without -x on all odex files (and jar/apk files without an odex file). This gives me all class paths. I wrote a script that puts them all into neat and tidy folders.
Then I baksmali the odex/jar files from framework using the BOOTCLASSPATH from my transformer.
Next, I baksmali the apk files using the BOOTCLASSPATH, plus whatever other jar it looks like it needs. This is the step that is giving me issues.
Most of the apps decompile/compile just fine, but a handful of them are referencing classes and superclasses that don't show up anywhere.
Is there something that I am missing? Is there something wrong with with my process? I did the exact same thing with a donut rom on my g1 and a gingerbread rom on my g2, and everything is working swell with those roms. Just for giggles, I added all the jars to the boot class path and I still got the same errors. Is this a case of a class that isn't used?
Here's a taste of my half-baked rom... the excerpt from the log file shows the apk and the bootclass path that I used.
Code:
AWS.apk -c core.jar:apache-xml.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Ljavax/servlet/http/HttpServlet;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:784)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:668)
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.InitializeClassPath(ClassPath.java:131)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:111)
at org.jf.baksmali.main.main(main.java:282)
Error while loading class Lcom/ecareme/http/RedirectServlet; from file /android/hc_work/deodex_hc/system/app/AWS.odex
Error while loading ClassPath class Lcom/ecareme/http/RedirectServlet;
Dictionary.apk -c core.jar:apache-xml.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Ljava/awt/event/WindowAdapter;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:784)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:668)
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.InitializeClassPath(ClassPath.java:131)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:111)
at org.jf.baksmali.main.main(main.java:282)
Error while loading class Lorg/htmlparser/beans/BeanyBaby$1; from file /android/hc_work/deodex_hc/system/app/Dictionary.odex
Error while loading ClassPath class Lorg/htmlparser/beans/BeanyBaby$1;
NVIDIATegraZone.apk -c core.jar:apache-xml.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar
Error while disassembling method Lcom/github/droidfu/http/BetterHttpRequest$2;->retryRequest(Ljava/io/IOException;ILorg/apache/http/protocol/HttpContext;)Z. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class Loauth/signpost/OAuthConsumer; cannot be resolved.
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedValidationException(ClassPath.java:535)
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDepth(ClassPath.java:543)
at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.java:383)
at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:275)
at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(AnalyzedInstruction.java:185)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccessors(MethodAnalyzer.java:444)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndPropagateChanges(MethodAnalyzer.java:409)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setDestinationRegisterTypeAndPropagateChanges(MethodAnalyzer.java:396)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeIgetWideObject(MethodAnalyzer.java:2605)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:777)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:370)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:292)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:323)
at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:308)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:137)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:201)
at org.jf.baksmali.main.main(main.java:282)
opcode: iget-object
CodeAddress: 96
Method: Lcom/github/droidfu/http/BetterHttpRequest$2;->retryRequest(Ljava/io/IOException;ILorg/apache/http/protocol/HttpContext;)Z
OK, I tried it with the -I option for the offending apks and I didn't have any errors after that. Smali was fine with ignoring the missing classes. The rom seems to be OK. I don't get any force closes, but I didn't test out everything too thoroughly, especially the bloatware. Make me wonder why I bother deodexing it in the first place?
I would still like to know how these missing classes get there in the first place?

[Q] How can I deodex rom?

Hi
Anybody pls help, I want to deodex my rom JPU, but I don't know how can I do it.
Thanks
Use xUltimate....
http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html
I try it. I run a test, but it failed...
"Error occured while loading boot class path files. Aborting"
I need a step by step tutorial
Sorry for my bad english.
Please, detail instruction to deodex rom by screenshot. Thanks!

[Q] [Help] Help with deodexing a file

I've been trying to deodex the stock ROM (1.55.531.3) but for HtcFacebook.odex, it can't load a superclass properly and I can't find the dependencies that will allow me to deodex the .apk properly.
Here is a pastebin of my error: http://pastebin.com/9YDzckbi
Thanks to anyone who can give me some advice or help!

[Q] Android Lollipop: Can't run recompiled framework-res.apk: “Analysis Error”

I'm actually tweaking /system/framework/framework-res.apk to change some Lollipop's new features. There's a bunch of XML files in that package for that purpose.
The issue is: I decompile and recompile the mentioned apk with apktool on my pc, without editing anything, just to try. Then I move the apk to my Samsung S5's /sdcard directory, tap it, and get the following error "Analysis error. Couldn't perform this package's analysis (translation from spanish)".
When compiling, I get several warnings, mostly "translation not found" typed. The same process with a phonegap self made app works perfectly.
I'm using:
apktool_2.0.0rc3.jar
jdk 1.7
Windows 7 ultimate
Android 5.0 on Samsung Galaxy S5 (SM-G900F)
I have deleted C:\Users\myuser\apktool\framework\1.apk file.
Could the problem be a signature issue?
Thanks.

Categories

Resources