Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,458 Members 47,556 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Not loading class from Classes2.dex?

Tip us?
 
cryptyk
Old
#1  
Senior Member - OP
Thanks Meter 1,079
Posts: 257
Join Date: Jul 2007
Default [Q] Not loading class from Classes2.dex?

I'm trying to hook the following: com.google.android.ulr.ApiRate

It's in com.google.android.gms (Google Play Services). I verified it's in there by dex dumping the Classes2.dex from Play Services.

At runtime, I get this:
Code:
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.google.android.ulr.ApiRate
...
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.ulr.ApiRate" on path: DexPathList[[zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/framework/com.android.location.provider.jar", zip file "/data/app/com.google.android.gms-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.google.android.gms-2, /vendor/lib, /system/lib, /vendor/lib]]
The only thing I can think of is that it's because it's in Classes2.dex instead of Classes.dex?

Any thoughts?
 
cryptyk
Old
#3  
Senior Member - OP
Thanks Meter 1,079
Posts: 257
Join Date: Jul 2007
Quote:
Originally Posted by GermainZ View Post
Looks like you got this fixed. What was the problem?
I wasn't able to fix it. I tried using multidex but never got it working. In the end, i had to dig through a lot of projects dalvik bytecode and follow the call stack back to a place defined in classes.dex, then hook it there. Not ideal, and more chances for side effects, but things seem to be working

I'd love to see a fix at some point!
The Following User Says Thank You to cryptyk For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes