1. from Q forward, throw exception if use constructor with subId
2. from Q forward pass subId from TelephonyManager to telephonyregistry.
3. update API in systemUI and other components.
Bug: 117555407
Test: Manual mism test
Change-Id: Ic139a3739e5d86d07a6093bdbe6350001a756f60
The slotId is not necessarily the phoneId, so do not broadcast as if it
is. SLOT_KEY is a hidden extra so this should not impact apps in general
(if they need the old extra they can still use the hidden PHONE_KEY).
For select broadcasts like SIM_CARD_STATE_CHANGED, we will manually
populate the slot key. This is a temporary solution to b/130664115 and
we should eventually review and consider making the SLOT_KEY public for
some broadcasts.
Bug: 130664115
Test: manual
Change-Id: I84bd4c6bc4277e32cee9916dd18dd80948a808a0
(cherry picked from commit 21c3aeb49d)
When an app bypasses a location access check due to its target SDK for
queries to ServiceState or when we're pushing out info through
TelephonyRegistry, log it as info instead of error to avoid spamming the
logs too much.
Fixes: 130668054
Test: manual
Change-Id: Ia490f2de2f0b5d326e5290e166e6f97b25e6e187
Platform needs to pass LPA the pSIM slotId so that LPA knows it's a
toggle action on pSIM.
Bug: 123945155
Test: build
Change-Id: Ie0db50e8ade4c6ce385ebfbfe7cf9e2982d67e34
Merged-In: Ie0db50e8ade4c6ce385ebfbfe7cf9e2982d67e34
NetworkRegistrationInfo and ServiceState are not
immutable class. Their get methods should return a new
copy of object so the caller won't modify its state.
Bug: 130538118
Test: Unit tests + manual
Change-Id: I51662a92b0b6189a8c8aa017085affedac417190
The method ImsFeature#setFeatureState can not be called
in the constructor of MmTelFeature currently, because the
IMS_SERVICE_UP intent will not be sent until mContext != null.
Remove this dependency and ensure addImsFeatureStatusCallback
is called after ImsFeature#initialize.
Bug: 130569556
Test: atest GtsTelephonyTestCases; atest FrameworksTelephonyTests
Change-Id: Ib3ca59eeeda89c0989cfd767257a6a598a97a670
Add API in SubscriptionManager setAlwaysAllowMmsData
and isMmsDataAllowed.
Bug: 128616035
Test: unittest
Change-Id: Ie56c2d0619a68b188c35e8e24db6c2012d22538b
Add EHPLMN and HPLMN fields to SubscriptionInfo. These fields are read
from the ICC card.
Bug: 130253962
Test: manual
Change-Id: If98c57c14e39b917a5e7e8bbc59c2170989b63a7
The ImsService was sending the deprecated IMS intents, which
should only be send using the Phone process. This was causing
GTS failures.
Bug: 130569556
Test: atest FrameworksTelephonyTests; atest GtsTelephonyTestCases
Change-Id: Ie844053aac9c067e66d03c02cf2b87134ee91065
They were added to the max-sdk-o in commit f23153f (in Q), but should have
been added to max-sdk-p as they were on the light greylist in P.
This is a cherry-pick of 092a0a2 from aosp-master.
Test: m
Bug: 124354830
Change-Id: I856b975b88bdc5eacc5e061ba196bd584ca78c73
1) remove documentation about null return
2) Map including the key*s* as the active subscription ID*s*
Bug: 130426238
Test: Treehugger
Change-Id: I4c9b682ef25378b9de91cd6255ed6fc514ea220d
Add range checks to ensure that parameters passed
to CellIdentity are within range; if not then set
them to the UNAVAILABLE value.
Bug: 122834811
Test: atest FrameworksTelephonyTests
Merged-In: I0d3699823be60722a1b741efd60b56f23bbc3e86
Change-Id: I0d3699823be60722a1b741efd60b56f23bbc3e86
(cherry picked from commit 251d0a9a99)
CTS testing is being added for
TelephonyManager#setLine1NumberForDisplay. This requires making the
getter for alphaTag visible for testing with the @TestApi annotation.
Bug: 31963371
Test: API change. tests are unaffected.
Merged-In: I85887cf05f395f4ac4ca8dc6800e29f4fc9f8de4
Change-Id: I85887cf05f395f4ac4ca8dc6800e29f4fc9f8de4
(cherry picked from commit 710cce6dd9)
The app holding the SMS role and other carrier apps installed through
Play that cannot be granted carrier privileges can have a legitimate
need to access device identifiers but do not meet the new
requirements for access. This appop will provide a way to grant role
holders and apps delivered through Play a way to access these
identifiers.
Bug: 124236412
Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases -t \
android.appsecurity.cts.DeviceIdentifierTest#testDeviceIdentifierAccessWithAppOpGranted
Change-Id: Ieb182b254472b79cb791419222ee6ff9dedc6880
-Add nullability annotations for getMccString
and getMncString.
-Add IntRange to CellSignalStrength#getLevel()
-Fix a few docstring errors.
Bug: 129902021
Test: make && make update-api && make offline-sdk-docs
(no functional change)
Change-Id: I61d645f79a23226ab902fc657fe7b07ffd674a0b
(cherry picked from commit b858d8c682261aae4ab5b99e5c0c99b627b329cb)