summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-03-04 00:07:29 +0000
committer Eric Biggers <ebiggers@google.com> 2022-03-07 19:12:42 +0000
commit7172fa43c327e02110845eaaa82409aba01a4c39 (patch)
tree96e06c940a0503afd3acaf2877a1424507bb1115 /libs/androidfw/StringPool.cpp
parentba4caf4de1d7ebe97458cd9822c156c49f18cf45 (diff)
UserDataPreparer: reboot to recovery for system user only
With the next CL, old devices might contain a combination of old users with prepareUserStorage error checking disabled and new users with prepareUserStorage error checking enabled. Factory resetting the whole device when any user fails to prepare may be too aggressive. Also, UserDataPreparer already destroys the affected user's storage when it fails to prepare, which seems to be fairly effective at breaking things for that user (absent proper error handling by upper layers). Therefore, let's only factory reset the device if the failing user is the system user. Bug: 164488924 Bug: 216025819 Change-Id: Ia1db01ab4ec6b3b17d725f391c3500d92aa00f97 (cherry picked from commit 4c76da76c9831266e4e63c0618150bed10a929a7) Merged-In: Ia1db01ab4ec6b3b17d725f391c3500d92aa00f97
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions