Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0a2b97d6 authored by Bernardo Rufino's avatar Bernardo Rufino
Browse files

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
parent d69bd6a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment