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

Skip to content
Commit 749242a2 authored by JW Wang's avatar JW Wang
Browse files

Rewrite #restartSystemServer

ProcessInfo#getStartTime is not reliable. My local test shows it is
incremented by one after polling a few times even if we don't restart
system server at all.

Let's use pid to detect whether system server is restarted or not.

Now #restartSystemServer fails correctly when `am restart` is not called
at all or is called without root privilege.

Bug: 160754072
Test: StagedInstallInternalTest
Change-Id: Iebcf1583f38c17fbc8f2af42bdc61ae000b39354
parent 3ac333f2
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