[Android Q&A, Help & Troubleshooting] santeri3700:
Hello,

I'm trying to port CyanogenMod 10.1 to my unsupported device Samsung Galaxy Core Plus SM-G350 [cs02].

It has hawaii-board and there is pretty many CM ports out there for the same board.

I have managed to port source for my device and it is in github. (DEVICE, VENDOR, KERNEL)

Now to the problem..

I can get the boot animation but my device stays in bootloop. I believe the problem is here:

adb shell bugreport

.
.
11-22 08:44:49.420 18566 18566 D AndroidRuntime:

11-22 08:44:49.420 18566 18566 D AndroidRuntime: >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

11-22 08:44:49.420 18566 18566 D AndroidRuntime: CheckJNI is OFF

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/framework2.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/sec_edm.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/seccamera.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/scrollpause.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/stayrotation.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/smartfaceservice.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/sc.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Unable to stat classpath element '/system/framework/secocsp.jar'

11-22 08:44:49.430 18566 18566 D dalvikvm: Trying to load lib libjavacore.so 0x0

11-22 08:44:49.430 18566 18566 D dalvikvm: Added shared lib libjavacore.so 0x0

11-22 08:44:49.440 18566 18566 D dalvikvm: Trying to load lib libnativehelper.so 0x0

11-22 08:44:49.440 18566 18566 D dalvikvm: Added shared lib libnativehelper.so 0x0

11-22 08:44:49.460 18566 18566 W dalvikvm: Failed to mount /storage as MS_SLAVE: Invalid argument

11-22 08:44:49.530 18566 18566 I SamplingProfilerIntegration: Profiling disabled.

11-22 08:44:49.540 18566 18566 I Zygote : Preloading classes...

11-22 08:44:49.540 18566 18566 D dalvikvm: GC_EXPLICIT freed 36K, 9% free 427K/468K, paused 0ms+1ms, total 2ms

11-22 08:44:49.560 18566 18566 D dalvikvm: GC_EXPLICIT freed 4K, 5% free 497K/520K, paused 0ms+0ms, total 2ms

11-22 08:44:49.560 18566 18566 D dalvikvm: Note: class Landroid/app/ActivityManagerNative; has 158 unimplemented (abstract) methods

11-22 08:44:49.570 18566 18566 D dalvikvm: GC_EXPLICIT freed 21K, 5% free 537K/564K, paused 1ms+1ms, total 3ms

11-22 08:44:49.580 18566 18566 D dalvikvm: GC_EXPLICIT freed 26K, 6% free 565K/596K, paused 0ms+1ms, total 4ms

11-22 08:44:49.590 18566 18566 W Zygote : Class not found for preloading: android.bluetooth.BluetoothAudioGateway

11-22 08:44:49.590 18566 18566 W Zygote : Class not found for preloading: android.bluetooth.HeadsetBase

11-22 08:44:49.590 18566 18566 W Zygote : Class not found for preloading: undroid.content.AbstractThreadedSyncAdapter$SyncThread

11-22 08:44:49.590 18566 18566 D dalvikvm: GC_EXPLICIT freed 24K, 5% free 615K/644K, paused 0ms+0ms, total 3ms

11-22 08:44:49.611 18566 18566 D dalvikvm: GC_EXPLICIT freed 25K, 5% free 644K/672K, paused 1ms+1ms, total 6ms

11-22 08:44:49.641 18566 18566 D dalvikvm: GC_EXPLICIT freed 60K, 8% free 745K/808K, paused 1ms+1ms, total 4ms

11-22 08:44:49.671 18566 18566 D dalvikvm: GC_EXPLICIT freed 31K, 5% free 770K/808K, paused 1ms+0ms, total 4ms

11-22 08:44:49.681 18566 18566 D TextLayoutCache: Using debug level = 0 - Debug Enabled = 0

11-22 08:44:49.721 18566 18566 I dalvikvm: threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)

11-22 08:44:49.721 18566 18566 D MtpDeviceJNI: register_android_mtp_MtpDevice

11-22 08:44:49.721 18566 18566 I dalvikvm: threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)

11-22 08:44:49.721 18566 18566 I dalvikvm: threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)

11-22 08:44:49.721 18566 18566 F MediaProfiles: frameworks/av/media/libmedia/MediaProfiles.cpp:332 CHECK(quality != -1) failed.

11-22 08:44:49.721 18566 18566 F libc : Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 18566 (zygote)
.
.

And here is my media_profiles.xml:

https://github.com/santeri3700/android_device_samsung_cs02/blob/master/configs/media_profiles.xml

I have tried multiple different versions of media_profiles.xml, but the error hasn't changed.

(I can give the full log if required. I didn't give it because it's 2MB~)

I'm not totally sure if this is the reason why my device is not booting, but "DEADBAD" look pretty serious.

Thank you for your help and if you are interested in this project, please join me.

-santeri3700