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

Commit b31138f9 authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

Add runtime_native_boot namespace

For runtime properties that require reboots.

Bug: 120794191
Bug: 123524494
Test: set a property and ensure it can be read in AndroidRuntime.cpp

Change-Id: I6287320465f633447a7ef65af6c29cd9f8cce18d
parent aed477d5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5770,6 +5770,10 @@ package android.provider {
    field public static final String NAMESPACE = "runtime_native";
  }
  public static interface DeviceConfig.RuntimeNativeBoot {
    field public static final String NAMESPACE = "runtime_native_boot";
  }
  public static interface DeviceConfig.Storage {
    field public static final String ISOLATED_STORAGE_ENABLED = "isolated_storage_enabled";
    field public static final String NAMESPACE = "storage";
+11 −0
Original line number Diff line number Diff line
@@ -159,6 +159,17 @@ public final class DeviceConfig {
        String NAMESPACE = "runtime_native";
    }

    /**
     * Namespace for all runtime native boot related features. Boot in this case refers to the
     * fact that the properties only take affect after rebooting the device.
     *
     * @hide
     */
    @SystemApi
    public interface RuntimeNativeBoot {
        String NAMESPACE = "runtime_native_boot";
    }

    /**
     * Namespace for all activity manager related features that are used at the native level.
     * These features are applied at reboot.
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ class SettingsToPropertiesMapper {
        DeviceConfig.ActivityManagerNativeBoot.NAMESPACE,
        DeviceConfig.NAMESPACE_INPUT_NATIVE_BOOT,
        DeviceConfig.NAMESPACE_NETD_NATIVE,
        DeviceConfig.RuntimeNativeBoot.NAMESPACE,
        DeviceConfig.RuntimeNative.NAMESPACE,
    };