Commit Graph

3995 Commits

Author SHA1 Message Date
Automerger Merge Worker
5470dde3eb Merge "Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY" am: b9d73629d1 am: 619a963c33
Change-Id: Ie8f8b58cf152b37600a585d9b0ecf9856c92427c
2019-12-10 22:10:57 +00:00
Automerger Merge Worker
19f573a89b Merge "Remove usage of IccCardConstants hidden APIs" am: b181ba61e2 am: b09b13cf38
Change-Id: I5a8974d8cd5d2af70996ec60eae924ddd435c840
2019-12-10 22:10:05 +00:00
Meng Wang
b9d73629d1 Merge "Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY" 2019-12-10 21:53:26 +00:00
Jayachandran Chinnakkannu
b181ba61e2 Merge "Remove usage of IccCardConstants hidden APIs" 2019-12-10 21:31:17 +00:00
Meng Wang
4c18a3a5a6 Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY
The two constants are hidden APIs and used as extra keys for a few
legacy broadcasts. No new external users are expected. So making a local
copy of them to keep backward compatibility, until the broadcasts are
removed in the future.

Also move ACTION_SUBSCRIPTION_PHONE_STATE_CHANGED constant out of
PhoneConstants since it's only used in TelephonyRegistry for backward
compatibility.

Bug: 140908357
Test: make
Change-Id: Ic7f15851377dcba5353dc6dade61b1dec96bcea5
2019-12-10 10:28:13 -08:00
Jack Yu
8a1b8baf0f Merge "CarrierConfigManager: Adds API for persistent override of values" am: 9be4d11abb
am: 52d95ed0ed

Change-Id: Ibbf4f327c266194fb74c508ab96ba3d199ca1ac9
2019-12-10 09:49:12 -08:00
Jack Yu
9be4d11abb Merge "CarrierConfigManager: Adds API for persistent override of values" 2019-12-10 17:35:20 +00:00
Neil Fuller
a1842da83a Merge "Remove broadcast of NETWORK_SET_TIMEZONE intent" am: 78b90b3a76
am: 1f641b3630

Change-Id: I4d0c201fc6af3826a4427da5bc162c10bef50641
2019-12-10 09:07:13 -08:00
Torbjorn Eklund
074e97d45e CarrierConfigManager: Adds API for persistent override of values
Adds an API in CarrierConfigManager for persistent override of carrier
config values.

Bug: 144544956
Test: Manual
Merged-In: I50618921d1ec522d5cd0bd71a5f8e0b1877f1ce1
Change-Id: I50618921d1ec522d5cd0bd71a5f8e0b1877f1ce1
2019-12-10 06:51:38 +00:00
Jayachandran C
316302c001 Remove usage of IccCardConstants hidden APIs
Expose the string IccCardConstants as system APIs
Use TelephonyManger.SIM_STATE_XXX for remaining

Bug: 145767148
Test: Build
Change-Id: I5711d783be8c8414b8f9d7baa80cb4224bd771aa
2019-12-06 16:06:12 -08:00
Neil Fuller
9a81291281 Remove broadcast of NETWORK_SET_TIMEZONE intent
android.intent.action.NETWORK_SET_TIMEZONE is not used by anything in
the platform so it can be removed. It was previously broadcast when
telephony made a time zone change, presumably as a way to coordinate
time zone detection logic if there were other, lower-priority detection
mechanisms on the device. The logic for time zone detection is now
centralized in the system server so coordination can be done more
directly when needed.

All the APK usages appear to be only manifest entries for
<protected-broadcast> in apps that don't send the intent themselves,
which doesn't make a lot of sense.

Note: There is a separate commit to remove the broadcast from the old
(disabled) NITZ logic.

Bug: 140712361
Test: treehugger
Change-Id: Iab629778e45815f4632359e90d920b7751c1a199
2019-12-05 13:09:19 +00:00
Shuo Qian
5202828d3c Merge "Move TelephonyPermissions to TelephonyCommon" am: c5f12f75e6
am: b00ee2e7fe

Change-Id: I5ae19d939d43b81520b1cd5f6039eb329c075e42
2019-12-04 13:35:14 -08:00
Shuo Qian
caf7ef3de8 Move TelephonyPermissions to TelephonyCommon
Test: built
Bug: 145554073
Change-Id: I3681043a197e6daeb16dcf506d672bdcf1fc8da8
Merged-In: I3681043a197e6daeb16dcf506d672bdcf1fc8da8
(cherry picked from commit fde53bb6f1)
2019-12-04 12:25:05 -08:00
Xiangyu/Malcolm Chen
603d7e7d89 Merge "Add System API to indicate whether physical SIM can be disabled." am: 454c0659a6
am: 0b2531862f

Change-Id: If6fe7eabcd6b2bd92c2b516e5083fb3cb558cb09
2019-12-04 11:48:20 -08:00
Xiangyu/Malcolm Chen
454c0659a6 Merge "Add System API to indicate whether physical SIM can be disabled." 2019-12-04 19:26:51 +00:00
Jack Yu
b496fd8765 Merge "Added sub id to SmsCbMessage" am: 258e925cd6
am: 35132f9a21

