diff --git a/Libraries/PermissionsAndroid/NativePermissionsAndroid.js b/Libraries/PermissionsAndroid/NativePermissionsAndroid.js index 76b4742398de26..f567c39eebec2f 100644 --- a/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/NativePermissionsAndroid.js @@ -35,12 +35,16 @@ export type PermissionType = | 'android.permission.USE_SIP' | 'android.permission.PROCESS_OUTGOING_CALLS' | 'android.permission.BODY_SENSORS' + | 'android.permission.BODY_SENSORS_BACKGROUND' | 'android.permission.SEND_SMS' | 'android.permission.RECEIVE_SMS' | 'android.permission.READ_SMS' | 'android.permission.RECEIVE_WAP_PUSH' | 'android.permission.RECEIVE_MMS' | 'android.permission.READ_EXTERNAL_STORAGE' + | 'android.permission.READ_MEDIA_IMAGES', + | 'android.permission.READ_MEDIA_VIDEO', + | 'android.permission.READ_MEDIA_AUDIO', | 'android.permission.WRITE_EXTERNAL_STORAGE' | 'android.permission.BLUETOOTH_CONNECT' | 'android.permission.BLUETOOTH_SCAN' @@ -50,7 +54,9 @@ export type PermissionType = | 'android.permission.ACTIVITY_RECOGNITION' | 'android.permission.ANSWER_PHONE_CALLS' | 'android.permission.READ_PHONE_NUMBERS' - | 'android.permission.UWB_RANGING'; + | 'android.permission.UWB_RANGING' + | 'android.permission.POST_NOTIFICATIONS' + | 'android.permission.NEARBY_WIFI_DEVICES'; */ export interface Spec extends TurboModule { diff --git a/Libraries/PermissionsAndroid/PermissionsAndroid.js b/Libraries/PermissionsAndroid/PermissionsAndroid.js index 227af12e15f9c1..e8443c3c05d4bd 100644 --- a/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -52,12 +52,16 @@ const PERMISSIONS = Object.freeze({ USE_SIP: 'android.permission.USE_SIP', PROCESS_OUTGOING_CALLS: 'android.permission.PROCESS_OUTGOING_CALLS', BODY_SENSORS: 'android.permission.BODY_SENSORS', + BODY_SENSORS_BACKGROUND: 'android.permission.BODY_SENSORS_BACKGROUND', SEND_SMS: 'android.permission.SEND_SMS', RECEIVE_SMS: 'android.permission.RECEIVE_SMS', READ_SMS: 'android.permission.READ_SMS', RECEIVE_WAP_PUSH: 'android.permission.RECEIVE_WAP_PUSH', RECEIVE_MMS: 'android.permission.RECEIVE_MMS', READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE', + READ_MEDIA_IMAGES: 'android.permission.READ_MEDIA_IMAGES', + READ_MEDIA_VIDEO: 'android.permission.READ_MEDIA_VIDEO', + READ_MEDIA_AUDIO: 'android.permission.READ_MEDIA_AUDIO', WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE', BLUETOOTH_CONNECT: 'android.permission.BLUETOOTH_CONNECT', BLUETOOTH_SCAN: 'android.permission.BLUETOOTH_SCAN', @@ -68,6 +72,8 @@ const PERMISSIONS = Object.freeze({ ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS', READ_PHONE_NUMBERS: 'android.permission.READ_PHONE_NUMBERS', UWB_RANGING: 'android.permission.UWB_RANGING', + POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', + NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES', }); /** @@ -90,14 +96,20 @@ class PermissionsAndroid { BLUETOOTH_CONNECT: string, BLUETOOTH_SCAN: string, BODY_SENSORS: string, + BODY_SENSORS_BACKGROUND: string, CALL_PHONE: string, CAMERA: string, GET_ACCOUNTS: string, + NEARBY_WIFI_DEVICES: string, + POST_NOTIFICATION: string, PROCESS_OUTGOING_CALLS: string, READ_CALENDAR: string, READ_CALL_LOG: string, READ_CONTACTS: string, READ_EXTERNAL_STORAGE: string, + READ_MEDIA_IMAGES: string, + READ_MEDIA_VIDEO: string, + READ_MEDIA_AUDIO: string, READ_PHONE_NUMBERS: string, READ_PHONE_STATE: string, READ_SMS: string,