My initial question was basically something along the lines of this: Clearing and setting the default home application
That question was answered to my satisfaction,
By using package manager you can enable or disable component declared in manifest file
There are two flag PackageManager.COMPONENT_ENABLED_STATE_DISABLED
for disable component and PackageManager.COMPONENT_ENABLED_STATE_ENABLED
for enable component.
PackageManager pm = getApplicationContext().getPackageManager();
ComponentName componentName = new ComponentName("com.app",
".broadcast_receivers.OnNetworkChangedReceiver");
pm.setComponentEnabledSetting(componentName,
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP);
Android manifest:
Official documentation: setComponentEnabledSetting