Skip to content

[BUG] 无法进入应用,进入后立刻闪退。重启后解决。 #135

@vegetablez8848

Description

@vegetablez8848

问题描述 / Problem description

无法进入应用,进入后立刻闪退。重启后解决。

复现步骤 / Steps to reproduce

无法进入应用,进入后立刻闪退。

预期行为 / Expected behaviour

正常打开。

实际行为 / Actual behaviour

重启后解决。

你使用的安卓系统版本 / Your Android version

安卓15,安全更新20260401

你正在使用的手机型号 / Your phone model

红米note12tpro

版本和其他要求 / Version and Other Requirements

  • 我正在使用最新 CI 调试版本且启用 DEBUG MODE / I am using latest debug CI version of NeriPlayer and enabled DEBUG MODE
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题。重复问题会被关闭。 / I have searched in the Issue Tracker and found no similar issues. Duplicate issues will be closed.
  • 我已知晓并同意,如果我不按照模板提供的指示进行填写,则我的 Issue 可能会被无条件删除。 / I understand and agree that my issue may be deleted without notice if I do not follow the instructions provided in the template.

日志 / Logs

=== Exception Report ===
Time: 2026-04-18 13:40:02.074
Source: main
Type: Uncaught Exception
Process: moe.ouom.neriplayer
Package: moe.ouom.neriplayer
PID: 27538
Thread: main
Thread State: RUNNABLE
Main Thread: true
Exception: RuntimeException
Message: Unable to create application moe.ouom.neriplayer.NeriPlayerApplication: java.security.KeyStoreException: the master key android-keystore://androidx_security_master_key exists but is unusable
Stack Trace:
java.lang.RuntimeException: Unable to create application moe.ouom.neriplayer.NeriPlayerApplication: java.security.KeyStoreException: the master key android-keystore://androidx_security_master_key exists but is unusable
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8382)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2700)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at android.app.ActivityThread.main(ActivityThread.java:9631)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:648)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)
Caused by: java.security.KeyStoreException: the master key android-keystore://androidx_security_master_key exists but is unusable
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewMasterKey(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:63)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:27)
at androidx.security.crypto.EncryptedSharedPreferences.create(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:9)
at androidx.security.crypto.EncryptedSharedPreferences.create(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:1)
at moe.ouom.neriplayer.data.auth.netease.NeteaseCookieRepository.createEncryptedPrefs(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:31)
at moe.ouom.neriplayer.data.auth.netease.NeteaseCookieRepository.openEncryptedPrefsWithRecovery(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:30)
at moe.ouom.neriplayer.data.auth.netease.NeteaseCookieRepository.(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:11)
at moe.ouom.neriplayer.core.di.AppContainer.neteaseCookieRepo_delegate$lambda$2(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:7)
at moe.ouom.neriplayer.core.di.AppContainer.j(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:1)
at j0.m0.invoke(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:53)
at s8.q.getValue(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:21)
at moe.ouom.neriplayer.core.di.AppContainer.getNeteaseCookieRepo(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:3)
at moe.ouom.neriplayer.core.di.AppContainer.startCookieObserver(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:1)
at moe.ouom.neriplayer.core.di.AppContainer.initialize(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:11)
at moe.ouom.neriplayer.NeriPlayerApplication.onCreate(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:16)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1392)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8374)
... 9 more
Caused by: java.security.InvalidKeyException: Keystore operation failed
at android.security.keystore2.KeyStoreCryptoOperationUtils.getInvalidKeyException(KeyStoreCryptoOperationUtils.java:127)
at android.security.keystore2.KeyStoreCryptoOperationUtils.getExceptionForCipherInit(KeyStoreCryptoOperationUtils.java:146)
at android.security.keystore2.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreCipherSpiBase.java:360)
at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineInit(AndroidKeyStoreCipherSpiBase.java:188)
at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:3003)
at javax.crypto.Cipher.tryCombinations(Cipher.java:2910)
at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2815)
at javax.crypto.Cipher.chooseProvider(Cipher.java:792)
at javax.crypto.Cipher.init(Cipher.java:1162)
at javax.crypto.Cipher.init(Cipher.java:1103)
at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.encryptInternal(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:21)
at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.encrypt(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:19)
at com.google.crypto.tink.integration.android.AndroidKeystoreKmsClient.validateAead(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:10)
at com.google.crypto.tink.integration.android.AndroidKeystoreKmsClient.getAead(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:58)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewMasterKey(r8-map-id-461d393dc4cb13c574f7f1a5c50d3866bdb23c13004fc2bfd7b1ad651e6aacab:33)
... 25 more
Caused by: android.security.KeyStoreException: -49 (internal Keystore code: -49 message: system/security/keystore2/src/security_level.rs:362: Failed to begin operation.

Caused by:
0: system/security/keystore2/src/security_level.rs:875
1: system/security/keystore2/src/utils.rs:421: Calling km_op.
2: Error::Km(r#SECURE_HW_COMMUNICATION_FAILED)) (public error code: 10 internal Keystore code: -49)
at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:416)
at android.security.KeyStoreSecurityLevel.createOperation(KeyStoreSecurityLevel.java:122)
at android.security.keystore2.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreCipherSpiBase.java:355)
... 37 more

=== System Info ===
Android Version: 15
SDK Level: 35
Device: Xiaomi 23054RA19C
Brand: Redmi
Device Code: pearl
Product: pearl
Supported ABIs: arm64-v8a, armeabi-v7a, armeabi
App Version: 13db1b5.04151616
Build Type: release
Build UUID: d25fc710-7c91-4f44-a1e7-ffc60ddbc364

补充说明(可选) / Additional information (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions