Bug P2
Status Update
Comments
sh...@gmail.com <sh...@gmail.com> #2
I am not sure I understand the use case. how can the benchmark be code to real world scenario when it's not possible to do right now ? which scenario is it ?
In any case, since this would be for benchmarking, this would clearly not be available through the public DSL. We should find a semi-private way of doing this (maybe the private variant API object could offer that functionality for instance or a property).
Description
Version used: 1.1.0-alpha06
Devices/Android versions reproduced on: Galaxy S22 ( SM- S910N android 14 )
If this is a bug in the library, we would appreciate if you could attach:
javax.crypto.AEADBadTagException
2024-09-11 13:04:09.169 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:632)
2024-09-11 13:04:09.169 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at javax.crypto.Cipher.doFinal(Cipher.java:2132)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decryptInternal(AndroidKeystoreAesGcm.java:118)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decrypt(AndroidKeystoreAesGcm.java:101)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.google.crypto.tink.KeysetHandle.decrypt(KeysetHandle.java:919)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.google.crypto.tink.KeysetHandle.readWithAssociatedData(KeysetHandle.java:804)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:785)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readMasterkeyDecryptAndParseKeyset(AndroidKeysetManager.java:381)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:297)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:169)
2024-09-11 13:04:09.170 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:130)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at kr.co.citus.pa_rescue_ranger_app.utill.preference.EncryptPreference.init(EncryptPreference.kt:53)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at kr.co.citus.pa_rescue_ranger_app.utill.preference.RescuerConfigPreference.init(RescuerConfigPreference.kt:20)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at kr.co.citus.pa_rescue_ranger_app.App.onCreate(App.kt:41)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1316)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7711)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2478)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.os.Handler.dispatchMessage(Handler.java:106)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.os.Looper.loopOnce(Looper.java:230)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.os.Looper.loop(Looper.java:319)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.app.ActivityThread.main(ActivityThread.java:8919)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at java.lang.reflect.Method.invoke(Native Method)
2024-09-11 13:04:09.171 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
2024-09-11 13:04:09.172 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W Caused by: android.security.KeyStoreException: Signature/MAC verification failed (internal Keystore code: -30 message: system/security/keystore2/src/
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W Caused by:
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W 0: system/security/keystore2/src/
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W 1: Error::Km(r#VERIFICATION_FAILED)) (public error code: 10 internal Keystore code: -30)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:435)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.KeyStoreOperation.handleExceptions(KeyStoreOperation.java:78)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.KeyStoreOperation.finish(KeyStoreOperation.java:128)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer$MainDataStream.finish(KeyStoreCryptoOperationChunkedStreamer.java:228)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:181)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.keystore2.AndroidKeyStoreAuthenticatedAESCipherSpi$BufferAllOutputUntilDoFinalStreamer.doFinal(AndroidKeyStoreAuthenticatedAESCipherSpi.java:396)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:624)
2024-09-11 13:04:09.174 31641-31641 System.err kr.co.citus.pa_rescue_ranger_app W ... 24 more
※it Work on Galaxy S21( SM-G991N android 14 ) and Galaxy A53 ( SM-A536N android 14 ), Galaxy A33 5G ( SM-A336N android 13 )
but DIDNT WORK on Galaxy S22 ( SM-910N android 14 ). it wired