Skip to main content

Permission

Vehicle SDK APIs require Pleos vehicle permissions in the Android manifest. See @RequiresPermission on each API in PleosPermission.

Permission types

PleosPermission constants use the two prefixes below. Declare them in the manifest as pleos.car.permission.{CONSTANT_NAME}.

PrefixExamplePurpose
CAR_*CAR_DOORSpleos.car.permission.CAR_DOORSDomain data read (get)
CONTROL_CAR_*CONTROL_CAR_DOORSDomain control (set)

Representative permissions by domain (CAR_*)

These are typical read permissions per domain. Each API may require a different permission—check @RequiresPermission before calling.

DomainPleosPermission constantManifest android:name
DoorCAR_DOORSpleos.car.permission.CAR_DOORS
Window, WiperCAR_WINDOWSpleos.car.permission.CAR_WINDOWS
HVACCAR_CLIMATEpleos.car.permission.CAR_CLIMATE
DrivingMode, Brake, OdometerCAR_DRIVEpleos.car.permission.CAR_DRIVE
EvBatteryCAR_ENERGYpleos.car.permission.CAR_ENERGY
CarInfo, DisplayCAR_INFOpleos.car.permission.CAR_INFO
Light, TurnSignalCAR_LIGHTSpleos.car.permission.CAR_LIGHTS
SideMirrorCAR_MIRRORSpleos.car.permission.CAR_MIRRORS
Safety, TireCAR_SAFETYpleos.car.permission.CAR_SAFETY
SeatCAR_SEATSpleos.car.permission.CAR_SEATS

AndroidManifest example

Declare only permissions for domains you use. For dependencies, see Project Setup.

AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="pleos.car.permission.CAR_DOORS" />
<uses-permission android:name="pleos.car.permission.CAR_INFO" />

</manifest>