[Galaxy Tab 8.9 Android Development] jolinnard:
[MENTION=5944750]L3R0N[/MENTION] were you able to boot AOSP M ROM? I have a new kernel, merging decatf's M branch with Selinux support, and kernel boots, but then it stuck with an audio error (if I understand it correctly) and enters in a infinite loop. Logcat shows these messages (in 12-19 16:45:57.602):

12-19 16:45:52.964 I/art ( 3163): Starting a blocking GC HeapTrim
12-19 16:45:53.229 I/ServiceManager( 133): service 'media.resource_manager' died
12-19 16:45:53.229 I/ServiceManager( 133): service 'media.audio_flinger' died
12-19 16:45:53.229 I/ServiceManager( 133): service 'media.player' died
12-19 16:45:54.357 I/Netd ( 3304): Netd 1.0 starting
12-19 16:45:54.357 D/TetherController( 3304): Setting IP forward enable = 0
12-19 16:45:55.133 I/mediaserver( 3305): ServiceManager: 0xb79c7b70
12-19 16:45:55.133 I/AudioFlinger( 3305): Using default 3000 mSec as standby time.
12-19 16:45:55.134 E/ ( 3305): batterystats service unavailable!
12-19 16:45:55.134 E/ ( 3305): batterystats service unavailable!
12-19 16:45:55.139 I/CameraService( 3305): CameraService started (pid=3305)
12-19 16:45:55.139 I/CameraService( 3305): CameraService process starting
12-19 16:45:55.139 E/ ( 3305): batterystats service unavailable!
12-19 16:45:55.139 E/ ( 3305): batterystats service unavailable!
12-19 16:45:56.484 D/AndroidRuntime( 3306): >>>>>> START com.android.internal.os.ZygoteInit uid 0 <<<<<<
12-19 16:45:56.512 D/AndroidRuntime( 3306): CheckJNI is OFF
12-19 16:45:56.513 I/art ( 3306): option[0]=-Xzygote
12-19 16:45:56.513 I/art ( 3306): option[1]=-Xstacktracefile:/data/anr/traces.txt
12-19 16:45:56.513 I/art ( 3306): option[2]=exit
12-19 16:45:56.513 I/art ( 3306): option[3]=vfprintf
12-19 16:45:56.513 I/art ( 3306): option[4]=sensitiveThread
12-19 16:45:56.513 I/art ( 3306): option[5]=-verbose:gc
12-19 16:45:56.513 I/art ( 3306): option[6]=-Xms5m
12-19 16:45:56.513 I/art ( 3306): option[7]=-Xmx256m
12-19 16:45:56.513 I/art ( 3306): option[8]=-XX:HeapGrowthLimit=48m
12-19 16:45:56.513 I/art ( 3306): option[9]=-XX:HeapMinFree=512k
12-19 16:45:56.513 I/art ( 3306): option[10]=-XX:HeapMaxFree=2m
12-19 16:45:56.513 I/art ( 3306): option[11]=-XX:HeapTargetUtilization=0.75
12-19 16:45:56.513 I/art ( 3306): option[12]=-agentlib:jdwp=transport=dt_android_adb,suspend=n,server=y
12-19 16:45:56.513 I/art ( 3306): option[13]=-Ximage-compiler-option
12-19 16:45:56.513 I/art ( 3306): option[14]=--runtime-arg
12-19 16:45:56.513 I/art ( 3306): option[15]=-Ximage-compiler-option
12-19 16:45:56.513 I/art ( 3306): option[16]=-Xms64m
12-19 16:45:56.513 I/art ( 3306): option[17]=-Ximage-compiler-option
12-19 16:45:56.513 I/art ( 3306): option[18]=--runtime-arg
12-19 16:45:56.513 I/art ( 3306): option[19]=-Ximage-compiler-option
12-19 16:45:56.513 I/art ( 3306): option[20]=-Xmx64m
12-19 16:45:56.513 I/art ( 3306): option[21]=-Ximage-compiler-option
12-19 16:45:56.513 I/art ( 3306): option[22]=--image-classes=/system/etc/preloaded-classes
12-19 16:45:56.513 I/art ( 3306): option[23]=-Xcompiler-option
12-19 16:45:56.513 I/art ( 3306): option[24]=--runtime-arg
12-19 16:45:56.513 I/art ( 3306): option[25]=-Xcompiler-option
12-19 16:45:56.513 I/art ( 3306): option[26]=-Xms64m
12-19 16:45:56.513 I/art ( 3306): option[27]=-Xcompiler-option
12-19 16:45:56.513 I/art ( 3306): option[28]=--runtime-arg
12-19 16:45:56.513 I/art ( 3306): option[29]=-Xcompiler-option
12-19 16:45:56.513 I/art ( 3306): option[30]=-Xmx512m
12-19 16:45:56.513 I/art ( 3306): option[31]=-Ximage-compiler-option
12-19 16:45:56.513 I/art ( 3306): option[32]=--instruction-set-variant=cortex-a9
12-19 16:45:56.513 I/art ( 3306): option[33]=-Xcompiler-option
12-19 16:45:56.514 I/art ( 3306): option[34]=--instruction-set-variant=cortex-a9
12-19 16:45:56.514 I/art ( 3306): option[35]=-Ximage-compiler-option
12-19 16:45:56.514 I/art ( 3306): option[36]=--instruction-set-features=default
12-19 16:45:56.514 I/art ( 3306): option[37]=-Xcompiler-option
12-19 16:45:56.514 I/art ( 3306): option[38]=--instruction-set-features=default
12-19 16:45:56.514 I/art ( 3306): option[39]=-Duser.locale=en-US
12-19 16:45:56.514 I/art ( 3306): option[40]=--cpu-abilist=armeabi-v7a,armeabi
12-19 16:45:56.514 I/art ( 3306): option[41]=-Xcompiler-option
12-19 16:45:56.514 I/art ( 3306): option[42]=--compiler-backend=Quick
12-19 16:45:56.514 I/art ( 3306): option[43]=-Ximage-compiler-option
12-19 16:45:56.514 I/art ( 3306): option[44]=--compiler-backend=Quick
12-19 16:45:56.514 I/art ( 3306): option[45]=-Xfingerprint:Samsung/p5wifi/p5wifi:6.0.1/MMB29K/username12091314:user/test-keys
12-19 16:45:56.676 D/ICU ( 3306): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-19 16:45:56.824 E/memtrack( 3306): Couldn't load memtrack module (No such file or directory)
12-19 16:45:56.824 E/android.os.Debug( 3306): failed to load memtrack module: -2
12-19 16:45:56.840 I/Radio-JNI( 3306): register_android_hardware_Radio DONE
12-19 16:45:56.880 I/SamplingProfilerIntegration( 3306): Profiling disabled.
12-19 16:45:56.880 D/Zygote ( 3306): begin preload
12-19 16:45:56.880 I/Zygote ( 3306): Preloading classes...
12-19 16:45:56.921 W/Zygote ( 3306): Class not found for preloading: [Lorg.apache.http.Header;
12-19 16:45:56.921 W/Zygote ( 3306): Class not found for preloading: [Lorg.apache.http.HeaderElement;
12-19 16:45:56.921 W/Zygote ( 3306): Class not found for preloading: [Lorg.apache.http.NameValuePair;
12-19 16:45:56.921 W/Zygote ( 3306): Class not found for preloading: [Lorg.apache.http.conn.routing.RouteInfo$LayerType;
12-19 16:45:56.921 W/Zygote ( 3306): Class not found for preloading: [Lorg.apache.http.conn.routing.RouteInfo$TunnelType;
12-19 16:45:56.923 I/CameraService( 3305): Loaded "p4 Camera Wrapper" camera module
12-19 16:45:56.923 I/CameraFlashlight( 3305): Opening camera 0
12-19 16:45:56.923 I/NvOmxCamera( 3305): HAL_camera_device_open: open camera 0
12-19 16:45:56.985 I/libnvshim( 3305): NVidia interposition library loaded.
12-19 16:45:57.143 D/NvOsDebugPrintf( 3305): [imager_sensor] SensorYuv_S5K5CCGX_GetHal entered!! : 1435 line
12-19 16:45:57.143 D/NvOsDebugPrintf( 3305): [imager_sensor] SensorYuv_Open entered!! : 331 line
12-19 16:45:57.143 D/NvOsDebugPrintf( 3305): [imager_sensor] SensorYuv_GetCapabilities entered!! : 390 line
12-19 16:45:57.143 D/NvOsDebugPrintf( 3305): [focuser] Focuser_DW9714L_GetHal entered!!! : 301 line
12-19 16:45:57.143 D/NvOsDebugPrintf( 3305): [focuser] Focuser_DW9714L_Open entered!!! : 109 line
12-19 16:45:57.143 D/NvOsDebugPrintf( 3305): GetParameter(): 33 not supported
12-19 16:45:57.145 D/NvOsDebugPrintf( 3305): [imager_sensor] SensorYuv_GetCapabilities entered!! : 390 line
12-19 16:45:57.145 D/NvOsDebugPrintf( 3305): [focuser] Focuser_DW9714L_GetCapabilities entered!!! : 155 line
12-19 16:45:57.146 D/NvOsDebugPrintf( 3305): [imager_sensor] SensorYuv_ListModes entered!! : 453 line
12-19 16:45:57.146 D/NvOsDebugPrintf( 3305): [imager_sensor] SensorYuv_ListModes entered!! : 453 line
12-19 16:45:57.195 D/NvOsDebugPrintf( 3305): GetParameter(): 37 not supported
12-19 16:45:57.195 E/NvOmxCamera( 3305): Could not get config for CONFIG_LENS_PHYSICAL_ATTR (80001001)
12-19 16:45:57.196 D/NvOsDebugPrintf( 3305): test for exposuretime!!!!
12-19 16:45:57.196 D/NvOsDebugPrintf( 3305): test for exposuretime!!!!
12-19 16:45:57.196 D/NvOsDebugPrintf( 3305): test for ISO!!!! 0
12-19 16:45:57.196 D/NvOsDebugPrintf( 3305): test for exposure bias!!!!
12-19 16:45:57.196 D/NvOsDebugPrintf( 3305): test for metering!!!!
12-19 16:45:57.197 E/NvOmxCameraSettingsParser( 3305): Param type 14 not supported
12-19 16:45:57.197 E/NvOmxCameraSettingsParser( 3305): Param type 71 not supported
12-19 16:45:57.197 I/NvOmxCamera( 3305): HAL_camera_device_open: opened camera 0 (0xb79cb918)
12-19 16:45:57.199 D/CameraWrapper( 3305): camera_fixup_getparams: get parameters fixed up
12-19 16:45:57.201 D/CameraWrapper( 3305): camera_fixup_setparams: set parameters fixed up
12-19 16:45:57.202 E/NvOmxCamera( 3305): DTP test is set 0
12-19 16:45:57.220 E/Minikin ( 3306): addFont failed to create font /system/fonts/NanumGothic.ttf
12-19 16:45:57.220 E/Minikin ( 3306): addFont failed to create font /system/fonts/DroidSansFallback.ttf
12-19 16:45:57.221 E/Minikin ( 3306): addFont failed to create font /system/fonts/MTLmr3m.ttf
12-19 16:45:57.333 V/DngCreator_JNI( 3306): DngCreator_nativeClassInit:
12-19 16:45:57.537 I/art ( 3306): Thread[1,tid=3306,Native,Thread*=0xb7a12628,peer=0x12c35100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
12-19 16:45:57.538 D/MtpDeviceJNI( 3306): register_android_mtp_MtpDevice
12-19 16:45:57.538 I/art ( 3306): Thread[1,tid=3306,Native,Thread*=0xb7a12628,peer=0x12c35100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
12-19 16:45:57.539 I/art ( 3306): Thread[1,tid=3306,Native,Thread*=0xb7a12628,peer=0x12c35100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
12-19 16:45:57.582 W/Zygote ( 3306): Class not found for preloading: android.net.http.AndroidHttpClient
12-19 16:45:57.582 W/Zygote ( 3306): Class not found for preloading: android.net.http.AndroidHttpClient$1
12-19 16:45:57.602 E/Zygote ( 3306): Error preloading android.os.Debug.
12-19 16:45:57.602 E/Zygote ( 3306): java.lang.ExceptionInInitializerError
12-19 16:45:57.602 E/Zygote ( 3306):	at java.lang.Class.classForName(Native Method)
12-19 16:45:57.602 E/Zygote ( 3306):	at java.lang.Class.forName(Class.java:324)
12-19 16:45:57.602 E/Zygote ( 3306):	at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:277)
12-19 16:45:57.602 E/Zygote ( 3306):	at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:182)
12-19 16:45:57.602 E/Zygote ( 3306):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
12-19 16:45:57.602 E/Zygote ( 3306): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
12-19 16:45:57.602 E/Zygote ( 3306):	at java.io.File.fixSlashes(File.java:183)
12-19 16:45:57.602 E/Zygote ( 3306):	at java.io.File.<init>(File.java:130)
12-19 16:45:57.602 E/Zygote ( 3306):	at android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:345)
12-19 16:45:57.602 E/Zygote ( 3306):	at android.os.Debug.<clinit>(Debug.java:102)
12-19 16:45:57.602 E/Zygote ( 3306):	... 5 more
12-19 16:45:57.602 I/art ( 3306): VMRuntime.preloadDexCaches starting
12-19 16:45:57.726 I/art ( 3306): VMRuntime.preloadDexCaches strings total=238326 before=42022 after=42022
12-19 16:45:57.726 I/art ( 3306): VMRuntime.preloadDexCaches types total=19447 before=6453 after=6475
12-19 16:45:57.726 I/art ( 3306): VMRuntime.preloadDexCaches fields total=97000 before=35240 after=35440
12-19 16:45:57.726 I/art ( 3306): VMRuntime.preloadDexCaches methods total=166559 before=68668 after=69145
12-19 16:45:57.726 I/art ( 3306): VMRuntime.preloadDexCaches finished
12-19 16:45:57.726 D/AndroidRuntime( 3306): Shutting down VM

So, my question:

According with decatf's description, there is an open source audio HAL.... which means that is different than before? Maybe we have to use the old audio libraries to workaround (if really this is the issue here), but I haven't tried yet.

Also, I don't understand why in decatf's zip is included a patch for recovery :eek: I removed all recovery stuff before boot the first time. I don't know what does exactly, but we don't share the same recovery with p4 devices, so I need to be shure that I will not break my recovery keeping it.

Any suggestion?