Commit Graph

10618 Commits

Author SHA1 Message Date
Varun Shah
62696eb689 Merge "Update OWNERS for Content* framework." am: 81f00f0198 am: 44b972b1f7 am: 49548d9faf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665999

Change-Id: I920018f2654eee3bcccc865c37fa44f0c265b995
2021-04-23 01:01:17 +00:00
Varun Shah
81f00f0198 Merge "Update OWNERS for Content* framework." 2021-04-22 23:59:17 +00:00
Hui Yu
9757955874 Merge "Temp allowlist bluetooth broadcast to start FGS for 10 seconds." into sc-dev 2021-04-22 23:41:30 +00:00
Evan Severson
171fe09c3c Merge "Remove package manager feature for toggles" into sc-dev 2021-04-22 16:38:36 +00:00
Jackal Guo
011805bf48 Merge "Apply package visibility to LauncherApps.Callback" into sc-dev 2021-04-22 08:54:29 +00:00
Hui Yu
8c23d658c7 Temp allowlist bluetooth broadcast to start FGS for 10 seconds.
Add an overloaded version of Context.sendBroadcastMultiplePermissions() that can
specify BroadcastOptions, it is called by com.android.bluetooth package.

Bug: 182816627
Test: atest AdapterServiceTest
Test: atest AvrcpControllerStateMachineTest
Test: atest BondStateMachineTest
Test: atest MapClientStateMachineTest
Test: atest RemoteDevicesTest

Change-Id: I8bb2d2ed98ece70ebbe9d3a1b549b966d690de4f
2021-04-21 16:48:04 -07:00
Alexander Dorokhine
5681f7c05f Merge "Update framework from jetpack." into sc-dev 2021-04-21 23:17:21 +00:00
Lucas Dupin
2a8031d889 Merge "Fix typos in documentation" into sc-dev 2021-04-21 22:17:42 +00:00
TreeHugger Robot
0b99af47c5 Merge "Addresses setRequireUserAction API feedback" into sc-dev 2021-04-21 22:11:23 +00:00
Pinyao Ting
a51996aa48 Merge "Replace oneway shortcut api with AndroidFuture" into sc-dev 2021-04-21 22:10:19 +00:00
Nate Myren
f7c1b2721e Merge "Change Permission Group methods to be callback, gate behind perm" into sc-dev 2021-04-21 21:01:05 +00:00
TreeHugger Robot
5e8994981d Merge "Refine setRenouncedPermissions() docs." into sc-dev 2021-04-21 20:49:59 +00:00
Alexander Dorokhine
ca083d96de Update framework from jetpack.
Included changes:
* b7122be: Update Builders to comply with API council requirements.
* 60b34cd: Changes to AppSearchSchema builders to comply with API requirements.
* c6f7eee: Support property paths in GenericDocument.
* cbee331: Update documentation to distinguish between AppSearchSession and GlobalSearchSession
* cbdd3b9: Rename ReportUsage#usageTimeMillis to #usageTimestampMillis.
* cc09d3a: Implement value indices in GenericDocument.
* e7faa03: Rename isIndexNestedProperties to shouldIndexNestedProperties.
* aaa6e81: Support @CurrentTimeMillisLong in export.
* 388c2b4: Rename GenericDocument's "uri" to "id" everywhere.

Bug: 184576792
Bug: 184576806
Bug: 184174844
Bug: 180481315
Bug: 179797058
Bug: 175146044
Bug: 184175636
Bug: 185492298
Test: Presubmit
Change-Id: I81e396c1d4770479654a3a69ea598e23de88ac9a
2021-04-21 11:23:09 -07:00
Jeff Sharkey
4047486998 Refine setRenouncedPermissions() docs.
Bug: 182423603
Test: none
Change-Id: I3c92a3150d3f22b4ed072a66d6b080e00a7ddabe
2021-04-21 12:08:48 -06:00
Pinyao Ting
480d532c96 Replace oneway shortcut api with AndroidFuture
Oneway calls to the system process can cause more trouble along those
lines than they solve.

Asynchronous incall pressure to the system process is worse than
synchronous incall pressure: it causes catastrophic failure modes
and is also much harder to diagnose when problems happen.
It's also much harder to guarantee transactionality when the caller
side is asynchronous.

Bug: 184878227
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
Test: atest CtsShortcutManagerTestCases
Change-Id: I4ec6b188f079c018902bedf32198c04e9c45a60d

Change-Id: I854de382ee6bdc5ae32b6874b7d875dfe6c03c40
2021-04-21 11:02:28 -07:00
Ashwini Oruganti
991791446c Merge "Make ActivityInfo#attributionTags public." into sc-dev 2021-04-21 17:27:41 +00:00
Patrick Baumann
2491ee93bb Addresses setRequireUserAction API feedback
This change modifies the signature of SessionParams#setRequireUserAction
to take an int instead of a bool to match the return of
SessionInfo#getRequireUserAction.

Fixes: 184890429
Test: atest CtsSilentUpdateHostTestCases
Change-Id: I5868f9dadaf10bda1524446d3ad755cb69be73a5
2021-04-21 09:16:36 -07:00
Kholoud Mohamed
3846f7b552 Merge "Expose setInstallFlagAllowTest testAPI" into sc-dev 2021-04-21 11:07:50 +00:00
Jackal Guo
a3e316fb01 Apply package visibility to LauncherApps.Callback
Applications could know package related events via registering and
implementing the LaunchersApps.Callback. We should also apply the
visibility to LauncherApps.Callback like what we did for Broadcast-
Receiver.

For removed one, using a new protected broadcast with the visibility
allow list in the extra instead since the PackageSetting is already
deleted and wouldn't be able to get its visibility allow list.

Bug: 143946569
Test: atest AppEnumerationTests
Test: atest ShortcutManagerLauncherCallbackTest
Test: atest IncrementalLoadingProgressTest
Test: atest NonIncrementalLoadingProgressTest
Change-Id: If457e2d7892d9d4fbb8cf0ca230de423526eeb10
2021-04-21 09:48:40 +08:00
Evan Severson
6a8d3dc686 Remove package manager feature for toggles
Create a dedicated api in the sensor privacy service to check if the
toggle is supported.

Also address some other api feedback and also rename the older mute
feature to all-sensors so that there are no longer overloaded methods
with different functions.

Test: Checkbuild, CtsSensorPrivacyTestCases, Manual
Fixes: 181681375
Change-Id: I655544846310e864ec8479ce8f93aee2860824f7
2021-04-20 16:37:55 -07:00
Ashwini Oruganti
41c544c592 Make ActivityInfo#attributionTags public.
Bug: 182979908
Test: TH
Change-Id: Ifefefe02c27481d3de9a3c1f0b82953278705fcf
2021-04-20 15:07:19 -07:00
TreeHugger Robot
18ecd98109 Merge "[pm] remove incremental startable/unstartable code" into sc-dev 2021-04-20 22:03:22 +00:00
Hall Liu
379a3f5ae2 Merge "Add docs clarifying permissions of setSystemAppState" into sc-dev 2021-04-20 16:23:43 +00:00
kholoud mohamed
dbaaacd5ad Expose setInstallFlagAllowTest testAPI
Exposed a testAPIs to set INSTALL_ALLOW_TEST install flag,
and allowed it to holders of INSTALL_TEST_ONLY_PACKAGE
permission.

Bug: 183716601
Test: N/A
Change-Id: Ie045f43c5224ed75e0ba8db91a3b77aa4d66a5d6
2021-04-20 15:37:25 +00:00
Naomi Musgrave
692496d964 Merge "Introduce config for sandboxing" into sc-dev 2021-04-20 15:36:32 +00:00
Nate Myren
7590ff96f0 Change Permission Group methods to be callback, gate behind perm
Create a GET_RUNTIME_PERMISSION_GROUP_MAPPING permission to gate the
permission group methods behind, and changes the methods to have
callbacks.

Test: atest GetPermissionGroupInfoTest
Fixes: 185177089
Change-Id: Ifd2ebc74f16e51b62068bdc6c8748f69bc63e923
2021-04-19 16:44:33 -07:00
Lucas Dupin
d5638c96cf Fix typos in documentation
Test: read docs
Fixes: 185834160
Change-Id: I1e7204c196119ea24d5813dd0e5e3ee96f2743f8
2021-04-19 15:58:36 -07:00
TreeHugger Robot
214a24ac6a Merge "Add reference for privacy hub API timestamps" into sc-dev 2021-04-19 22:51:30 +00:00
Hall Liu
db950993f2 Add docs clarifying permissions of setSystemAppState
Fixes: 184568177
Test: NA, docs only
Change-Id: Ie5c9b8b4ba5ff4b5d206b7c64b3d29c0fc5bbffa
2021-04-19 13:48:09 -07:00
Aurimas Liutikas
6dd6c5a603 Merge "Cleanup nativeHeapZeroInit and memtagMode implementation." 2021-04-19 16:52:58 +00:00
TreeHugger Robot
efede1755e Merge "Suppress AutoBoxing issue for hasRequestRawExternalStorageAccess" into sc-dev 2021-04-19 16:50:35 +00:00
Alex Buynytskyy
910f855fe0 Merge "API feedback: make DataLoader API System." into sc-dev 2021-04-19 03:40:44 +00:00
Alex Buynytskyy
e7339d98df API feedback: make DataLoader API System.
Bug: 184713911
Fixes: 184713911
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I00107102eb2e98004ed0a5db2a318a052ab60220
2021-04-18 15:48:21 +00:00
Erik Wolsheimer
e7df558396 Revert "Revert "Increase MAX_ATTRIBUTIONS to 10000""
This reverts commit ac9d5cd7ec.

