Status Update
Comments
jg...@google.com <jg...@google.com> #2
Since this is happening in Tink, rather than in the AndroidX library, it would be best to open an
ja...@skrasek.com <ja...@skrasek.com> #3
jg...@google.com <jg...@google.com> #4
Tink is the library that does the heavy lifting in Jetpack Security.
And yes, potentially raising that issue with the Tink team directly could help.
ja...@skrasek.com <ja...@skrasek.com> #5
Here, created it there too:
je...@google.com <je...@google.com> #6
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #7
je...@google.com <je...@google.com> #8
th...@gmail.com <th...@gmail.com> #9
je...@google.com <je...@google.com> #10
ja...@skrasek.com <ja...@skrasek.com> #11
th...@gmail.com <th...@gmail.com> #12
je...@google.com <je...@google.com>
ja...@skrasek.com <ja...@skrasek.com> #13
+1
at...@onedaycat.com <at...@onedaycat.com> #14
je...@google.com <je...@google.com>
je...@google.com <je...@google.com> #16
Branch: androidx-main
commit a505a060ec741478e4096e8d160e136de18e8f39
Author: Daniel Angell <danielangell@google.com>
Date: Thu Oct 13 12:14:15 2022
Upgrade tink to 1.7.0 in security-crypto
Changed some calls into Tink to avoid deprecation warnings.
Bug: 185219606 (and likely others)
Test: Ran the security-crypto test suite
Change-Id: I7b1dcb3bf3f5d018a93ac3b06280724559f63ded
M security/security-crypto/build.gradle
M security/security-crypto/src/main/java/androidx/security/crypto/EncryptedFile.java
M security/security-crypto/src/main/java/androidx/security/crypto/EncryptedSharedPreferences.java
ap...@google.com <ap...@google.com> #17
i wonder what about the rare crashes though.
je...@google.com <je...@google.com> #18
I'm pretty new on this project and I haven't dug deep into all of the strange behavior reported. But having read many of the bug reports my initial guess is crashes on initialization are related to encrypted files that got restored from a backup. If you back up all of an app's files - including EncryptedSharedPreferences - and then restore after moving to a new device, factory restoring a device, or perhaps even uninstalling and reinstalling an app, you will crash and it might not be clear why. The recommended way to use the security jetpack library lends to these kinds of errors. The files get encrypted with a key that won't be available inside of a backup copy. So decryption will always fail if that key isn't there when restoring from a backup.
Description
(Tabs are horizontally laid out, swipe-refresh is vertical)
This worked in ViewPager.
Used version: androidx.viewpager2:viewpager2:1.0.0-alpha03
Not sure if its related to