Commit Graph

560014 Commits

Author SHA1 Message Date
George Burgess IV
972a78726b Merge "androidfw: use a vector instead of manually managing memory" 2021-01-22 18:20:58 +00:00
Cody Kesting
59035bd8c7 Merge "Implement Policy Listener add/remove in VcnService." 2021-01-22 17:20:12 +00:00
Corina Grigoras
d17c69bccb Merge "Add all storage team to owners." 2021-01-22 16:57:22 +00:00
Gavin Corkery
5c67510b4f Merge "Remove dumpstate error race condition" 2021-01-22 16:14:43 +00:00
vichang
e17a139088 Merge changes from topic "icu68"
* changes:
  Update test expectation due to locale data change in ICU 68.2
  Regenerate LocaleDataTables.cpp due to ICU 68 upgrade
2021-01-22 15:24:51 +00:00
rickywai
4d53e3b9bc Merge "Return error in "sm unmount-app-data-dirs" if app data isolation is not enabled" 2021-01-22 14:19:52 +00:00
Paul Hu
ce1b5d00d9 Merge "Replace NetworkPolicyManagerInternal#isUidRestrictedOnMeteredNetworks()" 2021-01-22 14:18:47 +00:00
Corina
6915543849 Add all storage team to owners.
Bug: no
Test: no
Change-Id: Ib4fba7af30cec8efd5fb9115fec9bd354e07a2fc
2021-01-22 14:10:07 +00:00
Gavin Corkery
faf53d2a76 Remove dumpstate error race condition
Removes the race condition between the dumpstate binder service
death recipient and the dumpstate listener error callback. This
is done by adding a small wait when the death recipient is
invoked. This ensures that the caller of the Bugreport API does
not erroneously receive an incorrect runtime error callback.

Alters internal tests to account for this new delay.

Bug: 147703592
Test: atest BugreportManagerTest
Test: Manual. Take bugreport, ensure that the death recipient
      does not send an error callback when dumpstate finishes
      successfully, or fails and exits. Test error case by
      manually invoking signalErrorAndExit in DumpstateService.
Change-Id: I8c5b14c88502f0cf4f4f0e5c41d90d6065bfd1d4
2021-01-22 13:31:14 +00:00
Chalard Jean
8e39c04b56 Merge "Add Qos Callback support" 2021-01-22 13:09:24 +00:00
Chalard Jean
d346446302 Merge "Add Qos Callback files" 2021-01-22 13:06:43 +00:00
Paul Hu
64625e9706 Merge "Expose Build.VERSION.FIRST_SDK_INT as module-lib API" 2021-01-22 11:50:09 +00:00
Victor Chang
68a592163b Update test expectation due to locale data change in ICU 68.2
Bug: 160356314
Test: atest FrameworksCoreTests:android.text.format
Change-Id: I1c98de411794b9a964236a3bd128e8aaad52da97
2021-01-22 11:29:41 +00:00
Kohsuke Yatoh
984e3764a5 Merge "Add services/core/j/c/a/server/security/OWNERS." 2021-01-22 11:11:02 +00:00
Ricky Wai
2007b0564e Return error in "sm unmount-app-data-dirs" if app data isolation is not enabled
This command should not do anything when feature flag is off,
and let developer knows this command fails.

Bug: 177228735
Test: run "sm unmount-app-data-dirs" when the app data isolation flag is off and returns error message
Change-Id: If07107712e8215a58ffade08aedce3e80ad1ac12
2021-01-22 10:15:01 +00:00
Remi NGUYEN VAN
c74d6f3115 Merge "Mark connectivity test utilities as module API" 2021-01-22 10:11:39 +00:00
paulhu
f0b4cd7fed Replace NetworkPolicyManagerInternal#isUidRestrictedOnMeteredNetworks()
Connectivity service is going to become a mainline module which
will not able to access hidden APIs. NetworkPolicyManagerInternal
is a internal serivce that CS can't be access after be a mainline
module. Thus, create NPMS#isUidRestrictedOnMeteredNetworks() and
NPM#isUidRestrictedOnMeteredNetworks() to replace
NPMI#isUidRestrictedOnMeteredNetworks().

Also correct the permission check in isUidNetworkingBlocked()
that needs to check OBSERVE_NETWORK_POLICY only.

Bug: 170598012
Test: atest FrameworksNetTests
Test: atest FrameworksCoreTests:NetworkPolicyManagerTest
Test: atest FrameworksServicesTests:NetworkPolicyManagerServiceTest
Test: atest CtsNetTestCases
Test: atest CtsHostsideNetworkTests
Change-Id: I5801a3a2076f3eb199a0226c38c85014b26c64e7
2021-01-22 16:14:28 +08:00
paulhu
69f79b0aca Expose Build.VERSION.FIRST_SDK_INT as module-lib API
Connectivity service is going to become a mainline module which
will not be able to access hidden APIs. But PermissionMonitor
needs know Build.VERSION.FIRST_SDK_INT for granting network
restricted permission to system packages. Thus, expose the value
as module-lib API to support the usage.

