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

Commit d6daec7f authored by Aman Gupta's avatar Aman Gupta
Browse files

Adding maxTargetSdk AndroidS to DATA_ROAMING. This will make sure that

beyond S people can not access the DATA_ROAMING API from Settingss.Ideal
way to use this is from TelephonyManager.

Test: Added CTS Test.
Bug: 172467621
Change-Id: I05cb675231b69f40896007601627e8078e0ecb02
parent 372e99c6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ import android.os.ResultReceiver;
import android.os.ServiceManager;
import android.os.UserHandle;
import android.speech.tts.TextToSpeech;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.AndroidException;
import android.util.ArrayMap;
@@ -11303,8 +11304,9 @@ public final class Settings {
        /**
         * Whether or not data roaming is enabled. (0 = false, 1 = true)
         * Use {@link TelephonyManager#isDataRoamingEnabled} instead of calling via settings.
         */
        @Readable
        @Readable(maxTargetSdk = Build.VERSION_CODES.S)
        public static final String DATA_ROAMING = "data_roaming";
        /**