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

Skip to content
Commit 742b31f8 authored by William Escande's avatar William Escande
Browse files

Prevent un-necessary call to framework

The Bluetooth framework API are requiring permission. If we want to make
sure our permission works correctly, we need to add some additional
linter that does it for us.

Unfortunately, when making re-entrang calls, it require internal code to
be annotate with permission, which bloat the code and remove entirely
the purpose of the annotation.

Instead, make sure that once we are within the boundary of the Bluetooth
app, remove call to framework by an internal code.
This has another advantage of shortening the stack trace call and making
investigation easy.

Example of such modification:

device.getBondState() -> AdapterService.getBondState(device)

Bug: 349682934
Test: m Bluetooth
Flag: Exempt refactor
Change-Id: Iad72b1962b1807c60491d496e00514b3225835ee
parent 33a5876f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment