MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / frameworks_base_remote_key_provisioning.patch
frameworks_base_remote_key_provisioning.patch27 lines · 1.4 KiBRaw
| 1 | diff --git a/core/java/android/ext/settings/RemoteKeyProvisioningSettings.java b/core/java/android/ext/settings/RemoteKeyProvisioningSettings.java |
| 2 | index 69959118c414..091ea6e82e70 100644 |
| 3 | --- a/core/java/android/ext/settings/RemoteKeyProvisioningSettings.java |
| 4 | +++ b/core/java/android/ext/settings/RemoteKeyProvisioningSettings.java |
| 5 | @@ -15,7 +15,12 @@ public class RemoteKeyProvisioningSettings { |
| 6 | public static final int GRAPHENEOS_PROXY = 0; |
| 7 | public static final int STANDARD_SERVER = 1; |
| 8 | |
| 9 | - private static final String GRAPHENEOS_PROXY_URL = "https://remoteprovisioning.grapheneos.org/v1"; |
| 10 | + // MAOS: self-hosted HTTPS reverse proxy to the Google RKP server |
| 11 | + // (rkp.maproj.org, DNS/proxy handled server-side). The public |
| 12 | + // GRAPHENEOS_PROXY mode constant is kept: its int value is persisted in |
| 13 | + // Settings.Global and referenced by Settings, so renaming it would be a |
| 14 | + // needless cross-repo change. Only this private URL constant is renamed. |
| 15 | + private static final String MAOS_PROXY_URL = "https://rkp.maproj.org/v1"; |
| 16 | |
| 17 | /** @hide */ |
| 18 | public static final IntSetting SERVER_SETTING = new IntSetting( |
| 19 | @@ -27,7 +32,7 @@ public class RemoteKeyProvisioningSettings { |
| 20 | @Nullable |
| 21 | public static String getServerUrlOverride(@NonNull Context ctx) { |
| 22 | if (SERVER_SETTING.get(ctx) == GRAPHENEOS_PROXY) { |
| 23 | - return GRAPHENEOS_PROXY_URL; |
| 24 | + return MAOS_PROXY_URL; |
| 25 | } |
| 26 | |
| 27 | return null; |