Advertisement
arter97

net.dns patch 2/2

May 19th, 2022
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.70 KB | None | 0 0
  1. diff --git a/api/system-current.txt b/api/system-current.txt
  2. index 6d30669637b9..3d9156ecb58f 100644
  3. --- a/api/system-current.txt
  4. +++ b/api/system-current.txt
  5. @@ -8967,6 +8967,7 @@ package android.os {
  6.      method public static boolean getBoolean(@NonNull String, boolean);
  7.      method public static int getInt(@NonNull String, int);
  8.      method public static long getLong(@NonNull String, long);
  9. +    method public static void set(@NonNull String, @Nullable String);
  10.    }
  11.  
  12.    public class SystemUpdateManager {
  13. diff --git a/core/api/system-current.txt b/core/api/system-current.txt
  14. index 16c5253427a8..0de48824aba4 100644
  15. --- a/core/api/system-current.txt
  16. +++ b/core/api/system-current.txt
  17. @@ -8569,6 +8569,7 @@ package android.os {
  18.      method public static boolean getBoolean(@NonNull String, boolean);
  19.      method public static int getInt(@NonNull String, int);
  20.      method public static long getLong(@NonNull String, long);
  21. +    method public static void set(@NonNull String, @Nullable String);
  22.    }
  23.  
  24.    public class SystemUpdateManager {
  25. diff --git a/core/java/android/os/SystemProperties.java b/core/java/android/os/SystemProperties.java
  26. index ab741990430f..2803966e05e9 100644
  27. --- a/core/java/android/os/SystemProperties.java
  28. +++ b/core/java/android/os/SystemProperties.java
  29. @@ -223,7 +223,7 @@ public class SystemProperties {
  30.       * SELinux. libc will log the underlying reason.
  31.       * @hide
  32.       */
  33. -    @UnsupportedAppUsage
  34. +    @SystemApi
  35.      public static void set(@NonNull String key, @Nullable String val) {
  36.          if (val != null && !val.startsWith("ro.") && val.length() > PROP_VALUE_MAX) {
  37.              throw new IllegalArgumentException("value of system property '" + key
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement