Commit Graph

2740 Commits

Author SHA1 Message Date
TreeHugger Robot
bdd4239197 Merge "Allow MediaCodecs to be created on behalf of other client processes." 2022-02-10 10:47:39 +00:00
Kevin Jeon
27f6e1ca15 Merge "Remove unnecessary permissions from Traceur" 2022-02-10 07:28:27 +00:00
Brian Lindahl
6ceeed4fdd Allow MediaCodecs to be created on behalf of other client processes.
Use case is for TV Input Service which creates MediaCodecs when tuning
to TV channels on behalf of operator and OEM apps. Requires the
MEDIA_RESOURCE_PID_OVERRIDE permission.

Bug: 217746837
Test: atest MediaCodecResourceTest
Change-Id: I191ff13c5730970664a818a9333c160e6e773c7d
2022-02-09 23:34:44 +01:00
Elliot Sisteron
cb0b947bd3 Merge "Add SafetyCenter permissions" 2022-02-08 17:21:15 +00:00
Henry Fang
5dbd4b27ed Merge "Guard TIF vendor extension APIs by new permission" 2022-02-08 17:19:28 +00:00
Siyamed Sinir
3cfdfab6c6 Merge "Partial Revert "Update the following fonts NotoNaskhArabic NotoNaskhArab..."" 2022-02-08 01:22:20 +00:00
Elliot Sisteron
01c175fca2 Add SafetyCenter permissions
Add SafetyCenter privileged permissions
to PermissionController

Bug: 217689758
Test: atest CtsSafetyCenterTestCases
Change-Id: I22531512ea29086da2025e5274a90aca23dbfc50
2022-02-07 21:39:40 +00:00
Kyeongkab.Nam
5e4c395cdb Guard TIF vendor extension APIs by new permission
Guard TvInputManager#getAvailableExtensionInterfaceNames() and
TvInputManager#getExtensionInterface() by
android.Manifest.permission.TIS_EXTENSION_INTERFACE.

Bug: 215189795
Bug: 193052431
Test: run cts -m CtsTvTestCases -t
android.media.tv.cts.TvInputManagerTest

Change-Id: I43d4f063b0a602f00f7f71e8fe08fb09c7a763bf
2022-02-07 12:19:54 -08:00
Siyamed Sinir
dda3283ccc Partial Revert "Update the following fonts NotoNaskhArabic NotoNaskhArab..."
Revert submission 16731679-noto20220127

Reason for revert: NotoNaskhArabic and NotoNaskhArabic UI have localization issue. This CL reverts
changes related to only those two fonts.

Reverted Changes:
I7679f7cd9:Update the following fonts NotoNaskhArabic NotoNas...
I6c194eb7d:Updated the following fonts NotoNaskhArabic NotoNa...

Test: No test, treehugger only
Bug: 216571265

Change-Id: If5322f5017e8bde24e290f24710676fcfe50c095
2022-02-07 19:14:59 +00:00
Dave McCloskey
994e4e4b70 Merge "Add TRUST_LISTENER to the shell for use in CTS tests" am: f4a4508e64 am: 9845deb4e9 am: 911482e768 am: 1a22e966e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962480

Change-Id: Icfd3343b7a629878201f04013afa3d9dfc4f499a
2022-02-05 00:09:28 +00:00
Dave McCloskey
1a22e966e5 Merge "Add TRUST_LISTENER to the shell for use in CTS tests" am: f4a4508e64 am: 9845deb4e9 am: 911482e768
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962480

Change-Id: I2cdfa296b377a573584ec9c09245a4ff23e396c4
2022-02-04 23:49:20 +00:00
Dave McCloskey
911482e768 Merge "Add TRUST_LISTENER to the shell for use in CTS tests" am: f4a4508e64 am: 9845deb4e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962480

Change-Id: I1e44c4359dabe2333353f55e0c42afe04efedc78
2022-02-04 23:28:44 +00:00
Dave McCloskey
f4a4508e64 Merge "Add TRUST_LISTENER to the shell for use in CTS tests" 2022-02-04 22:58:26 +00:00
TreeHugger Robot
fb7919b9d4 Merge "Allow Shell to access MANAGE_GAME_ACTIVITY." 2022-02-04 22:51:40 +00:00
Jay Sullivan
be2bd69f06 Merge changes from topic "t-media-permissions"
* changes:
  Define splits for AUDIO/VIDEO/IMAGE permissions
  Define new AUDIO/VIDEO/IMAGE permissions
