Skip to content

Commit e6f8b0c

Browse files
committed
feat(ManifestPatcher): add extra Meta Quest perms
1 parent 51d74ad commit e6f8b0c

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎app/src/main/kotlin/com/aliucord/manager/patcher/util/ManifestPatcher.kt‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,18 @@ object ManifestPatcher {
6161
addExternalStoragePerm = false
6262
}
6363

64-
// Add permission to access front camera for Meta Quest VR headsets
6564
if (addHorizonOsPerm) {
66-
super
67-
.child(null, "uses-permission")
68-
.attr(ANDROID_NAMESPACE, "name", android.R.attr.name, TYPE_STRING, "horizonos.permission.HEADSET_CAMERA")
6965
addHorizonOsPerm = false
66+
67+
// Add permissions for Aliucord to work properly for Meta Quest VR headsets
68+
for (permission in arrayOf(
69+
"horizonos.permission.HEADSET_CAMERA",
70+
"com.oculus.permission.PLAY_AUDIO_BACKGROUND",
71+
"com.oculus.permission.RECORD_AUDIO_BACKGROUND"
72+
)) {
73+
super.child(null, "uses-permission")
74+
.attr(ANDROID_NAMESPACE, "name", android.R.attr.name, TYPE_STRING, permission)
75+
}
7076
}
7177

7278
return when (name) {

0 commit comments

Comments
 (0)