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

Commit 743bebac authored by Malcolm Chen's avatar Malcolm Chen
Browse files

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

Bug: 133379187
Test: build
Change-Id: Icceae37faf6a87b7176e60ac633f9affac98f375
Merged-In: Icceae37faf6a87b7176e60ac633f9affac98f375
parent d459194b
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);
        }
    }
}