Reason for revert: Fixed test

Change-Id: I01efe527b6e9c2adf3bec354faf9e9dde586cc17
2021-04-16 18:57:35 +00:00
Naomi Musgrave
cbdd8bdb9f Introduce config for sandboxing
Bug: 184838306
Bug: 185004937
Test: atest WmTests:SizeCompatTests
Change-Id: I031463f4bf8c8d87a829f1f03603e376bd44c082
2021-04-16 13:21:27 +01:00
Joanne Chung
fa1aa404ee Merge "[FW] Change the fake translation name to formal name." into sc-dev 2021-04-16 07:16:25 +00:00
Songchun Fan
5ada1508c2 [pm] remove incremental startable/unstartable code
Also remove streaming health status reporting which could cause
startable state change because it is also not needed any more.

BUG: 171920377
Test: builds
Change-Id: I7284e7a63df79da7dbf3d16ff64302b3d1ce1348
2021-04-16 02:29:24 +00:00
Aurimas Liutikas
2a815a678b Suppress AutoBoxing issue for hasRequestRawExternalStorageAccess
Metalava now prevents adding Boolean returns, see r.android.com/1677187

Test: None
Bug: 185484823
Change-Id: I4580908165fb00372297b476a6755385afb44446
2021-04-15 22:41:04 +00:00
Todd Kennedy
5889bd1f7f @IntDef incorrectly marked as containing flags
Change-Id: I0bde93fde412b4770a84124a9e323e4ac003d587
Bug: 174238856
Fixes: 174238856
Test: None. Doc only change.
2021-04-15 21:51:13 +00:00
Erik Wolsheimer
404920ea6b Merge "Revert "Increase MAX_ATTRIBUTIONS to 10000"" into sc-dev 2021-04-15 21:20:25 +00:00
Jorge Moreira Broche
ac9d5cd7ec Revert "Increase MAX_ATTRIBUTIONS to 10000"
This reverts commit f9933b7d18.

Reason for revert: b/185482967

Change-Id: If0700210ce79b42cf8e80946a6c23b82ea99469e
2021-04-15 19:47:43 +00:00
Jeff Sharkey
dfe5f0c26f Merge "Temporary stop-gap for Chrome target SDK issue." into sc-dev 2021-04-15 19:04:57 +00:00
Jeff Sharkey
c6be9fe470 Temporary stop-gap for Chrome target SDK issue.
The Chrome team was planning to provide a new prebuilt SDK last week
which returned to targeting the official R SDK level, but other
challenges prevented them from doing so.

They still intend to land an updated prebuilt which targets R, but
to unblock testing this change makes that change on their behalf;
when we see a very specific Chrome version code we force the target
SDK back to R.  This code will safely become a no-op during their
next prebuilt, which should have a different version code.

Bug: 183905675
Test: manual
Change-Id: I211e7550f489294f90d8729b518ec9a70a37ec96
2021-04-15 13:03:25 -06:00
Guojing Yuan
dfcbefcc50 Add reference for privacy hub API timestamps
Fix: 184890546

Test: N/A
Change-Id: I5a9787e8667268557d60ef97db581b172015ea3e
2021-04-15 17:56:31 +00:00
Winson Chiu
062dde5e2b Merge "Fix overlay reference app visibility" into sc-dev 2021-04-15 15:40:05 +00:00
TreeHugger Robot
bc54308859 Merge "Update getOwnersForDomain docs and enforce non-null" into sc-dev 2021-04-15 05:19:01 +00:00
Erik Wolsheimer
f9933b7d18 Increase MAX_ATTRIBUTIONS to 10000
Bug: 180906577
Test: Build and run sargo-userdebug
Change-Id: I2e0d21d114cacc9fb9a6d4e1c46ec2e00e3654cb
2021-04-14 23:15:49 +00:00
Ashwini Oruganti
8b71ad9ab4 Merge "Add an excludedPermission arg to filter the set of apps that a broadcast gets sent to" into sc-dev 2021-04-14 20:30:06 +00:00
Winson
186c182cb9 Fix overlay reference app visibility
Change get -> valueAt and get the actual base.apk ApkAssets for the
package. Also fixes overlay reference visibilty, which was broken with
the AppsFilter cache.

Bug: 184834206

Test: atest OverlayReferenceMapperTests
Test: atest OverlayActorVisibilityTest
Test: atest AppsFilterTest

Change-Id: I01e6a39b36a0e03c2cb9d48e705fe02c1a63c169
2021-04-14 13:02:35 -07:00
Winson
76d81231f4 Update getOwnersForDomain docs and enforce non-null
Forgot the docs update part of the feedback. Also enforces the param
non-nullablility.

Bug: 184891031

Test: atest DomainVerificationManagerApiTest

Change-Id: I4c90f69bc38c9760a76555ee8c8ad121cac997b6
2021-04-14 12:37:37 -07:00