Fix issue with upgrading from previous user versions.

The storage format of users changed in userVersion 10. When upgrading
from userVersion 9 (Android 13), local user restrictions would be read
as base restrictions. This fix properly reads in the old version and
converts it to the new storage format.

Bug: 311687929
Bug: 305455828
Test: atest UserManagerServiceUserInfoTest
Change-Id: I14fdac19b4458c6bd2ccee7d1b119bc710e1b600
Merged-In: I14fdac19b4458c6bd2ccee7d1b119bc710e1b600
(cherry picked from commit 739281096aba494151f8c953f2d63ec9fd4c7e87)
3 files changed