You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val apps =SafetyNetDatabase(requireContext()).use { it.recentApps }
Logcat:
01-01 05:20:05.777 12969 12969 E AndroidRuntime: FATAL EXCEPTION: main
01-01 05:20:05.777 12969 12969 E AndroidRuntime: Process: com.google.android.gms:ui, PID: 12969
01-01 05:20:05.777 12969 12969 E AndroidRuntime: java.lang.ClassCastException: org.microg.gms.safetynet.SafetyNetDatabase cannot be cast to java.lang.AutoCloseable
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at org.microg.gms.ui.SafetyNetPreferencesFragment$updateContent$1$1.invokeSuspend(SafetyNetPreferencesFragment.kt:106)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
01-01 05:20:05.777 12969 12969 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
01-01 05:20:05.780 2370 2521 W ActivityManager: Force finishing activity com.google.android.gms/org.microg.gms.ui.SettingsActivity
On Nougat when opening SafetyNet preferences I get:
SafetyNetDatabase cannot be cast to java.lang.AutoCloseable
Problematic line:
GmsCore/play-services-core/src/main/kotlin/org/microg/gms/ui/SafetyNetPreferencesFragment.kt
Line 106 in 2a19ef4
Logcat:
Possible solution:
https://stackoverflow.com/a/73502339
The text was updated successfully, but these errors were encountered: