public static class PermissionsServices.Permission extends Object
Documentation for each constant elaborates further on the documentation provided by Google. Added in daily build 2016.2828.
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_COARSE_LOCATION
Allows an app to access approximate location.
|
static String |
ACCESS_FINE_LOCATION
Allows an app to access precise location.
|
static String |
ADD_VOICEMAIL
Allows an application to add voicemails into the system.
|
static String |
BODY_SENSORS
Allows an application to access data from sensors that the user uses to
measure what is happening inside his/her body, such as heart rate.
|
static String |
CALL_PHONE
Allows an application to initiate a phone call without going through the
Dialer user interface for the user to confirm the call.
|
static String |
CAMERA
Required to be able to access the camera device.
|
static String |
GET_ACCOUNTS
Allows access to the list of accounts in the Accounts Service.
|
static String |
PROCESS_OUTGOING_CALLS
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.
|
static String |
READ_CALENDAR
Allows an application to read the user's calendar data.
|
static String |
READ_CALL_LOG
Allows an application to read the user's call log.
|
static String |
READ_CELL_BROADCASTS
Allows an application to read previously received cell broadcast messages and to register a content observer to get
notifications when a cell broadcast has been received and added to the database.
|
static String |
READ_CONTACTS
Allows an application to read the user's contacts data.
|
static String |
READ_EXTERNAL_STORAGE
Allows an application to read from external storage.
|
static String |
READ_PHONE_STATE
Allows read only access to phone state.
|
static String |
READ_SMS
Allows an application to read SMS messages.
|
static String |
RECEIVE_MMS
Allows an application to monitor incoming MMS messages.
|
static String |
RECEIVE_SMS
Allows an application to receive SMS messages.
|
static String |
RECEIVE_WAP_PUSH
Allows an application to receive WAP push messages.
|
static String |
RECORD_AUDIO
Allows an application to record audio.
|
static String |
SEND_SMS
Allows an application to send SMS messages.
|
static String |
USE_SIP
Allows an application to use SIP service.
|
static String |
WRITE_CALENDAR
Allows an application to write the user's calendar data.
|
static String |
WRITE_CALL_LOG
Allows an application to write (but not read) the user's contacts data.
|
static String |
WRITE_CONTACTS
Allows an application to write the user's contacts data.
|
static String |
WRITE_EXTERNAL_STORAGE
Allows an application to write to external storage.
|
Constructor and Description |
---|
PermissionsServices.Permission() |
public static final String READ_CALENDAR
Permission Group: Calendar Added in API Level 1
Constant Value: "android.permission.READ_CALENDAR"
public static final String WRITE_CALENDAR
Permission Group: Calendar Added in API Level 1
Constant Value: "android.permission.WRITE_CALENDAR"
public static final String CAMERA
This will automatically enforce the <uses-feature> manifest element for all camera features. If you do not require all camera features or can properly operate if a camera is not available, then you must modify your manifest as appropriate in order to install on devices that don't support all camera features.
Permission Group: Camera Added in API Level 1
Constant Value: "android.permission.CAMERA"
public static final String READ_CONTACTS
Permission Group: Contacts Added in API Level 1
Constant Value: "android.permission.READ_CONTACTS"
public static final String WRITE_CONTACTS
Permission Group: Contacts Added in API Level 1
Constant Value: "android.permission.WRITE_CONTACTS"
public static final String GET_ACCOUNTS
Note: Beginning with Android 6.0 (API level 23), if an app shares the signature of the authenticator that manages an account, it does not need "GET_ACCOUNTS" permission to read information about that account. On Android 5.1 and lower, all apps need "GET_ACCOUNTS" permission to read information about any account.
Permission Group: Contacts Added in API Level 1
Constant Value: "android.permission.GET_ACCOUNTS"
public static final String ACCESS_FINE_LOCATION
Permission Group: Location Added in API Level 1
Constant Value: "android.permission.ACCESS_FINE_LOCATION"
public static final String ACCESS_COARSE_LOCATION
Permission Group: Location Added in API Level 1
Constant Value: "android.permission.ACCESS_COARSE_LOCATION"
public static final String RECORD_AUDIO
Permission Group: Microphone Added in API Level 1
Constant Value: "android.permission.RECORD_AUDIO"
public static final String READ_PHONE_STATE
Permission Group: Phone Added in API Level 1
Constant Value: "android.permission.READ_PHONE_STATE"
public static final String CALL_PHONE
Permission Group: Phone Added in API Level 1
Constant Value: "android.permission.CALL_PHONE"
public static final String READ_CALL_LOG
Permission Group: Phone Added in API Level 16
Constant Value: "android.permission.READ_CALL_LOG"
public static final String WRITE_CALL_LOG
Permission Group: Phone Added in API Level 16
Constant Value: "android.permission.WRITE_CALL_LOG"
public static final String ADD_VOICEMAIL
Permission Group: Phone Added in API Level 14
Constant Value: "com.android.voicemail.permission.ADD_VOICEMAIL"
public static final String USE_SIP
Permission Group: Phone Added in API Level 9
Constant Value: "android.permission.USE_SIP"
public static final String PROCESS_OUTGOING_CALLS
Permission Group: Phone Added in API Level 1
Constant Value: "android.permission.PROCESS_OUTGOING_CALLS"
public static final String BODY_SENSORS
Permission Group: Sensors Added in API Level 20
Constant Value: "android.permission.BODY_SENSORS"
public static final String SEND_SMS
Permission Group: SMS Added in API Level 1
Constant Value: "android.permission.SEND_SMS"
public static final String RECEIVE_SMS
Permission Group: SMS Added in API Level 1
Constant Value: "android.permission.RECEIVE_SMS"
public static final String READ_SMS
Permission Group: SMS Added in API Level 1
Constant Value: "android.permission.READ_SMS"
public static final String RECEIVE_WAP_PUSH
Permission Group: SMS Added in API Level 1
Constant Value: "android.permission.RECEIVE_WAP_PUSH"
public static final String RECEIVE_MMS
Permission Group: SMS Added in API Level 1
Constant Value: "android.permission.RECEIVE_MMS"
public static final String READ_CELL_BROADCASTS
WARNING! This permission is hidden in the Android source code. Use at your own risk!
Permission Group: SMS Hidden in Android source. Added approximately in API Level 16.
Constant Value: "android.permission.READ_CELL_BROADCASTS"
public static final String READ_EXTERNAL_STORAGE
Any app that declares the WRITE_EXTERNAL_STORAGE permission is implicitly granted this permission.
This permission is enforced starting in API Level 19. Before API level 19, this permission is not enforced and all apps still have access to read from external storage. You can test your app with the permission enforced by enabling Protect USB storage under Developer options in the Settings app on a device running Android 4.1 or higher.
Also starting in API level 19, this permission is not required to read/write files in your application-specific directories returned by getExternalFilesDir(String) and getExternalCacheDir().
Permission Group: STORAGE Added in API Level 16
Constant Value: "android.permission.READ_EXTERNAL_STORAGE"
public static final String WRITE_EXTERNAL_STORAGE
Starting in API Level 19, this permission is not required to read/write files in your application-specific directories returned by getExternalFilesDir(String) and getExternalCacheDir().
Permission Group: STORAGE Added in API Level 4
Constant Value: "android.permission.WRITE_EXTERNAL_STORAGE"