Is PackageManager.getComponentEnabledSettings() persistent between cold starts?
问题 If I use the code below to disable a static BroadcastReceiver defined in AndroidManifest.xml, will it be re-enabled after a reboot? It doesn't appear to be but the docs don't say whether it should. final ComponentName compName = new ComponentName(context, MyBroadcastReceiver.class); context.getPackageManager().setComponentEnabledSetting( compName, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); Thanks in advance... 回答1: Is PackageManager