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

Commit f4af1f71 authored by Jack Yu's avatar Jack Yu
Browse files

Added permission check for notifying subscription changed

Added permission check for notifying subscription changed
event.

This is same as the reverted ag/20813431.

Bug: 239607619
Test: Manual
Change-Id: I0103d62a5adcfb4f5bdcd05bb236029dd04acdc8
parent dbed72c3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1000,6 +1000,10 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
    @Override
    public void notifySubscriptionInfoChanged() {
        if (VDBG) log("notifySubscriptionInfoChanged:");
        if (!checkNotifyPermission("notifySubscriptionInfoChanged()")) {
            return;
        }

        synchronized (mRecords) {
            if (!mHasNotifySubscriptionInfoChangedOccurred) {
                log("notifySubscriptionInfoChanged: first invocation mRecords.size="
@@ -1026,6 +1030,10 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
    @Override
    public void notifyOpportunisticSubscriptionInfoChanged() {
        if (VDBG) log("notifyOpptSubscriptionInfoChanged:");
        if (!checkNotifyPermission("notifyOpportunisticSubscriptionInfoChanged()")) {
            return;
        }

        synchronized (mRecords) {
            if (!mHasNotifyOpportunisticSubscriptionInfoChangedOccurred) {
                log("notifyOpptSubscriptionInfoChanged: first invocation mRecords.size="