Open EmmanuelMess opened 6 years ago
Also tried with Pixel 2 emulator running Android 8.1 x86 (API 27), but couldn't reproduce the problem.
Seems the problem lies in the keystore but not our code. And as the problem seems to be within CryptUtil.encryptPassword()
itself, I wrote a test case for help... see TranceLove/AmazeFileManager@966f865
Sorry for using the bloated Android's own test framework, but seems it is the easiest way to start debugging this - Robolectric doesn't provide Shadow
for AndroidKeyStore
.
Try run the test at the AVD you have problem with and see what happened.
In the long run we may want to help user to backup the keystore... (IIRC there was an issue to add support for import/export settings, but couldn't find it; it might be part of the effort too)
You test is passed, and the device seems to work now. Weird.
AVD Pixel 2 with API 27. In commit 1d0f73ae (probably also master).