Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c149ab8b authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Don't advertise dun insecurely

If there is a carrier specified apn from config.xml unless the current connection
is that setting, don't advertise dun.

If there is no carrier specified apn, the we're ok.

bug:17286525
Change-Id: I6c6f66e9b4dcc9a1dda6fa0fbfea7b7dcc155530
parent 2c1d3407
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -906,8 +906,10 @@ public final class DataConnection extends StateMachine {
                        break;
                    }
                    case PhoneConstants.APN_TYPE_DUN: {
                        // TODO - secure?
                        ApnSetting securedDunApn = mDct.fetchDunApn();
                        if (securedDunApn == null || securedDunApn.equals(mApnSetting)) {
                            result.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN);
                        }
                        break;
                    }
                    case PhoneConstants.APN_TYPE_FOTA: {