diff options
author | Bernardo Rufino <brufino@google.com> | 2021-01-11 14:42:40 +0000 |
---|---|---|
committer | Bernardo Rufino <brufino@google.com> | 2021-01-12 10:38:20 +0000 |
commit | 0a2b97d635d0ad6d61e99409b9817f8d4662ca71 (patch) | |
tree | e8959ffb53f109d57b58e788a9885db71720d618 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d69bd6a271bb32c3f48a0f8352010d144fac7b43 (diff) |
Restrict StatusBarManager.collapsePanels() for targetSdk < S
In order to lock down the abuse vector (b/137274359) we need to restrict
this API for targetSdk < S too. So, using the same exemptions of
Intent.ACSD to allow legit use-cases, otherwise drop the call instead of
throwing because we're not gating it. Also allowing for holders of
permission STATUS_BAR since that's the permission we require when
targetSdk >= S.
Bug: 159105552
Test: CTS coming
Test: Verify call to collapsePanels() is not allowed
Test: Verify call to collapsePanels() while processing a trampoline with
permission EXPAND_STATUS_BAR is allowed
Change-Id: I0b986f53df9b7773a33bdd2e57cdd241ff9026b0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions