Commit Graph

9040 Commits

Author SHA1 Message Date
Xiangyu/Malcolm Chen
f27caf7d58 Merge "Add comments in grouping APIs to clarify possible exceptions." into qt-dev 2019-04-09 17:13:35 +00:00
Malcolm Chen
e00887f612 Add comments in grouping APIs to clarify possible exceptions.
Bug: 127408608
Test: cts, unittest, TelephonyManagerTestApp
Change-Id: I3671e366be7e8c3a75b5ee23b7cf88a33ecd3a4f
2019-04-09 01:22:30 +00:00
Tyler Gunn
beeb456338 Merge "Add @hide API to get the phone account handle for a subId." into qt-dev 2019-04-08 20:44:05 +00:00
Svetoslav Ganov
9dfc48d06e Merge "Restricted permission mechanism - framework" into qt-dev 2019-04-08 14:54:03 +00:00
TreeHugger Robot
9f0eb916f3 Merge "Fixed incorrect service state populated" into qt-dev 2019-04-08 10:09:27 +00:00
Jack Yu
9302618da6 Fixed incorrect service state populated
ServiceState.setStateOutOfService does not correctly
clean up the information so the old WLAN registration info
got populated for the next time use.

Bug: 130048577
Test: Telephony sanity tests
Change-Id: I7fab7090c22390914af024c44bffd643c13f33e5
2019-04-08 01:10:27 -07:00
Svet Ganov
d8eb8b2690 Restricted permission mechanism - framework
This change adds a mechanism for restricting permissions (only runtime
for now), so that an app cannot hold the permission if it is not white
listed. The whitelisting can happen at install or at any later point.

There are three whitelists: system: OS managed with default grants
and role holders being on it; upgrade: only OS puts on this list
apps when upgrading from a pre to post restriction permission database
version and OS and installer on record can remove; installer: only
the installer on record can add and remove (and the system of course).

Added a permission policy service that sits on top of permissions
and app ops and is responsible to sync between permissions and app
ops when there is an interdependecy in any direction.

Added versioning to the runtime permissions database to allow operations
that need to be done once on upgrade such as adding all permissions held
by apps pre upgrade to the upgrade whitelist if the new permisison version
inctroduces a new restricted permission. The upgrade logic is in the
permission controller and we will eventually put the default grants there.

NOTE: This change is reacting to a VP feedback for how we would handle
SMS/CallLog restriction as we pivoted from role based approach to roles
for things the user would understand plus whitelist for everything else.
This would also help us roll out softly the storage permisison as there
is too much churm coming from developer feedback.

Exempt-From-Owner-Approval: trivial change due to APi adjustment

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Test: atest CtsPermissionTestCases
Test: atest CtsPermission2TestCases
Test: atest RoleManagerTestCases

bug:124769181

Change-Id: Ic48e3c728387ecf02f89d517ba1fe785ab9c75fd
2019-04-07 22:39:54 -07:00
Nathan Harold
773b0824ee Opportunistic Sub Grouping Keys in CarrierConfig
Add two keys to allow new subscriptions to be added
into subscription groups before carrier config changes
are broadcast.

Bug: 123721160
Test: atest SubscriptionInfoUpdaterTest
Merged-In: Ib6f811b70e41eba897b9bde0c0aeb0c880169f66
Change-Id: Ib6f811b70e41eba897b9bde0c0aeb0c880169f66
(cherry picked from commit c24e219fc1)
2019-04-05 12:47:07 -07:00
Jack Yu
0c92c23951 Improved the debug message
Improved the log readability by printed out data state
in string format instead of integer. Also added listen
local log.

Bug: 129631771
Test: Manual
Change-Id: If786d51b35380f606bc388e29a441bb24a2792e0
2019-04-05 03:17:05 +00:00
Tyler Gunn
d67bd616e0 Add @hide API to get the phone account handle for a subId.
This is used in SubscriptionManager to figure out which phone account
is being updated when the default voice sub changes.  It seemed like
a good spot to put it since we should really have an api for this in
the future.

Test: Manual, manual, manual
Bug: 128916238
Change-Id: If5137c0e7f01a14810e0ee94e5d857d69f368a87
2019-04-04 19:08:33 -07:00
Chen Xu
1ec46998a0 Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-04-03 22:17:47 +00:00
Jack Yu
1a07f6411b Merge "Removed data and voice RAT from service state" 2019-04-03 22:02:30 +00:00
Jiuyu Sun
38d786f082 Merge "Check cardId in EuiccManager#isEnabled." 2019-04-03 21:24:45 +00:00
Shuo Qian
4a2b4a2339 Merge "Modify the deprecation of PhoneNumberUtil isEmergencyNumber" 2019-04-03 21:23:44 +00:00
sqian
c6d55453ee Modify the deprecation of PhoneNumberUtil isEmergencyNumber
1) Telephony API is still called by a bunch of Util methods in Android that
don't have context, therefore the service can be null. Throwing an
 exception can cause crash.
