Vehicle properties
Power & shutdown
AP_POWER_BOOTUP_REASON
What it is
Property to report bootup reason for the current power on. This is a static property that will not change for the whole duration until power off. For example, even if user presses power on button after automatic power on with door unlock, bootup reason must stay with VehicleApPowerBootupReason#USER_UNLOCK.
int32Values[0] must be VehicleApPowerBootupReason.
How the ID is built
A property ID is a 32-bit value packing four fields. Reading 0x11400a02 apart:
| Field | Mask | Value | Means |
|---|---|---|---|
| Group | 0xf0000000 | 0x10000000 | SYSTEM |
| Area | 0x0f000000 | 0x01000000 | GLOBAL |
| Type | 0x00ff0000 | 0x00400000 | INT32 |
| Ordinal | 0x0000ffff | 0x00000a02 | 0xa02 |
Reading it from an app
CarPropertyManager mgr = (CarPropertyManager)
car.getCarManager(Car.PROPERTY_SERVICE);
int value =
mgr.getIntProperty(VehiclePropertyIds.AP_POWER_BOOTUP_REASON, 0);This property is read-only — writes are rejected. It is static for the life of the vehicle, so read it once and cache it.

