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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user