OSDN Git Service

Fix boot loop when upgrading direclty from L to N
authorRubin Xu <rubinxu@google.com>
Tue, 22 Nov 2016 15:18:32 +0000 (15:18 +0000)
committerRubin Xu <rubinxu@google.com>
Wed, 23 Nov 2016 16:59:22 +0000 (16:59 +0000)
commitbfc7faaf353ea75ab04e986edbc79478679d40f6
treec233c8fd1610985630b422c78b9bba97ba1ce0b0
parentd427da8a2427a2ff7bb8f653f8b69647a5e1e940
Fix boot loop when upgrading direclty from L to N

A second attempt to fix the upgrade problem due to SID == 0
in the above upgrade path. The previous fix contains a bug
where it would cause future attempts to unify work challenge
to silently fail, and crash SystemUi when unlocking.

This fix adds a check for non-zero SID before doing the initial work
profile unification (which caused the upgrade crash when SID == 0).
This means the initial work profile unification would only happen when
the user has unlocked the lockscreen and SID is generated.

Bug: 32490092
Bug: 33050562
Change-Id: Ib28951b2ec26b4f091df7763d9902f55616fcb5c
services/core/java/com/android/server/LockSettingsService.java