欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

DexOpt相关的异常

程序员文章站 2022-06-29 09:45:41
查找的资料 dvm探讨之odex绕过 DexClassLoader4.4.2动态加载分析(磁盘加载分析) Unable to extract+optimize DEX from '/system/app/AWCarInfo.apk'不能从 '/system/app/AWCarInfo.apk'中提取 ......

查找的资料

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@app@awcarinfo.apk@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@app@awcarinfo.apk@classes.dex中提取优化的odex 文件是过时的or坏的,所以awcarinfo.apk无法启动。