MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / frameworks_base_widevine_provisioning.patch
frameworks_base_widevine_provisioning.patch32 lines · 1.8 KiBRaw
| 1 | diff --git a/core/java/android/ext/settings/WidevineProvisioningSettings.java b/core/java/android/ext/settings/WidevineProvisioningSettings.java |
| 2 | index 6d5ba2eaa69a..93415d7d58c5 100644 |
| 3 | --- a/core/java/android/ext/settings/WidevineProvisioningSettings.java |
| 4 | +++ b/core/java/android/ext/settings/WidevineProvisioningSettings.java |
| 5 | @@ -16,7 +16,17 @@ public class WidevineProvisioningSettings { |
| 6 | /** @hide */ |
| 7 | public static final int WV_STANDARD_SERVER = 1; |
| 8 | |
| 9 | - private static final String WV_GRAPHENEOS_PROXY_HOSTNAME = "widevineprovisioning.grapheneos.org"; |
| 10 | + // MAOS: self-hosted HTTPS reverse proxy to Google's Widevine |
| 11 | + // provisioning server (wv.maproj.org -> www.googleapis.com, DNS/proxy |
| 12 | + // handled server-side). Only the hostname is overridden here: the |
| 13 | + // Widevine CDM supplies the path+query (its default URL is |
| 14 | + // https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=...), |
| 15 | + // so the effective MAOS URL is https://wv.maproj.org/certificateprovisioning/... |
| 16 | + // The public WV_GRAPHENEOS_PROXY mode constant is kept: its int value is |
| 17 | + // persisted in Settings.Global and referenced by Settings, so renaming |
| 18 | + // it would be a needless cross-repo change. Only this private hostname |
| 19 | + // constant is renamed. |
| 20 | + private static final String WV_MAOS_PROXY_HOSTNAME = "wv.maproj.org"; |
| 21 | |
| 22 | /** @hide */ |
| 23 | public static final IntSetting SERVER_SETTING = new IntSetting( |
| 24 | @@ -28,7 +38,7 @@ public class WidevineProvisioningSettings { |
| 25 | @Nullable |
| 26 | public static String getServerHostnameOverride(@NonNull Context ctx) { |
| 27 | if (SERVER_SETTING.get(ctx) == WV_GRAPHENEOS_PROXY) { |
| 28 | - return WV_GRAPHENEOS_PROXY_HOSTNAME; |
| 29 | + return WV_MAOS_PROXY_HOSTNAME; |
| 30 | } |
| 31 | return null; |
| 32 | } |