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

Skip to content
Commit e0b3ad2e authored by Roberto Cosenza's avatar Roberto Cosenza
Browse files

Don't initialize the People Service at boot but on demand.

The service is not used by any known apps and we don't used any of it's  data.

By making the service lazy, we may gain some ms at boot and still preserve its functionality.

Note that the associated PeopleServiceTest.java had to be modified slightly because of a bug with the test itself. The test was not emulating the change to the boot phase and therefore it was not running the full initialization of the service. Making it lazy, forces the test to comply.

Test: Run the unchanged CTS test with `atest android.app.people.cts.PeopleManagerTest` and `atest com.android.server.people.PeopleServiceTest`x

Skip-CP-To-Master: We need to look at a different strategy for master https://b.corp.google.com/issues/286193387

Bug: 285828603
Bug: 286193387
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:062eda268fa33bee3364931b9b6eb293af5f718b)
Merged-In: I1db9446dbcabd7f9e8b1fdc0390b021f1e0185fa
Change-Id: I1db9446dbcabd7f9e8b1fdc0390b021f1e0185fa
parent 0073d092
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment