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

Skip to content
Commit 19b5134d authored by Jeff Davidson's avatar Jeff Davidson
Browse files

Allow carrier apps to send unpersisted SMSes without SEND_SMS.

The new rule is that SEND_SMS is only required for apps which gain
access to this API via MODIFY_PHONE_STATE; carrier-privileged apps
(and carrier-nominated IMS apps) no longer need an additional runtime
permission.

This CL also consolidates permission checks; the SEND_SMS permission
is always checked directly next to the OP_SEND_SMS AppOps bit for
clarity, and otherwise all permissions are checked at once rather than
interspersed throughout method handling.

Bug: 70177947
Bug: 70041899
Test: Flash / boot; TreeHugger; Unit/CTS tests in topic
Change-Id: I3b1fdda4c5b3929df38ec183149557195908dd5d
parent f675639d
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