Commit Graph

560804 Commits

Author SHA1 Message Date
Daniel Bright
c018a8ce65 Revert^2 "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"
0acda00463

Change-Id: Ia55b965fc43efa239ec6d502f37fc8ef6b6bb916
Merged-In: Ie31d32a08b10b8c125f27832e81a3e65b6d8767a
2021-02-25 18:50:56 +00:00
Daniel Bright
0acda00463 Revert "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"
Revert "Update getRadioInterfaceCapabilities return type"

Revert "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"

Revert submission 1597527-capability_allowed_network_types

Reason for revert: Fix Build
Reverted Changes:
Icdee3444d:Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED
I531256f85:Update getRadioInterfaceCapabilities return type
I92c2d019a:Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED

Change-Id: I3d4dcea056079851095a267f04ea528c8ddbb3ba
2021-02-24 19:51:22 +00:00
Daniel Bright
bc1768cbde Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED
* Made the HAL version available to radio interface capabilities
* With version 1.6 of the Radio HAL, a new function was added to enforce
the user network types preference (setAllowedNetworkTypeBitmap).
Depending on the version implemented by the modem the
setPreferredNetworkType and setAllowedNetworkTypes TelephonyManager API
methods may use this new HAL method or rely on the previous method
(setPreferredNetworkType). This new capability enum value can be used by
TelephonyManager consumers to know which HAL function is effectively
backing up their calls.

Bug: 163168917
Test: checked logs, created RadioConfigCapabilitiesResponseTest
Merged-In: Ie31d32a08b10b8c125f27832e81a3e65b6d8767a
Change-Id: I92c2d019ad594e6604503c57a52c3c2cf8660f56
2021-02-21 17:33:46 -08:00
Jack Yu
8359ebecc3 Merge "Simplified the initial attach APN logic" 2021-02-21 18:14:03 +00:00
Orion Hodson
0248d32dc3 Merge "libandroid_runtime,libhwui: use libnativehelper_lazy" 2021-02-21 10:03:21 +00:00
Jack Yu
d5f25c2262 Simplified the initial attach APN logic
1. Instead of using the hardcoded order, read the order
   from configuration. This also allows carriers to specify
   the allowed types of APN can be used for initial attach.
2. Removed the preferred APN logic. The preferred APN is
   specifically for the default APN after a successful data
   setup. It's not related to initial attach.

Fix: 169657628
Test: Manual
Merged-In: I9fbf4f270726cba1281770db88fec7c1bb62e6db
Change-Id: I9fbf4f270726cba1281770db88fec7c1bb62e6db
(cherry picked from commit 0bebba7378)
2021-02-21 01:23:25 -08:00
James Mattis
1444e3eea1 Merge "Using defensive copy for default request remove" 2021-02-21 04:28:13 +00:00
James Mattis
ff5fb79411 Using defensive copy for default request remove
Passing in a defensive copy for the default requests in
ConnectivityService prior to updating that collection so as to not have
issues when removing elements as part of the per-app preference update
flow.

Bug: 176494815
Bug: 178632672
Test: atest FrameworksNetTests
atest FrameworksNetTests:com.android.server
.ConnectivityServiceTest#testSetOemNetworkPreference
ClearPreviousOemValues --iterations

Change-Id: Ia683d5035dda2be35fd2f2b7ee038e806caab6f9
2021-02-20 15:51:24 -08:00
James Mattis
c1115803bc Merge "Unit test automation for Multilayer Evaluation" 2021-02-20 21:23:45 +00:00
Treehugger Robot
08bf2e8f49 Merge "Keystore 2.0: Revisite Authorization.java" 2021-02-20 19:26:58 +00:00
Junyu Lai
3237216211 Merge "[FUI15] Remove networkId in NetworkState" 2021-02-20 14:00:19 +00:00
Treehugger Robot
bfc1f6b382 Merge "Integrate IKeystoreUserManager aidl with LockSettingsService." 2021-02-20 06:57:04 +00:00
Chiachang Wang
63bc7bd3c2 Merge changes I0a75c440,Ief9e8925,Ie03e8276,If0ac9a64,I716bd771
* changes:
  [IT06]Move INetworkActivityListener into connectivity module
  [IT05] Remove the unused network activity logic out from NMS
  [IT4.7] Add network activity info into dumpsys for debugging
  [IT4.6] Unbundle NMS out from ConnectivityManager
  [IT4.5] Update radio power from CS directly
2021-02-20 02:02:46 +00:00
James Mattis
a917e5a283 Unit test automation for Multilayer Evaluation
Unit test automation for multilayer network hierarchy evaluation
when using the setOemNetworkPreference() API ConnectivityService.

