OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Fix the wrong assignment"
Treehugger Robot [Fri, 1 Feb 2019 16:44:36 +0000 (16:44 +0000)]
Merge "Fix the wrong assignment"

5 years agoMerge "Add owners for KeyChain code"
Eran Messeri [Fri, 1 Feb 2019 12:51:51 +0000 (12:51 +0000)]
Merge "Add owners for KeyChain code"

5 years agoFix the wrong assignment
Kyeongkab.Nam [Fri, 1 Feb 2019 02:51:02 +0000 (11:51 +0900)]
Fix the wrong assignment

the format value is erroneously assigned to sinkChannelMask.
Therefore, it modify to assign the format value to sinkFormat.

Test: manual
Change-Id: Iaa2f2cef0f1448a432279483b23e0057ae3ed381

5 years agoMerge "Fix to register the receiver for all users"
Treehugger Robot [Fri, 1 Feb 2019 08:08:32 +0000 (08:08 +0000)]
Merge "Fix to register the receiver for all users"

5 years agoMerge "Handle permission check for multi-active SIMs devices."
Holly Jiuyu Sun [Fri, 1 Feb 2019 04:16:50 +0000 (04:16 +0000)]
Merge "Handle permission check for multi-active SIMs devices."

5 years agoMerge "[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING"
Treehugger Robot [Fri, 1 Feb 2019 02:50:31 +0000 (02:50 +0000)]
Merge "[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING"

5 years agoMerge "Fix read/write parcel of CallAttributes"
Jordan Liu [Fri, 1 Feb 2019 01:20:53 +0000 (01:20 +0000)]
Merge "Fix read/write parcel of CallAttributes"

5 years agoMerge "Add new ImsException to better handle ImsService errors"
Brad Ebinger [Thu, 31 Jan 2019 23:26:57 +0000 (23:26 +0000)]
Merge "Add new ImsException to better handle ImsService errors"

5 years agoMerge "Update android.hidl.manager-V1.0-java to V1.2"
Peter Kalauskas [Thu, 31 Jan 2019 22:05:47 +0000 (22:05 +0000)]
Merge "Update android.hidl.manager-V1.0-java to V1.2"

5 years agoUpdate android.hidl.manager-V1.0-java to V1.2
Peter Kalauskas [Tue, 22 Jan 2019 23:41:59 +0000 (15:41 -0800)]
Update android.hidl.manager-V1.0-java to V1.2

Test: Manual
Bug: 123307146
Change-Id: I8dcd291c187af2cb20fd9a8f09bd55e75a2762e1

