Commit Graph

559988 Commits

Author SHA1 Message Date
Etan Cohen
f357a045b3 Revert "Grant shell permissions for Airplane Mode to Shell to support CTS"
This reverts commit ddb4902597.

Change-Id: I7d5433bf676661ede208f840c27a71abbe663195
2021-01-21 19:55:12 -08:00
Etan Cohen
d8d9e9c041 Grant shell permissions for restart WiFi subsystem to Shell to support CTS
New permission is needed to allow CTS to trigger the new WiFi subsystem
restart API.

Bug: 175084231
Bug: 178125790
Test: atest android.net.wifi.cts.WifiManagerTest#testRestartWifiSubsystem
Change-Id: I0eb0362e6421480c10ba64f923a9069d1258d4ca
2021-01-21 19:54:05 -08:00
Etan Cohen
cacc7f1062 [WIFI] New permission to control restart of the WiFi subsystem
Bug: 175084231
Bug: 178125790
Test: atest android.net.wifi.cts.WifiManagerTest#testRestartWifiSubsystem
Change-Id: Iec9b579da912a105c46b2cb129bc625655124f52
2021-01-21 19:47:33 -08: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
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
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
Chiachang Wang
39efdb2451 Merge "Use ParcelFileDescriptor instead of FileDescriptor in the aidl" 2021-01-21 08:40:53 +00:00
Chiachang Wang
92b94e1ec5 Use ParcelFileDescriptor instead of FileDescriptor in the aidl
Using FileDescriptor in the aidl will refer to
Parcel.readRawFileDescriptor() and Parcel.writeRawFileDescriptor()
whilie trying to do parcel operations. Those two APIs are hidden
and not accessible for the incoming ConnectivityService mainline
module. For such use cases in a module, it should be replaced by
using ParcelFileDescriptor that is designed for such usages.

Bug: 170598012
Test: atest FrameworksNetTests CtsNetTestCasesLatestSdk
Change-Id: Ia7e3a71ccb4b136cc55c9e90a384870c32cfd37b
2021-01-21 08:40:12 +00:00
Paul Hu
e8bf3e902b Merge "Replace Context @hide API in MultinetworkPolicyTracker" 2021-01-21 07:53:19 +00:00
Chiachang Wang
c95ab361c7 Merge "[IT4.3] Listen interface change in BSS" 2021-01-21 07:41:54 +00:00
Treehugger Robot
2a0f125d7d Merge "Add MANAGE_TEST_NETWORKS to system API" 2021-01-21 06:41:04 +00:00
lucaslin
140ebe5c99 [IT4.4] Host network activity related logic into a new class
Create an inner class to handle the network activity related
logic to isolate the code for code cleanliness. It's helpful for
the follow-up modifications to move network activity logic from
NMS to CS to support Connectivityservice mainline.

Bug: 170598012
Test: atest FrameworksNetTests
Change-Id: I33b3b11f2700cb10eb6e3b58b6dfa52251bece80
2021-01-21 06:27:23 +00:00
Chiachang Wang
fee853b8a1 [IT4.3] Listen interface change in BSS
Reporting interface change is planning to move from NMS to CS
for incoming CS mainline. The event sent from CS to NMS will
be replaced by sending to netd directly, so the change reported
via NMS to BSS should be handled by BSS directly. This commit
allows BSS to listen interface change itself to separate the
design.

Bug: 170598012
Test: m ; atest FrameworksCoreTests:BatteryStatsTests
Change-Id: I4c9202be31cad09451ef47ac7b5b87f7efb2020c
Merged-In: I9c1b2294905d3b59f6945c3f8acb91b2e419b492
2021-01-21 06:27:02 +00:00
Remi NGUYEN VAN
24ea1e0377 Merge "Mark TestNetworkManager as module API" 2021-01-21 06:02:25 +00:00
Rambo Wang
e86cb24b57 Support new APIs in TelephonyManager to set/clear signal update request
Introduce set/clearSignalStrengthUpdateRequest in TelephonyManager
and ITelephony to support customized signal request from applications.

Bug: 164432835
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: I749376872915a91b9514884547140eaf969dba0e
2021-01-20 21:14:41 -08:00
Zoey Chen
e61da845fa Merge "[PhysicalChannelConfig] Deprecated getChannelNumber and implement relevant API" 2021-01-21 04:29:58 +00:00
Daniel Bright
2c8f0de95c Merge "Make TelephonyManager#setImsRegistrationState multi-sim aware" 2021-01-21 04:10:27 +00:00
Remi NGUYEN VAN
8700d3345b Mark TestNetworkManager 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 System/module
API, so mark them as such considering that TestApi is not supported by
modules.

Test: m
Bug: 174436414
Change-Id: Icd32fcbb65e9a4bb2b67cb9da7c971281be0781a
2021-01-21 10:45:04 +09:00
Peter Wang
795478a020 Merge "Add an API for LPA (SIM Manager) to bring up pages related to managing SIM profiles." 2021-01-21 00:35:24 +00:00
Kohsuke Yatoh
0f4112a760 Merge "Add missing textservice OWNERS files." 2021-01-20 23:16:33 +00:00
Amit Mahajan
19ffdb0894 Merge "Remove dup result code descriptions" 2021-01-20 22:19:23 +00:00
Nathan Harold
cd08bb620d Revert "Revert "Fix permission on TM#isDataEnabled""
This reverts commit 8ce575b256.

Bug: 176163590
Bug: 148500541
Test: manual smoke test on low-end device and aosp_crosshatch builds.
Reason for revert: Reapplying with a fix for the exceptions.

The exceptions were caused by an undocumented behavior difference in the APIs that just blindly catch runtime exceptions. The cause of the runtime exceptions is that people are calling isDataEnabled() before telephony is running; however, until a "better" fix is available, this API will apply the existing behavior of just catching the runtime exceptions (which is terrible, but it's the plan of record in the code today).

Change-Id: I9fbe7126ee7039dfb0b383f83017458a3525db66
2021-01-20 21:30:55 +00:00
Amy Zhang
30e3efaaa5 Merge "Only allow RecordDVR to flush buffer when the DVR is stopped" 2021-01-20 21:02:56 +00:00
Treehugger Robot
01460b0bd8 Merge "Keystore 2.0: Integrate onLockScreenEvent." 2021-01-20 20:43:55 +00:00
Treehugger Robot
c235d21e22 Merge "Update OWNERs for SystemUI related files" 2021-01-20 20:24:36 +00:00
Anton Hansson
85785fec8a Dist more API txt files
Add disting of the following for the sdk:
- android-non-updatable.txt
- android-non-updatable-removed.txt
- removed.txt

Bug: 158544979
Test: m sdk dist && inspect out/dist/apistubs
Change-Id: I5f628f4fcfc13f67105ee3b2760274e900fc1e34
2021-01-20 20:23:34 +00:00
Mitch Phillips
06ea0ef4e9 [MTE] Add SYNC compat feature & disable for system apps.
Adds the synchronous compat feature for MTE. It takes precedence over
the ASYNC feature if both are specified.

Also disable MTE by default for system apps. MTE is entirely opt-in, not
opt-out.

Bug: 135772972
Bug: 177438394
Test: Boot FVP.
Change-Id: Id4c356912163b646abef82b9cce74e9cdbcf1d3d
2021-01-20 11:38:54 -08:00
Treehugger Robot
1621ada259 Merge "Remove unused CellLocation" 2021-01-20 19:29:42 +00:00