I am trying to get(programaticaly) auto start option value(on/off) of my app in MIUI devices. On the base of its value, i need to open security app from my app to set auto start value.
Your help is appreciated. Thanks
I am trying to get(programaticaly) auto start option value(on/off) of my app in MIUI devices. On the base of its value, i need to open security app from my app to set auto start value.
Your help is appreciated. Thanks
You can do it via official MI intent
Intent intent = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");
intent.setClassName("com.miui.securitycenter", "com.miui.permcenter.permissions.AppPermissionsEditorActivity");
intent.putExtra("extra_pkgname", "app_package_name");