Injector icon indicating copy to clipboard operation
Injector copied to clipboard

Exception while loading Dexfiles from external storage

Open vasusachin opened this issue 4 years ago • 0 comments

Good bug reports include a failing test! Creating a minimal project for reproducing the issue will help us to fix it fast.

Loading the Dex file from /mnt/sdcard/ failing with below exception. How to load dex file from external storage

2020-07-26 01:45:44.828 7982-7982/com.technicolor.rtspTestApp W/lor.rtspTestAp: Accessing hidden field Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; (light greylist, reflection) 2020-07-26 01:45:44.906 7982-7982/com.technicolor.rtspTestApp W/DexInjector: Exception in makeDexElement java.io.IOException: No original dex files found for dex location /mnt/sdcard/dex/rtspClient.dex at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:354) at dalvik.system.DexFile.(DexFile.java:143) at dalvik.system.DexFile.loadDex(DexFile.java:202) at dalvik.system.DexPathList.loadDexFile(DexPathList.java:397) at dalvik.system.DexPathList.makeDexElements(DexPathList.java:344) at dalvik.system.DexPathList.makeDexElements(DexPathList.java:321) at dalvik.system.DexPathList.makePathElements(DexPathList.java:443) at java.lang.reflect.Method.invoke(Native Method) at app.artyomd.injector.DexInjector$V19.makeDexElements(DexInjector.java:169) at app.artyomd.injector.DexInjector$V19.install(DexInjector.java:128) at app.artyomd.injector.DexInjector.installSecondaryDexes(DexInjector.java:34) at app.artyomd.injector.DexUtils.loadDex(DexUtils.java:29) at com.technicolor.rtspTestApp.MainActivity.loadDexFiles(MainActivity.java:39) at com.technicolor.rtspTestApp.MainActivity.onCreate(MainActivity.java:83) at android.app.Activity.performCreate(Activity.java:7224) at android.app.Activity.performCreate(Activity.java:7213) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6810) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) 2020-07-26 01:45:44.907 7982-7982/com.technicolor.rtspTestApp W/lor.rtspTestAp: Accessing hidden field Ldalvik/system/DexPathList;->dexElementsSuppressedExceptions:[Ljava/io/IOException; (light greylist, reflection) 2020-07-26 01:45:44.909 7982-7982/com.technicolor.rtspTestApp W/System.err: java.io.IOException: I/O exception during makeDexElement 2020-07-26 01:45:44.911 7982-7982/com.technicolor.rtspTestApp W/System.err: at app.artyomd.injector.DexInjector$V19.install(DexInjector.java:153) 2020-07-26 01:45:44.914 7982-7982/com.technicolor.rtspTestApp W/System.err: at app.artyomd.injector.DexInjector.installSecondaryDexes(DexInjector.java:34) 2020-07-26 01:45:44.915 7982-7982/com.technicolor.rtspTestApp W/System.err: at app.artyomd.injector.DexUtils.loadDex(DexUtils.java:29) 2020-07-26 01:45:44.918 7982-7982/com.technicolor.rtspTestApp W/System.err: at com.technicolor.rtspTestApp.MainActivity.loadDexFiles(MainActivity.java:39) 2020-07-26 01:45:44.920 7982-7982/com.technicolor.rtspTestApp W/System.err: at com.technicolor.rtspTestApp.MainActivity.onCreate(MainActivity.java:83) 2020-07-26 01:45:44.921 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.Activity.performCreate(Activity.java:7224) 2020-07-26 01:45:44.923 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.Activity.performCreate(Activity.java:7213) 2020-07-26 01:45:44.926 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272) 2020-07-26 01:45:44.928 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926) 2020-07-26 01:45:44.930 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081) 2020-07-26 01:45:44.932 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 2020-07-26 01:45:44.935 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 2020-07-26 01:45:44.937 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 2020-07-26 01:45:44.939 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831) 2020-07-26 01:45:44.941 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106) 2020-07-26 01:45:44.943 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.os.Looper.loop(Looper.java:201) 2020-07-26 01:45:44.945 7982-7982/com.technicolor.rtspTestApp W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6810) 2020-07-26 01:45:44.946 7982-7982/com.technicolor.rtspTestApp W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2020-07-26 01:45:44.948 7982-7982/com.technicolor.rtspTestApp W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 2020-07-26 01:45:44.950 7982-7982/com.technicolor.rtspTestApp W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) 2020-07-26 01:45:44.976 7982-7982/com.technicolor.rtspTestApp W/System.err: Caused by: java.io.IOException: No original dex files found for dex location /mnt/sdcard/dex/rtspClient.dex 2020-07-26 01:45:44.978 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexFile.openDexFileNative(Native Method) 2020-07-26 01:45:44.980 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexFile.openDexFile(DexFile.java:354) 2020-07-26 01:45:44.982 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexFile.(DexFile.java:143) 2020-07-26 01:45:44.984 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexFile.loadDex(DexFile.java:202) 2020-07-26 01:45:44.986 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:397) 2020-07-26 01:45:44.988 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexPathList.makeDexElements(DexPathList.java:344) 2020-07-26 01:45:44.990 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexPathList.makeDexElements(DexPathList.java:321) 2020-07-26 01:45:44.992 7982-7982/com.technicolor.rtspTestApp W/System.err: at dalvik.system.DexPathList.makePathElements(DexPathList.java:443) 2020-07-26 01:45:44.994 7982-7982/com.technicolor.rtspTestApp W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2020-07-26 01:45:44.996 7982-7982/com.technicolor.rtspTestApp W/System.err: at app.artyomd.injector.DexInjector$V19.makeDexElements(DexInjector.java:169) 2020-07-26 01:45:44.998 7982-7982/com.technicolor.rtspTestApp W/System.err: at app.artyomd.injector.DexInjector$V19.install(DexInjector.java:128) 2020-07-26 01:45:44.999 7982-7982/com.technicolor.rtspTestApp W/System.err: ... 19 more 2020-07-26 01:45:45.419 7982-8014/com.technicolor.rtspTestApp I/lor.rtspTestAp: ProcessProfilingInfo new_methods=43 is saved saved_to_disk=1 resolve_classes_delay=8000

vasusachin avatar Jul 25 '20 20:07 vasusachin