From 2f37d32da35742c62e735b63e0698002e28d9afb Mon Sep 17 00:00:00 2001 From: oxmc <67136658+oxmc@users.noreply.github.com> Date: Tue, 9 Jun 2026 22:40:40 -0700 Subject: [PATCH] provisioner: fix removed Telephony.Carriers constants for Android 16 BEARER_BITMASK, PROFILE_ID, MAX_CONNS, WAIT_TIME, MAX_CONNS_TIME, and MODEM_COGNITIVE were removed from the public API; replace with raw column name strings so the APN insertion code compiles against Android 16. --- .../oxmc/configprovisioner/ProvisioningService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dev/oxmc/configprovisioner/ProvisioningService.java b/src/dev/oxmc/configprovisioner/ProvisioningService.java index a911463..7f7c1b7 100644 --- a/src/dev/oxmc/configprovisioner/ProvisioningService.java +++ b/src/dev/oxmc/configprovisioner/ProvisioningService.java @@ -346,17 +346,17 @@ public class ProvisioningService extends Service { apnPutStr(cv, Telephony.Carriers.MMSPORT, parser, "mmsport"); apnPutStr(cv, Telephony.Carriers.USER, parser, "user"); apnPutStr(cv, Telephony.Carriers.PASSWORD, parser, "password"); - apnPutStr(cv, Telephony.Carriers.BEARER_BITMASK, parser, "bearer_bitmask"); + apnPutStr(cv, "bearer_bitmask", parser, "bearer_bitmask"); apnPutInt(cv, Telephony.Carriers.AUTH_TYPE, parser, "authtype", -1); - apnPutInt(cv, Telephony.Carriers.PROFILE_ID, parser, "profile_id", 0); - apnPutInt(cv, Telephony.Carriers.MAX_CONNS, parser, "max_conns", 0); - apnPutInt(cv, Telephony.Carriers.WAIT_TIME, parser, "wait_time", 0); - apnPutInt(cv, Telephony.Carriers.MAX_CONNS_TIME, parser, "max_conns_time", 0); + apnPutInt(cv, "profile_id", parser, "profile_id", 0); + apnPutInt(cv, "max_conns", parser, "max_conns", 0); + apnPutInt(cv, "wait_time", parser, "wait_time", 0); + apnPutInt(cv, "max_conns_time", parser, "max_conns_time", 0); apnPutInt(cv, Telephony.Carriers.MTU, parser, "mtu", 0); String modemCog = parser.getAttributeValue(null, "modem_cognitive"); if (modemCog != null) - cv.put(Telephony.Carriers.MODEM_COGNITIVE, + cv.put("modem_cognitive", "true".equalsIgnoreCase(modemCog) || "1".equals(modemCog) ? 1 : 0); String enabled = parser.getAttributeValue(null, "carrier_enabled"); cv.put(Telephony.Carriers.CARRIER_ENABLED,