Skip to content

Instantly share code, notes, and snippets.

@caneryilmaz52
Created May 16, 2023 08:51
Show Gist options
  • Save caneryilmaz52/6f1600ac62dffa1cf90cb61f304783f1 to your computer and use it in GitHub Desktop.
Save caneryilmaz52/6f1600ac62dffa1cf90cb61f304783f1 to your computer and use it in GitHub Desktop.
Android Dangerous Permissions List
/**
* An enum class for Android dangerous permissions list
* Created from "https://developer.android.com/reference/android/Manifest.permission"
* Protection level: "dangerous"
*/
enum class DangerousPermission(
val permissionName: String, val title: Int, val description: Int
) {
ACCEPT_HANDOVER(
Manifest.permission.ACCEPT_HANDOVER,
R.string.accept_handover,
R.string.accept_handover_description
),
ACCESS_BACKGROUND_LOCATION(
Manifest.permission.ACCESS_BACKGROUND_LOCATION,
R.string.access_background_location,
R.string.access_background_location_description
),
ACCESS_COARSE_LOCATION(
Manifest.permission.ACCESS_COARSE_LOCATION,
R.string.access_coarse_location,
R.string.access_coarse_location_description
),
ACCESS_FINE_LOCATION(
Manifest.permission.ACCESS_FINE_LOCATION,
R.string.access_fine_location,
R.string.access_fine_location_description
),
ACCESS_MEDIA_LOCATION(
Manifest.permission.ACCESS_MEDIA_LOCATION,
R.string.access_media_location,
R.string.access_media_location_description
),
ACTIVITY_RECOGNITION(
Manifest.permission.ACTIVITY_RECOGNITION,
R.string.activity_recognition,
R.string.activity_recognition_description
),
ADD_VOICEMAIL(
Manifest.permission.ADD_VOICEMAIL,
R.string.add_voicemail,
R.string.add_voicemail_description
),
ANSWER_PHONE_CALLS(
Manifest.permission.ANSWER_PHONE_CALLS,
R.string.answer_phone_calls,
R.string.answer_phone_calls_description
),
BLUETOOTH_ADVERTISE(
Manifest.permission.BLUETOOTH_ADVERTISE,
R.string.bluetooth_advertise,
R.string.bluetooth_advertise_description
),
BLUETOOTH_CONNECT(
Manifest.permission.BLUETOOTH_CONNECT,
R.string.bluetooth_connect,
R.string.bluetooth_connect_description
),
BLUETOOTH_SCAN(
Manifest.permission.BLUETOOTH_SCAN,
R.string.bluetooth_scan,
R.string.bluetooth_scan_description
),
BODY_SENSORS(
Manifest.permission.BODY_SENSORS,
R.string.body_sensors,
R.string.body_sensors_description
),
BODY_SENSORS_BACKGROUND(
Manifest.permission.BODY_SENSORS_BACKGROUND,
R.string.body_sensors_background,
R.string.body_sensors_background_description
),
CALL_PHONE(
Manifest.permission.CALL_PHONE,
R.string.call_phone,
R.string.call_phone_description
),
CAMERA(
Manifest.permission.CAMERA,
R.string.camera,
R.string.camera_description
),
GET_ACCOUNTS(
Manifest.permission.GET_ACCOUNTS,
R.string.get_accounts,
R.string.get_accounts_description
),
NEARBY_WIFI_DEVICES(
Manifest.permission.NEARBY_WIFI_DEVICES,
R.string.nearby_wifi_devices,
R.string.nearby_wifi_devices_description
),
POST_NOTIFICATIONS(
Manifest.permission.POST_NOTIFICATIONS,
R.string.post_notifications,
R.string.post_notifications_description
),
PROCESS_OUTGOING_CALLS(
Manifest.permission.PROCESS_OUTGOING_CALLS,
R.string.process_outgoing_calls,
R.string.process_outgoing_calls_description
),
READ_CALENDAR(
Manifest.permission.READ_CALENDAR,
R.string.read_calendar,
R.string.read_calendar_description
),
READ_CALL_LOG(
Manifest.permission.READ_CALL_LOG,
R.string.read_call_log,
R.string.read_call_log_description
),
READ_CONTACTS(
Manifest.permission.READ_CONTACTS,
R.string.read_contacts,
R.string.read_contacts_description
),
READ_EXTERNAL_STORAGE(
Manifest.permission.READ_EXTERNAL_STORAGE,
R.string.read_external_storage,
R.string.read_external_storage_description
),
READ_MEDIA_AUDIO(
Manifest.permission.READ_MEDIA_AUDIO,
R.string.read_media_audio,
R.string.read_media_audio_description
),
READ_MEDIA_IMAGES(
Manifest.permission.READ_MEDIA_IMAGES,
R.string.read_media_images,
R.string.read_media_images_description
),
READ_MEDIA_VIDEO(
Manifest.permission.READ_MEDIA_VIDEO,
R.string.read_media_video,
R.string.read_media_video_description
),
READ_PHONE_NUMBERS(
Manifest.permission.READ_PHONE_NUMBERS,
R.string.read_phone_numbers,
R.string.read_phone_numbers_description
),
READ_PHONE_STATE(
Manifest.permission.READ_PHONE_STATE,
R.string.read_phone_state,
R.string.read_phone_state_description
),
READ_SMS(
Manifest.permission.READ_SMS,
R.string.read_sms,
R.string.read_sms_description
),
RECEIVE_MMS(
Manifest.permission.RECEIVE_MMS,
R.string.receive_mms,
R.string.receive_mms_description
),
RECEIVE_SMS(
Manifest.permission.RECEIVE_SMS,
R.string.receive_sms,
R.string.receive_sms_description
),
RECEIVE_WAP_PUSH(
Manifest.permission.RECEIVE_WAP_PUSH,
R.string.receive_wap_push,
R.string.receive_wap_push_description
),
RECORD_AUDIO(
Manifest.permission.RECORD_AUDIO,
R.string.record_audio,
R.string.record_audio_description
),
SEND_SMS(
Manifest.permission.SEND_SMS,
R.string.send_sms,
R.string.send_sms_description
),
USE_SIP(
Manifest.permission.USE_SIP,
R.string.use_sip,
R.string.use_sip_description
),
UWB_RANGING(
Manifest.permission.UWB_RANGING,
R.string.uwb_ranging,
R.string.uwb_ranging_description
),
WRITE_CALENDAR(
Manifest.permission.WRITE_CALENDAR,
R.string.write_calendar,
R.string.write_calendar_description
),
WRITE_CALL_LOG(
Manifest.permission.WRITE_CALL_LOG,
R.string.write_call_log,
R.string.write_call_log_description
),
WRITE_CONTACTS(
Manifest.permission.WRITE_CONTACTS,
R.string.write_contacts,
R.string.write_contacts_description
),
WRITE_EXTERNAL_STORAGE(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
R.string.write_external_storage,
R.string.write_external_storage_description
)
}
<string name="accept_handover">ACCEPT HANDOVER</string>
<string name="accept_handover_description">Allows a calling app to continue a call which was started in another app. An example is a video calling app that wants to continue a voice call on the user\'s mobile network.</string>
<string name="access_background_location">ACCESS BACKGROUND LOCATION</string>
<string name="access_background_location_description">Allows an app to access location in the background.</string>
<string name="access_coarse_location">ACCESS COARSE LOCATION</string>
<string name="access_coarse_location_description">Allows an app to access approximate location.</string>
<string name="access_fine_location">ACCESS FINE LOCATION</string>
<string name="access_fine_location_description">Allows an app to access precise location.</string>
<string name="access_media_location">ACCESS MEDIA LOCATION</string>
<string name="access_media_location_description">Allows an application to access any geographic locations persisted in the user\'s shared collection.</string>
<string name="activity_recognition">ACTIVITY RECOGNITION</string>
<string name="activity_recognition_description">Allows an application to recognize physical activity.</string>
<string name="add_voicemail">ADD VOICEMAIL</string>
<string name="add_voicemail_description">Allows an application to add voicemails into the system.</string>
<string name="answer_phone_calls">ANSWER PHONE CALLS</string>
<string name="answer_phone_calls_description">Allows the app to answer an incoming phone call.</string>
<string name="bluetooth_advertise">BLUETOOTH ADVERTISE</string>
<string name="bluetooth_advertise_description">Required to be able to advertise to nearby Bluetooth devices.</string>
<string name="bluetooth_connect">BLUETOOTH CONNECT</string>
<string name="bluetooth_connect_description">Required to be able to connect to paired Bluetooth devices.</string>
<string name="bluetooth_scan">BLUETOOTH SCAN</string>
<string name="bluetooth_scan_description">Required to be able to discover and pair nearby Bluetooth devices.</string>
<string name="body_sensors">BODY SENSORS</string>
<string name="body_sensors_description">Allows an application to access data from sensors that the user uses to measure what is happening inside their body, such as heart rate.</string>
<string name="body_sensors_background">BODY SENSORS BACKGROUND</string>
<string name="body_sensors_background_description">Allows an application to access data from sensors that the user uses to measure what is happening inside their body, such as heart rate.</string>
<string name="call_phone">CALL PHONE</string>
<string name="call_phone_description">Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call.</string>
<string name="camera">CAMERA</string>
<string name="camera_description">Required to be able to access the camera device.</string>
<string name="get_accounts">GET ACCOUNTS</string>
<string name="get_accounts_description">Allows access to the list of accounts in the Accounts Service.</string>
<string name="nearby_wifi_devices">NEARBY WIFI DEVICES</string>
<string name="nearby_wifi_devices_description">Required to be able to advertise and connect to nearby devices via Wi-Fi.</string>
<string name="post_notifications">POST NOTIFICATIONS</string>
<string name="post_notifications_description">Allows an app to post notifications.</string>
<string name="process_outgoing_calls">PROCESS OUTGOING CALLS</string>
<string name="process_outgoing_calls_description">Allows an application to see the number being dialed during an outgoing call with the option to redirect the call to a different number or abort the call altogether.</string>
<string name="read_calendar">READ CALENDAR</string>
<string name="read_calendar_description">Allows an application to read the user\'s calendar data.</string>
<string name="read_call_log">READ CALL LOG</string>
<string name="read_call_log_description">Allows an application to read the user\'s call log.</string>
<string name="read_contacts">READ CONTACTS</string>
<string name="read_contacts_description">Allows an application to read the user\'s contacts data.</string>
<string name="read_external_storage">READ EXTERNAL STORAGE</string>
<string name="read_external_storage_description">Allows an application to read from external storage.</string>
<string name="read_media_audio">READ MEDIA AUDIO</string>
<string name="read_media_audio_description">Allows an application to read audio files from external storage.</string>
<string name="read_media_images">READ MEDIA IMAGES</string>
<string name="read_media_images_description">Allows an application to read image files from external storage.</string>
<string name="read_media_video">READ MEDIA VIDEO</string>
<string name="read_media_video_description">Allows an application to read video files from external storage.</string>
<string name="read_phone_numbers">READ PHONE NUMBERS</string>
<string name="read_phone_numbers_description">Allows read access to the device\'s phone number(s).</string>
<string name="read_phone_state">READ PHONE STATE</string>
<string name="read_phone_state_description">Allows read only access to phone state, including the current cellular network information, the status of any ongoing calls, and a list of any PhoneAccounts registered on the device.</string>
<string name="read_sms">READ SMS</string>
<string name="read_sms_description">Allows an application to read SMS messages.</string>
<string name="receive_mms">RECEIVE MMS</string>
<string name="receive_mms_description">Allows an application to monitor incoming MMS messages.</string>
<string name="receive_sms">RECEIVE SMS</string>
<string name="receive_sms_description">Allows an application to receive SMS messages.</string>
<string name="receive_wap_push">RECEIVE WAP PUSH</string>
<string name="receive_wap_push_description">Allows an application to receive WAP push messages.</string>
<string name="record_audio">RECORD AUDIO</string>
<string name="record_audio_description">Allows an application to record audio.</string>
<string name="send_sms">SEND SMS</string>
<string name="send_sms_description">Allows an application to send SMS messages.</string>
<string name="use_sip">USE SIP</string>
<string name="use_sip_description">Allows an application to use SIP service.</string>
<string name="uwb_ranging">UWB RANGING</string>
<string name="uwb_ranging_description">Required to be able to range to devices using ultra-wideband.</string>
<string name="write_calendar">WRITE CALENDAR</string>
<string name="write_calendar_description">Allows an application to write the user\'s calendar data.</string>
<string name="write_call_log">WRITE CALL LOG</string>
<string name="write_call_log_description">Allows an application to write and read the user\'s call log data.</string>
<string name="write_contacts">WRITE CONTACTS</string>
<string name="write_contacts_description">Allows an application to write the user\'s contacts data.</string>
<string name="write_external_storage">WRITE EXTERNAL STORAGE</string>
<string name="write_external_storage_description">Allows an application to write to external storage.</string>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment