I have an activity-alias declared in my manifest and android:enabled="false"
I would like to enable it at run time, but I'm not sure how to use PackageManager's setComponentEnabledSetting()
since the ComponentName parameter requires a class name, and not the activity or activity alias name.
I guess the same goes for turning android:exported
property on/off. I don't even know how to do that one for normal activities (I don't see a setComponentExportedSetting() method in the PackageManager)
Any ideas?