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

Commit 2e17b8b9 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Skip starting WearableSensingService in Wear

This service has been documented to not be supported on Wear, but has
been running on Wear devices. We are now avoiding the start of the
service on Wear devices.

CTS tests already have been skipped for Wear devices (see ag/26350608).

Bug: 340929916
Test: atest WearableSensingManagerTest CtsWearableSensingServiceDeviceTest WearableSensingManagerIsolatedServiceTest HotwordDetectionServiceBasicTest
Change-Id: I6bb4abcfe72dfed3bc23e63b320a48bf07fb9f40
parent 076e6fc6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1924,7 +1924,11 @@ public final class SystemServer implements Dumpable {
            startRotationResolverService(context, t);
            startSystemCaptionsManagerService(context, t);
            startTextToSpeechManagerService(context, t);
            if (!isWatch || !android.server.Flags.removeWearableSensingServiceFromWear()) {
                startWearableSensingService(t);
            } else {
                Slog.d(TAG, "Not starting WearableSensingService");
            }
            startOnDeviceIntelligenceService(t);

            if (deviceHasConfigString(
+7 −0
Original line number Diff line number Diff line
@@ -15,3 +15,10 @@ flag {
     description: "Remove TextServiceManagerService on Wear"
     bug: "323720705"
}

flag {
     name: "remove_wearable_sensing_service_from_wear"
     namespace: "wear_frameworks"
     description: "Remove WearableSensingManagerService on Wear"
     bug: "340929916"
}
 No newline at end of file