[Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri] gjsgev:
systemui crashes

Hi guys,

I used the dirty flash method on my S7. Installed the rom and opengapps without any problems. Used it for about 3 days. Then all of a sudden my phone rebooted and I haven't been able to get passed my lock screen. One in ten times I get the message "System UI has stopped" but most of the time it just runs back to the lock screen.

I can use whatsapp web on my already logged in session on my desktop, can call normally through my car-kit, can answer incoming calls but I just can't use the phone itself because after unlocking it will run back to the lockscreen.

Have tried to review the adb logs. All I can find (in the huge amount of logging, didn't know that :)) was these two parts:

1)

02-19 15:39:54.221 3732 4636 E WifiService: Permission violation - getScanResults not allowed for uid=10066, packageName=com.google.android.gms, reason=java.lang.SecurityException: Location mode is disabled for the device

02-19 15:39:54.877 3732 13511 D LockSettingsService: spBasedDoVerifyCredential: user=0 challengeType=0 hasEnrolledBiometrics=false

02-19 15:39:54.921 3549 3549 D keystore: AddAuthenticationToken: timestamp = 22702883, time_received = 9864

02-19 15:39:54.929 3732 13511 W System.err: java.security.InvalidKeyException: Only SecretKey is supported

02-19 15:39:54.929 3732 13511 W System.err: at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:464)

02-19 15:39:54.929 3732 13511 W System.err: at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:298)

02-19 15:39:54.929 3732 13511 W System.err: at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2980)

02-19 15:39:54.929 3732 13511 W System.err: at javax.crypto.Cipher.tryCombinations(Cipher.java:2891)

02-19 15:39:54.929 3732 13511 W System.err: at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2796)

02-19 15:39:54.929 3732 13511 W System.err: at javax.crypto.Cipher.chooseProvider(Cipher.java:773)

02-19 15:39:54.930 3732 13511 W System.err: at javax.crypto.Cipher.init(Cipher.java:1288)

02-19 15:39:54.930 3732 13511 W System.err: at javax.crypto.Cipher.init(Cipher.java:1223)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.SyntheticPasswordCrypto.decrypt(SyntheticPasswordCrypto.java:65)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.SyntheticPasswordCrypto.decryptBlob(SyntheticPasswordCrypto.java:144)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.SyntheticPasswordManager.decryptSPBlob(SyntheticPasswordManager.java:1137)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.SyntheticPasswordManager.unwrapSyntheticPasswordBlob(SyntheticPasswordManager.java:998)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.SyntheticPasswordManager.unwrapPasswordBasedSyntheticPassword(SyntheticPasswordManager.java:927)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.LockSettingsService.spBasedDoVerifyCredential(LockSettingsService.java:2664)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.LockSettingsService.doVerifyCredential(LockSettingsService.java:1901)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.LockSettingsService.doVerifyCredential(LockSettingsService.java:1880)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.server.locksettings.LockSettingsService.checkCredential(LockSettingsService.java:1858)

02-19 15:39:54.930 3732 13511 W System.err: at com.android.internal.widget.ILockSettings$Stub.onTransact(ILockSettings.java:527)

02-19 15:39:54.930 3732 13511 W System.err: at android.os.Binder.execTransactInternal(Binder.java:1021)

02-19 15:39:54.930 3732 13511 W System.err: at android.os.Binder.execTransact(Binder.java:994)

02-19 15:39:54.931 3732 13511 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)

02-19 15:39:54.931 3732 13511 E JavaBinder: java.lang.RuntimeException: Failed to decrypt blob

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.SyntheticPasswordCrypto.decryptBlob(SyntheticPasswordCrypto.java:152)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.SyntheticPasswordManager.decryptSPBlob(SyntheticPasswordManager.java:1137)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.SyntheticPasswordManager.unwrapSyntheticPasswordBlob(SyntheticPasswordManager.java:998)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.SyntheticPasswordManager.unwrapPasswordBasedSyntheticPassword(SyntheticPasswordManager.java:927)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.LockSettingsService.spBasedDoVerifyCredential(LockSettingsService.java:2664)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.LockSettingsService.doVerifyCredential(LockSettingsService.java:1901)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.LockSettingsService.doVerifyCredential(LockSettingsService.java:1880)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.LockSettingsService.checkCredential(LockSettingsService.java:1858)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.internal.widget.ILockSettings$Stub.onTransact(ILockSettings.java:527)