Bug: 178632672
Bug: 176494815
Bug: 170068946
Test: atest FrameworksNetTests
Change-Id: Ia9b76f49a07eff6a3977faaa41fc67a10f307841
2021-02-19 17:41:01 -08:00
James Mattis
ed4288b164 Merge "Unit tests for Multi-Default with Existing APIs" 2021-02-20 01:38:52 +00:00
Hasini Gunasinghe
13dd61336f Integrate IKeystoreUserManager aidl with LockSettingsService.
This CL introduces the client side for IKeystoreUserManager aidl and
integrates it with the LockSettingsService.

Bug: 171305115
Test: TBD
Change-Id: I7560e98f95aaec6b85cdcfc01ba83aea0ccc52ae
2021-02-19 15:34:10 -08:00
Janis Danisevskis
377370cce8 Keystore 2.0: Revisite Authorization.java
Test: N/A
Change-Id: I4da26175741c5313aec17d30a3e534a2172d87b4
2021-02-19 15:31:15 -08:00
Makoto Onuki
5fea1d9a01 Merge "Add a missing NULL check for postActivityStartTokenRemoval()" 2021-02-19 21:08:30 +00:00
Jeff Sharkey
2a1600625c Merge "Add OWNERS for palette library" 2021-02-19 18:07:34 +00:00
James O'Leary
2964b50d79 Add OWNERS for palette library
- dupin@ landed the folder & code in it originally
- good idea to move review off the plates of generic frameworks/base
OWNERS

Change-Id: I03a1e8ec00d5b658ee026a44038703e5b31ca52e
2021-02-19 18:04:06 +00:00
Anthony Stange
5927064796 Merge "Add owners for files related to the sensors framework" 2021-02-19 17:23:45 +00:00
Nataniel Borges
7096deadf4 Merge "Revert "Delete VPN methods in ConnectivityManager."" 2021-02-19 15:32:46 +00:00
Nataniel Borges
51bf8e979e Revert "Delete VPN methods in ConnectivityManager."
This reverts commit 279b79f062.

Bug: 180710918
Reason for revert: Broken build 

Change-Id: I6e6318b4c01ccab27ca3e9f16bb2194aa1d9ffd2
2021-02-19 15:25:33 +00:00
Lorenzo Colitti
e8817c1796 Merge "Delete VPN methods in ConnectivityManager." 2021-02-19 14:56:04 +00:00
Lorenzo Colitti
279b79f062 Delete VPN methods in ConnectivityManager.
1. Stop using ConnectivityManager for VPNs in VpnDialogs.
2. Delete updateLockdownVpn, since all callers have been migrated
   to calling VpnManager directly.
3. Delete the call to VpnManager in factoryReset, since the only
   caller (ResetNetworkConfirm) has been updated to call into
   VpnManager directly.
4. Delete getVpnManager, since it is now unused.

Test: m
Bug: 173331190
Change-Id: I5d071281c0e36f6523fea10671a9abf994c66d66
2021-02-19 17:34:30 +09:00
Lorenzo Colitti
b9c396b87a Merge changes I0e6df469,I3d46d5f7
* changes:
  Fix testMobileDataAlwaysOn flakiness
  Speed up NetworkFactory tests.
2021-02-19 08:13:38 +00:00
Treehugger Robot
6ec31401b4 Merge "Stop using ConnectivityManager for VPNs in DPMS." 2021-02-19 08:09:56 +00:00
Lorenzo Colitti
6c77e14663 Merge "Fix all Log.wtfs in FrameworksNetTests." 2021-02-19 07:49:27 +00:00
Treehugger Robot
394170f9cc Merge "Use formal API for ActivityThread to set proxy" 2021-02-19 05:42:06 +00:00
Josh Gao
ecc474af3b Merge "NativeTombstoneManager: catch ProtoParseException." 2021-02-19 05:02:16 +00:00
Remi NGUYEN VAN
72887073f2 Use formal API for ActivityThread to set proxy
Add setHttpProxyConfiguration to the public API, and use
ConnectivityManager APIs from ActivityThread (instead of hidden APIs) to
get/set the proxy for an app process.

The default proxy is now initialized with getDefaultProxy instead of
getProxyForNetwork(null); this should not make a difference, as nothing
should have called bindProcessToNetwork at that point yet.

Bug: 174436414
Test: m; device boots
Merged-In: Ifb516194ecde1567cea4b6806946091cdcf2f015