5 years ago[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING
Eric Holk [Mon, 28 Jan 2019 23:16:52 +0000 (15:16 -0800)]
[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING

PrecompiledLayoutTest makes sure that layouts generated by the viewcompiler are
equivalent to inflating from the resource XML file. We'll want to run these
tests when making changes to the viewcompiler.

Bug: 111895153
Test: atest
Change-Id: Iffa6f0f01c3f43d43feaabd1a5cd36be76650975

5 years agoFix read/write parcel of CallAttributes
Jordan Liu [Wed, 30 Jan 2019 23:35:44 +0000 (15:35 -0800)]
Fix read/write parcel of CallAttributes

Fixes: 123363462
Test: manual
Change-Id: I947005d43930ad136e5d6933c950d0f27f8fbadd

5 years agoMerge "Do not generate greylist if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true"
Treehugger Robot [Thu, 31 Jan 2019 19:25:59 +0000 (19:25 +0000)]
Merge "Do not generate greylist if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true"

5 years agoMerge "Compile CaptivePortalLogin as system_current"
Remi NGUYEN VAN [Thu, 31 Jan 2019 15:01:49 +0000 (15:01 +0000)]
Merge "Compile CaptivePortalLogin as system_current"

5 years agoMerge "Add the DynamicAndroid Service"
Howard Chen [Thu, 31 Jan 2019 14:35:49 +0000 (14:35 +0000)]
Merge "Add the DynamicAndroid Service"

5 years agoMerge "Add NetworkStackPermissionStub definitions"
Remi NGUYEN VAN [Thu, 31 Jan 2019 14:13:22 +0000 (14:13 +0000)]
Merge "Add NetworkStackPermissionStub definitions"

5 years agoMerge "Prepare CaptivePortalLogin for system_current"
Remi NGUYEN VAN [Thu, 31 Jan 2019 12:46:00 +0000 (12:46 +0000)]
Merge "Prepare CaptivePortalLogin for system_current"

5 years agoAdd NetworkStackPermissionStub definitions
Remi NGUYEN VAN [Wed, 30 Jan 2019 12:45:56 +0000 (21:45 +0900)]
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

5 years agoMerge "Fix bluetooth tethering on multi-user"
Remi NGUYEN VAN [Thu, 31 Jan 2019 11:53:53 +0000 (11:53 +0000)]
Merge "Fix bluetooth tethering on multi-user"

5 years agoAdd owners for KeyChain code
Eran Messeri [Thu, 31 Jan 2019 11:48:40 +0000 (11:48 +0000)]
Add owners for KeyChain code

Add the Android Enterprise Security team as OWNERS for KeyChain and
KeyChain-related code.

The KeyChain code currently lives under keystore/, which means every
change requires Keystore owners approval, but it does not make sense for
KeyChain as KeyChain is a Keystore client and is developed
independently.

Test: Gerritt upload.
Bug: 33166666
Change-Id: Idfedda9553add303439179ce10a1e75e437bbe83

5 years agoCompile CaptivePortalLogin as system_current
Remi NGUYEN VAN [Wed, 30 Jan 2019 15:16:27 +0000 (00:16 +0900)]
Compile CaptivePortalLogin as system_current

Test: make CaptivePortalLogin
Test: flashed, boots, login works
Bug: 112869080
Change-Id: I955c1b111ce76262fe20f5891b1853de0889f4b8

5 years agoPrepare CaptivePortalLogin for system_current
Remi NGUYEN VAN [Wed, 30 Jan 2019 14:39:24 +0000 (23:39 +0900)]
Prepare CaptivePortalLogin for system_current

Includes small changes to stop using non-SystemApi endpoints.

Test: make CaptivePortalLogin
Test: flashed, login works, SSL certificate invalid flow works
Bug: 112869080
Merged-In: Ic6ce98942959705ea7ef14a7a62d33e3abf7eb72
Change-Id: Ie7ea3bab6aa8629ce4c111adee0c0699d95d4b0e

5 years agoMerge changes from topic "bindprocess-resolv"
Remi NGUYEN VAN [Thu, 31 Jan 2019 07:52:04 +0000 (07:52 +0000)]
Merge changes from topic "bindprocess-resolv"

* changes:
  Allow use of bindProcessToNetwork only to change private DNS bypass.
  Allow bypassing private DNS via bindProcessToNetwork.

5 years agoMerge "Add get last entitlement value callback API"
Mark Chien [Thu, 31 Jan 2019 07:23:31 +0000 (07:23 +0000)]
Merge "Add get last entitlement value callback API"

5 years agoAdd the DynamicAndroid Service
Howard Chen [Mon, 7 Jan 2019 06:10:44 +0000 (14:10 +0800)]
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

5 years agoFix bluetooth tethering on multi-user
Remi NGUYEN VAN [Wed, 30 Jan 2019 23:46:36 +0000 (08:46 +0900)]
Fix bluetooth tethering on multi-user

Bluetooth runs as UID 1001002 when on a secondary user. With this change
the NetworkStack verifies that the calling UID matches the Bluetooth app
regardless of the user.

Test: flashed, BT reverse tethering still working as primary user
      (no option to turn on as secondary user on phones)
Bug: 123655057
Change-Id: I23f9c5fa40f3bb676ac65dd8c15106c9d78309a4

5 years agoMerge "Add UserHandle.getAppId to SystemApi"
Remi NGUYEN VAN [Thu, 31 Jan 2019 06:04:11 +0000 (06:04 +0000)]
Merge "Add UserHandle.getAppId to SystemApi"

5 years agoMerge "Add a method to determine if a reboot is required to alter the modem config"
Nazanin Bakhshi [Thu, 31 Jan 2019 05:23:43 +0000 (05:23 +0000)]
Merge "Add a method to determine if a reboot is required to alter the modem config"

5 years agoMerge "[KA06] export keepalive offload permission as system api."
Treehugger Robot [Thu, 31 Jan 2019 05:18:17 +0000 (05:18 +0000)]
Merge "[KA06] export keepalive offload permission as system api."

5 years agoHandle permission check for multi-active SIMs devices.
Holly Jiuyu Sun [Thu, 17 Jan 2019 22:41:14 +0000 (14:41 -0800)]
Handle permission check for multi-active SIMs devices.

For download and switch, if the caller can manage (has carrier privilege)
on any active sub on any other slots && the caller can manage the active
sub on the target slot or there is no active sub on the target slot, we
allow the caller to continue download. Otherwise, we require user consent.
For getting EID, we now check whether the caller has privilege on the
target card with the given cardId.
Other logic including the logic for single-active slot still keep the
same.
Also, open disable sub (switch to empty sub) to privileged carrier apps
instead of just system.

Bug: 36260308
Bug: 120621262
Test: unit test, test on phone
Change-Id: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
Merged-In: Icfc0c9e9f4303876bceb1adbe217b39b538b347e

5 years agoAdd get last entitlement value callback API
markchien [Wed, 16 Jan 2019 09:44:13 +0000 (17:44 +0800)]
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

5 years agoAdd a method to determine if a reboot is required to alter the modem config
Nazanin Bakhshi [Wed, 30 Jan 2019 18:49:29 +0000 (10:49 -0800)]
Add a method to determine if a reboot is required to alter the modem config

Bug: 123101701
Test: sanity
Change-Id: I841b947efda0016c003f54ecf7853624582abab9
Merged-In: I841b947efda0016c003f54ecf7853624582abab9
(cherry picked from commit 7eca4afab4565ca1bd0f9827e93370885ba5ccea)

5 years agoAllow use of bindProcessToNetwork only to change private DNS bypass.
Lorenzo Colitti [Thu, 31 Jan 2019 04:08:24 +0000 (13:08 +0900)]
Allow use of bindProcessToNetwork only to change private DNS bypass.

Currently it is not possible to change private DNS bypass by
doing:

  setProcessDefaultNetwork(network.getPrivateDnsBypassingCopy());
  setProcessDefaultNetwork(network);

because the code will ignore the change. Fix this by ensuring
that we always call bindProcessToNetwork (which does not have
side effects) and then only performing the expensive operations
(flushing DNS cache, upating socket pools) if the netId changed.

Bug: 112869080
Test: None
Change-Id: I5e8999cb11d8b8c1e9eb583fa8b3932f212accff

5 years agoAdd UserHandle.getAppId to SystemApi
Remi NGUYEN VAN [Thu, 31 Jan 2019 03:36:54 +0000 (12:36 +0900)]
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

5 years agoMerge "Add telephony API to switch multi sim config"
Nazanin Bakhshi [Thu, 31 Jan 2019 03:44:15 +0000 (03:44 +0000)]
Merge "Add telephony API to switch multi sim config"

5 years agoMerge "Call Screening / Caller ID API Changes"
Tyler Gunn [Thu, 31 Jan 2019 03:05:52 +0000 (03:05 +0000)]
Merge "Call Screening / Caller ID API Changes"

5 years agoMerge "Add an API that allows VPNs to declare themselves as metered."
Varun Anand [Thu, 31 Jan 2019 02:43:25 +0000 (02:43 +0000)]
Merge "Add an API that allows VPNs to declare themselves as metered."

5 years agoMerge "Informing app idle listeners on enabled state changes."
Treehugger Robot [Thu, 31 Jan 2019 02:35:42 +0000 (02:35 +0000)]
Merge "Informing app idle listeners on enabled state changes."

5 years agoMerge "Add sandness@ and rubinxu@ to OWNERS for UserRestrictionsUtils"
Treehugger Robot [Thu, 31 Jan 2019 01:37:43 +0000 (01:37 +0000)]
Merge "Add sandness@ and rubinxu@ to OWNERS for UserRestrictionsUtils"

5 years agoMerge "Added OWNERS entries for some Zygote related files."
Christian Wailes [Thu, 31 Jan 2019 01:04:28 +0000 (01:04 +0000)]
Merge "Added OWNERS entries for some Zygote related files."

5 years agoMerge "Fixed crash in data service"
Jack Yu [Thu, 31 Jan 2019 00:46:04 +0000 (00:46 +0000)]
Merge "Fixed crash in data service"

5 years agoFixed crash in data service
Jack Yu [Wed, 30 Jan 2019 00:26:49 +0000 (16:26 -0800)]
Fixed crash in data service

Test: telephony sanity tests
Bug: 123598340
Change-Id: Ie15f8869849a2aed4a32f4f6731abd5ba1eb05cd

5 years agoAdd telephony API to switch multi sim config
Nazanin Bakhshi [Wed, 30 Jan 2019 22:57:28 +0000 (14:57 -0800)]
Add telephony API to switch multi sim config

Bug: 122115649
Test: sanity
Change-Id: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
Merged-In: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
(cherry picked from commit 1e031bde1a85048bc43e72b38869d296db9ae228)

5 years agoMerge "Add SystemApi for captive portal metrics"
Remi NGUYEN VAN [Wed, 30 Jan 2019 22:24:12 +0000 (22:24 +0000)]
Merge "Add SystemApi for captive portal metrics"

5 years agoMerge "Nuke old setAlwaysOnVpnPackageForUser method."
Treehugger Robot [Wed, 30 Jan 2019 22:10:40 +0000 (22:10 +0000)]
Merge "Nuke old setAlwaysOnVpnPackageForUser method."

5 years agoAdd an API that allows VPNs to declare themselves as metered.
Varun Anand [Mon, 14 Jan 2019 19:45:33 +0000 (11:45 -0800)]
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

5 years agoMerge "Use default argument for VintfObject::CheckCompatibility."
Yifan Hong [Wed, 30 Jan 2019 21:09:14 +0000 (21:09 +0000)]
Merge "Use default argument for VintfObject::CheckCompatibility."

5 years agoMerge "Added a broadcast intent for clients to listen for country changes"
Jack Yu [Wed, 30 Jan 2019 21:02:17 +0000 (21:02 +0000)]
Merge "Added a broadcast intent for clients to listen for country changes"

5 years agoMerge "Some of us are weird."
Dan Sandler [Wed, 30 Jan 2019 20:58:46 +0000 (20:58 +0000)]
Merge "Some of us are weird."

5 years agoNuke old setAlwaysOnVpnPackageForUser method.
Pavel Grafov [Wed, 30 Jan 2019 19:56:36 +0000 (19:56 +0000)]
Nuke old setAlwaysOnVpnPackageForUser method.

All callers have migrated to 4-argument one.

Test: builds
Bug: 77468593
Change-Id: I253515f6b0100b675505646339e5b82d373c9429

5 years agoAdded a broadcast intent for clients to listen for country changes
Jack Yu [Fri, 25 Jan 2019 22:50:15 +0000 (14:50 -0800)]
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 3d33698bf5d98a6480a9f6928d1f1e23d519cc08)

5 years agoMerge "VpnDialogs should be able to control always-on VPN."
Treehugger Robot [Wed, 30 Jan 2019 19:34:47 +0000 (19:34 +0000)]
Merge "VpnDialogs should be able to control always-on VPN."

5 years agoMerge "new API for IMS call fail cause"
Chen Xu [Wed, 30 Jan 2019 18:01:56 +0000 (18:01 +0000)]
Merge "new API for IMS call fail cause"

5 years agoMerge "[layout precompilation] Add testing hook for precompiled layouts"
Treehugger Robot [Wed, 30 Jan 2019 17:55:18 +0000 (17:55 +0000)]
Merge "[layout precompilation] Add testing hook for precompiled layouts"

5 years agoVpnDialogs should be able to control always-on VPN.
Pavel Grafov [Wed, 30 Jan 2019 17:11:33 +0000 (17:11 +0000)]
VpnDialogs should be able to control always-on VPN.

Bug: 77468593
Test: atest HostsideVpnTests#testIsAlwaysOnIsLockdown
Change-Id: I0a0c6b138c748a6cb8681c20c137f70ee1fc6cf9

5 years agoMerge "Initialise hidden api usage logger pre-fork"
Andrei-Valentin Onea [Wed, 30 Jan 2019 16:42:54 +0000 (16:42 +0000)]
Merge "Initialise hidden api usage logger pre-fork"

5 years ago[layout precompilation] Add testing hook for precompiled layouts
Eric Holk [Fri, 18 Jan 2019 19:49:55 +0000 (11:49 -0800)]
[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

5 years agoAllow bypassing private DNS via bindProcessToNetwork.
Lorenzo Colitti [Wed, 30 Jan 2019 14:04:54 +0000 (23:04 +0900)]
Allow bypassing private DNS via bindProcessToNetwork.

Currently, bypassing private DNS requires calling the deprecated
setProcessDefaultNetworkForHostResolution. Allow apps to do this
via the non-deprecated binProcessForNetwork as well.

This has fewer backwards compatibility concerns than the
alternative approach of having setProcessDefaultNetwork call
setProcessDefaultNetworkForHostResolution. That approach would
have been problematic, for example, if an app did:

  cm.bindProcessToNetwork(network);
  ...
  cm.bindProcessToNetwork(null);

In this case, it would be difficult to know whether to clear the
resolver mapping as well: what if an app had also called
setProcessDefaultNetworkForHostResolution?

Similarly, it would be difficult to know what to do if an app did:

  cm.setProcessDefaultNetworkForHostResolution(network);
  cm.bindProcessToNetwork(null);

This approach does not have these concerns, and has no effect
on apps that don't call Network.getPrivateDnsBypassingCopy, which
regular apps don't have permission to use. It also provides a
path to deprecate setProcessDefaultNetworkForHostResolution.

Bug: 112869080
Test: atest android.net.cts.ConnectivityManagerTest android.net.cts.MultinetworkApiTest
Change-Id: I4158a37b6ed87a9a9b2677c526dcfee8af48e483

5 years agoAdd SystemApi for captive portal metrics
Remi NGUYEN VAN [Wed, 30 Jan 2019 06:22:01 +0000 (15:22 +0900)]
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

5 years agoInitialise hidden api usage logger pre-fork
Andrei Onea [Fri, 25 Jan 2019 16:29:44 +0000 (16:29 +0000)]
Initialise hidden api usage logger pre-fork

Topic: hidden-api-reporting-upcall
Test: m
Bug: 119217680
Change-Id: I8722f0bf4275fea4a8faf41d7b862c04b4014824
Merged-In: I80f82092ef779a7dc1f1322cb7c05ebf5e59939b

5 years agoMerge "Track ZygoteHooks API changes in libcore"
Neil Fuller [Wed, 30 Jan 2019 10:53:55 +0000 (10:53 +0000)]
Merge "Track ZygoteHooks API changes in libcore"

5 years agoInforming app idle listeners on enabled state changes.
Kweku Adams [Tue, 6 Nov 2018 02:06:13 +0000 (18:06 -0800)]
Informing app idle listeners on enabled state changes.

Currently, if AppStandbyController is enabled after some listeners have
already registered, the listeners will be told that the system is in a
state of parole even though AppStandbyController thinks it's not in
parole. This change informs AppIdleStateChangeListeners when
AppStandbyController's enabled state changes as well so that they can be
in the correct state.

I also removed the call to setAppIdleEnabled() in onBootPhase() since
updateSettings() is called right afterwards and that also calls
setAppIdleEnabled().

Bug: 112329453
Test: atest AppStandbyControllerTests
also check logs to confirm that NetworkPolicyManagerService and
JobSchedulerService's listeners switch from ON to OFF when the system is
ready.

Change-Id: I88bc293c70b459f54f75f92126ad306d6ab8d9b7
Merged-In: I88bc293c70b459f54f75f92126ad306d6ab8d9b7

5 years agoMerge "API: Fix missing @NonNull annotations"
Adrian Roos [Wed, 30 Jan 2019 09:31:58 +0000 (09:31 +0000)]
Merge "API: Fix missing @NonNull annotations"

5 years agoMerge "API: Add missing nullability annotations"
Adrian Roos [Wed, 30 Jan 2019 09:31:58 +0000 (09:31 +0000)]
Merge "API: Add missing nullability annotations"

5 years agoMerge "move ServiceState.getDataRegState to greylist"
Chen Xu [Wed, 30 Jan 2019 06:20:01 +0000 (06:20 +0000)]
Merge "move ServiceState.getDataRegState to greylist"

5 years agoMerge "Add APIs to get/set if usage of multiple SIMs is restricted."
Michele Berionne [Wed, 30 Jan 2019 06:18:19 +0000 (06:18 +0000)]
Merge "Add APIs to get/set if usage of multiple SIMs is restricted."

5 years agoMerge "Compile NetworkStack as system_current"
Remi NGUYEN VAN [Wed, 30 Jan 2019 04:56:15 +0000 (04:56 +0000)]
Merge "Compile NetworkStack as system_current"

5 years agoMerge "Remove last NetworkStack usage of hidden APIs"
Remi NGUYEN VAN [Wed, 30 Jan 2019 04:55:21 +0000 (04:55 +0000)]
Merge "Remove last NetworkStack usage of hidden APIs"

5 years agoAdd APIs to get/set if usage of multiple SIMs is restricted.
Michele [Fri, 21 Dec 2018 22:51:01 +0000 (14:51 -0800)]
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 398d5d91136d6e2146bf56ad3bdbb326a835c8ef)

5 years agoMerge "Whitelist packages from VPN lockdown: DPM API."
Treehugger Robot [Wed, 30 Jan 2019 01:29:45 +0000 (01:29 +0000)]
Merge "Whitelist packages from VPN lockdown: DPM API."

5 years agoCompile NetworkStack as system_current
Remi NGUYEN VAN [Tue, 29 Jan 2019 12:32:48 +0000 (21:32 +0900)]
Compile NetworkStack as system_current

Test: make NetworkStack
Test: flashed, WiFi and tethering working
Bug: 112869080
Change-Id: I2d805c0fefe271199f4f0e0d49d91e03f41a7eef

5 years agoRemove last NetworkStack usage of hidden APIs
Remi NGUYEN VAN [Tue, 29 Jan 2019 06:38:52 +0000 (15:38 +0900)]
Remove last NetworkStack usage of hidden APIs

Includes various small changes to stop using hidden APIs

Test: make NetworkStack
Test: flashed, booted, WiFi and tethering working
Bug: 112869080
Change-Id: Id2830795a444f484b377ed6437435a1cd833697a

5 years agoUse default argument for VintfObject::CheckCompatibility.
Yifan Hong [Wed, 30 Jan 2019 00:45:45 +0000 (16:45 -0800)]
Use default argument for VintfObject::CheckCompatibility.

The default argument has been changed to ENABLE_ALL_CHECKS to DEFAULT.
Just use the default argument implicitly.

Test: boots (sanity)
Bug: 117914319
Change-Id: Ib3d44c89625abcce50c6f22253461417dd130f80

5 years agoMerge "Add IntRange and FloatRange annotations"
Chen Xu [Wed, 30 Jan 2019 00:06:23 +0000 (00:06 +0000)]
Merge "Add IntRange and FloatRange annotations"

5 years agomove ServiceState.getDataRegState to greylist
chen xu [Tue, 29 Jan 2019 23:56:40 +0000 (15:56 -0800)]
move ServiceState.getDataRegState to greylist

given we don't have a public alternatives for dataregstate for Q,
thus we shouldn't move this API to app-compat dark list.

Bug: 123099466
Test: Build
Change-Id: I67531ce536e004e1bc0f764824a261fb51cd27fa

5 years agoCall Screening / Caller ID API Changes
Tyler Gunn [Mon, 17 Dec 2018 17:56:11 +0000 (09:56 -0800)]
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

5 years agoMerge "Card ID APIs are public"
Jordan Liu [Tue, 29 Jan 2019 22:43:47 +0000 (22:43 +0000)]
Merge "Card ID APIs are public"

5 years agoAdd IntRange and FloatRange annotations
chen xu [Tue, 29 Jan 2019 21:58:29 +0000 (13:58 -0800)]
Add IntRange and FloatRange annotations

Bug: 123223163
Test: Build
Change-Id: I17f27075007df642ec93e5b762b0717da4a1e927

5 years agoWhitelist packages from VPN lockdown: DPM API.
Pavel Grafov [Fri, 25 Jan 2019 08:50:06 +0000 (08:50 +0000)]
Whitelist packages from VPN lockdown: DPM API.

Bug: 77468593
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: I7508070f828fb7150df5d9e34846535d57c6a7c3
Merged-In: I7508070f828fb7150df5d9e34846535d57c6a7c3

5 years agoTrack ZygoteHooks API changes in libcore
Neil Fuller [Mon, 28 Jan 2019 18:29:20 +0000 (18:29 +0000)]
Track ZygoteHooks API changes in libcore

Track ZygoteHooks API changes in libcore to make
the ZygoteHooks API more consistent.

Bug: 111742291
Test: build / boot / treehugger
Merged-In: Ie65aac6539cffc90663807791511b95a6cd61ab4
Change-Id: Ie65aac6539cffc90663807791511b95a6cd61ab4

5 years agoSome of us are weird.
Dan Sandler [Tue, 29 Jan 2019 19:44:39 +0000 (14:44 -0500)]
Some of us are weird.

Test: dsandler can give OWNERS approval
Change-Id: I9b4f7903513e7171dfa51aa39a32b6bcfbfbb0eb

5 years agoMerge "Define more thresholds for opportunistic data"
Sooraj Sasindran [Tue, 29 Jan 2019 19:43:26 +0000 (19:43 +0000)]
Merge "Define more thresholds for opportunistic data"

5 years agoMerge changes I94d15307,I7deb8556,I755b3140
Treehugger Robot [Tue, 29 Jan 2019 19:27:53 +0000 (19:27 +0000)]
Merge changes I94d15307,I7deb8556,I755b3140

* changes:
  Atom: Add more Bluetooth atoms
  Atom: Add A2DP playback related atoms to StatsLog
  Fix typo in hci/enums.proto: OCCURED -> OCCURRED

5 years agoCard ID APIs are public
Jordan Liu [Fri, 18 Jan 2019 18:29:56 +0000 (10:29 -0800)]
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

5 years agoMerge "Add check for slot index value"
Michele Berionne [Tue, 29 Jan 2019 17:25:17 +0000 (17:25 +0000)]
Merge "Add check for slot index value"

5 years agoMerge "apilint: Allow parsing 3.0 signature files"
Adrian Roos [Tue, 29 Jan 2019 16:05:21 +0000 (16:05 +0000)]
Merge "apilint: Allow parsing 3.0 signature files"

5 years agoAdd sandness@ and rubinxu@ to OWNERS for UserRestrictionsUtils
Pavel Grafov [Tue, 29 Jan 2019 15:13:46 +0000 (15:13 +0000)]
Add sandness@ and rubinxu@ to OWNERS for UserRestrictionsUtils

Test: none
Bug: none
Change-Id: I48d2547de69092a3d98f7a97803146ab3fe38f01

5 years agoMerge "Revert "Extract network observer code from NetworkManagementService.""
Remi NGUYEN VAN [Tue, 29 Jan 2019 14:30:56 +0000 (14:30 +0000)]
Merge "Revert "Extract network observer code from NetworkManagementService.""

5 years agoapilint: Allow parsing 3.0 signature files
Adrian Roos [Tue, 29 Jan 2019 14:01:28 +0000 (15:01 +0100)]
apilint: Allow parsing 3.0 signature files

Test: python apilint_test.py
Change-Id: I59df950229c05329afde93f94efc13adb4640ad7

5 years agoMerge "Move FdEventsReader to the shared area."
Treehugger Robot [Tue, 29 Jan 2019 11:45:15 +0000 (11:45 +0000)]
Merge "Move FdEventsReader to the shared area."

5 years agoMerge "Run IpClientLinkObserver on Binder thread"
Remi NGUYEN VAN [Tue, 29 Jan 2019 11:07:42 +0000 (11:07 +0000)]
Merge "Run IpClientLinkObserver on Binder thread"

5 years agoMerge "Add utils connect, setsockopt, bind, sendTo"
Remi NGUYEN VAN [Tue, 29 Jan 2019 11:07:20 +0000 (11:07 +0000)]
Merge "Add utils connect, setsockopt, bind, sendTo"

5 years agoMerge "Add NetworkUtils utilities to SystemApi"
Remi NGUYEN VAN [Tue, 29 Jan 2019 11:07:04 +0000 (11:07 +0000)]
Merge "Add NetworkUtils utilities to SystemApi"

5 years agoRevert "Extract network observer code from NetworkManagementService."
Remi NGUYEN VAN [Tue, 29 Jan 2019 04:03:38 +0000 (04:03 +0000)]
Revert "Extract network observer code from NetworkManagementService."

This reverts commit d8bc829a85c9c9bb390e18b59ef1455b6d0b94ec.

Reason for revert: Refactoring was unnecessary

Merged-In: Ib4e7da3274e49f25676505a08e6ce7e7b0dfdb8d
Change-Id: Iff332c680315b560f0b762c1d7311ec83d539115

5 years agoMove FdEventsReader to the shared area.
Chalard Jean [Tue, 29 Jan 2019 09:30:03 +0000 (18:30 +0900)]
Move FdEventsReader to the shared area.

This is necessary both in the network stack app and the
framework.

Test: FrameworksNetTests
Change-Id: I48af0ab29405501f0581a6c0c9ce6e5d4a32c8b4

5 years agoMerge "Remove IpClient usage of NetworkManagementService"
Remi NGUYEN VAN [Tue, 29 Jan 2019 08:58:32 +0000 (08:58 +0000)]
Merge "Remove IpClient usage of NetworkManagementService"

5 years agoAdd utils connect, setsockopt, bind, sendTo
Remi NGUYEN VAN [Tue, 29 Jan 2019 06:17:00 +0000 (15:17 +0900)]
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

5 years agoAdd NetworkUtils utilities to SystemApi
Remi NGUYEN VAN [Tue, 29 Jan 2019 03:08:43 +0000 (12:08 +0900)]
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

5 years agoRun IpClientLinkObserver on Binder thread
Remi NGUYEN VAN [Tue, 29 Jan 2019 07:46:48 +0000 (16:46 +0900)]
Run IpClientLinkObserver on Binder thread

This restores previous behavior, where callbacks would not be called on
the IpClient handler thread.

Test: atest FrameworksNetTests NetworkStackTests
Test: flashed, WiFi works
Bug: 123062477
Change-Id: I3015566b0922d76ac7cf70579a1de3e033bf7b4a

5 years ago[KA06] export keepalive offload permission as system api.
junyulai [Tue, 29 Jan 2019 07:28:19 +0000 (15:28 +0800)]
[KA06] export keepalive offload permission as system api.

Bug: 114151147
Test: m -j
Change-Id: I67a1656ccd3b0498d712c3a1297cf49ef8069eda