Autostart permission programmatically
问题 I am working on an app where I need to ask user for the autostart permission and for that I am opening the Autostart permissions settings page for the user to turn on the permission for our app using following code for few Manufacturers: Intent autostartIntent = new Intent(); if ("xiaomi".equalsIgnoreCase(android.os.Build.MANUFACTURER)) { autostartIntent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity")); startActivity