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

Commit a371b678 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Android (Google) Code Review
Browse files

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

parents 1bb09c8b ee84b698
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -3795,4 +3795,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);
        }
    }
}