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

Commit bc8e0b1a authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Gerrit Code Review
Browse files

Merge "Add System API to indicate whether a subscription can be disabled."

parents c353de47 743bebac
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -3764,4 +3764,20 @@ public class SubscriptionController extends ISub.Stub {
            Binder.restoreCallingIdentity(token);
        }
    }

    /**
     * Whether it's supported to disable / re-enable a subscription on a physical (non-euicc) SIM.
     */
    @Override
    public boolean canDisablePhysicalSubscription() {
        enforceReadPrivilegedPhoneState("canToggleUiccApplicationsEnablement");

        final long identity = Binder.clearCallingIdentity();
        try {
            // TODO: b/133379187
            return false;
        } finally {
            Binder.restoreCallingIdentity(identity);
        }
    }
}