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

Commit 5562fc57 authored by Eugene Susla's avatar Eugene Susla
Browse files

Introduce ANSWER_PHONE_CALLS permission

See I4c33fcea6b95a30469fa6c0c37090be32b0ad52e

Test: Grant the permission and ensure the call gets answered.
Deny the permission, and ensure that the API call throws an exception.
Bug: 30932767
Change-Id: I267d60b3fd04ee4d31cdd5e622441a79883caab7
parent 79f7ecbb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -64,7 +64,8 @@ public class EventLogger {
            Manifest.permission.RECEIVE_MMS,
            Manifest.permission.READ_EXTERNAL_STORAGE,
            Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.READ_PHONE_NUMBER);
            Manifest.permission.READ_PHONE_NUMBER,
            Manifest.permission.ANSWER_PHONE_CALLS);

    /**
     * Get the first event id for the permission.