commit | f3cf6debb456109ce8c8e18e59835e45df38a538 | [log] [tgz] |
---|---|---|
author | Yi-an Chen <theianchen@google.com> | Wed Feb 21 01:56:22 2024 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Thu May 09 18:26:44 2024 +0000 |
tree | 1b576e6f6c26115bab4a9c67fdabd6bfab6f63e1 | |
parent | 34a3a9c7df9b04d47924a271ec51a2158685ccc9 [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 24D1-dev is based on 24Q2-release. Therefore, we merged this CL to 24D1-dev.