Bug: 170598012
Test: make update-api
Change-Id: Id0ae42120f69faee43eeb7ebd35cae9e26cb7561
2021-01-22 15:30:07 +08:00
Remi NGUYEN VAN
649e3a28dd Mark connectivity test utilities as module API
The API surface is planned to move to the Connectivity module, meaning
that it will be maintained across multiple Android releases.
This is incompatible with TestApi semantics, which are designed to be
removable across releases. Effectively the APIs become SystemApi, so
mark them as such considering that TestApi is not supported by modules.

Remove the NetworkCapabilities.getCapabilities test API that is not
essential for tests, and mark other APIs as module API.

Test: m
Bug: 174436414
Change-Id: Ic04551a9874b3d756cf5e6c77ceabfc7c85d52a6
2021-01-22 16:16:57 +09:00
Daniel Bright
2cc8ead3d6 Add Qos Callback support
* Provide App Developers Qos related info associated to
  a bound socket through ConnectivityManager
* Qos sessions are generated and filtered by Network Agents
  and sent back through the Connectivity Service to the
  API consumer.
* The structure of the code within com.android.server
  is designed to support different types of filters in the
  the future.
* The first type of Qos Attributes are related to EPS
  Bearers in order support RCS.

Bug: 155176305
Test: Added to cts/NetworkAgentTest
Test: Added to ConnectivityServiceTest
Change-Id: I145dd065d9deeee449eb9695ab3f6c8556ee7c09
2021-01-21 20:14:52 -08:00
Daniel Bright
289920808b Add Qos Callback files
* Add QosCallback stub files

Bug: 155176305
Test: N/A
Change-Id: I7c231d60880c37ae1ce49fa8a621badf386ab8a7
2021-01-21 19:50:24 -08:00
Jack Yu
286dc55bc9 Merge "Add intent to notify applications when the secure element state changed" 2021-01-22 02:58:28 +00:00
Paul Hu
846e5f178d Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" 2021-01-22 02:11:13 +00:00
Louis Chang
6004efd8ee Merge "Do not attach the added recent task to TDA" 2021-01-22 01:24:18 +00:00
Remi NGUYEN VAN
a6f4de3432 Merge "Use network list in UNDERLYING_NETWORKS_CHANGED" 2021-01-22 01:06:01 +00:00
Tianjie Xu
70127316bf Merge "Check slot in reboot function" 2021-01-21 23:18:55 +00:00
Sarah Chin
a906fd5e14 Merge "Update TelephonyDisplayInfo docs" 2021-01-21 22:43:15 +00:00
Victor Chang
20d3aea8f7 Regenerate LocaleDataTables.cpp due to ICU 68 upgrade
The command:
./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp

Bug: 160356314
Test: m droid
Change-Id: I09c8d7e8b46255941168378c854d169d2e038508
2021-01-21 22:42:24 +00:00
Jeff Sharkey
8c9bf65b8b Merge "Update AppWidget owners" 2021-01-21 22:07:33 +00:00
Sunny Goyal
ce8c2017c1 Update AppWidget owners
Change-Id: I89d2fa5339a37c64e76698ed1aa3825d27f88097
Test: manual
2021-01-21 21:56:08 +00:00
Sarah Chin
96bba0f57a Update TelephonyDisplayInfo docs
Explain how to get TelephonyDisplayInfo through TelephonyManager and
PhoneStateListener

Test: build
Fix: 158760752
Change-Id: Ia59efcf68c77d79be1a223f9fd6cbf3ec333478a
Merged-In: Ia59efcf68c77d79be1a223f9fd6cbf3ec333478a
2021-01-21 13:11:16 -08:00
Alisher Alikhodjaev
2046b3f187 Merge "Correct OMAPI OWNERS" 2021-01-21 20:14:50 +00:00
Benedict Wong
4d06114362 Merge "Add base states with exception catching and utility functions" 2021-01-21 20:12:52 +00:00
Mitch Phillips
284195e759 Merge "[MTE] Add SYNC compat feature & disable for system apps." 2021-01-21 19:30:14 +00:00
Nathan Harold
2b79ba7f42 Merge "Revert "Revert "Fix permission on TM#isDataEnabled""" 2021-01-21 19:04:12 +00:00
Kohsuke Yatoh
c1a088cbc2 Add services/core/j/c/a/server/security/OWNERS.
Test: n/a
Change-Id: Ibb11af159e8191e3009d6d9975c95f6948be42c1
2021-01-21 18:53:08 +00:00
Rambo Wang
32c30af109 Merge "Support new APIs in TelephonyManager to set/clear signal update request" 2021-01-21 18:35:57 +00:00
Ryan Mitchell
0b5e65b81d Merge changes I33358ce4,I5746ffae,Ie307ce30,I8cd5eb46,Ie02ddd37, ...
* changes:
  OMS: reduce number of OVERLAY_CHANGED broadcasts
  Revert "Revert "OMS: add transactional API""
  Revert "Revert "Push OverlayDeviceTests onto /system""
  Revert "Revert "OMS: add tests for the OMS transactional API""
  Revert "Revert "OMS: block until settings are persisted""
  Revert "Revert "OMS: replace OMSImpl.OverlayChangeListener with return v...""
