enable MediaProjection Service

this service is required for screen recording to work. Specificially
for WearMediaScreenRecorder to start recording the screen.

BUG: 171561784
Test: N/A (manually check that service has been launched)
Change-Id: I38ecc94d68bf7c0c48a3d57138cf1da4ad890064
(cherry picked from commit fd7a0e8fc1bc1be717f084aec1ef89dc1e67847e)
This commit is contained in:
Abhijit Nukalapati
2021-01-12 11:57:17 -08:00
committed by Josh Yang
parent fbeb7661a5
commit bc6500ba1a

View File

@@ -2470,11 +2470,9 @@ public final class SystemServer implements Dumpable {
t.traceEnd();
}
if (!isWatch) {
t.traceBegin("StartMediaProjectionManager");
mSystemServiceManager.startService(MediaProjectionManagerService.class);
t.traceEnd();
}
t.traceBegin("StartMediaProjectionManager");
mSystemServiceManager.startService(MediaProjectionManagerService.class);
t.traceEnd();
if (isWatch) {
// Must be started before services that depend it, e.g. WearConnectivityService