Skip to content
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:

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x01000000GLOBAL
Type0x00ff00000x00400000INT32
Ordinal0x0000ffff0x00000a020xa02

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.