diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-08-01 01:10:01 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-08-01 01:10:01 +0000 |
commit | f9a252f4a3b621daabd330531fce555300a1d4c0 (patch) | |
tree | 8dc2ba8c312d1de5db0091e4dfd47647d04f7438 | |
parent | fd981450f5fbb28ad30dccd2290a888eb041f117 (diff) | |
parent | 12c1d7322de69cafd22dee63b8b2c2f0f3bf3d98 (diff) | |
download | Car-android14-s2-release.tar.gz |
Merge cherrypicks of ['googleplex-android-review.googlesource.com/24199511'] into udc-release.android-security-14.0.0_r9android-security-14.0.0_r8android-security-14.0.0_r7android-security-14.0.0_r6android-security-14.0.0_r5android-security-14.0.0_r4android-security-14.0.0_r3android-security-14.0.0_r2android-14.0.0_r28android-14.0.0_r2android-14.0.0_r15android-14.0.0_r14android-14.0.0_r13android-14.0.0_r1android14-security-releaseandroid14-s2-releaseandroid14-s1-releaseandroid14-release
Change-Id: I31cebc92fe6a0b1685a44d0dd56030af534b6d3d
-rw-r--r-- | service/src/com/android/car/CarPropertyService.java | 5 |
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); } |