2) Fix the usage of isEmergencyNumber and isPotentialEmergencyNumber.

Test: Manual
Fixes: 129721537
Change-Id: If82bfc5102a9ac1d7e07ff744c0775a1dc95ba2c
2019-04-03 12:55:18 -07:00
Jack Yu
5ff5ab5649 Removed data and voice RAT from service state
The voice and data RAT are now derived from
CS and PS network registration info.

Test: Manual + unit tests
Bug: 129863444

Change-Id: I3f4cb6057a4ae821363099583eeac7c867147afb
2019-04-03 12:15:18 -07:00
chen xu
c320f2cb37 SDK API doesSwitchModemConfigTriggerReboot
Bug: 129424775
Change-Id: If03e376ad0e91ad69f8444567700ed3fe76d66f6
2019-04-03 10:21:33 -07:00
Ecco Park
331411f945 Merge "carrier-config: define imsi_eap_identity_sequence_int key" 2019-04-03 12:56:05 +00:00
Brad Ebinger
3a3e3bc4a8 Merge "Change UT to disabled by default" am: 3c1a889a9c am: 94c06c609a
am: 5e6235db9a

Change-Id: Icd039f27190c07e74a046e0b9f7a9b447346ab8f
2019-04-02 19:06:26 -07:00
Brad Ebinger
5e6235db9a Merge "Change UT to disabled by default" am: 3c1a889a9c
am: 94c06c609a

Change-Id: I930b6873fcc24aebcf430f356bc1002db665ce5d
2019-04-02 18:39:55 -07:00
Brad Ebinger
94c06c609a Merge "Change UT to disabled by default"
am: 3c1a889a9c

Change-Id: Id0e575b3e17515667371ff626a4423e1cb82b2c0
2019-04-02 18:05:12 -07:00
Holly Jiuyu Sun
e680dc014d Check cardId in EuiccManager#isEnabled.
Bug: 111614811
Test: test Fi activation on phone
Change-Id: I3446cbc8f529fc0305a97edf2ada54389652ce55
2019-04-02 17:06:10 -07:00
Treehugger Robot
3c1a889a9c Merge "Change UT to disabled by default" 2019-04-02 23:21:31 +00:00
Xiangyu/Malcolm Chen
d6ecaf064c Merge "Changing default phone capability." 2019-04-02 22:22:33 +00:00
Jack Yu
2bcdbd1b79 Merge "Correctly support LTE carrier aggregation" 2019-04-02 21:18:04 +00:00
Jack Yu
2e273b2f0f Passing ServiceState as byte array into ServiceStateProvider
This allows the provider to reconstruct the service state
object correctly. Also we can get rid of all the 'set'
methods in ServiceState, which we'd like to remove in the future.

Test: Manual
Bug: 129768354
Change-Id: I835d30e544b3ed49d5d0b6b1ca981a81e3ee2039
2019-04-02 11:27:34 -07:00
Jack Yu
05a6543248 Correctly support LTE carrier aggregation
NetworkRegistrationInfo.getAccessNetworkTechnology() should
report LTE as the network type when modem reports the RAT
LTE_CA. Fixed by adding a flag in data specific registration
info.

Test: Manual
Bug: 129707180
Change-Id: Ib152f97711441fded998a36528ef007f9e28ccbf
2019-04-02 11:09:43 -07:00
Xiangyu/Malcolm Chen
4e578310f8 Merge "API Feedback for CBRS" am: 9c706654a2
am: f9edc9fffd

Change-Id: I7c449a129ab8bd759b40e0aa0a429dd7847ef755
2019-04-01 19:26:11 -07:00
Xiangyu/Malcolm Chen
f9edc9fffd Merge "API Feedback for CBRS"
am: 9c706654a2

Change-Id: I6a6d0a81100093696fc6e4b66b32e34dbed49913
2019-04-01 19:10:02 -07:00
Xiangyu/Malcolm Chen
9c706654a2 Merge "API Feedback for CBRS" 2019-04-02 01:46:19 +00:00
Hall Liu
516b07ee2c Merge "Add a new carrier config to show the WFC location privacy policy UI" am: 4c508d1b03
am: d94791b712

Change-Id: I435a8b653960e07931bb8c0c11fad3f805431dc6
2019-04-01 17:24:01 -07:00
Hall Liu
d94791b712 Merge "Add a new carrier config to show the WFC location privacy policy UI"
am: 4c508d1b03

