[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] sinivalas23:
The latest build seems to be having SELinux problems. After flashing on top of Feb build (OEM v6, OpenGApps+Magisk installed), Settings, Phone, Keychain etc. crash-loop after unlock. Everything works when I disable SELinux on boot.

logcat for Settings crash (others show similar messages):

03-09 18:36:49.189 4021 4021 E SELinux : seapp_context_lookup: No match for app with uid 1000, seinfo default, name com.android.settings
03-09 18:36:49.189 4021 4021 E SELinux : selinux_android_setcontext: Error setting context for app with uid 1000, seinfo default:privapp:targetSdkVersion=26:complete: No such file or directory
03-09 18:36:49.190 4021 4021 F zygote64: jni_internal.cc:616] JNI FatalError called: (com.android.settings) frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:750: selinux_android_setcontext(1000, 0, "default:privapp:targetSdkVersion=26:complete", "com.android.settings") failed
03-09 18:36:49.196 1113 1129 I ActivityManager: Start proc 4021:com.android.settings/1000 for activity com.android.settings/.FallbackHome
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] Runtime aborting...
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] Dumping all threads without appropriate locks held: thread list lock mutator lock
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] All threads:
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] DALVIK THREADS (1):
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] "main" prio=5 tid=1 Runnable
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] | group="" sCount=0 dsCount=0 flags=0 obj=0x74a5ca18 self=0x7ec9c14c00
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] | sysTid=567 nice=0 cgrp=default sched=0/0 handle=0x7f4f6cf548
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] | state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] | stack=0x7fd1af0000-0x7fd1af2000 stackSize=8MB
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] | held mutexes= "abort lock" "mutator lock"(shared held)
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] kernel: (couldn't read /proc/self/task/567/stack)
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] native: (backtrace::Unwind failed for thread 567: Thread doesn't exist)
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.Zygote.nativeForkAndSpecialize(Native method)
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.Zygote.forkAndSpecialize(Zygote.java:139)
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.ZygoteConnection.processOneCommand(ZygoteConnection.java:234)
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.ZygoteServer.runSelectLoop(ZygoteServer.java:204)
03-09 18:36:49.213 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:847)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558]
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] Aborting thread:
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] "main" prio=5 tid=1 Native
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] | group="" sCount=0 dsCount=0 flags=0 obj=0x74a5ca18 self=0x7ec9c14c00
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] | sysTid=567 nice=0 cgrp=default sched=0/0 handle=0x7f4f6cf548
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] | state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] | stack=0x7fd1af0000-0x7fd1af2000 stackSize=8MB
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] | held mutexes= "abort lock"
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] kernel: (couldn't read /proc/self/task/567/stack)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] native: (backtrace::Unwind failed for thread 567: Thread doesn't exist)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.Zygote.nativeForkAndSpecialize(Native method)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.Zygote.forkAndSpecialize(Zygote.java:139)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.ZygoteConnection.processOneCommand(ZygoteConnection.java:234)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.ZygoteServer.runSelectLoop(ZygoteServer.java:204)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:847)
03-09 18:36:49.214 4021 4021 F zygote64: runtime.cc:558]
03-09 18:36:49.215 4021 4021 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 4021 (main), pid 4021 (main)
03-09 18:36:49.298 4029 4029 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
03-09 18:36:49.298 654 654 I /system/bin/tombstoned: received crash request for pid 4021
03-09 18:36:49.302 4029 4029 I crash_dump64: performing dump of process 4021 (target tid = 4021)
03-09 18:36:49.314 4029 4029 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-09 18:36:49.314 4029 4029 F DEBUG : Build fingerprint: 'Sony/omni_kagura/kagura:9/PQ2A.190305.002/builder03090258:user/test-keys'
03-09 18:36:49.315 4029 4029 F DEBUG : Revision: '0'
03-09 18:36:49.315 4029 4029 F DEBUG : ABI: 'arm64'
03-09 18:36:49.315 4029 4029 F DEBUG : pid: 4021, tid: 4021, name: main >>> zygote64 <<<
03-09 18:36:49.315 4029 4029 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-09 18:36:49.315 4029 4029 F DEBUG : Abort message: 'jni_internal.cc:616] JNI FatalError called: (com.android.settings) frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:750: selinux_android_setcontext(1000, 0, "default:privapp:targetSdkVersion=26:complete", "com.android.settings") failed'
03-09 18:36:49.315 4029 4029 F DEBUG : x0 0000000000000000 x1 0000000000000fb5 x2 0000000000000006 x3 0000000000000008
03-09 18:36:49.315 4029 4029 F DEBUG : x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0080808080808080
03-09 18:36:49.315 4029 4029 F DEBUG : x8 0000000000000083 x9 81e6453a0925f684 x10 fffffff87ffffbdf x11 fffffffc7ffffbdf
03-09 18:36:49.315 4029 4029 F DEBUG : x12 0101010101010101 x13 0000000000000008 x14 ffffffffffffffff x15 00000c7138aa9648
03-09 18:36:49.315 4029 4029 F DEBUG : x16 0000007f4a4732b0 x17 0000007f4a3b1428 x18 0000007fd22e9260 x19 0000000000000fb5
03-09 18:36:49.315 4029 4029 F DEBUG : x20 0000000000000fb5 x21 0000000000000083 x22 0000007ec9c14c00 x23 0000007ec9c95400
03-09 18:36:49.315 4029 4029 F DEBUG : x24 0000000000000002 x25 00000000ffffffff x26 0000000000000012 x27 0000000000000005
03-09 18:36:49.315 4029 4029 F DEBUG : x28 0000007ec9b102d7 x29 0000007fd22e9fd0
03-09 18:36:49.315 4029 4029 F DEBUG : sp 0000007fd22e9f90 lr 0000007f4a3a5d44 pc 0000007f4a3a5d64
03-09 18:36:49.408 2042 2059 I .gms.persisten: Background concurrent copying GC freed 127519(5MB) AllocSpace objects, 4(96KB) LOS objects, 50% free, 6MB/13MB, paused 221us total 126.286ms
03-09 18:36:49.443 4029 4029 F DEBUG :
03-09 18:36:49.443 4029 4029 F DEBUG : backtrace:
03-09 18:36:49.443 4029 4029 F DEBUG : #00 pc 0000000000021d64 /system/lib64/libc.so (abort+112)
03-09 18:36:49.443 4029 4029 F DEBUG : #01 pc 000000000046dbd0 /system/lib64/libart.so (art::Runtime::Abort(char const*)+1208)
03-09 18:36:49.443 4029 4029 F DEBUG : #02 pc 0000000000008d08 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+720)
03-09 18:36:49.443 4029 4029 F DEBUG : #03 pc 0000000000332c24 /system/lib64/libart.so (art::JNI::FatalError(_JNIEnv*, char const*)+196)
03-09 18:36:49.443 4029 4029 F DEBUG : #04 pc 0000000000190b58 /system/lib64/libandroid_runtime.so (_ZZN12_GLOBAL__N_123ForkAndSpecializeCommonEP7_JNIEnvjjP10_jintArrayiP13_jobjectArraylliP8_jstringS7_bS3_S3_bS7_S7_ENK3$_0clERKNSt3__112basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEE+160)
03-09 18:36:49.443 4029 4029 F DEBUG : #05 pc 00000000001909a4 /system/lib64/libandroid_runtime.so ((anonymous namespace)::ForkAndSpecializeCommon(_JNIEnv*, unsigned int, unsigned int, _jintArray*, int, _jobjectArray*, long, long, int, _jstring*, _jstring*, bool, _jintArray*, _jintArray*, bool, _jstring*, _jstring*)+6312)
03-09 18:36:49.443 4029 4029 F DEBUG : #06 pc 000000000018e738 /system/lib64/libandroid_runtime.so (android::com_android_internal_os_Zygote_nativeForkAndSpecialize(_JNIEnv*, _jclass*, int, int, _jintArray*, int, _jobjectArray*, int, _jstring*, _jstring*, _jintArray*, _jintArray*, unsigned char, _jstring*, _jstring*)+592)
03-09 18:36:49.443 4029 4029 F DEBUG : #07 pc 0000000000401f60 /system/framework/arm64/boot-framework.oat (offset 0x3cf000) (com.android.internal.os.Zygote.nativeForkAndSpecialize+416)
03-09 18:36:49.443 4029 4029 F DEBUG : #08 pc 0000000000bead34 /system/framework/arm64/boot-framework.oat (offset 0x3cf000) (com.android.internal.os.Zygote.forkAndSpecialize+228)
03-09 18:36:49.443 4029 4029 F DEBUG : #09 pc 0000000000bee8ec /system/framework/arm64/boot-framework.oat (offset 0x3cf000) (com.android.internal.os.ZygoteConnection.processOneCommand+1580)
03-09 18:36:49.443 4029 4029 F DEBUG : #10 pc 0000000000bf4194 /system/framework/arm64/boot-framework.oat (offset 0x3cf000) (com.android.internal.os.ZygoteServer.runSelectLoop+948)
03-09 18:36:49.444 4029 4029 F DEBUG : #11 pc 0000000000bf09f8 /system/framework/arm64/boot-framework.oat (offset 0x3cf000) (com.android.internal.os.ZygoteInit.main+3032)
03-09 18:36:49.444 4029 4029 F DEBUG : #12 pc 000000000056064c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
03-09 18:36:49.444 4029 4029 F DEBUG : #13 pc 00000000000cf6d8 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
03-09 18:36:49.444 4029 4029 F DEBUG : #14 pc 00000000004661e4 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
03-09 18:36:49.444 4029 4029 F DEBUG : #15 pc 0000000000465de8 /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424)
03-09 18:36:49.444 4029 4029 F DEBUG : #16 pc 0000000000368494 /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652)
03-09 18:36:49.444 4029 4029 F DEBUG : #17 pc 00000000000b2bd4 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+136)
03-09 18:36:49.444 4029 4029 F DEBUG : #18 pc 00000000000b5560 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+752)
03-09 18:36:49.444 4029 4029 F DEBUG : #19 pc 000000000000219c /system/bin/app_process64 (main+1200)
03-09 18:36:49.444 4029 4029 F DEBUG : #20 pc 00000000000b0628 /system/lib64/libc.so (__libc_init+88)
03-09 18:36:49.449 1113 1122 I chatty : uid=1000(system) HeapTaskDaemon expire 1 line
03-09 18:36:49.604 654 654 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_09
03-09 18:36:49.609 1113 1128 I ActivityManager: Showing crash dialog for package com.android.settings u0