2021-01-21 18:24:56 +00:00
Zach Johnson
75da9f9f27 Merge "Dynamic Audio Buffer (1/3)" 2021-01-21 17:28:17 +00:00
Mårten Kongstad
ea0b864a1a OMS: reduce number of OVERLAY_CHANGED broadcasts
As part of "I63df58510:OMS: add transactional API", the OMS changed how
to broadcast OVERLAY_CHANGED. The intent used to be sent <once> when an
overlay changed state. This was modified to <once per package affected>
when an overlay changed state.

While this makes it easier for applications to detect if they have been
forced to reload their resources, the change drastically increased the
number of OVERLAY_CHANGED intents, especially when the target package is
"android" which affects all packages. To make matters worse, the package
manager responds to an OVERLAY_CHANGED intent by broadcasting
PACKAGE_CHANGED.

Ultimately the flood of intents caused lock contentions in the activity
manager.

Revert the OMS strategy for how to broadcast OVERLAY_CHANGED to the old
behaviour.

Bug: 177065099
Test: atest FrameworksServicesTests:com.android.server.om OverlayDeviceTests OverlayHostTests CtsAppSecurityHostTestCases:OverlayHostTest
Test: manual: adb exec-out cmd activity dump  # check for OVERLAY_CHANGED in "Historical broadcasts"
Change-Id: I33358ce4dc1d72e6e695c70cf02ab72526592b17
2021-01-21 14:33:40 +00:00
Mårten Kongstad
dc427169c9 Revert "Revert "OMS: add transactional API""
This reverts commit 295e0d7183.

Change-Id: I5746ffae41f3e907c39420dce433c4dc91d1145c
2021-01-21 14:33:31 +00:00
Mårten Kongstad
f7da01f0c4 Revert "Revert "Push OverlayDeviceTests onto /system""
This reverts commit 118ddbccc9.

Change-Id: Ie307ce308aa45c0b6fcd5ff7001153c41ea8b7f8
2021-01-21 14:33:18 +00:00
Mårten Kongstad
fd715a9a59 Revert "Revert "OMS: add tests for the OMS transactional API""
This reverts commit 0ad9a225d4.

Change-Id: I8cd5eb46cfefdeaab783716c270059ea3faf9153
2021-01-21 14:32:42 +00:00
Mårten Kongstad
c72ce7521e Revert "Revert "OMS: block until settings are persisted""
This reverts commit b8c651c9a8.

Change-Id: Ie02ddd3710395c3c53ca3604076c5f34c73b8387
2021-01-21 14:32:32 +00:00
Mårten Kongstad
d7074e1cee Revert "Revert "OMS: replace OMSImpl.OverlayChangeListener with return v...""
This reverts commit 8448c33e93.

Change-Id: I8fbbd8106acd9e11f1a0c14cdf823561f64eca5e
2021-01-21 14:32:20 +00:00
satayev
f1d5754c10 Merge "Enable @TestApi access for instrumentation." 2021-01-21 14:13:44 +00:00
Remi NGUYEN VAN
f7347c3b73 Use network list in UNDERLYING_NETWORKS_CHANGED
The bundle is no longer necessary, as this message is not sent across
processes: the network list can be sent directly in the message obj
pair.

Bug: 173574274
Test: atest FrameworksNetTests CtsNetTestCasesLatestSdk
Change-Id: Iae049a24212ff9df19b29aead20bf4a594f05f99
2021-01-21 22:36:54 +09:00
Anton Hansson
8c03d3c0d8 Merge "Update framework/base/apex OWNERS" 2021-01-21 12:25:27 +00:00
Anton Hansson
45b39d81c4 Merge "Dist more API txt files" 2021-01-21 12:23:36 +00:00
Chiachang Wang
14cb00fd50 Merge "[IT4.4] Host network activity related logic into a new class" 2021-01-21 08:41:15 +00:00