Commit Graph

8216 Commits

Author SHA1 Message Date
Amit Mahajan
f360f2cf05 Exposing TelephonyManager.isIccLockEnabled as a system API.
This was recently removed as part of un-exposing telephony
mainline related APIs (b/146983487), but being added back in R as GMSCore
already uses it (b/151742706).

Test: TH
Bug: 151742706
Bug: 146983487
Merged-in: If4e8e87c7dfbb261ee3abfec2a4774980c24d0c2
Change-Id: If4e8e87c7dfbb261ee3abfec2a4774980c24d0c2
(cherry picked from commit 1c6679a3ad)
2020-04-14 14:41:56 -07:00
Amit Mahajan
6b2eddec32 Un-expose ACTION_SERVICE_PROVIDERS_UPDATED.
Will be exposed/reworked on in S.

Test: basic sanity
Bug: 147921202
Merged-in: Iab4974f9cd7cecde1ef6eba35c320101a288b481
Change-Id: Iab4974f9cd7cecde1ef6eba35c320101a288b481
(cherry picked from commit 13a8d14fcd)
2020-04-14 14:28:01 -07:00
Robert Greenwalt
1ace38473c Move getMsisdn and getLine1Number to READ_PHONE_NUMBERS
This is done to get dangerous stuff off the READ_PHONE_STATE permission.
Also keeping READ_PHONE_STATE for apps targeting old SDK versions.
Refactored getPhoneNumber to allow READ_PHONE_STATE pre-R

Bug: 136160623
Test: atest SubInfoControllerTest, TelephonyPermissionsTest
Change-Id: I5c0adcbe432ffcbb22ac8959792ee60da7039f15
Merged-In: I5c0adcbe432ffcbb22ac8959792ee60da7039f15
2020-04-14 11:41:53 -07:00
Calvin Pan
f2da40ad07 Merge changes from topic "DEFAULT_PREFERRED_NETWORK_MODE"
* changes:
  Make DEFAULT_PREFERRED_NETWORK_MODE @hide for now
  Add new system API constant DEFAULT_PREFERRED_NETWORK_MODE
  Remove usage of Telephonymanager getDefault() hidden API
  SettingsProvider: use sysprop as API for telephony
2020-04-14 02:13:14 +00:00
Hall Liu
cc8b84c221 Merge changes from topic "phonestatelistener-limit-rvc-dev"
* changes:
  Add gating, logging for PhoneStateListener's limit
  Institute limit on PhoneStateListener
2020-04-11 00:36:13 +00:00
Jayachandran C
a6a4858079 Make DEFAULT_PREFERRED_NETWORK_MODE @hide for now
This API also needs to expose the possible values which would need more
work hence we will drop this for now and re-work for next release

This CL also fixes a bug to use correct RIL constant

Bug: 148514283
Bug: 148484234
Test: Verified that the eSIM works on DSDS
      atest packages/services/Telephony/tests/
      atest frameworks/opt/telephony/tests/telephonytests/

Change-Id: Ifd7b17cc2445c9cbe4c6ba688838a1b07eb13599
Merged-In: Ifd7b17cc2445c9cbe4c6ba688838a1b07eb13599
2020-04-10 07:07:35 +00:00
Jayachandran C
9160670b18 Add new system API constant DEFAULT_PREFERRED_NETWORK_MODE
Bug: 140768340
Test: Following tests have been done
atest packages/services/Telephony/tests/
atest frameworks/opt/telephony/tests/telephonytests/
Manual sanity to check basic telephony

Change-Id: Ia114e4546d88e294ed37b6632a1eae6a06fbf7bc
Merged-In: Ia114e4546d88e294ed37b6632a1eae6a06fbf7bc
2020-04-10 07:07:16 +00:00
Tyler Gunn
9a3201583a Hide car barring with password API.
Not needed in R.

Test: Build APIs
Bug: 148184879
Change-Id: I036980c2e565bf4f84e51b028d0b6938b7afff97
2020-04-08 15:42:39 -07:00
Cody Kesting
7badb011b3 Merge "Make UiccAccessRule certificate utils accessible." 2020-04-08 16:19:38 +00:00
Xiangyu/Malcolm Chen
2641543774 Merge "multiSimAllowed should be consistent with max active modem property." 2020-04-08 00:50:17 +00:00
Hall Liu
0a5365b9c0 Add gating, logging for PhoneStateListener's limit
Add gating via PlatformCompat and DeviceConfig and logging via
PlatformCompat to the limit instituted on per-process listeners

