mirror of
https://github.com/geode-sdk/geode.git
synced 2025-06-15 23:48:02 -04:00
remove deprecated permissions
This commit is contained in:
parent
06235634bd
commit
b082dd1a9c
2 changed files with 2 additions and 8 deletions
loader
|
@ -6,11 +6,8 @@
|
||||||
|
|
||||||
namespace geode::utils::permission {
|
namespace geode::utils::permission {
|
||||||
enum class Permission {
|
enum class Permission {
|
||||||
ReadAudio [[deprecated("This permission is Android 13+ specific! Use ReadFiles instead.")]],
|
ReadAllFiles = 0x3, // maintain compatibility with some older mods
|
||||||
ReadImages [[deprecated("This permission is Android 13+ specific! Use ReadFiles instead.")]],
|
RecordAudio
|
||||||
ReadVideo [[deprecated("This permission is Android 13+ specific! Use ReadFiles instead.")]],
|
|
||||||
ReadAllFiles,
|
|
||||||
RecordAudio,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -321,9 +321,6 @@ static const char* permissionToName(Permission permission) {
|
||||||
#define PERM(x) "android.permission." x
|
#define PERM(x) "android.permission." x
|
||||||
#define INTERNAL_PERM(x) "geode.permission_internal." x
|
#define INTERNAL_PERM(x) "geode.permission_internal." x
|
||||||
switch (permission) {
|
switch (permission) {
|
||||||
case Permission::ReadAudio: return PERM("READ_MEDIA_AUDIO");
|
|
||||||
case Permission::ReadImages: return PERM("READ_MEDIA_IMAGES");
|
|
||||||
case Permission::ReadVideo: return PERM("READ_MEDIA_VIDEO");
|
|
||||||
case Permission::RecordAudio: return PERM("RECORD_AUDIO");
|
case Permission::RecordAudio: return PERM("RECORD_AUDIO");
|
||||||
case Permission::ReadAllFiles: return INTERNAL_PERM("MANAGE_ALL_FILES");
|
case Permission::ReadAllFiles: return INTERNAL_PERM("MANAGE_ALL_FILES");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue