Can only get 4 properties?
- Dominant language
- Java
- Stars
- 464
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
Any thoughts why I can only get 4 properties?
CarPropertyConfig{mPropertyId= 287310850 > PARKING_BRAKE_ON
CarPropertyConfig{mPropertyId= 289408000 > GEAR_SELECTION
CarPropertyConfig{mPropertyId= 289408001 > CURRENT_GEAR
CarPropertyConfig{mPropertyId= 289408009 > IGNITION_STATE
When I list all properties, I only see the above 4:
```
// Create a list of properties in debug window
val carPropertyList = carPropertyManager.propertyList
Log.d(TAG, "carPropertyList: " + carPropertyList.toString())
for (i in 0 until carPropertyList.size) {
val carProperty = carPropertyList[i]
data.add(carProperty.toString())
}
```
If I try to register any other property, I get an error:
E/CarPropertyManager: registerListener: propId is not in config list: 291504647
Here's the code I try to use:
```
// Subscribes to the car speed events.
carPropertyManager.registerCallback(
carPropertyCarSpeedListener,
VehiclePropertyIds.PERF_VEHICLE_SPEED,
CarPropertyManager.SENSOR_RATE_ONCHANGE
)
```
I did add CAR_SPEED permission to my manifest:
```
```
Contributor guide
Research direction
Start with carPropertyManager.propertyList and registerCallback, then compare the available IDs with VehiclePropertyIds.PERF_VEHICLE_SPEED and the CAR_SPEED manifest permission. Done means identifying why the requested property is absent from the configuration and documenting the required condition or change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100