diff options
| author | Joey Hewitt <joey@joeyhewitt.com> | 2021-01-04 23:00:17 -0700 |
|---|---|---|
| committer | Joey Hewitt <joey@joeyhewitt.com> | 2021-01-04 23:06:40 -0700 |
| commit | 57b7f9cd47c2ae93d7db47a6fdca47f92c2f6baf (patch) | |
| tree | 1ad58ed4fd59d8af8d99fbe1392e2dbff2e5f0d5 | |
| parent | 2a117d3c4dc43dc88bc874bd0070a46f2be128e5 (diff) | |
| download | frameworks_opt_telephony_ril_ofono-replicant-6.0.tar.gz frameworks_opt_telephony_ril_ofono-replicant-6.0.tar.bz2 frameworks_opt_telephony_ril_ofono-replicant-6.0.zip | |
improve LTE datacall setupreplicant-6.0
It just started reporting LTE after not doing so the last few days...
I'm not sure if I did something to fix it or if the phone/network just
decided to.
| -rw-r--r-- | src/java/net/scintill/ril_ofono/DatacallModule.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/net/scintill/ril_ofono/DatacallModule.java b/src/java/net/scintill/ril_ofono/DatacallModule.java index ebab380..6506a7a 100644 --- a/src/java/net/scintill/ril_ofono/DatacallModule.java +++ b/src/java/net/scintill/ril_ofono/DatacallModule.java @@ -182,12 +182,13 @@ import static net.scintill.ril_ofono.RilOfono.setProperty; throw new CommandException(OP_NOT_ALLOWED_BEFORE_REG_NW); } } else { - ctxPath = findContextPathByPropertyValue("AccessPointName", "automatic"); // TODO use Name instead? it's not available for some reason + ctxPath = findContextPathByPropertyValue("Type", "internet"); if (ctxPath == null) { Rlog.w(TAG, "no connection context available in setupDataCall(). not registered?"); throw new CommandException(OP_NOT_ALLOWED_BEFORE_REG_NW); } ctx = RilOfono.sInstance.getOfonoInterface(ConnectionContext.class, ctxPath); + // TODO figure out what to do with APN stuff on LTE, since I think we are attached regardless of APN config // don't modify the context, just return it so the caller can query/watch its configuration } // TODO This should probably be more automated and generalized. Any time we fetch all |
