Vehicle properties
Engine & powertrain
PARKING_BRAKE_AUTO_APPLY
What it is
Auto-apply parking brake.
This property is true indicates that the car's automatic parking brake feature is currently enabled. False indicates that the car's automatic parking brake feature is currently disabled.
This property is often confused with PARKING_BRAKE_ON. The difference is that PARKING_BRAKE_ON describes whether the actual parking brake is currently on/off, whereas PARKING_BRAKE_AUTO_APPLY describes whether the feature of automatic parking brake is enabled/ disabled, and does not describe the current state of the actual parking brake.
How the ID is built
A property ID is a 32-bit value packing four fields. Reading 0x11200403 apart:
| Field | Mask | Value | Means |
|---|---|---|---|
| Group | 0xf0000000 | 0x10000000 | SYSTEM |
| Area | 0x0f000000 | 0x01000000 | GLOBAL |
| Type | 0x00ff0000 | 0x00200000 | BOOLEAN |
| Ordinal | 0x0000ffff | 0x00000403 | 0x403 |
Reading it from an app
CarPropertyManager mgr = (CarPropertyManager)
car.getCarManager(Car.PROPERTY_SERVICE);
boolean value =
mgr.getBooleanProperty(VehiclePropertyIds.PARKING_BRAKE_AUTO_APPLY, 0);This property is read-only — writes are rejected. It fires a callback whenever the value changes.