Change-Id: I06b797eeae54609aecdc0afe1df4e6c602a17a69
2021-02-19 13:53:56 +09:00
Remi NGUYEN VAN
09bbad130d Merge "Split parcelable .aidl files to aidl-export" 2021-02-19 02:21:25 +00:00
Treehugger Robot
41663a0eb6 Merge "Fix OverlayDeviceTests for un-rooted devices" 2021-02-19 01:12:21 +00:00
Ryan Mitchell
de8d74fb77 Fix OverlayDeviceTests for un-rooted devices
The AndroidText.xml needs the root preparer to run on non-rooted
devices.

Bug: 177115481
Bug: 180623619
Test: adb unroot && atest OverlayDeviceTests
Change-Id: I4377207428182fbb76c09abef248b69eeae6acf5
Merged-In: I4377207428182fbb76c09abef248b69eeae6acf5
2021-02-18 23:56:24 +00:00
Yan Yan
bf16b6d399 Merge "API: Expose VcnControlPlaneConfig" 2021-02-18 23:00:56 +00:00
Josh Gao
2b67941ffe NativeTombstoneManager: catch ProtoParseException.
If we can't parse the proto for some reason, don't nuke system_server.

Bug: http://b/159164105
Test: `adb shell crasher` on sc-vf-dev
Change-Id: Id8af5f41177d68dacfd9da69eddea4d88d62f420
2021-02-18 14:20:42 -08:00
Primiano Tucci
355753053c Merge "Do not check for debuggable / profilable for app tracing." 2021-02-18 17:52:31 +00:00
Brian Stack
494aad3c8d Merge "Update UWB OWNERS" 2021-02-18 16:31:59 +00:00
Brian Stack
5467048bd0 Merge "Move UWB Tests to CTS" 2021-02-18 16:30:20 +00:00
Lorenzo Colitti
7a7907a46a Stop using ConnectivityManager for VPNs in DPMS.
These methods have all moved to VpnManager.

Test: m
Bug: 173331190
Change-Id: I46d9a7768546139690154b1ee1e1bf716b3a2c17
Merged-In: I46d9a7768546139690154b1ee1e1bf716b3a2c17
2021-02-18 13:19:17 +00:00
Lorenzo Colitti
fd490bff45 Fix all Log.wtfs in FrameworksNetTests.
These cause the tests to crash on eng builds, so disrupt
development.

Test: atest FrameworksNetTests passes on eng build
Change-Id: Ifa5131fdb8f57af812cf688970be6588d2879c29
2021-02-18 21:13:04 +09:00
Treehugger Robot
e06165a251 Merge "Specify version for aidl_interface explicitly" 2021-02-18 10:56:30 +00:00
Nataniel Borges
b333f43dec Merge "Include component ID in OWNERS file" 2021-02-18 10:36:56 +00:00
Orion Hodson
0e0351d189 libandroid_runtime,libhwui: use libnativehelper_lazy
This change updates the dependencies of bootanimation to use a new
static library, libnativehelper_lazy, that loads libnativehelper on
demand. This means boot animation no longer depends on
libnativehelper.so. The affected frameworks libraries will load
libnativehelper lazily as-needed.

This change enables the removal of the ART APEX from the bootstrap
APEXes. The ART APEX provides libnativehelper.so and this is no longer
required during boot for bootanimation. Removing ART from the
bootstrap APEXes allows for compressing the system installed ART APEX
after an ART APEX update is applied and saves tens of megabytes of
storage.

Bug: 179115178
Test: TH
Test: manual inspection of the transitive dependencies of
bootanimation.

Change-Id: I4fd3f34afc120462088e8f2c015d3cb19aca86dd
Merged-In: I4fd3f34afc120462088e8f2c015d3cb19aca86dd
(cherry picked from commit 33cbf8b14c)
2021-02-18 09:31:42 +00:00
Josh Gao
3361ca6c56 Merge "Add proto tombstones to Dropbox." 2021-02-18 08:41:55 +00:00
Josh Gao
2e1418c47f Merge "Attach protobuf tombstones to ApplicationExitInfo." 2021-02-18 08:40:57 +00:00
Josh Gao
a139d7cbde Merge "Purge proto tombstones when apps are uninstalled." 2021-02-18 08:39:24 +00:00
Chalard Jean
29392ab01a Merge "Optimization when looking up requests for release" 2021-02-18 08:33:09 +00:00
Chalard Jean
eca4d9081f Fix testMobileDataAlwaysOn flakiness
Test: atest --iterations 100 CST#testMobileDataAlwaysOn
Change-Id: I0e6df4694752dab7a5938e8f8bd88c7da7c3fcd5
2021-02-18 16:45:27 +09:00
Chalard Jean
b9078bd101 Speed up NetworkFactory tests.
Somehow this big slowdown escaped review.

Test: ConnectivityServiceTest
Change-Id: I3d46d5f7a986b3586b7e6044eb10aba756bb6ceb
2021-02-18 16:45:26 +09:00