My android application requests permission for accessibility. On older versions of android, the code below opens the correct accessibility permission screen. But testing on a samsung with android 12, it doesn't work.
private void launchPermission() {
AppOpsManager ops = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
Intent intent = new Intent("android.settings.ACCESSIBILITY_SETTINGS");
startActivity(intent);
}
Can you help me to solve this problem?