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

Commit 689eeb8e authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Add prototype of canCallPhone with no feature ID.

Adding a prototype of canCallPhone which has no feature ID; this is to
fix the fact that a bunch of changes related to feature IDs were not
cherry-picked to AOSP and there is a huge multi-project batch of changes
in AOSP that can't merge as a result.

Test: Manual testing of change.
Test: Re-build cherry-picked code to verify resolution of build issue.
Bug: 62151032
Change-Id: I68e8a2bbfa241beac9ec2313081aa12a5afd9cd0
parent aa2cdd30
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2073,6 +2073,10 @@ public class TelecomServiceImpl {
        return false;
    }

    private boolean canCallPhone(String callingPackage, String message) {
        return canCallPhone(callingPackage, null /* featureId */, message);
    }

    private boolean canCallPhone(String callingPackage, String callingFeatureId, String message) {
        // The system/default dialer can always read phone state - so that emergency calls will
        // still work.