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

Commit c57a8121 authored by Sungcheol Ahn's avatar Sungcheol Ahn
Browse files

[satellite] Removed disallowedReason condition

Test: Manual
Bug: 372753814

Flag: com.android.internal.telephony.flags.carrier_roaming_nb_iot_ntn
Change-Id: I311b14a6091c8d3d9a760dec0b04e4d7506868fc
parent 31273d68
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -7491,15 +7491,7 @@ public class SatelliteController extends Handler {

    /** Return services that are supported on carrier roaming non-terrestrial network. */
    public int[] getSupportedServicesOnCarrierRoamingNtn(int subId) {
        SatelliteManager satelliteManager = mContext.getSystemService(SatelliteManager.class);
        if (satelliteManager == null) {
            plogd("updateLastNotifiedNtnAvailableServicesAndNotify: satelliteManager is null");
            return new int[0];
        }

        List<Integer> satelliteDisallowedReasons = satelliteManager.getSatelliteDisallowedReasons();
        if (isSatelliteSupportedViaCarrier(subId)
                && (satelliteDisallowedReasons != null && !satelliteDisallowedReasons.isEmpty())) {
        if (isSatelliteSupportedViaCarrier(subId)) {
            // TODO: b/377367448 Cleanup get supported satellite services to align with starlink.
            int[] services = getSupportedSatelliteServicesForCarrier(subId);
            if (isP2PSmsDisallowedOnCarrierRoamingNtn(subId)) {