Change-Id: Ia2e5933ffc493c69efbac8da2ab993281e31867b
2019-12-04 09:47:53 -08:00
Jack Yu
29dfebb84c Added sub id to SmsCbMessage
Added a new field subscription id to SMS
cell broadcast message.

This is the preliminary step of deprecating
CellBroadcastMessage class.

Bug: 144891074
Test: Manual

Merged-In: I23f61e77f6a9a16ce77f7892ba96fd7485c555a4
Change-Id: I23f61e77f6a9a16ce77f7892ba96fd7485c555a4
(cherry picked from commit 750b8b1972)
2019-12-03 11:43:59 -08:00
Malcolm Chen
4c7c1b25e9 Add System API to indicate whether physical SIM can be disabled.
Bug: 133379187
Test: build
Change-Id: I764f344b0d430cb49ccccc9f402139ea32e70c92
Merged-In: I764f344b0d430cb49ccccc9f402139ea32e70c92
2019-12-02 11:40:05 -08:00
Shuo Qian
48dc60e388 Merge "Introduce APIs for Emergency Number Database version" am: 18fa446f44
am: 0a1aca082c

Change-Id: I4ef8daa35b46ef1e6159ae07b6d151ab27a5b8ba
2019-11-27 14:54:22 -08:00
Shuo Qian
18fa446f44 Merge "Introduce APIs for Emergency Number Database version" 2019-11-27 22:35:00 +00:00
Shuo Qian
217a388aef Introduce APIs for Emergency Number Database version
1) Test API to override file partition for testing
2) System API to notify Telephony Emergency Number database installation
 complete
3) Remove broadcast mechanism

Test: gts
Bug: 136027884

Change-Id: Ie2b0c390948c82ccbb94187a6ded9affd162f5ab
Merged-In: Ie2b0c390948c82ccbb94187a6ded9affd162f5ab
(cherry picked from commit 1b28fdd6dd)
2019-11-26 15:51:15 -08:00
Xiangyu/Malcolm Chen
0f2c3d963d Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." 2019-11-25 22:44:35 +00:00
Meng Wang
77cc8e5cf2 Merge "Move SmsConstants to telephony/common" am: e34b67f5ca
am: f0c0d50f49

Change-Id: I52ff07ca5b69c22e86de72465b031d45da165490
2019-11-25 14:18:19 -08:00
Meng Wang
ac59ad3c83 Move SmsConstants to telephony/common
So it can be used by modules other than telephony.

Bug: 140908357
Test: make
Change-Id: I7819adbc150df5bd8a05014a9dfa79bd8de425b6
2019-11-25 10:37:30 -08:00
Malcolm Chen
d9fc243c91 Don't allow reading IMSI of one active sub if only has carrier privilege
on the other.

Bug: 136123413
Test: unittest
Change-Id: I67a0121d3e965f193be9e827533646423502fe70
Merged-In: I67a0121d3e965f193be9e827533646423502fe70
2019-11-22 17:54:20 -08:00
Jayachandran Chinnakkannu
b52dfe672f Merge "Remove usage of hidden API Emoji.isRegionalIndicatorSymbol" am: 4257da213d
am: d6900e4b3c

Change-Id: I86c741f7ede242568aab436f673000c9f0da5813
2019-11-22 10:22:02 -08:00
Jayachandran Chinnakkannu
4257da213d Merge "Remove usage of hidden API Emoji.isRegionalIndicatorSymbol" 2019-11-22 17:54:23 +00:00
Jayachandran C
c5ba7200d4 Remove usage of hidden API Emoji.isRegionalIndicatorSymbol
This CL copies the logic in the local file

Bug: 140908357
Test: Build
Change-Id: I1044c456fdf6ad1646811c966e0cd38c67665ad9
2019-11-21 16:49:46 -08:00
SongFerng Wang
1877b8226d Merge "isTetherApnRequired api rename as isTetheringApnRequired" am: 25ea00d059
am: c4bb6df605

Change-Id: I8de3f03e2443eafc072650cb362f82e4bed94aa8
2019-11-20 02:18:08 -08:00
SongFerng Wang
25ea00d059 Merge "isTetherApnRequired api rename as isTetheringApnRequired" 2019-11-20 08:46:05 +00:00
Meng Wang
99a254e353 Merge "Move GsmAlphabet to telephony/common" am: 36a15245e9
am: c68e65ed1a

Change-Id: I5cf5e4b0610d68276ce5931a0321bc12139a2253
2019-11-19 19:39:20 -08:00
Meng Wang
36a15245e9 Merge "Move GsmAlphabet to telephony/common" 2019-11-20 03:21:19 +00:00
Jordan Liu
f85b6a2def Merge "Expose Geometry, LatLng, and maxWaitDuration" am: e993fb8bb9
am: 2ca04cf384

Change-Id: Iaef98dc98f7caf25f4279b768f11937d15f7a947
2019-11-19 15:51:19 -08:00
Hall Liu
ae63546d19 Merge commit '1d7a53da981b7d4281c58af7eb9b150163b344a6' into manual_merge_1d7a53da981b7d4281c58af7eb9b150163b344a6
am: dab3711435

