Closed jmbreuer closed 4 months ago
Since re-initializing the backup location and/or re-creating the backup encryption key thing does not change this, where/how/... would I clear/reset/recreate that key that it's complaining about? (I have root on the device, if that helps.)
You could try to clear app data in system settings.
As this seems to be related to #448, it would be interesting to know if you are on an official LineageOS build.
As this seems to be related to #448, it would be interesting to know if you are on an official LineageOS build.
I'm on Ivan Meler's unofficial build, there is no official (non-ancient Android base version) one for my device any more. 🙁
... I cleared the system data, which did allow me to completely re-initialize/reconfigure SeedVault backup from scratch.
"Initializing backup location..." takes quite some time, and ends in "An error occured while accessing the backup location."
In the log, it looks like that exact issue again:
02-20 11:03:23.815 28837 30463 I BackupCoordinator: Initialize Device!
02-20 11:03:24.258 28837 30463 D BackupCoordinator: Resetting backup metadata for token 1708423403599...
02-20 11:03:24.326 28837 30463 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across pr
ocesses.)
02-20 11:03:24.326 28837 30463 E JavaBinder: java.security.UnrecoverableKeyException: Key algorithm unknown
02-20 11:03:24.326 28837 30463 E JavaBinder: at android.security.keystore2.AndroidKeyStoreProvider.loadAndroidKeyStor
eKeyFromKeystore(AndroidKeyStoreProvider.java:400)
02-20 11:03:24.326 28837 30463 E JavaBinder: at android.security.keystore2.AndroidKeyStoreProvider.loadAndroidKeyStor
eKeyFromKeystore(AndroidKeyStoreProvider.java:352)
02-20 11:03:24.326 28837 30463 E JavaBinder: at android.security.keystore2.AndroidKeyStoreSpi.engineGetKey(AndroidKey
StoreSpi.java:110)
02-20 11:03:24.326 28837 30463 E JavaBinder: at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:511)
02-20 11:03:24.326 28837 30463 E JavaBinder: at java.security.KeyStore.getEntry(KeyStore.java:1581)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.crypto.KeyManagerImpl.getMainKey(KeyManager.kt:93)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.crypto.CryptoImpl$key$2.invoke(Crypto.kt:126)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.crypto.CryptoImpl$key$2.invoke(Crypto.kt:125)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.crypto.CryptoImpl.getKey(Crypto.kt:125)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.crypto.CryptoImpl.newEncryptingStream(Crypto.kt:157)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.metadata.MetadataWriterImpl.write(MetadataWriter.kt:23)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.metadata.MetadataManager.modifyMetadata(MetadataManager.kt:188)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.metadata.MetadataManager.onDeviceInitialization(MetadataManager.kt:65)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.transport.backup.BackupCoordinator.initializeDevice(BackupCoordinator.kt:128)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.transport.ConfigurableBackupTransport$initializeDevice$1.invokeSuspend(ConfigurableBackupTransport.kt:115)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
02-20 11:03:24.326 28837 30463 E JavaBinder: at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.stevesoltys.seedvault.transport.ConfigurableBackupTransport.initializeDevice(ConfigurableBackupTransport.kt:114)
02-20 11:03:24.326 28837 30463 E JavaBinder: at android.app.backup.BackupTransport$TransportImpl.initializeDevice(BackupTransport.java:743)
02-20 11:03:24.326 28837 30463 E JavaBinder: at com.android.internal.backup.IBackupTransport$Stub.onTransact(IBackupTransport.java:638)
02-20 11:03:24.326 28837 30463 E JavaBinder: at android.os.Binder.execTransactInternal(Binder.java:1285)
02-20 11:03:24.326 28837 30463 E JavaBinder: at android.os.Binder.execTransact(Binder.java:1244)
02-20 11:03:24.326 28837 30463 I oltys.seedvault: oneway function results for code 8 on binder at 0x786875a600 will be dropped but finished with status UNKNOWN_TRANSACTION
Duplicate of #448
... How do I properly mark and close this as a duplicate?
doesn't seem to work.
I also don't know, just closing it is fine.
I'm trying to run SeedVault as it comes built into LineageOS 20.0/20240114 for my SM-G930F. My backup target is on the (non-adopted) SD card.
Starting the backup just gives a "Backup failed to run" notification after some time. No progress indication whatsoever.
I've already completely removed and re-initialized the backup location, same thing.
This looks like the possibly relevant log snippet; I'm happy to provide more: