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
Change-Id: I7336f2fc78804f26e4b2a329870ecdea776595d8
Merged-In: Ie2f43663bc71a06ffadb868d2d0eea5ee78f76e5
1 file changed