[Treble-Enabled Device Questions and Answers] Ghost505:
Solved ignore this

I would like to know what causes exactly this issue :

java.lang.ClassNotFoundException: Didn't find class "com.mediatek.camera.CameraActivity on path: DexPathList

I moved the system/app/camera and also tried a lot of libraries from system/lib and system/lib64 but I still get this missing com.mediatek.camera.CameraActivity.

Any advice on where exactly should I look ? Boot partitions is the same, vendor partition is the same since my 8.1 supports treble.

E/AndroidRuntime( 7441): FATAL EXCEPTION: main
E/AndroidRuntime( 7441): Process: com.mediatek.camera, PID: 7441
E/AndroidRuntime( 7441): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mediatek.camera/com.mediatek.camera.CameraActivity}: java.lang.ClassNotFoundException:Didn't find class "com.mediatek.camera.CameraActivity on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/app/Camera/Camera.apk"],nativeLibraryDirectories=[/system/app/Camera/lib/arm64, /system/app/Camera/Camera.apk!/lib/arm64-v8a, /system/lib64, /system/lib64]]
E/AndroidRuntime( 7441):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2844)
E/AndroidRuntime( 7441):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049)
E/AndroidRuntime( 7441):	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
E/AndroidRuntime( 7441):	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime( 7441):	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime( 7441):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)
E/AndroidRuntime( 7441):	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 7441):	at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime( 7441):	at android.app.ActivityThread.main(ActivityThread.java:6680)
E/AndroidRuntime( 7441):	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 7441):	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
E/AndroidRuntime( 7441):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime( 7441): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mediatek.camera.CameraActivity" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/app/Camera/Camera.apk"],nativeLibraryDirectories=[/system/app/Camera/lib/arm64, /system/app/Camera/Camera.apk!/lib/arm64-v8a, /system/lib64, /system/lib64]]
E/AndroidRuntime( 7441):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
E/AndroidRuntime( 7441):	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime( 7441):	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime( 7441):	at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)
E/AndroidRuntime( 7441):	at android.app.Instrumentation.newActivity(Instrumentation.java:1215)
E/AndroidRuntime( 7441):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2832)
E/AndroidRuntime( 7441):	... 11 more
E/AndroidRuntime( 7441):	Suppressed: java.io.IOException: No original dex files found for dex location /system/app/Camera/Camera.apk
E/AndroidRuntime( 7441):	at dalvik.system.DexFile.openDexFileNative(Native Method)
E/AndroidRuntime( 7441):	at dalvik.system.DexFile.openDexFile(DexFile.java:354)
E/AndroidRuntime( 7441):	at dalvik.system.DexFile.<init>(DexFile.java:101)
E/AndroidRuntime( 7441):	at dalvik.system.DexFile.<init>(DexFile.java:75)
E/AndroidRuntime( 7441):	at dalvik.system.DexPathList.loadDexFile(DexPathList.java:394)
E/AndroidRuntime( 7441):	at dalvik.system.DexPathList.makeDexElements(DexPathList.java:354)
E/AndroidRuntime( 7441):	at dalvik.system.DexPathList.<init>(DexPathList.java:164)
E/AndroidRuntime( 7441):	at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:74)
E/AndroidRuntime( 7441):	at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
E/AndroidRuntime( 7441):	at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
E/AndroidRuntime( 7441):	at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:73)
E/AndroidRuntime( 7441):	at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:88)
E/AndroidRuntime( 7441):	at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:74)
E/AndroidRuntime( 7441):	at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:40)
E/AndroidRuntime( 7441):	at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:727)
E/AndroidRuntime( 7441):	at android.app.LoadedApk.getClassLoader(LoadedApk.java:810)
E/AndroidRuntime( 7441):	at android.app.LoadedApk.getResources(LoadedApk.java:1032)
E/AndroidRuntime( 7441):	at android.app.ContextImpl.createAppContext(ContextImpl.java:2345)
E/AndroidRuntime( 7441):	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5760)
E/AndroidRuntime( 7441):	at android.app.ActivityThread.access$1100(ActivityThread.java:200)
E/AndroidRuntime( 7441):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
E/AndroidRuntime( 7441):	... 6 more
W/ActivityManager( 1036): Force finishing activity com.mediatek.camera/.CameraLauncher