Commit Graph

20659 Commits

Author SHA1 Message Date
Brad Ebinger
3811aba3a4 Merge "Add new ImsException to better handle ImsService errors" 2019-01-31 23:26:57 +00: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
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
b334bbefd4 Merge "Add UserHandle.getAppId to SystemApi" 2019-01-31 06:04:11 +00: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
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
Nazanin Bakhshi
602df1aa8c Merge "Add telephony API to switch multi sim config" 2019-01-31 03:44:15 +00: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
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
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
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
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
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
94a9377222 Merge "Add IntRange and FloatRange annotations" 2019-01-30 00:06:23 +00: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
Sooraj Sasindran
cf2e069962 Merge "Define more thresholds for opportunistic data" 2019-01-29 19:43:26 +00:00
Jordan Liu
d6c684fff4 Card ID APIs are public
These were system API but we should expose them for apps with carrier
privileges.

Test: manual
Bug: 122974656
Change-Id: Ie60e4c580dfa9dd0d7d6fb6b94226661d0620dad
2019-01-29 10:55:35 -08:00
Remi NGUYEN VAN
249da094eb Add utils connect, setsockopt, bind, sendTo
The utilities are not supported as public API but required as SystemApi
for the NetworkStack.

Test: flashed, boots, WiFi works
Bug: 112869080
Change-Id: Ia64b3bf9c6c33cf61bed76469ea9963b550bed2b
2019-01-29 17:49:36 +09:00
Remi NGUYEN VAN
5c5f1ba99c Add NetworkUtils utilities to SystemApi
attach*Filter and addArpEntry are necessary for the NetworkStack but are
only usable for apps that have system permissions.
Also includes system API for IpPrefix, LinkAddress, LinkProperties,
Network, and static modifier in ApfCapabilities that were missed in
previous CLs.

Test: Builds, flashed, WiFi works
Bug: 112869080
Change-Id: If141ae6a2f9145f5af64ba002ca44938f39b90a9
2019-01-29 17:30:26 +09:00
junyulai
7fe17a45a3 [KA06] export keepalive offload permission as system api.
Bug: 114151147
Test: m -j
Change-Id: I67a1656ccd3b0498d712c3a1297cf49ef8069eda
2019-01-29 15:44:19 +08:00
chen xu
0f49468184 new API for IMS call fail cause
Bug: 119890559
Test: atest CtsTelephonyTestCases:PhoneStateListenerTest
Change-Id: Ia047b7ba2345ad0c8d998506026defc02eb80dc9
(cherry picked from commit 6ac5fc19e6)
Merged-in: Ia047b7ba2345ad0c8d998506026defc02eb80dc9
2019-01-28 23:07:37 -08:00
Sooraj Sasindran
428871cb04 Define more thresholds for opportunistic data
Define entry bandwidth threshold for opportunistic data
Define entry and hysteresis time for opportunistic data

Bug: 120847469
Test: make
Change-Id: Ie7c35e10aeaf791dba49d9f5e881d292068f81f3
Merged-In: Ie7c35e10aeaf791dba49d9f5e881d292068f81f3
2019-01-29 00:49:39 +00:00
Pengquan Meng
5cf41e47fe Merge "new SystemAPI to getSimLocale" 2019-01-29 00:21:49 +00:00
Remi NGUYEN VAN
cec60fa56a Merge "Add SocketUtils for NetworkStack" 2019-01-28 23:14:08 +00:00
Ruchi Kandoi
3ffdb26aa8 Merge "Add Secure NFC functionality" 2019-01-28 22:11:32 +00:00
Jack Yu
b551d0d6d3 Merge "Data profile refactoring" 2019-01-28 21:29:27 +00:00
Amit Mahajan
783400c390 Merge "Add Emergency Number Test Mode" 2019-01-28 20:51:25 +00:00
Jordan Liu
b3f282daa1 Merge "CallQuality is set to empty instead of null" 2019-01-28 19:16:06 +00:00
sqian
4fd607e32e Add Emergency Number Test Mode
Add EMERGENCY_NUMBER_SOURCE_TEST_MODE

This also does not allow to send the service categories from database when
dialing.

Bug: 122840137
Test: Manual; Treehugger
Merged-in: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
(cherry picked from commit cb4bd3a30f)
2019-01-28 10:58:45 -08:00
sqian
86e2209260 Add Emergency Uniform Resource Number (URN)
Test: Treehugger
Bug: 112657134
Change-Id: I87537f7123910e9843207428eb3167a90a15b6df
Merged-In: I87537f7123910e9843207428eb3167a90a15b6df
(cherry picked from commit 03bde886e5)
2019-01-28 18:37:47 +00:00
Jack Yu
7d675e5a44 Data profile refactoring
Data profile should use the public defined types
instead of the internal defined data types.

1. Using integer instead of string for protocol type.
2. Using TelephonyManager.NetworkTypeBitMask instead of
   the internal ServiceState.RIL_RADIO_TECHNOLOGY_XXX
   in data profile.

Test: Telephony sanity tests
Bug: 73659459
Merged-In: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
Change-Id: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
(cherry picked from commit af6b47af54)
2019-01-28 10:32:23 -08:00
Nandana Dutt
6ac57c669a Merge "Expose bugreporting API as system API." 2019-01-28 16:27:07 +00:00
Remi NGUYEN VAN
53b03140d4 Add SocketUtils for NetworkStack
These utilities can only be used for privileged apps. The underlying
implementation cannot be @SystemApi.

Test: m
Bug: 112869080
Change-Id: Idfa90561102e5b03ab2b79486d3ad46457128bf8
2019-01-28 20:11:27 +09:00
Nandana Dutt
2083e8c8b8 Expose bugreporting API as system API.
BUG: 111441001
Test: Builds
Change-Id: I1530f92971807b7e43c763a58dd1e18e793255da
Merged-In: I1530f92971807b7e43c763a58dd1e18e793255da
2019-01-28 09:33:55 +00:00