[Verizon Samsung Galaxy S 4] CHRONO​MASTER:
I have been experiencing an ongoing issue with stang5litre Edition 5.0 NON-MDK v3 with OF1 Installation.

I'm developing an android application using Android Studio and every time I try to debug or run using my phone I get errors that relate to

the package manager system@framework@pm.jar@classes.dex and activity manager system@framework@am.jar@classes.dex

where Android Studio is unable to install and debug/run the activity via adb.

If I delete the referenced classes.dex files the pm and am commands start working but only for a sort time (< 15sec) until the files are automatically regenerated.

I have tried re-flashing three times but I get the same result before I do anything else.

While writing this message I found that running the commands in a Terminal/Console emulator app does not produce an error and runs correctly.

The error stack trace only seems to occur using ADB.

Can anyone else confirm or deny this error using their phone.

If you have used adb shell before then just execute pm and am then see if you get a stack trace.

$ adb push C:\AndroidDev\xxxxx\app\build\outputs\apk\app-debug.apk /data/local/tmp/xxx.aaaa.bbbb.cccc
$ adb shell pm install -r "/data/local/tmp/xxx.aaaa.bbbb.cccc"
java.lang.ClassNotFoundException: Didn't find class "com.android.commands.pm.Pm" on path: DexPathList[[zip file "/system/framework/pm.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
Suppressed: java.io.IOException: Failed to open oat file from dex location '/system/framework/pm.jar'
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:295)
at dalvik.system.DexFile.<init>(DexFile.java:80)
at dalvik.system.DexFile.<init>(DexFile.java:59)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:262)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:231)
at dalvik.system.DexPathList.<init>(DexPathList.java:109)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:38)
at java.lang.ClassLoader.createSystemClassLoader(ClassLoader.java:128)
at java.lang.ClassLoader.access$000(ClassLoader.java:65)
at java.lang.ClassLoader$SystemClassLoader.<clinit>(ClassLoader.java:81)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:137)
Caused by: java.io.IOException: Failed to open oat file from /system/framework/arm/pm.odex (error Failed to open oat filename for reading: No such file or directory) (no dalvik_cache availible) and relocation failed.
... 13 more
Caused by: java.io.IOException:
... 13 more
Caused by: java.io.IOException: Failed to remove obsolete file from /data/dalvik-cache/arm/system@framework@pm.jar@classes.dex when searching for dex file /system/framework/pm.jar: Permission denied
... 13 more
Suppressed: java.lang.ClassNotFoundException: com.android.commands.pm.Pm
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 1 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Aborted

$ adb shell am start -n "xxx.aaaa.bbbb.cccc/xxx.aaaa.bbbb.cccc.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "xxx.aaaa.bbbb.cccc/xxx.aaaa.bbbb.cccc.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
java.lang.ClassNotFoundException: Didn't find class "com.android.commands.am.Am" on path: DexPathList[[zip file "/system/framework/am.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
Suppressed: java.io.IOException: Failed to open oat file from dex location '/system/framework/am.jar'
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:295)
at dalvik.system.DexFile.<init>(DexFile.java:80)
at dalvik.system.DexFile.<init>(DexFile.java:59)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:262)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:231)
at dalvik.system.DexPathList.<init>(DexPathList.java:109)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:38)
at java.lang.ClassLoader.createSystemClassLoader(ClassLoader.java:128)
at java.lang.ClassLoader.access$000(ClassLoader.java:65)
at java.lang.ClassLoader$SystemClassLoader.<clinit>(ClassLoader.java:81)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:137)
Caused by: java.io.IOException: Failed to open oat file from /system/framework/arm/am.odex (error Failed to open oat filename for reading: No such file or directory) (no dalvik_cache availible) and relocation failed.
... 13 more
Caused by: java.io.IOException:
... 13 more
Caused by: java.io.IOException: Failed to remove obsolete file from /data/dalvik-cache/arm/system@framework@am.jar@classes.dex when searching for dex file /system/framework/am.jar: Permission denied
... 13 more
Suppressed: java.lang.ClassNotFoundException: com.android.commands.am.Am
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 1 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Aborted

Error while Launching activity