Fixes: 152074216
Test: atest CtsTelephonyHostCases
Change-Id: I4d6681d90705b68c3349f4124e434a29b50fd3a2
Merged-In: I4d6681d90705b68c3349f4124e434a29b50fd3a2
2020-04-07 17:13:19 -07:00
Xiangyu/Malcolm Chen
349a19d904 Merge "Remove @ModemCount enum definitions." 2020-04-07 23:45:33 +00:00
Xiangyu/Malcolm Chen
beccb937dd Merge "Hide APIs exposed for Telephony mainline which is no longer needed in R." 2020-04-07 23:45:00 +00:00
Malcolm Chen
c6910afb5d multiSimAllowed should be consistent with max active modem property.
Bug: 153023231
Test: manual - using test app
Change-Id: I2d38dd9a0a860ee451fe51372a62c2910b88c88f
Merged-In: I2d38dd9a0a860ee451fe51372a62c2910b88c88f
2020-04-07 15:43:24 -07:00
James Lin
9f4da761af Merge "[RCS] Add apis to register and unregister UCE publish state changed." 2020-04-07 17:10:41 +00:00
Treehugger Robot
d72172d5de Merge "Use an original text for next force 7bit encoding" 2020-04-07 02:32:15 +00:00
Nathan Harold
8f19e4f21f Check HIDL Discriminator for CSG Info
ART throws an exception if an unpopulated safe union element
is accessed at runtime, so instead we have to check the
hidl_discriminator to see whether the element is populated
before trying to access it (and thus we skip the null check).

Bug: 152486447
Test: atest testCellIdentityLte_1_5_CsgInfo \
        testCellIdentityWcdma_1_5_CsgInfo \
        testCellIdentityTdscdma_1_5_CsgInfo
Merged-In: I08dc0d2050a9f4d4b574178e1c68a23d015768e4
Change-Id: I08dc0d2050a9f4d4b574178e1c68a23d015768e4
(cherry picked from commit f85a2e9220)
2020-04-03 15:25:03 -07:00
Treehugger Robot
afa19b5208 Merge "Throw RuntimeException/ImsException when binder is null." 2020-04-03 21:41:30 +00:00
James.cf Lin
c111ead0c5 [RCS] Add apis to register and unregister UCE publish state changed.
Provide register and unregister callback apis for clients to receive the UCE publish state changed.

Bug: 139262111
Test: atest UserCapabilityExchangeImplTest
Change-Id: I3248e78d3146be5e966876b80f76d47014694b33
2020-04-03 19:12:44 +00:00
Taesu Lee
6568f8f20a Use an original text for next force 7bit encoding
If config_sms_force_7bit_encoding is true, an original text will be
translated based on 7-bit ASCII table for CDMA. But if the translated
text can not be encoded as single-part SMS, the original text should be
used for next try instead and it will be translated based on GSM 7-bit
alphabet for ENCODING_GSM_7BIT_ALPHABET.

Bug: 151061215
Test: Manual

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I679786b96d19c6f3f30ec3e2037221110f5d3f84
2020-04-03 10:35:55 +09:00
Malcolm Chen
4c96811356 Remove @ModemCount enum definitions.
Per API council's feedback, they are not needed. Replacing enums
with integers 0, 1, 2, 3.

Bug: 143652732
Test: build
Change-Id: Id9e87ea28a2f31e1aa842424770096e16f1cb208
Merged-In: Id9e87ea28a2f31e1aa842424770096e16f1cb208
2020-04-02 15:33:57 -07:00
Xiangyu/Malcolm Chen
44bb826ce8 Merge "Add documentation for ACTION_MULTI_SIM_CONFIG_CHANGED" 2020-04-01 23:06:00 +00:00
Malcolm Chen
1cae35384b Hide APIs exposed for Telephony mainline which is no longer needed in R.
The APIs were added in b/144351078, b/148097978 and b/148116922.
b/151665796 is used to revert them.