Change-Id: I1b3c96de78b909dab372e3e3745c877b8becd2d6
2019-04-01 16:34:30 -07:00
Hall Liu
4c508d1b03 Merge "Add a new carrier config to show the WFC location privacy policy UI" 2019-04-01 22:55:51 +00:00
Malcolm Chen
4674a797e9 API Feedback for CBRS
Bug: 128902411
Test: unittest
Change-Id: I2476834a5048d0e3c2c3413d7168a7a3ad2d7042
Merged-In: I2476834a5048d0e3c2c3413d7168a7a3ad2d7042
2019-04-01 15:23:53 -07:00
Xiangyu/Malcolm Chen
65d4295c3c Merge "Remove clearDefaultsForInactiveSubIds." am: 1e263e7bc0
am: 4e32ac7754

Change-Id: I8c21ba73807837f999bf3fcc7fbef1d24c7500da
2019-04-01 14:31:06 -07:00
Hall Liu
5b4ad4fa6d Allow requestNetworkScan to return sanitized info am: c9d7430685 am: 87217889f1
am: 9e1d425b58

Change-Id: I3fab8c08100a68aba55eefb27b587e73849bc108
2019-04-01 14:29:04 -07:00
Hall Liu
9e1d425b58 Allow requestNetworkScan to return sanitized info am: c9d7430685
am: 87217889f1

Change-Id: I601304e6eaedef27a2adc413084e6a240a5e9b97
2019-04-01 14:08:39 -07:00
Xiangyu/Malcolm Chen
4e32ac7754 Merge "Remove clearDefaultsForInactiveSubIds."
am: 1e263e7bc0

Change-Id: I8fb91dd4928cf8a607a876cc304c261bfb762a59
2019-04-01 14:05:57 -07:00
Xiangyu/Malcolm Chen
1e263e7bc0 Merge "Remove clearDefaultsForInactiveSubIds." 2019-04-01 20:51:54 +00:00
Hall Liu
87217889f1 Allow requestNetworkScan to return sanitized info
am: c9d7430685

Change-Id: I91b315cd48095345f34755cc13d059158982a960
2019-04-01 13:47:42 -07:00
Hall Liu
f276a56215 Merge changes from topics "nw-scan-cts", "nw-scan-changes"
* changes:
  Add shell permissions for CTS testing
  Allow requestNetworkScan to return sanitized info
2019-04-01 20:31:10 +00:00
Michael Groover
d18900b937 Merge "Remove unused code and cleanup parameters for DPM dev ID access" 2019-04-01 19:27:42 +00:00
Ecco Park
6d3e2948fb carrier-config: define imsi_eap_identity_sequence_int key
Some of Carrier Wi-Fi Networks doesn't support receiving encrypted-IMSI
as EAP-RESPONSE/IDENTITY due to network deployment architecture.

So, a new key is required to define a sequence of sending encrypted-IMSI
identity during EAP-SIM/AKA authentication.
If this value is 2, anonymous@<realm> will be sent as a
EAP-RESPONSE/IDENTITY first and followd by
encrypted IMSI as EAP-RESPONSE/AKA|SIM-IDENTITY.
1: encrypted-IMSI (default one)
2: anonymous -> encrypted-IMSI.

Bug: 109795427
Test: manual
Change-Id: I1121f21b771707ed7c8350826cefc43445f4fc8b
Signed-off-by: Ecco Park <eccopark@google.com>
2019-03-30 08:13:45 -07:00
Malcolm Chen
938dc54b57 Remove hidden IntDef in java doc.
Bug: 128456336
Test: build
Change-Id: If016aabda5092d299eca2e858f26057614767297
2019-03-29 18:55:01 -07:00
Sooraj Sasindran
a783041e08 Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds"" am: 92e99a6ca9 am: c6c093e778
am: 6c7d65384a

Change-Id: Iad7e00fb64835eb14061eac0d90c2d4d96a56fac
2019-03-29 18:23:28 -07:00
Sooraj Sasindran
6c7d65384a Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds"" am: 92e99a6ca9
am: c6c093e778

Change-Id: I8e5ab63be21b97077ecd263f12581b120e3f85e2
2019-03-29 18:14:27 -07:00
Sooraj Sasindran
c6c093e778 Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds""
am: 92e99a6ca9

Change-Id: I7ce860cdca34cf4ff421384fe3071b9f13dc427b
2019-03-29 18:06:00 -07:00
Treehugger Robot
92e99a6ca9 Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds"" 2019-03-30 00:53:23 +00:00
Brad Ebinger
440d168834 Merge "Do not show SMS SIM pick UI for Cell Broadcast Config change" am: 4ae4e50def am: f15dabde00
am: 511f86aa55

Change-Id: Id46383f86fe31460d8fde22e5e572e016e065fb7
2019-03-29 17:19:04 -07:00
Sooraj Sasindran
6633c57fa0 Revert "Change Values for Opportunistic Entry & Exit Thresholds"
This reverts commit f0c8f19325.

Reason for revert: From further test, we see sharp decline in data throughput

Change-Id: I0fb031a8adf15d3a0149651bcc51ee1d7318a42e
2019-03-30 00:07:33 +00:00