Today, I started another attempt. As the R-1.9 has the camera issue, I tried to upgrade to R-1.8.1 (from Q-1.8.1) without wiping /data
. (Looking at the size of the backed up data, I expect that the tool mentioned by @petefoth does not fully back up my apps – even with adb root
.)
As described in my previous post, the lock screen had caused problems, so I removed all locking before upgrading the system.
Unfortunately, the symptoms are still similar: after the boot animation (e
above a bouncing dot), my usual background image is displayed and a message “Smartphone wird gestartet” (something like “Starting up the smart phone” in English) appears.
The status bar at the top of the screen looks normal, I can even pull down and enable/disable Wifi for instance.
However, after a few seconds, the boot animation appears again; after a while, the background image is displayed, … (loops endlessly).
Looking at the logcat, there are two reports which might be related to the problem:
--------- beginning of crash
04-15 15:00:16.358 536 577 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb5466530 in tid 577 (BootAnimation), pid 536 (bootanimation)
04-15 15:00:16.439 4519 4519 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-15 15:00:16.439 4519 4519 F DEBUG : LineageOS Version: '1.8.1-r-20230206257804-dev-FP2'
04-15 15:00:16.439 4519 4519 F DEBUG : Build fingerprint: 'Fairphone/FP2/FP2:6.0.1/FP2-gms-18.04.1/FP2-gms-18.04.1:user/release-keys'
04-15 15:00:16.439 4519 4519 F DEBUG : Revision: '0'
04-15 15:00:16.439 4519 4519 F DEBUG : ABI: 'arm'
04-15 15:00:16.440 4519 4519 F DEBUG : Timestamp: 2023-04-15 15:00:16+0200
04-15 15:00:16.440 4519 4519 F DEBUG : pid: 536, tid: 577, name: BootAnimation >>> /system/bin/bootanimation <<<
04-15 15:00:16.440 4519 4519 F DEBUG : uid: 1003
04-15 15:00:16.440 4519 4519 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb5466530
04-15 15:00:16.440 4519 4519 F DEBUG : r0 00000000 r1 0000007f r2 b50bc71c r3 b5466000
04-15 15:00:16.440 4519 4519 F DEBUG : r4 b50bb000 r5 00000000 r6 00000000 r7 0000007f
04-15 15:00:16.440 4519 4519 F DEBUG : r8 00000000 r9 00000001 r10 b598cc00 r11 b5466000
04-15 15:00:16.440 4519 4519 F DEBUG : ip b12fc994 sp b52594a0 lr b127ee0f pc b0b87846
04-15 15:00:16.476 4519 4519 F DEBUG : backtrace:
04-15 15:00:16.477 4519 4519 F DEBUG : #00 pc 00092846 /system/vendor/lib/egl/libGLESv2_adreno.so (rb_texture_update_hw_subimage+1150) (BuildId: d4b1e5466c97b2dfc5f843900144ac0a)
04-15 15:00:16.477 4519 4519 F DEBUG : #01 pc 00094835 /system/vendor/lib/egl/libGLESv2_adreno.so (rb_texture_loadimage+224) (BuildId: d4b1e5466c97b2dfc5f843900144ac0a)
04-15 15:00:16.482 4519 4519 F DEBUG : #02 pc 0006e5bd /system/vendor/lib/egl/libGLESv2_adreno.so (TexImageLoad+216) (BuildId: d4b1e5466c97b2dfc5f843900144ac0a)
04-15 15:00:16.482 4519 4519 F DEBUG : #03 pc 0006e837 /system/vendor/lib/egl/libGLESv2_adreno.so (core_glTexImage2D+234) (BuildId: d4b1e5466c97b2dfc5f843900144ac0a)
04-15 15:00:16.482 4519 4519 F DEBUG : #04 pc 0004cc5f /system/vendor/lib/egl/libGLESv2_adreno.so (glTexImage2D+50) (BuildId: d4b1e5466c97b2dfc5f843900144ac0a)
04-15 15:00:16.483 4519 4519 F DEBUG : #05 pc 0001ab6d /system/vendor/lib/egl/libGLESv1_CM_adreno.so (qglDrvAPI_glTexImage2D+124) (BuildId: 1a89727f886a90c12f2e691437f43990)
04-15 15:00:16.483 4519 4519 F DEBUG : #06 pc 00008833 /system/lib/libbootanimation.so (android::BootAnimation::initTexture(android::FileMap*, int*, int*)+410) (BuildId: 741f9c736e6abbfe0f9988870216f777)
04-15 15:00:16.483 4519 4519 F DEBUG : #08 pc 0000a379 /system/lib/libbootanimation.so (android::BootAnimation::movie()+592) (BuildId: 741f9c736e6abbfe0f9988870216f777)
04-15 15:00:16.484 4519 4519 F DEBUG : #09 pc 00009d5d /system/lib/libbootanimation.so (android::BootAnimation::threadLoop()+14) (BuildId: 741f9c736e6abbfe0f9988870216f777)
04-15 15:00:16.484 4519 4519 F DEBUG : #10 pc 0000ed43 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+170) (BuildId: b8dfed2088aad5ea02c25267aaef3e88)
04-15 15:00:16.484 4519 4519 F DEBUG : #11 pc 0000e881 /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+264) (BuildId: b8dfed2088aad5ea02c25267aaef3e88)
04-15 15:00:16.484 4519 4519 F DEBUG : #12 pc 000ab93b /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: f0a551fd133f598a5b550ac7bb032d29)
04-15 15:00:16.484 4519 4519 F DEBUG : #13 pc 00063b1d /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: f0a551fd133f598a5b550ac7bb032d29)
And also
04-15 15:00:22.046 1570 3832 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: LockSettingsService
04-15 15:00:22.046 1570 3832 E AndroidRuntime: java.lang.IllegalStateException: Failed to decrypt blob
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.SyntheticPasswordCrypto.decryptBlob(SyntheticPasswordCrypto.java:160)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.SyntheticPasswordManager.decryptSPBlob(SyntheticPasswordManager.java:1322)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.SyntheticPasswordManager.unwrapSyntheticPasswordBlob(SyntheticPasswordManager.java:1144)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.SyntheticPasswordManager.unwrapPasswordBasedSyntheticPassword(SyntheticPasswordManager.java:1068)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.LockSettingsService.tryDeriveAuthTokenForUnsecuredPrimaryUser(LockSettingsService.java:781)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.LockSettingsService.access$800(LockSettingsService.java:177)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.LockSettingsService$1.run(LockSettingsService.java:766)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:44)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: Caused by: android.security.keystore.UserNotAuthenticatedException: User not authenticated
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.security.KeyStore.getInvalidKeyException(KeyStore.java:1369)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.security.KeyStore.getInvalidKeyException(KeyStore.java:1388)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.security.keystore.KeyStoreCryptoOperationUtils.getInvalidKeyExceptionForInit(KeyStoreCryptoOperationUtils.java:54)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.security.keystore.KeyStoreCryptoOperationUtils.getExceptionForCipherInit(KeyStoreCryptoOperationUtils.java:89)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.security.keystore.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreCipherSpiBase.java:265)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineInit(AndroidKeyStoreCipherSpiBase.java:148)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2980)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at javax.crypto.Cipher.tryCombinations(Cipher.java:2891)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2796)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at javax.crypto.Cipher.chooseProvider(Cipher.java:773)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at javax.crypto.Cipher.init(Cipher.java:1288)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at javax.crypto.Cipher.init(Cipher.java:1223)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.SyntheticPasswordCrypto.decrypt(SyntheticPasswordCrypto.java:67)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: at com.android.server.locksettings.SyntheticPasswordCrypto.decryptBlob(SyntheticPasswordCrypto.java:152)
04-15 15:00:22.046 1570 3832 E AndroidRuntime: ... 11 more
04-15 15:00:22.249 4915 4915 E AndroidRuntime: FATAL EXCEPTION: main
04-15 15:00:22.249 4915 4915 E AndroidRuntime: Process: com.android.providers.media.module, PID: 4915
04-15 15:00:22.249 4915 4915 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause
Has something changed related to encryption between Q and R? If so, are there tools which help migrating the encryption?
Kind regards
Ingolf