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

Commit 881b1f60 authored by Charlie Wang's avatar Charlie Wang Committed by Android (Google) Code Review
Browse files

Merge "Add WearableSensingService to isolated compute app."

parents 12dc6d65 d329d056
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -180,6 +180,7 @@ import android.os.UserManager;
import android.provider.Settings;
import android.service.voice.HotwordDetectionService;
import android.service.voice.VisualQueryDetectionService;
import android.service.wearable.WearableSensingService;
import android.stats.devicepolicy.DevicePolicyEnums;
import android.text.TextUtils;
import android.util.ArrayMap;
@@ -3813,12 +3814,14 @@ public final class ActiveServices {
                inSharedIsolatedProcess);
    }

    // TODO(b/265746493): Special case for HotwordDetectionService and
    // VisualQueryDetectionService. Need a cleaner way to append this seInfo.
    // TODO(b/265746493): Special case for HotwordDetectionService,
    // VisualQueryDetectionService and WearableSensingService.
    // Need a cleaner way to append this seInfo.
    private String generateAdditionalSeInfoFromService(Intent service) {
        if (service != null && service.getAction() != null
                && (service.getAction().equals(HotwordDetectionService.SERVICE_INTERFACE)
                || service.getAction().equals(VisualQueryDetectionService.SERVICE_INTERFACE))) {
                || service.getAction().equals(VisualQueryDetectionService.SERVICE_INTERFACE)
                || service.getAction().equals(WearableSensingService.SERVICE_INTERFACE))) {
            return ":isolatedComputeApp";
        }
        return "";