Commit Graph

20870 Commits

Author SHA1 Message Date
Brad Ebinger
8bb813dcd7 Merge "Add new ImsException to better handle ImsService errors" am: 3811aba3a4
am: 0bfbfe5646

Change-Id: Ic3a0806cc5e1d6efb0c2d175fda77cd57466072a
2019-01-31 15:43:52 -08:00
Brad Ebinger
3811aba3a4 Merge "Add new ImsException to better handle ImsService errors" 2019-01-31 23:26:57 +00:00
Howard Chen
1906271db6 Merge "Add the DynamicAndroid Service" am: 0b2057db02
am: 683251a1e2

Change-Id: Ia23e042273c8ab1a9d6de5e393b126794822cb5f
2019-01-31 07:11:33 -08:00
Remi NGUYEN VAN
f502776654 Merge "Add NetworkStackPermissionStub definitions" am: 0fe59007ce
am: d1a7c18ec6

Change-Id: I201c5a28b7f07178a6980e582d05b36121037707
2019-01-31 06:36:24 -08:00
Howard Chen
0b2057db02 Merge "Add the DynamicAndroid Service" 2019-01-31 14:35:49 +00:00
Remi NGUYEN VAN
0fe59007ce Merge "Add NetworkStackPermissionStub definitions" 2019-01-31 14:13:22 +00:00
Remi NGUYEN VAN
d8c75a0438 Add NetworkStackPermissionStub definitions
The NetworkStackPermissionStub package is used to enforce that
permissions used by the NetworkStack are only used in packages
sharing signature with NetworkStackPermissionStub.

Permissions defined in this package are intended to be used only by the
NetworkStack: both NetworkStack and the stub APK will be signed with
a dedicated certificate to ensure that, with permissions being signature
permissions.

This APK *must* be installed, even if the NetworkStack app is not
installed, because otherwise, any application will be able to define
this permission and the system will give that application full access
to the network stack.

Test: flashed, booted
Bug: 112869080
Change-Id: Ia13a9e6a703cb7b4403697a7f7bfff0f6f3b813e
2019-01-31 21:16:13 +09:00
Mark Chien
a31f85f6dc Merge "Add get last entitlement value callback API" am: 4163ff7928
am: 524fbd619e

Change-Id: I42892bdacaa41f9cea7e653f0bb9b5497192e5f6
2019-01-30 23:49:43 -08:00
Mark Chien
4163ff7928 Merge "Add get last entitlement value callback API" 2019-01-31 07:23:31 +00:00
Howard Chen
f17f42b0df Add the DynamicAndroid Service
Define the DynamicAndroid with AIDL.
  Add a java implementation.
  Start a service instance in the system server.
  Add a permission test.

Bug: 122015653
Test: Build & Test on a pixel phone with following command \
  ./frameworks/base/services/tests/runtests.py -e class com.android.server.DynamicAndroidTest

Merged-In: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
Change-Id: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
2019-01-31 15:10:21 +08:00
Remi NGUYEN VAN
ac358e2951 Merge "Add UserHandle.getAppId to SystemApi" am: b334bbefd4
am: dac257d27c

Change-Id: If35e251dbbbca2839529bbb999c6813fb601d1c0
2019-01-30 22:29:31 -08:00
Remi NGUYEN VAN
b334bbefd4 Merge "Add UserHandle.getAppId to SystemApi" 2019-01-31 06:04:11 +00:00
junyulai
676a9dcd6a Merge "[KA06] export keepalive offload permission as system api." am: 6943546771
am: c9ada8727f

Change-Id: Ib1772c573a4cdb8413276f67c98091029254782f
2019-01-30 21:46:18 -08:00
Treehugger Robot
6943546771 Merge "[KA06] export keepalive offload permission as system api." 2019-01-31 05:18:17 +00:00
markchien
f273127880 Add get last entitlement value callback API
The callback would be used to notify entitlement value. If the
cache value indicates entitlement succeeded, it just fire
callback with cache value instead of run entitlement check.

Bug: 120887283
Test: atest FrameworksNetTests
Change-Id: I8afe928423bd75c54c61533a50a5c0814922ceb1
2019-01-31 12:31:55 +08:00
Nazanin Bakhshi
4101af509b Merge "Add telephony API to switch multi sim config" am: 602df1aa8c
am: 9fef7be245

Change-Id: Iad4a48b5117b11f63f3d086b42f879034fd415e3
2019-01-30 20:09:58 -08:00
Remi NGUYEN VAN
9e70a42252 Add UserHandle.getAppId to SystemApi
This is consistent with other methods in this class, and unbundled
system apps such as the network stack need this API to verify their
callers regardless of the userid. The method is already marked as
TestApi.

Test: m
Bug: 123655057
Change-Id: I0ecef4abcd850dc641cd70681a56cb038778c04c
2019-01-31 12:52:03 +09:00
Tyler Gunn
63f489cf39 Merge "Call Screening / Caller ID API Changes" am: 8b194fe9d8
am: d030f9d160

Change-Id: I2bed419aaf6e357c82e48506f70085ac98e729f7
2019-01-30 19:45:30 -08:00
Nazanin Bakhshi
602df1aa8c Merge "Add telephony API to switch multi sim config" 2019-01-31 03:44:15 +00:00
Varun Anand
b8ae5b64a9 Merge "Add an API that allows VPNs to declare themselves as metered." am: 62a9b66a38
am: 9563c15d09

Change-Id: Iab1d2a3bf27ec9c033253ccd48ce8026e3b18799
2019-01-30 19:39:50 -08:00
Tyler Gunn
8b194fe9d8 Merge "Call Screening / Caller ID API Changes" 2019-01-31 03:05:52 +00:00
Varun Anand
62a9b66a38 Merge "Add an API that allows VPNs to declare themselves as metered." 2019-01-31 02:43:25 +00:00
Nazanin Bakhshi
458a474998 Add telephony API to switch multi sim config
Bug: 122115649
Test: sanity
Change-Id: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
Merged-In: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
(cherry picked from commit 1e031bde1a)
2019-01-30 23:19:14 +00:00
Remi NGUYEN VAN
df46cd451f Merge "Add SystemApi for captive portal metrics" am: 55849979a5
am: 56bed1321e

Change-Id: I15adc597039539d53e5c08dc5f8cac74bcb0eda2
2019-01-30 14:42:34 -08:00
Remi NGUYEN VAN
55849979a5 Merge "Add SystemApi for captive portal metrics" 2019-01-30 22:24:12 +00:00
Varun Anand
1215f09b07 Add an API that allows VPNs to declare themselves as metered.
For VPN apps targeting Q and above, they will by default be treated as
metered unless they override this setting before establishing VPN.

Bug: 120145746
Test: atest FrameworksNetTests
Test: On device tests verifying meteredness setup correctly for apps
targeting Q and apps targeting P.
Change-Id: Ia6d1f7ef244bc04ae2e28faa59625302b5994875
2019-01-30 14:09:03 -08:00
Jack Yu
a6d8ebdfbe Merge "Added a broadcast intent for clients to listen for country changes" am: 090b59fa45
am: 16dd167de0

Change-Id: I071e3246b31fe1d768df95908f2484565375cd29
2019-01-30 13:33:32 -08:00
Jack Yu
8c7b2b45c0 Added a broadcast intent for clients to listen for country changes
Added a broadcast intent ACTION_NETWORK_COUNTRY_CHANGED for clients
to listen for network country code changes. The same value can be
retrieved from TelephonyManager.getNetworkCountryIso().

Test: Manual + unit tests
Bug: 122900588
Merged-In: Ifec87dda7bae386118b7bc7523844342bd16c3ea
Change-Id: Ifec87dda7bae386118b7bc7523844342bd16c3ea
(cherry picked from commit 3d33698bf5)
2019-01-30 11:52:21 -08:00
Chen Xu
072ca6f94d Merge "new API for IMS call fail cause" am: ebad5a64d0
am: 634594fb41

Change-Id: Ie6362bc5a6e7c372e7e60277feb48436a852f610
2019-01-30 10:35:38 -08:00
Eric Holk
ce7aa1bf68 Merge "[layout precompilation] Add testing hook for precompiled layouts" am: 15b86c9037
am: 0b329918fc

Change-Id: I6417624f74b779e05f5a4a30c484487a943697c6
2019-01-30 10:24:43 -08:00
Chen Xu
ebad5a64d0 Merge "new API for IMS call fail cause" 2019-01-30 18:01:56 +00:00
Treehugger Robot
15b86c9037 Merge "[layout precompilation] Add testing hook for precompiled layouts" 2019-01-30 17:55:18 +00:00
Eric Holk
3b95621e12 [layout precompilation] Add testing hook for precompiled layouts
We want to be able to control at a fine grained level whether precompiled
layouts are enabled so we can compare inflation results with and without. This
changes adds a @TestApi method that supports this.

Bug: 111895153
Merged-In: Ib6b62d79a9ca7aefefff8639752aa5838e491038
Change-Id: I2f28f6912499825e52c17cc163be9c0fe93855cb
2019-01-30 16:19:29 +00:00
Remi NGUYEN VAN
de60221ec8 Add SystemApi for captive portal metrics
The metrics go through NetworkMonitor in the NetworkStack so that they
can be upgraded to new metrics in the future.

Test: flashed, captive portal login works, metrics shown in events log
Bug: 112869080
Merged-In: I4bccfbd87bae5b2d65e45c7a5918aa45ab5d76e8
Change-Id: Ib5e2126788f8d56a00a56d7efcd33c5f9a37a6de
2019-01-30 22:54:27 +09:00
Adrian Roos
5918a1cb6b Merge "API: Fix missing @NonNull annotations" am: b852f6636f
am: d1f5939c1a

Change-Id: I3d0ac8768dcc9c314e235dc679752dd5cbfde0c5
2019-01-30 02:17:56 -08:00
Adrian Roos
aaeb5c1201 Merge "API: Add missing nullability annotations" am: e148fbcf03
am: 336e11018e

Change-Id: Idb6cbb94968f4a2ffe3055291f23fc903fe923a0
2019-01-30 02:12:37 -08:00
Adrian Roos
b852f6636f Merge "API: Fix missing @NonNull annotations" 2019-01-30 09:31:58 +00:00
Adrian Roos
e148fbcf03 Merge "API: Add missing nullability annotations" 2019-01-30 09:31:58 +00:00
Michele Berionne
adb7ee97e4 Merge "Add APIs to get/set if usage of multiple SIMs is restricted." am: 59133875e7
am: e01966e89b

Change-Id: I383b701bff4c77596fad1d72929a5afcc5b0cf56
2019-01-29 22:42:29 -08:00
Michele Berionne
59133875e7 Merge "Add APIs to get/set if usage of multiple SIMs is restricted." 2019-01-30 06:18:19 +00:00
Michele
233d6b292f Add APIs to get/set if usage of multiple SIMs is restricted.
Add API that indicates if the usage of multiple SIMs at the same time is
allowed or restricted in order to support requirements from carriers for
dual SIM devices

Bug: 123537730
Test: Verified with test application.
Change-Id: I5e3e5ff41927e43ead4a30988630cf9125d5a048
Merged-In: I5e3e5ff41927e43ead4a30988630cf9125d5a048
(cherry picked from commit 398d5d9113)
2019-01-29 17:38:23 -08:00
Treehugger Robot
c9d834e3f5 Merge "Whitelist packages from VPN lockdown: DPM API." 2019-01-30 01:29:45 +00:00
Chen Xu
7c3084c349 Merge "Add IntRange and FloatRange annotations" am: 94a9377222
am: 74798a771a

Change-Id: I6353003144e4c2cf5882d20d2d37921dc69b4bcf
2019-01-29 16:43:48 -08:00
Chen Xu
94a9377222 Merge "Add IntRange and FloatRange annotations" 2019-01-30 00:06:23 +00:00
Jordan Liu
316dc44a91 Merge "Card ID APIs are public" am: bd4a4dc889
am: a039e692a4

Change-Id: I6041944772567794b79a355c9f77767ed61c0f76
2019-01-29 15:18:21 -08:00
Tyler Gunn
94f8f11342 Call Screening / Caller ID API Changes
- Fix bug in call identification parcelable; was reversing the app name
and package name.
- Add @hide RoleManager consts for the Telecom roles; this will be
replaced by values in the library for public consumption as a later
date.
- Add new call direction attribute to the Call.Details class; this is
needed so that a CallScreeningService can know if a call is incoming
or outgoing.  This way it knows whether it needs to perform call blocking
or just caller ID.
- Update CallScreeningService API docs to explain how to request the
call screening role.
- Update InCallService API docs to explain the 3 roles related to this
service and how you declare an appropriate IncallService to fill each of
them.

Bug: 63966743
Test: Manual, CTS
Merged-In: Ic4547b8ead791690305f7be58e43272c4155b7fb
Change-Id: Ic4547b8ead791690305f7be58e43272c4155b7fb
2019-01-29 14:45:55 -08:00
Jordan Liu
bd4a4dc889 Merge "Card ID APIs are public" 2019-01-29 22:43:47 +00:00
chen xu
e0a3eb90d9 Add IntRange and FloatRange annotations
Bug: 123223163
Test: Build
Change-Id: I17f27075007df642ec93e5b762b0717da4a1e927
2019-01-29 13:58:29 -08:00
Pavel Grafov
2b60849c5c Whitelist packages from VPN lockdown: DPM API.
Bug: 77468593
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: I7508070f828fb7150df5d9e34846535d57c6a7c3
Merged-In: I7508070f828fb7150df5d9e34846535d57c6a7c3
2019-01-29 21:49:07 +00:00
TreeHugger Robot
299f825678 Merge "Whitelist packages from VPN lockdown: DPM API." into pi-dev-plus-aosp 2019-01-29 21:44:13 +00:00