DexOpt相关的异常

查找的资料

dvm探讨之odex绕过

DexClassLoader4.4.2动态加载分析(磁盘加载分析)

 

04-11 23:34:36.850 D/dalvikvm( 2255): DexOpt: incorrect opt magic number (0xff ff ff ff)

04-11 23:34:36.850 D/dalvikvm( 2255): ODEX file is stale or bad; removing and retrying (/data/dalvik-cache/system@[email protected]@classes.dex)

04-11 23:34:37.000 W/dalvikvm( 2255): Zip: size mismatch on inflated file (1728084 vs 1716780)

04-11 23:34:37.001 E/dalvikvm( 2255): Unable to extract+optimize DEX from '/system/app/AWCarInfo.apk'

04-11 23:34:37.004 D/AndroidRuntime( 2255): Shutting down VM

04-11 23:34:37.004 W/dalvikvm( 2255): threadid=1: thread exiting with uncaught exception (group=0x40fee930)

04-11 23:34:37.007 E/AndroidRuntime( 2255): FATAL EXCEPTION: main

04-11 23:34:37.007 E/AndroidRuntime( 2255): java.lang.RuntimeException: Unable to instantiate application com.roadrover.carinfo.CarApplication: java.lang.ClassNotFoundException: Didn't find class "com.roadrover.carinfo.CarApplication" on path: /system/app/AWCarInfo.apk

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.app.LoadedApk.makeApplication(LoadedApk.java:504)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4395)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.app.ActivityThread.access$1300(ActivityThread.java:145)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1301)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.os.Handler.dispatchMessage(Handler.java:99)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.os.Looper.loop(Looper.java:138)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.app.ActivityThread.main(ActivityThread.java:5089)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at java.lang.reflect.Method.invokeNative(Native Method)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at java.lang.reflect.Method.invoke(Method.java:511)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:807)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:574)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at dalvik.system.NativeStart.main(Native Method)

04-11 23:34:37.007 E/AndroidRuntime( 2255): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.roadrover.carinfo.CarApplication" on path: /system/app/AWCarInfo.apk

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.app.Instrumentation.newApplication(Instrumentation.java:968)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     at android.app.LoadedApk.makeApplication(LoadedApk.java:499)

04-11 23:34:37.007 E/AndroidRuntime( 2255):     ... 11 more

 

 

 

Unable to extract+optimize DEX from '/system/app/AWCarInfo.apk'
不能从 '/system/app/AWCarInfo.apk'中提取和优化DEX 文件

 

问题应该出在DexOpt从/data/dalvik-cache/system@[email protected]@classes.dex中提取优化的ODEX 文件是过时的or坏的,所以AWCarInfo.apk无法启动。

 

你可能感兴趣的:(DexOpt相关的异常)