Skip to content

Commit 20560a3

Browse files
committed
added dangerous permissions
1 parent f8fddb9 commit 20560a3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/processing/mode/android/Permissions.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,34 @@ public String getMenuTitle() {
466466
"WRITE_SYNC_SETTINGS", "Allows applications to write the sync settings."
467467
};
468468

469+
// Dangerous permissions that need runtime approval:
470+
// https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous
471+
public static final String[] dangerous = {
472+
"READ_CALENDAR",
473+
"WRITE_CALENDAR",
474+
"CAMERA",
475+
"READ_CONTACTS",
476+
"WRITE_CONTACTS",
477+
"GET_ACCOUNTS",
478+
"ACCESS_FINE_LOCATION",
479+
"ACCESS_COARSE_LOCATION",
480+
"RECORD_AUDIO",
481+
"READ_PHONE_STATE",
482+
"CALL_PHONE",
483+
"READ_CALL_LOG",
484+
"WRITE_CALL_LOG",
485+
"ADD_VOICEMAIL",
486+
"USE_SIP",
487+
"PROCESS_OUTGOING_CALLS",
488+
"SEND_SMS",
489+
"RECEIVE_SMS",
490+
"READ_SMS",
491+
"RECEIVE_WAP_PUSH",
492+
"RECEIVE_MMS",
493+
"READ_EXTERNAL_STORAGE",
494+
"WRITE_EXTERNAL_STORAGE"
495+
};
496+
469497
static String[] title;
470498
static String[] description;
471499
static int count;

0 commit comments

Comments
 (0)