Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcb36284 authored by Yao Li's avatar Yao Li
Browse files

Fix failing UserManagerServiceMockedTest related to admin flag

In this test, whether the system user has FLAG_ADMIN is determined before setSystemUserHeadless() is called.
If run on HSUM device, the system user does not have FLAG_ADMIN, which caused a few tests to fail.
So setSystemUserHeadless() needs to set the flag correctly, depending on the feature flag hsu_not_admin.

Bug: 436931087
Flag: EXEMPT test only
Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceMockedTest

Change-Id: I658c8a9bfa2f51867a2b41ea8d8241e647f6a34d
parent 426c0248
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment