From 8f5fad374150b35e0a8a2ad9aa36d3f030c799cc Mon Sep 17 00:00:00 2001 From: bigbiff Date: Wed, 3 Nov 2021 20:39:02 -0400 Subject: [PATCH] keymaster restore: warn when pin, password or pattern is enabled Starting in Android 10, zygote relies on stored inodes in order to find packages in the user's CE directories. Since TWRP cannot force inode creation on restore, we warn the user to remove their pin before restoring their backup. Otherwise zygote may not load properly in Android. This will force the system to update the inode cache. The user can then re-add their security settings to android. Change-Id: I8f07962d07304dee54c08318efc500dca424b6c0 --- gui/theme/common/landscape.xml | 135 +++++++++++++++++++++++++++ gui/theme/common/languages/en.xml | 11 +++ gui/theme/common/portrait.xml | 148 ++++++++++++++++++++++++++++++ gui/theme/common/watch.xml | 138 ++++++++++++++++++++++++++++ gui/theme/watch_mdpi/ui.xml | 2 +- partitionmanager.cpp | 3 + 6 files changed, 436 insertions(+), 1 deletion(-) diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index 4072efde..0aed0b4e 100755 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -2196,6 +2196,83 @@ select_storage + + + + restore_pin + + + + + + + + restore_read + + + + + + main + + + + + main + + + + + +