OSDN Git Service

Ignore serial number checks when emulating FBE.
authorJeff Sharkey <jsharkey@android.com>
Mon, 27 Jun 2016 23:27:43 +0000 (17:27 -0600)
committerJeff Sharkey <jsharkey@android.com>
Mon, 27 Jun 2016 23:28:21 +0000 (17:28 -0600)
commita52c9d90cb1e70ca777265c6ca565c13ff4e0d04
tree705f23cee560e7762ace5f51174b7eaf2be468da
parentb59b5a679aaa5a845e5a854cf0ccfb51a1ace8c9
Ignore serial number checks when emulating FBE.

When emulating FBE, we may have chmod 000'ed the directory to emulate
it being locked, which results in us failing to read the serial
number, causing a unintentional data wipe.

To avoid this, ignore the serial number check when emulating FBE,
which is a developer-only feature.

Bug: 29231715
Change-Id: Idb056ab378174004d1430b5e7c20db17de28231e
services/core/java/com/android/server/pm/UserManagerService.java