12-04-2024 11:59 PM - edited 12-05-2024 12:44 AM
Starting from Quest system version v71 it is not possible to grant Draw Over Other Apps permission. Invoking the code I provided below opens up first page of Settings menu instead of the permission menu with toggle. The issue doesn't occur in version below v71. In previous versions it works fine, the menu with the toggle opens correctly and user can grant access to this permission.
// android.settings.action.MANAGE_OVERLAY_PERMISSION
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + getPackageName()));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
It is also not possible to grant this permission manually through settings. The only way to grant it is to install an app using adb with -g parameter:
adb install -g .\app.apk
UPDATE:
Works fine on v72. I've just sideloaded v72 on my Quest 2 and it works as before. So the problem is only on v71.