Android PackageManager enable any application
问题 I have developed an application in which I have enabled that any application which we have can be installed manually But my problem is that I only want to enable my own package name and rather not any other application package name. Here is the code I have used. try { PackageManager pm1 = getPackageManager(); pm1.setComponentEnabledSetting(new ComponentName("com.service", "com.service.EnableActivity"), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP ); } catch