Bug: 151665796
Bug: 144351078
Bug: 148097978
Bug: 148116922
Test: build
Change-Id: I08db8c5c0161747a7e775a8de0daa7077b513f10
Merged-In: I08db8c5c0161747a7e775a8de0daa7077b513f10
2020-04-01 12:46:51 -07:00
Malcolm Chen
d5349e23b0 Add documentation for ACTION_MULTI_SIM_CONFIG_CHANGED
Bug: 143652732
Test: build
Change-Id: Id27e6edc82a48ece4a94c8bc7aadbc5e1acf08d7
Merged-In: Id27e6edc82a48ece4a94c8bc7aadbc5e1acf08d7
2020-04-01 12:29:25 -07:00
Brad Ebinger
c1d954c78e @hide some APIs that will not be used in Android R
Bug: 147319232
Bug: 148123085
Bug: 147732815
Test: atest CtsTelephonyTestCases
Merged-In: I623e52432fc820d302fcdbdb9a88a37deed455ae
Change-Id: I623e52432fc820d302fcdbdb9a88a37deed455ae
2020-04-01 10:58:42 -07:00
Daniel Bright
7abd26ae78 Merge "Undo isDataCapable as Public API" 2020-04-01 16:37:35 +00:00
Daniel Bright
1656c8f186 Merge "Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult" 2020-04-01 16:36:58 +00:00
Sarah Chin
c9252b3591 Merge "Unexpose getDataRoamingFromRegistration API" 2020-03-31 23:44:35 +00:00
Sarah Chin
8e1c444d07 Merge "API Review: rename isGlobalModeEnabled" 2020-03-31 23:02:20 +00:00
Sarah Chin
2827393816 Merge "Un-deprecate SmsManager APIs" 2020-03-31 22:59:53 +00:00
Daniel Bright
21a5e8f7a1 Undo isDataCapable as Public API
Test: make
Bug: 146206136
Change-Id: I8b6a7e001c114df5e90668738b2a2b978e8757fa
Merged-In: I8b6a7e001c114df5e90668738b2a2b978e8757fa
2020-03-31 20:54:22 +00:00
Daniel Bright
d410dc38e7 Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult
Fully rolled back comments and signature to original state before change

Test: bootup phone
Bug: 147854704
Change-Id: I5fcd71e1569e6b0e16cff5392239b89259ee1790
Merged-In: I5fcd71e1569e6b0e16cff5392239b89259ee1790
2020-03-31 20:53:54 +00:00
Sarah Chin
f8bd172434 Merge "Remove Mainline APIs for MmsManger and TelephonyManager" 2020-03-31 20:52:56 +00:00
Cody Kesting
5e3cfee412 Make UiccAccessRule certificate utils accessible.
UiccAccessRule includes functionality for getting Signatures from a
PackageInfo and hashing a cert. Instead of duplicating this code in
CarrierPrivilegesTracker, make it visible with @hide.

Bug: 147391402
Test: atest FrameworksTelephonyTests
Change-Id: I4f95ab512e94cd851a6928d8eb7918d5a04bfa60
Merged-In: I4f95ab512e94cd851a6928d8eb7918d5a04bfa60
(cherry picked from commit a010445028)
2020-03-31 13:46:15 -07:00
Sarah Chin
44f5fa209e Un-deprecate SmsManager APIs
MmsManager methods were removed for mainline, so unexposing these

Test: build
Bug: 144004293
Change-Id: I9714719f2d922cb027fa42a1aa535006dce7342c
Merged-In: I9714719f2d922cb027fa42a1aa535006dce7342c
2020-03-31 13:13:37 -07:00
Sarah Chin
5fe2615046 Remove Mainline APIs for MmsManger and TelephonyManager
Test: build
Bug: 144004293
Bug: 147611125
Change-Id: I44682d1f33eee02d1dcf57f4de8ce2df0a9b126d
Merged-In: I44682d1f33eee02d1dcf57f4de8ce2df0a9b126d
2020-03-31 12:47:46 -07:00
Sarah Chin
9d77c83cf6 Update watchdog value
Test: build
Bug: 149759312
Change-Id: I9e4bdb3a5dd9c6b476540f3c90304657986e17c3
Merged-In: I9e4bdb3a5dd9c6b476540f3c90304657986e17c3
2020-03-31 12:37:20 -07:00
Mingming Cai
e803aa15a4 Merge "Add global cell ID to all technologies" 2020-03-31 00:23:20 +00:00
Mingming Cai
abfecd4cf9 Add global cell ID to all technologies
Add global cell ID to CellIdentity and all technologies,
including GSM, CDMA, WCDMA, TDSCDMA, LTE, and NR.

