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

Commit 140e55b4 authored by Michael Groover's avatar Michael Groover
Browse files

Add READ_PHONE_STATE back to pregranted phone permissions

When READ_PHONE_STATE was moved from a runtime permission to an install
permission it was removed from the default phone permissions grant. Now
that READ_PHONE_STATE has been reverted back to a runtime permission it
needs to be added back to the list of phone permissions that are
pregranted.

Bug: 154572075
Bug: 154567729
Test: Verified com.google.shared.uid was granted READ_PHONE_STATE
Change-Id: I0e0727ed92cbf881d89d56de4e509fb1a9073556
parent 999901aa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -125,6 +125,7 @@ public final class DefaultPermissionGrantPolicy {


    static {
        PHONE_PERMISSIONS.add(Manifest.permission.READ_PHONE_STATE);
        PHONE_PERMISSIONS.add(Manifest.permission.CALL_PHONE);
        PHONE_PERMISSIONS.add(Manifest.permission.READ_CALL_LOG);
        PHONE_PERMISSIONS.add(Manifest.permission.WRITE_CALL_LOG);