2022-02-04 18:18:37 +00:00
Peiyong Lin
817d4a78eb Allow Shell to access MANAGE_GAME_ACTIVITY.
Allow Shell to have MANAGE_GAME_ACTIVITY permission in order to run CTS.

Bug: b/202414447
Test: atest GameServiceTest
Ignore-AOSP-First: not-yet-published new permission.
Change-Id: I11a64d4e2819e5a94ae59d280eaa165dce51f518
2022-02-04 08:00:27 +00:00
Vadim Caen
8e59ca9a3a Merge "Save the OnBackInvokedCallback in WindowState" 2022-02-03 17:26:12 +00:00
Treehugger Robot
698279f7d4 Merge "Add NEARBY_WIFI_DEVICES to shell permissions for CTS" am: 5d4effbd23 am: e4ee7f0e2e am: c144be7ef4 am: 0ff22a2817
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966019

Change-Id: Iefec7643bc26a244a107eaadda7b55667258dd8e
2022-02-03 02:37:36 +00:00
Treehugger Robot
0ff22a2817 Merge "Add NEARBY_WIFI_DEVICES to shell permissions for CTS" am: 5d4effbd23 am: e4ee7f0e2e am: c144be7ef4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966019

Change-Id: Idad3bf93fcf515927e5fa980206873d0b7adec18
2022-02-03 02:23:26 +00:00
Rui Qiu
88cafc0747 DO NOT MERGE: Add car telemetry service permission to car shell allowlist am: 606dede844
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16778226

Change-Id: Icf3722d0c36d955b0c4dac2d5c9d87b1aec149db
2022-02-03 02:13:33 +00:00
Treehugger Robot
c144be7ef4 Merge "Add NEARBY_WIFI_DEVICES to shell permissions for CTS" am: 5d4effbd23 am: e4ee7f0e2e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966019

Change-Id: I20ad89d1047717a8c5df66581be7014e3d10631e
2022-02-03 02:06:03 +00:00
Rui Qiu
606dede844 DO NOT MERGE: Add car telemetry service permission to car shell allowlist
Bug: 207548461
Bug: 207175350
Test: atest CarSecurityPermissionTest:CarTelemetryPermissionTest

Change-Id: I9319983138ce3969b1c6a46a9c4e1bf168a13772
Merged-In: I9319983138ce3969b1c6a46a9c4e1bf168a13772
(cherry picked from commit 7d104e280baedc3400951a016a7a427c65cb9f0d)
2022-02-02 22:31:19 +00:00
Vadim Caen
717e53a6a7 Save the OnBackInvokedCallback in WindowState
This CL enable OnBackInvokedCallback to be saved in a WindowState and
queried by the BackNavigationController to be returned when
ATM.startBackNavigation() is called.

The DecorView provides a PendingOnBackInvokedDispatcher that can receive
callback registration before being added to a ViewRootImpl.

Test: atest FrameworksCoreTests:BackNavigationTest
Bug: 131727607
Change-Id: I01528a22ea4a6583a56ade4eab69136d727855d0
2022-02-02 22:08:02 +01:00
Marie Matheson
bf1d2de7bb Merge "Adds the SEND_SAFETY_CENTER_UPDATE privileged permission to the Settings app." 2022-02-02 13:59:13 +00:00
Jay Thomas Sullivan
7fd9adf992 Define splits for AUDIO/VIDEO/IMAGE permissions
Define three permission splits:

- READ_EXTERNAL_STORAGE to READ_MEDIA_AUDIO (targetSdk<T)
- READ_EXTERNAL_STORAGE to READ_MEDIA_VIDEO (targetSdk<T)
- READ_EXTERNAL_STORAGE to READ_MEDIA_IMAGE (targetSdk<T)

This results in the following behavior: any time any legacy application
(i.e., targetSdk<TIRAMISU) is granted READ_EXTERNAL_STORAGE, it will
also automatically be granted READ_MEDIA_AUDIO, READ_MEDIA_VIDEO, and
READ_MEDIA_IMAGE.

The motivation for this change is to support the "Media Permission
Update for Android T" project.

Bug: 201318587
Test: atest CtsPermissionTestCases CtsPermission3TestCases
Change-Id: I79171cbda6a3d6d1d4bb87994c8b02f7174ea4db
2022-02-01 20:24:58 -08:00
Michal Olech
6c966b35ea Merge "Add system prompt for system language change after <Set Menu Language> CEC message" 2022-02-01 17:21:51 +00:00
Michal Olech
6f1aecf1bf Add system prompt for system language change after <Set Menu Language> CEC message
Requires ro.hdmi.set_menu_language=true