Bug: 80159277
Test: CellIdentityTest, CellIdentityGsmTest, CellIdentityCDMATest,
CellIdentityWcdmaTest, CellIdentityTdscdmaTest, CellIdentityLteTest,
CellIdentityNrTest, CellIdentityNrTes, ServiceStateTrackerTest

Change-Id: I2174e8d8c286da200562ef77cff78c3fca26cee2
Merged-In: I2174e8d8c286da200562ef77cff78c3fca26cee2
(cherry picked from commit c78abaad35)
2020-03-30 08:43:43 -07:00
Amit Mahajan
69cf3f0f03 Update API documentation per api-council feedback.
Test: SMS/MMS sending/receiving sanity (manual)
Bug: 149236716
Merged--in: I59b9d468fa6e1a5843871abf1a330962aef64505
Change-Id: I59b9d468fa6e1a5843871abf1a330962aef64505
(cherry picked from commit d42340b66c)
2020-03-27 17:45:51 -07:00
Shuo Qian
cc3b8a0743 Add a hidden API for EXTRA_LAST_KNOWN_NETWORK_COUNTRY
Test: Treehugger; atest
Bug: 152246523
Change-Id: Id77b81e18b293d8d8c8e7b3127826fbd577d6117
Merged-In: Id77b81e18b293d8d8c8e7b3127826fbd577d6117
(cherry picked from commit 8d1791efc7)
2020-03-27 13:18:15 -07:00
Nathan Harold
7687477742 Merge changes from topic "cp-networkscan"
* changes:
  Remove NetworkClass from TelephonyManager
  Add Network Preference Bitmaps
2020-03-27 01:50:34 +00:00
Sarah Chin
a0e42af02c Merge "API review: setNetworkSelectionModeManual" 2020-03-26 02:19:57 +00:00
Sarah Chin
8c346470bd Merge "Unexpose unnecessary SysUI APIs" 2020-03-26 02:18:59 +00:00
Nathan Harold
0f0432c1f6 Remove NetworkClass from TelephonyManager
NetworkClass isn't especially useful because the APIs for
getting and setting preferred networks have been converted
to bitmasks of individual RATs.

Removing this because it's causing confusion about the proper
structure of the API surface. There are < 100k total usages with
the vast majority (60% or more) coming from two apps.

Because NetworkClass is used in RadioAccessFamily for a sort of
comparison function, rewrite that function, porting and updating
logic from TelephonyConnectionService to that compare() method.

Bug: 128572818
Test: atest RadioAccessFamilyTest
Merged-In: I1f279fadd8c543b845fce0f13dc62c1480757692
Change-Id: I1f279fadd8c543b845fce0f13dc62c1480757692
(cherry picked from commit d44b4efa33)
2020-03-25 18:34:06 -07:00
Nathan Harold
63d4932804 Add Network Preference Bitmaps
To support conversion of the preferred network types
back to the network "class" types (really the RANs),
this change adds bitmaps for 2G, 3G, and 4G bitmaps
as well as for differentiating between 3gpp and 3gpp2
RATs.

Bug: 128572818
Test: manual
Merged-In: I25f41ad48eb4dc74c2cace80ccec4e1e954443f9
Change-Id: I25f41ad48eb4dc74c2cace80ccec4e1e954443f9
(cherry picked from commit febfb82bc8)
2020-03-25 18:34:06 -07:00
Nathan Harold
388069c6c0 Merge "Convert getBands() to int[] from List<Integer>" 2020-03-26 01:32:54 +00:00
Brad Ebinger
e5c083c3ec Merge "Add new capability polling opt-in intent" 2020-03-25 23:13:03 +00:00
Shuo Qian
0d8a3bb0f6 Merge "Hide several System APIs" 2020-03-25 23:11:27 +00:00
Hall Liu
8c86962f05 Merge "Change default value of ignore RTT setting config" 2020-03-25 20:50:31 +00:00