Add WRITE_ALLOWLISTED_DEVICE_CONFIG perm when modifying DeviceConfig
Android 16 introduces restrictions on the DeviceConfig flags that can be modified by the shell user by removing the WRITE_DEVICE_CONFIG permission from this user and replacing it with the WRITE_ALLOWLISTED_DEVICE_CONFIG permission; with this permission, only those flags that have been allowlisted can be modified. This commit adds the ALLOWLISTED permission to any test that explicitly adopts the shell permission identity with the WRITE_DEVICE_CONFIG permission; the WRITE_DEVICE_CONFIG permission is not removed to ensure tests do not break when run on previous platform releases without the ALLOWLISTED permission. Bug: 364083026 Flag: TEST_ONLY Test: Manually ran all modified tests Change-Id: Ib832d86a8100bb2118372d08c4320394f69dc5b8
Loading
Please register or sign in to comment