aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-31 23:21:04 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-31 23:21:04 +0000
commit8c7ebf0608b023974e561d0f2ae2f1cfdab4c319 (patch)
tree371ea3e85d9e0a452502ede72ded26580fa612fa
parentfd8c6bb8caf83df91d3e1c54c60e876f0aa9be60 (diff)
parent75838260f6e4abc260d7b72abb3d1063c96b9a0f (diff)
downloadCar-android14-d1-release.tar.gz
Change-Id: I1ef346f79b434224c2c2e030b151637d4c462b62
-rw-r--r--service/src/com/android/car/CarPropertyService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/service/src/com/android/car/CarPropertyService.java b/service/src/com/android/car/CarPropertyService.java
index e9db5adc5a..d9f89db6aa 100644
--- a/service/src/com/android/car/CarPropertyService.java
+++ b/service/src/com/android/car/CarPropertyService.java
@@ -943,6 +943,11 @@ public class CarPropertyService extends ICarProperty.Stub
Car.PERMISSION_READ_DISPLAY_UNITS);
return;
}
+ if (propertyId == VehiclePropertyIds.EV_CHARGE_SWITCH) {
+ CarServiceUtils.assertAnyPermission(mContext, readPermission,
+ Car.PERMISSION_CONTROL_CAR_ENERGY);
+ return;
+ }
CarServiceUtils.assertPermission(mContext, readPermission);
}