Status Update
Comments
is...@google.com <is...@google.com>
al...@gmail.com <al...@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).
or...@gmail.com <or...@gmail.com> #3
We want benchmarks to measure code after Progaurd / R8, but it's not possible to turn that on for androidTests in library modules at the moment (to my knowledge?)
Benchmarks are also a public facing thing, but we have a plugin to help configure gradle builds for our users, so if support for this ends up in a private API, we could try to keep those usages localized to our code perhaps.
ar...@gmail.com <ar...@gmail.com> #4
Any update on the status of this request and when it can be supported?
Thanks,
Amanda
Description
Version used: 1.1.0-alpha06
Devices/Android versions reproduced on: Android 12 only - Xiaomi, OnePlus, Doogee, Oppo, Sony, Motorola, Samsung
java.lang.Thread.sleep (Native method)
java.lang.Thread.sleep (Thread.java:450)
java.lang.Thread.sleep (Thread.java:355)
android.security.KeyStoreSecurityLevel.interruptedPreservingSleep (KeyStoreSecurityLevel.java:206)
android.security.KeyStoreSecurityLevel.createOperation (KeyStoreSecurityLevel.java:115)
android.security.keystore2.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized (AndroidKeyStoreCipherSpiBase.java:334)
android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineInit (AndroidKeyStoreCipherSpiBase.java:171)
javax.crypto.Cipher.tryTransformWithProvider (Cipher.java:2985)
javax.crypto.Cipher.tryCombinations (Cipher.java:2892)
javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider (Cipher.java:2797)
javax.crypto.Cipher.chooseProvider (Cipher.java:774)
javax.crypto.Cipher.init (Cipher.java:1144)
javax.crypto.Cipher.init (Cipher.java:1085)
com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.encryptInternal (AndroidKeystoreAesGcm.java:85)
com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.encrypt (AndroidKeystoreAesGcm.java)
com.google.crypto.tink.integration.android.AndroidKeystoreKmsClient.validateAead (AndroidKeystoreKmsClient.java:298)
com.google.crypto.tink.integration.android.AndroidKeystoreKmsClient.getAead (AndroidKeystoreKmsClient.java:180)
com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readMasterkeyDecryptAndParseKeyset (AndroidKeysetManager.java:366)
com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build (AndroidKeysetManager.java:298)
androidx.security.crypto.EncryptedSharedPreferences.create (EncryptedSharedPreferences.java:169)
androidx.security.crypto.EncryptedSharedPreferences.create (EncryptedSharedPreferences.java:130)
my.app.di.module.storage.StorageModule.buildCipherPreferences (StorageModule.java:65)
my.app.di.module.storage.StorageModule.provideEncryptedPreferences$app_prodRelease (StorageModule.java:51)
my.app.di.module.storage.StorageModule_ProvideEncryptedPreferences$app_prodReleaseFactory.provideEncryptedPreferences$app_prodRelease (StorageModule_ProvideEncryptedPreferences.java:49)
my.app.DaggerMyApp_HiltComponents_SingletonC$SingletonCImpl$SwitchingProvider.get0 (DaggerMyApp_HiltComponents_SingletonC.java:5804)
my.app.DaggerMyApp_HiltComponents_SingletonC$SingletonCImpl$SwitchingProvider.get (DaggerMyApp_HiltComponents_SingletonC.java:6156)
dagger.internal.DoubleCheck.get (DoubleCheck.java:47)
my.app.DaggerMyApp_HiltComponents_SingletonC$SingletonCImpl$SwitchingProvider.get0 (DaggerMyApp_HiltComponents_SingletonC.java:5801)
my.app.DaggerMyApp_HiltComponents_SingletonC$SingletonCImpl$SwitchingProvider.get (DaggerMyApp_HiltComponents_SingletonC.java:6156)
dagger.internal.DoubleCheck.get (DoubleCheck.java:47)
my.app.DaggerMyApp_HiltComponents_SingletonC$SingletonCImpl$SwitchingProvider.get0 (DaggerMyApp_HiltComponents_SingletonC.java:5798)
my.app.DaggerMyApp_HiltComponents_SingletonC$SingletonCImpl$SwitchingProvider.get (DaggerMyApp_HiltComponents_SingletonC.java:6156)
dagger.internal.DoubleCheck.get (DoubleCheck.java:47)
my.app.DaggerMyApp_HiltComponents_SingletonC$SingletonCImpl.eagerMarketingTool (DaggerMyApp_HiltComponents_SingletonC.java:5702)
my.app.MyApp.eagerInit (MyApp.kt:56)
my.app.MyApp.onCreate (MyApp.kt:49)
android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1226)
android.app.ActivityThread.handleBindApplication (ActivityThread.java:7046)
android.app.ActivityThread.access$1800 (ActivityThread.java:254)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2184)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loopOnce (Looper.java:233)
android.os.Looper.loop (Looper.java:344)
android.app.ActivityThread.main (ActivityThread.java:8212)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:584)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1034)