Refuse to adopt shell permissions if they were already adopted.

This does not work because when the permissions are dropped, all
previously-adopted permissions will be dropped as well. Attempts
to do so will likely result in hard-to-understand test failures.

On S+, where we can detect this, fail with a clear error message.

Test: treehugger
Bug: 225092753
Change-Id: I1587ab77f885c595f0b9168c6739303c6227218e
1 file changed
tree: 841c23635cd839b55488fceb72e9e2b8c57e0544
  1. staticlibs/