Add the Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT for
ConnectivityManager.ACTION_CAPTIVE_PORTAL_TEST_COMPLETED) action, so
that we will not have the "FATAL EXCEPTION IN SYSTEM PROCESS:
CaptivePortalTracker" error which will cause many services died
Change-Id: I028c51384ee5bb93db6a0b904a4dfe974bf20fa5
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
ConnectivityManager.ACTION_CAPTIVE_PORTAL_TEST_COMPLETED);
intent.putExtra(ConnectivityManager.EXTRA_IS_CAPTIVE_PORTAL, captive);
intent.setPackage(SETUP_WIZARD_PACKAGE);
+ intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
mContext.sendBroadcast(intent);
}