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

Commit 027177ea authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by Android (Google) Code Review
Browse files

Merge "Add SystemApi for captive portal metrics"

parents e4d5f865 dc68c9b5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -687,6 +687,15 @@ public class NetworkMonitor extends StateMachine {
                                    }
                                    sendMessage(CMD_CAPTIVE_PORTAL_APP_FINISHED, response);
                                }

                                @Override
                                public void logEvent(int eventId, String packageName)
                                        throws RemoteException {
                                    mContext.enforceCallingPermission(
                                            android.Manifest.permission.CONNECTIVITY_INTERNAL,
                                            "CaptivePortal");
                                    mCallback.logCaptivePortalLoginEvent(eventId, packageName);
                                }
                            }));
                    final CaptivePortalProbeResult probeRes = mLastPortalProbeResult;
                    intent.putExtra(EXTRA_CAPTIVE_PORTAL_URL, probeRes.detectUrl);