Files
app_Settings/tests/robotests/src/com/android/settings/security/ZygoteShadow.java
Florian Mayer 5b93b73df1 Add persistent MTE toggle to development options.
Bug: 245624194
Change-Id: I83283eb74360ec0eccd6b236b42eb987a580ec2c
2023-02-09 13:26:27 -08:00

37 lines
1.1 KiB
Java

/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.security;
import com.android.internal.os.Zygote;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@Implements(Zygote.class)
public class ZygoteShadow {
private static boolean sSupportsMemoryTagging;
public static void setSupportsMemoryTagging(boolean value) {
sSupportsMemoryTagging = value;
}
@Implementation
public static boolean nativeSupportsMemoryTagging() {
return sSupportsMemoryTagging;
}
}