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

Commit 4481b518 authored by Rambo Wang's avatar Rambo Wang
Browse files

Public ServiceState#duplexMode in telephony provider

ServiceState#getDuplexMode is a public API. Expose the same
info through telephony provider to let applications retreive
it without location permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I19128c938993f351533aca9a8e1a1356e21eb30e
parent 9446a523
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34220,6 +34220,7 @@ package android.provider {
    field public static final String AUTHORITY = "service-state";
    field public static final android.net.Uri CONTENT_URI;
    field public static final String DATA_NETWORK_TYPE = "data_network_type";
    field public static final String DUPLEX_MODE = "duplex_mode";
    field public static final String IS_MANUAL_NETWORK_SELECTION = "is_manual_network_selection";
    field public static final String VOICE_OPERATOR_NUMERIC = "voice_operator_numeric";
    field public static final String VOICE_REG_STATE = "voice_reg_state";
+11 −0
Original line number Diff line number Diff line
@@ -4579,6 +4579,17 @@ public final class Telephony {
         * This is the same as {@link TelephonyManager#getDataNetworkType()}.
         */
        public static final String DATA_NETWORK_TYPE = "data_network_type";

        /**
         * An integer value indicating the current duplex mode if the radio technology is LTE,
         * LTE-CA or NR.
         * <p>
         * Valid values: {@link ServiceState#DUPLEX_MODE_UNKNOWN},
         * {@link ServiceState#DUPLEX_MODE_FDD}, {@link ServiceState#DUPLEX_MODE_TDD}.
         * <p>
         * This is the same as {@link ServiceState#getDuplexMode()}.
         */
        public static final String DUPLEX_MODE = "duplex_mode";
    }

    /**