02-19 15:39:54.931 3732 13511 E JavaBinder: at android.os.Binder.execTransactInternal(Binder.java:1021)

02-19 15:39:54.931 3732 13511 E JavaBinder: at android.os.Binder.execTransact(Binder.java:994)

02-19 15:39:54.931 3732 13511 E JavaBinder: Caused by: java.security.InvalidKeyException: Only SecretKey is supported

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:464)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:298)

02-19 15:39:54.931 3732 13511 E JavaBinder: at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2980)

02-19 15:39:54.931 3732 13511 E JavaBinder: at javax.crypto.Cipher.tryCombinations(Cipher.java:2891)

02-19 15:39:54.931 3732 13511 E JavaBinder: at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2796)

02-19 15:39:54.931 3732 13511 E JavaBinder: at javax.crypto.Cipher.chooseProvider(Cipher.java:773)

02-19 15:39:54.931 3732 13511 E JavaBinder: at javax.crypto.Cipher.init(Cipher.java:1288)

02-19 15:39:54.931 3732 13511 E JavaBinder: at javax.crypto.Cipher.init(Cipher.java:1223)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.SyntheticPasswordCrypto.decrypt(SyntheticPasswordCrypto.java:65)

02-19 15:39:54.931 3732 13511 E JavaBinder: at com.android.server.locksettings.SyntheticPasswordCrypto.decryptBlob(SyntheticPasswordCrypto.java:144)

02-19 15:39:54.931 3732 13511 E JavaBinder: ... 10 more

02-19 15:39:54.939 22095 23971 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #35

02-19 15:39:54.939 22095 23971 E AndroidRuntime: Process: com.android.systemui, PID: 22095

02-19 15:39:54.939 22095 23971 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at android.os.AsyncTask$4.done(AsyncTask.java:399)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:252)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:271)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.internal.widget.VerifyCredentialResponse.getResponseCode()' on a null object reference

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at com.android.internal.widget.LockPatternUtils.checkCredential(LockPatternUtils.java:397)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at com.android.internal.widget.LockPatternUtils.checkPattern(LockPatternUtils.java:446)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at com.android.internal.widget.LockPatternChecker$2.doInBackground(LockPatternChecker.java:125)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at com.android.internal.widget.LockPatternChecker$2.doInBackground(LockPatternChecker.java:111)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at android.os.AsyncTask$3.call(AsyncTask.java:378)

02-19 15:39:54.939 22095 23971 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:266)

2)

02-19 15:39:55.090 3732 3762 W ActivityManager: setHasOverlayUi called on unknown pid: 22095

02-19 15:39:55.091 3732 3885 W PinnedSliceState: Unable to contact content://0@com.android.systemui.keyguard/main

02-19 15:39:55.091 3732 3885 W PinnedSliceState: android.os.DeadObjectException

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.os.BinderProxy.transactNative(Native Method)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.os.BinderProxy.transact(BinderProxy.java:510)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.content.ContentProviderProxy.call(ContentProviderNative.java:656)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.content.ContentProviderClient.call(ContentProviderClient.java:558)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.content.ContentProviderClient.call(ContentProviderClient.java:546)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at com.android.server.slice.PinnedSliceState.handleSendUnpinned(PinnedSliceState.java:203)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at com.android.server.slice.PinnedSliceState.lambda$t5Vl61Ns1u_83c4ri7920sczEu0(Unknown Source:0)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at com.android.server.slice.-$$Lambda$PinnedSliceState$t5Vl61Ns1u_83c4ri7920sczEu0.run(Unknown Source:2)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.os.Handler.handleCallback(Handler.java:883)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.os.Handler.dispatchMessage(Handler.java:100)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.os.Looper.loop(Looper.java:214)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at android.os.HandlerThread.run(HandlerThread.java:67)

02-19 15:39:55.091 3732 3885 W PinnedSliceState: at com.android.server.ServiceThread.run(ServiceThread.java:44)

I tried installing the flame apps, tried reflashing the rom, tried uninstalling a lot of packages through adb but without any succes.

I'm hoping to resolve this issue without wiping the entire phone (this will mean I lose my settings, media etc right?)

Any ideas?

Edit: add the systemUI stopped message