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

Commit a510f69a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Flag cleanup: Remove AAPM MTE flag" into main

parents 930e4948 bdd569b1
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -141,12 +141,6 @@ flag {
    bug: "369361373"
}

flag {
    name: "aapm_feature_memory_tagging_extension"
    namespace: "responsible_apis"
    description: "Android Advanced Protection Mode Feature: Memory Tagging Extension"
    bug: "378931989"
}
flag {
    name: "aapm_feature_disable_cellular_2g"
    namespace: "responsible_apis"
+5 −7
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.server.security.advancedprotection;

import static android.provider.Settings.Secure.ADVANCED_PROTECTION_MODE;
import static android.provider.Settings.Secure.AAPM_USB_DATA_PROTECTION;

import static com.android.internal.util.ConcurrentUtils.DIRECT_EXECUTOR;

import android.Manifest;
@@ -44,9 +45,9 @@ import android.security.advancedprotection.AdvancedProtectionFeature;
import android.security.advancedprotection.AdvancedProtectionManager;
import android.security.advancedprotection.AdvancedProtectionManager.FeatureId;
import android.security.advancedprotection.AdvancedProtectionManager.SupportDialogType;
import android.security.advancedprotection.AdvancedProtectionProtoEnums;
import android.security.advancedprotection.IAdvancedProtectionCallback;
import android.security.advancedprotection.IAdvancedProtectionService;
import android.security.advancedprotection.AdvancedProtectionProtoEnums;
import android.util.ArrayMap;
import android.util.Slog;
import android.util.StatsEvent;
@@ -62,16 +63,15 @@ import com.android.server.security.advancedprotection.features.AdvancedProtectio
import com.android.server.security.advancedprotection.features.AdvancedProtectionProvider;
import com.android.server.security.advancedprotection.features.DisallowCellular2GAdvancedProtectionHook;
import com.android.server.security.advancedprotection.features.DisallowInstallUnknownSourcesAdvancedProtectionHook;
import com.android.server.security.advancedprotection.features.DisallowWepAdvancedProtectionProvider;
import com.android.server.security.advancedprotection.features.MemoryTaggingExtensionHook;
import com.android.server.security.advancedprotection.features.UsbDataAdvancedProtectionHook;
import com.android.server.security.advancedprotection.features.DisallowWepAdvancedProtectionProvider;

import java.io.File;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/** @hide */
public class AdvancedProtectionService extends IAdvancedProtectionService.Stub {
@@ -120,13 +120,11 @@ public class AdvancedProtectionService extends IAdvancedProtectionService.Stub {
            Slog.e(TAG, "Failed to initialize DisallowInstallUnknownSources", e);
          }
        }
        if (android.security.Flags.aapmFeatureMemoryTaggingExtension()) {
        try {
            mHooks.add(new MemoryTaggingExtensionHook(mContext, enabled));
        } catch (Exception e) {
            Slog.e(TAG, "Failed to initialize MemoryTaggingExtension", e);
        }
        }
        if (android.security.Flags.aapmFeatureDisableCellular2g()) {
          try {
            mHooks.add(new DisallowCellular2GAdvancedProtectionHook(mContext, enabled));