Test: build; flash; manual test
Bug: 190810909
Change-Id: Ic0664e077e975bba0929dd871c3a4c9ab385814c
2022-02-01 12:39:53 +01:00
Jay Sullivan
87b22d6d8f Merge "Revert "Define new AUDIO/VIDEO/IMAGE permissions"" 2022-01-31 18:04:44 +00:00
Kevin Jeon
db7d916a51 Remove unnecessary permissions from Traceur
This change removes the privapp allowlist from Traceur, which had
previously explicitly granted the DUMP, QUERY_ALL_PACKAGES,
START_FOREGROUND_SERVICES_FROM_BACKGROUND, and STATUS_BAR permissions.
These permissions no longer need to be granted because Traceur is now a
platform app.

Bug: 209476712
Test: - Checked that Traceur can still take normal and long traces on
        AOSP userdebug and internal user/userdebug.
      - Checked that bugreports will stop ongoing traces.
      - Checked that the quick settings tile still stops/starts traces.
Change-Id: I33cd317f9fe00e2e08ae205a832237bfe0df044a
2022-01-31 17:46:29 +00:00
Jay Sullivan
ff9f7176ac Revert "Define new AUDIO/VIDEO/IMAGE permissions"
Revert "Fix PermissionPolicyTest and SplitPermissionsSystemTest"

Revert submission 15933906-t-define-media-permissions

Reason for revert: caused b/216588046 and b/216453842
Reverted Changes:
I79afe120d:Update DefaultPermissionGrantPolicyTest for new pe...
I321282b1f:Fix PermissionPolicyTest and SplitPermissionsSyste...
If3d357bae:Define new AUDIO/VIDEO/IMAGE permissions

Change-Id: I0d4f0eaefc5c29063f517755b4c9b61417a15fd0
2022-01-29 03:11:22 +00:00
Marek Jeziorek
bc15646a79 Merge "Update the following fonts NotoNaskhArabic NotoNaskhArabicUI NotoSansCanadianAboriginal NotoSansCherokee NotoSansGeorgian NotoSansLao NotoSansLaoUI NotoSerifDogra NotoSerifGeorgian NotoSerifHebrew NotoSerifLao NotoSerifThai" 2022-01-29 01:45:52 +00:00
xshu
a8460ad918 Add NEARBY_WIFI_DEVICES to shell permissions for CTS
Bug: 197776854
Test: build
Change-Id: I51f8441e3744a4137042abe602d700a4ab757fe1
2022-01-28 17:05:48 -08:00
Marek Z Jeziorek
44fab16c39 Update the following fonts
NotoNaskhArabic
NotoNaskhArabicUI
NotoSansCanadianAboriginal
NotoSansCherokee
NotoSansGeorgian
NotoSansLao
NotoSansLaoUI
NotoSerifDogra
NotoSerifGeorgian
NotoSerifHebrew
NotoSerifLao
NotoSerifThai

Bug: 216571265
Test: Specified with the font changes
Change-Id: I7679f7cd9f2987fd1ab6bca62c8611bc36693ca4
2022-01-28 03:48:26 +00:00
Robert Horvath
570645567f Introduce Low Power Standby API and wakelock restrictions
In Low Power Standby, additional restrictions are placed on apps that
are in a process state of FOREGROUND_SERVICE or less important
during standby (while the device is non-interactive):
- Wakelocks are disabled
- Network access is blocked
During doze maintenance windows the restrictions are lifted temporarily.

This change introduces the APIs for Low Power Standby, as well as
the wakelock restrictions.

This feature is targeting TVs. To prevent Low Power Standby from being
enabled on other devices, the feature is guarded by the config flag
config_lowPowerStandbySupported.

Bug: 190822356
Test: atest LowPowerStandbyControllerTest PowerManagerServiceTest
Ignore-AOSP-First: New permission only added internally for now.
Change-Id: Ia40f8a0fc4b366860af58ad76c988f93a5d41936
2022-01-27 23:08:26 +01:00
Evan Chen
bf9a16b7f5 Merge "Add computer permission to Shell's allowlist" 2022-01-27 06:57:35 +00:00
Dave McCloskey
e0b7e861cd Add TRUST_LISTENER to the shell for use in CTS tests
Bug: 213631677
Test: m