Change-Id: Ib75482a87545f7743f0049c8e51c354d2294c2af
2019-11-19 15:12:28 -08:00
Meng Wang
3312d7cfa7 Move GsmAlphabet to telephony/common
so it can be shared with non-telephony modules.

Test: make
Bug: 140908357
Change-Id: I8caba6a1ac3943e7f0044f7502eead10dfe8669c
2019-11-19 14:19:41 -08:00
Jordan Liu
e993fb8bb9 Merge "Expose Geometry, LatLng, and maxWaitDuration" 2019-11-19 20:55:36 +00:00
Hall Liu
1d7a53da98 Merge changes from topic "mainline4"
* changes:
  Add new API for Telecom to send phone state
  Minor style correction to avoid merge conflict
  non-mainline telephony related AIDL refactor/decoupling
2019-11-18 22:31:27 +00:00
Chen Xu
f08074d6ec Merge "SystemAPI for ACTION_SMS_EMERGENCY_CB_RECEIVED intent" am: 3c397a6217
am: 42d7faea52

Change-Id: If8ab3835f050dee774a4fbcbaca3febf07fec049
2019-11-18 11:23:06 -08:00
Chen Xu
39b95941f9 SystemAPI for ACTION_SMS_EMERGENCY_CB_RECEIVED intent
Bug: 135956699
Test: Build
Change-Id: Ic7124f30fae6faa482467fd9235ef6155854f589
(cherry picked from commit 9c1260c818)
Merged-in: Ic7124f30fae6faa482467fd9235ef6155854f589
2019-11-16 09:21:33 -08:00
Jordan Liu
b3591333f7 Expose Geometry, LatLng, and maxWaitDuration
Expose Geometry and LatLng classes as SystemApi
Expose maxWaitDuration, which is used in the cell broadcast service
geofencing logic.

Bug: 135956699
Test: make and run appcompat script
Merged-In: Iac585cd54db97c08eccc57adc9721c90aa785fcd
Change-Id: Iac585cd54db97c08eccc57adc9721c90aa785fcd
(cherry picked from commit a8ec03ebe6)
2019-11-16 07:56:30 -08:00
Chen Xu
8eb62f9485 non-mainline telephony related AIDL refactor/decoupling
1. decouple IOnSubscriptionChangedListener AIDL from telephonyMainline
2. other refactor. moving APIs which will not be included in
telephony mainline to frameworks/base/core/java/android/telephony.
Moving internal classes like AIDL which will not be included in
telephony mainline to
framework/base/core/java/com/android/internal/telephony

Bug: 140908357
Test: Build & unit test
Change-Id: I9413ef758cceadd251d03f3b5ea1054cc48ef044
Merged-In: I9413ef758cceadd251d03f3b5ea1054cc48ef044
2019-11-15 18:02:40 -08:00
SongFerngWang
8a90fc0811 isTetherApnRequired api rename as isTetheringApnRequired
Bug: 144455789
Test: Build pass.
      atest TetheringConfigurationTest (PASS)

Change-Id: I9ab4c7b3aef0619046d7e3d711683dbe1f31bb50
2019-11-15 14:50:52 +08:00
SongFerng Wang
3e5b9ac2b6 Merge "[mainline] Expose getTetherApnRequired API as system API" am: 3887ca1f22
am: fa3008c39d

Change-Id: I11ed0e214003758fe9116dff520221b09c0171b6
2019-11-11 14:42:48 -08:00
SongFerng Wang
3887ca1f22 Merge "[mainline] Expose getTetherApnRequired API as system API" 2019-11-11 22:06:49 +00:00
Artur Satayev
756d3b447a Merge "Add @UnsupportedAppUsage annotations for greylist." am: 423c3a32d6
am: 7a565c45b1

Change-Id: I48075ef4296e0b55c0055f7364c5129bbd60e9ed
2019-11-11 09:33:13 -08:00
Xiangyu/Malcolm Chen
f1581e4de4 Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." into qt-qpr1-dev
am: d11b16f756

Change-Id: I7643243c98263f99a400df450eb35b925028d3cd
2019-11-08 17:25:10 -08:00
Xiangyu/Malcolm Chen
d11b16f756 Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." into qt-qpr1-dev 2019-11-09 01:07:49 +00:00
Malcolm Chen
4bff428285 Don't allow reading IMSI of one active sub if only has carrier privilege
on the other.

Bug: 136123413
Test: unittest
Change-Id: I67a0121d3e965f193be9e827533646423502fe70
2019-11-08 13:41:24 -08:00
Artur Satayev
3be4d59369 Merge "Add @UnsupportedAppUsage annotations for max-p." am: 8893f158c6
am: da4d6567c2

Change-Id: Iff80c388dec2c6f8184b739be6fb38b8ec8a1a49
2019-11-08 09:49:03 -08:00
Artur Satayev
fc46be7dbd Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m

Change-Id: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
Merged-In: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
2019-11-08 16:17:13 +00:00