commit | f02c71c2bad4c29eaf4ce20ef89b3c4f9f46dfe8 | [log] [tgz] |
---|---|---|
author | Yi-an Chen <theianchen@google.com> | Wed Feb 21 01:56:22 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Apr 12 21:21:43 2024 +0000 |
tree | 149e4a194d7985e267a30d5f4cbbc542bb41f51f | |
parent | 37bdd2c2b35bfdebdfd0e192fff03c1661efe971 [diff] |
Fix error handling for non-dynamic permissions We only allow removing dynamic permissions. When removePermission() is called for a non-dynamic permission, in addition to logging it, we should also return early to avoid the removePermission() call. Test: manual Bug: 321555066 Fixes: 321711213 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:528a87e90ff9354581d54fd37fbe9f95cccbcdb1) Merged-In: Ie2f43663bc71a06ffadb868d2d0eea5ee78f76e5 Change-Id: Ie2f43663bc71a06ffadb868d2d0eea5ee78f76e5