Change-Id: I66eced84399147c4f182d250cd64598794b9c93b
2022-01-27 00:48:14 +00:00
Nate(Qiang) Jiang
1ce97f91ca Merge "Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS" am: dbe634a784 am: 93be545cde am: 8a4f65b48b am: e2f51cb6fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959813

Change-Id: I5f937570a060cc33af62635efa8ad0704ab053d2
2022-01-26 21:44:47 +00:00
Nate(Qiang) Jiang
e2f51cb6fc Merge "Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS" am: dbe634a784 am: 93be545cde am: 8a4f65b48b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959813

Change-Id: Ic8243b12ebed20e1e392acc2a5be52a09b857582
2022-01-26 21:26:16 +00:00
Nate(Qiang) Jiang
8a4f65b48b Merge "Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS" am: dbe634a784 am: 93be545cde
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959813

Change-Id: I6b801218b1f79bfb456f6a0fefa0592594c33085
2022-01-26 21:07:15 +00:00
Erin Yan
2c7c391781 Merge "Add permissions to shell to enable testing" 2022-01-26 19:20:26 +00:00
Nate Jiang
a6e72cf3e2 Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS
Bug: 216433840
Test: build
Change-Id: I18500abe0e98030bd291aca536f6a70b0f6acafd
2022-01-26 03:00:50 -08:00
Evan Chen
4a13c90039 Add computer permission to Shell's allowlist
Bug: 216213933
Test: atest CtsCompanionDevicesTestCases:DeviceProfilesTest
Change-Id: I8088cc31fd4e5e508bfe30e15aa194ecab93f038
Ignore-AOSP-First: new permissions (not yet in AOSP)
2022-01-26 01:42:46 +00:00
Marie Matheson
a4f204b385 Adds the SEND_SAFETY_CENTER_UPDATE privileged permission to the Settings app.
Test: atest SettingsUnitTests
Bug: 216076319
Change-Id: If079d10aa7e67f2f04676fe72eba1d2c7c1ec2d7
2022-01-25 18:35:29 +00:00
Jay Sullivan
aad39a3889 Merge "Define new AUDIO/VIDEO/IMAGE permissions" 2022-01-25 17:49:12 +00:00
TreeHugger Robot
91c260b756 Merge "Ensure that participated activities are not omitted by ancestor" 2022-01-25 14:01:33 +00:00
Alex Johnston
cf04bc3d29 Add lost mode platform changes
Changes:
* Add SEND_LOST_MODE_LOCATION_UPDATES permission.
* Add DPM.sendLostModeLocationUpdate API.
* Add intent action and extras to send lost mode
  location updates to the DPC.
* Add DPM attribution tag

Manual testing:
* Add lost mode receiver to TestDPC
* Call new API in GmsCore using reflection
* Verify API call is successful and the
  lost mode receiver receives the location update

Bug: 206945072
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      manual testing
Change-Id: I9374a53c1146143c8f5bff3ac38cfe18d3f0bf2f
2022-01-25 10:12:31 +00:00
Riddle Hsu
4b86a040b4 Ensure that participated activities are not omitted by ancestor
... when preparing transition targets.

Previously, the first step of the calculation finds the top participant
if possible, and once there is one, only the level above task will be
added. Because it assumes that the parent of participant can represent
it. But there are more than one participants belong to an ancestor, the
descendants may have individual changes, so they should be still in the
transition targets. Otherwise the animation may have nothing to do.

Now all valid participants are added into the target lists, and then
combine the targets from bottom to up based on depth. So it can be
done in 1 pass (originally it requires 3 passes when launching a new
task from home, 4 passes when starting recents).

The population of ChangeInfo#mParent is moved after tryPromo so it
can skip the targets which were removed, and the parent info can
be updated in a single place.

Bug: 213867980
Test: TransitionTests#testOpenActivityInTheSameTaskWithDisplayChange
Test: adb shell setprop persist.debug.shell_transit 1; reboot
      Start a landscape activity from a portrait activity in the
      same task. The animation should not jump cut.

Change-Id: I23a3326611dcb5664b204748280ae15b2377f318
2022-01-25 17:28:24 +08:00
Chris Li
7481586ab6 Merge changes Ida331585,I255fb336
* changes:
  Queue applySyncTransaction calls when there is active BLAST sync
  Queue startTransition calls made while already collecting
2022-01-25 02:19:36 +00:00
Jan Tomljanovic
c1f6071c2f Merge "Add privileged permission to the Settings app." 2022-01-24 12:55:19 +00:00
Tiger Huang
697660ac69 Merge "Let the client set transform hint on its own" 2022-01-23 18:02:11 +00:00