Commit Graph

10430 Commits

Author SHA1 Message Date
TreeHugger Robot
7573d00058 Merge "Avoid running RegisteredServicesCache tasks on main thread" into sc-dev am: 2f74b666a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13743117

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I858c3692e28be54b0d17b257e887380bbe78d700
2021-03-03 02:40:50 +00:00
TreeHugger Robot
2f74b666a3 Merge "Avoid running RegisteredServicesCache tasks on main thread" into sc-dev 2021-03-03 02:29:51 +00:00
Evan Severson
5fed69c8d5 Merge "Update permissions OWNERS files" am: 391145ab85 am: d35d84c8fc am: 69abbcb203 am: 33792c94ea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1611821

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia255b3c4300a02ceeda30dd2b08d7be5c8a95bd1
2021-03-02 23:12:23 +00:00
Evan Severson
33792c94ea Merge "Update permissions OWNERS files" am: 391145ab85 am: d35d84c8fc am: 69abbcb203
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1611821

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7d0c9e41b15a62c547df2ca1fb2bca37c5ab7d43
2021-03-02 22:32:49 +00:00
Evan Severson
69abbcb203 Merge "Update permissions OWNERS files" am: 391145ab85 am: d35d84c8fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1611821

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5c35ddb5368616f4fc2932d305d8ff851ddea8a1
2021-03-02 21:51:14 +00:00
Evan Severson
d35d84c8fc Merge "Update permissions OWNERS files" am: 391145ab85
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1611821

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I99f1eefce42cc8717be7c9834b685e53dec813ce
2021-03-02 21:40:58 +00:00
Alex Buynytskyy
d1b10269b0 Merge "Remove INCREMENTAL_VERSION and add version to INCREMENTAL feature." into sc-dev am: 967b81014f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13738376

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia31d9442a8f4439f701fcd3f2fbb0cc0e24fcb98
2021-03-02 21:33:03 +00:00
Alex Buynytskyy
967b81014f Merge "Remove INCREMENTAL_VERSION and add version to INCREMENTAL feature." into sc-dev 2021-03-02 21:24:41 +00:00
Jeongsik Mun
8f35d505ba Avoid running RegisteredServicesCache tasks on main thread
Since RegisteredServicesCache tasks from SyncManager and AccountManager
run on the main thread of SystemServer, It could cause draining
the main thread and end up with ANR when receiving a lot of broadcasts
or notifying changes through a listener.

This CL changes a few things to avoid running it on main thread.
1. RegisteredServicesCache uses BackgroundThread by default for
receiving broadcasts and a listener, instead of main thread.
2. AccountManager uses its own handler for a listener.

Bug: 171907687
Test: atest SyncManagerTest CtsSyncManagerTest AccountManagerServiceTest
Change-Id: I838c15b797b46fd58bb3c6ce9ee444a4737775d8
2021-03-02 21:12:27 +00:00
Evan Severson
391145ab85 Merge "Update permissions OWNERS files" 2021-03-02 19:46:59 +00:00
Ryan Mitchell
ff05573e0f Merge "Don't use ApkAssets::GetPath for equality checks" into sc-dev am: 3381ea741e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13732294

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id65c360b6f257638af5ea9e63b0ab71e50d43e3e
2021-03-02 18:41:23 +00:00
Evan Severson
13fd14252b Update permissions OWNERS files
Test: None
Change-Id: I039bf12c65b0cd509a6772d89b96821b98ff318c
2021-03-02 10:37:41 -08:00
Alex Buynytskyy
78c789d33f Remove INCREMENTAL_VERSION and add version to INCREMENTAL feature.
This is addressing the API feedback.

Bug: 181015045
Fixes: 181015045
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I3ea745a4f0f0a0d9ae90f0625dfce61a8649a76d
2021-03-02 10:26:20 -08:00
Ryan Mitchell
3381ea741e Merge "Don't use ApkAssets::GetPath for equality checks" into sc-dev 2021-03-02 18:07:06 +00:00
Ryan Mitchell
ef53843630 Don't use ApkAssets::GetPath for equality checks
With the introduction of ResourcesProviders, not all ApkAssets have
paths on disk. Theme::SetTo and various AssetManager methods use the
path to perform equality checking on ApkAssets. This equality check
will be performed on the debug string of an ApkAssets if it does not
have a path on disk. This causes ApkAssets with the same debug name
(like "<empty>") to be seen as the same ApkAssets. Rather than using
path, the pointer to the ApkAssets should be used for equality checking
since ResourcesManager caches and reuses ApkAssets when multiple
AssetManagers request the same assets.

Bug: 177101983
Test: atest CtsResourcesLoaderTests
Change-Id: I11f6a2a3a7cc8febe3f976236792f78e41cf07e6
2021-03-02 18:06:49 +00:00
Galia Peycheva
903b1fcc0d Merge changes from topic "add-runtime-blur-disabling" into sc-dev am: fd98c576c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13603505

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I89145e4bbba0d367194593c96923f813738f2dfa
2021-03-02 05:33:47 +00:00
Galia Peycheva
fd98c576c7 Merge changes from topic "add-runtime-blur-disabling" into sc-dev
* changes:
  Create listener for dynamic blurEnabled changes
  Make WM.LP.blurBehindRadius a setter+getter
2021-03-02 04:45:06 +00:00
Pinyao Ting
d53092377a Merge "Shortcut integration with AppSearch (Part 2)" into sc-dev am: 4a08dabf99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13554654

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6e2e7e66077d949700ce909ab5d4dd06516e3e0b
2021-03-01 23:21:41 +00:00
Pinyao Ting
4a08dabf99 Merge "Shortcut integration with AppSearch (Part 2)" into sc-dev 2021-03-01 23:10:11 +00:00
Michael Groover
fdf65626d9 Merge "Report UnsafeIntentLaunchViolation for unfiltered extras copy" into sc-dev am: 057fc812a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13715270

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib35146f73d5cc951be99132dd7a1d4036ced9df1
2021-03-01 21:29:03 +00:00
Galia Peycheva
6e842a730c Create listener for dynamic blurEnabled changes
This CL exposes an API to let apps know when the blur has been enabled
or disabled dynamically.

This could be due to battery saving mode turned on, tunnel mode being
used, minimal post processing requested, etc.

This adds a WindowManager.addCrossWindowBlurEnabledListener, which allows
apps to add/remove a listener for blur enabled state changes. The
listeners are registered in a CrossWindowBlurListeners, which receives
updates from WindowManagerService when blurEnabled changes.
CrossWindowBlurListeners only registers a remote listener if the client
initializes it. I.e. if the app is not interested in blurs, the
CrossWindowBlurListeners won't get initialized and won't register a
remote listener.

WindowManagerService holds a RemoteCallbackList, which holds listeners
for each client process and notifies them when there are updates. If any
of the listeners' process dies, the entry is removed from the list.

Bug: 177524486
Test: m
CTS-Coverage-Bug: 179990440
Change-Id: I3fe8f2d2008171d6b069e8ee6f3b47e5b5d60cfa
2021-03-01 22:23:22 +01:00
Michael Groover
057fc812a9 Merge "Report UnsafeIntentLaunchViolation for unfiltered extras copy" into sc-dev 2021-03-01 21:15:00 +00:00
Pinyao Ting
47d1a02267 Shortcut integration with AppSearch (Part 2)
In order to move shortcuts from memory into AppSearch, we need to move
the bookkeeping states associated with ShortcutInfo into AppSearch as
well. This CL updates the schema to reflect the necessary chagnes.

Bug: 151359749
Test: atest ShortcutManagerTest1 ShortcutManagerTest2 ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5 ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8 ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
Change-Id: Iaafaf6b81504b3f80c05b7f4a996b1b5b6beaeb7
2021-03-01 12:56:51 -08:00
Kholoud Mohamed
eaa5f89f7d Merge "Expose a testAPI in CrossProfileApps" into sc-dev am: 76545798d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13714649

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifa9ef218bc1af3f83efd3956caf10e80ff331fb2
2021-03-01 20:08:32 +00:00
Kholoud Mohamed
76545798d7 Merge "Expose a testAPI in CrossProfileApps" into sc-dev 2021-03-01 19:37:15 +00:00
kholoud mohamed
baa7b228fa Expose a testAPI in CrossProfileApps
Exposed canConfigureInteractAcrossProfiles as
a testAPI.

Test: confirmed the API is callable in CTS tests.
Bug: 180328483
Change-Id: I7c2b5ae986ca8ce6771d814bf7a3568b9896e82f
2021-03-01 15:20:07 +00:00
Winson Chiu
473272330b Merge "Add OWNERS for pm.verify.domain" am: 1736ad8bfe am: b87d41ab87 am: 472f02851f am: 6b57f8489d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606753

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I49d237d68a0333f0de3b73f4e3434b460c4ef064
2021-03-01 08:18:20 +00:00
Winson Chiu
6b57f8489d Merge "Add OWNERS for pm.verify.domain" am: 1736ad8bfe am: b87d41ab87 am: 472f02851f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606753

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib249a8b692299bbe86922b17be39469de4960a33
2021-03-01 08:12:27 +00:00
Michael Groover
96a995dce0 Report UnsafeIntentLaunchViolation for unfiltered extras copy
Android 12 introduced a new StrictMode check to report an unsafe Intent
launch; initially this was intended to warn developers when a launched
Intent could potentially have originated from an external source. This
commit updates this check to also report when an Intent is being
launched with potentially unfiltered data; that is data that was
copied without sanitation / validation from a parceled Intent or
Bundle. When a violation is reported for unfiltered data the developer
should replace the #putExtras call with individual calls to #putExtra
to only include the items expected in the extras.

Bug: 181374760
Test: atest StrictModeTest
Change-Id: Id2b6baf439716367f4709d03832ceb601f9f009e
2021-02-26 18:27:16 -08:00
Evgenii Stepanov
0ab80262df Merge "Implement memtagMode and nativeHeapZeroInit manifest attrs." am: d600f5067a am: ac811c4025
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556655

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4987b360e6ca7d6f60b50c233f60db555c98d1d1
2021-02-26 21:16:44 +00:00
Evgenii Stepanov
ac811c4025 Merge "Implement memtagMode and nativeHeapZeroInit manifest attrs." am: d600f5067a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556655

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c84f162736af927f6cac041f4200dc3ab2b8efa
2021-02-26 20:50:30 +00:00
Evgenii Stepanov
d600f5067a Merge "Implement memtagMode and nativeHeapZeroInit manifest attrs." 2021-02-26 20:11:10 +00:00
Varun Shah
d56d3b3b8b Merge "Update #ACTION_UNINSTALL_PACKAGE doc." 2021-02-26 19:37:47 +00:00
Pinyao Ting
20e43a6d08 Merge "Shortcut integration with AppSearch (Part 1)" into sc-dev am: f11257a6db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13429673

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iff59e85155c5401b125c2df021ebfd427e545b82
2021-02-26 19:37:32 +00:00
Pinyao Ting
f11257a6db Merge "Shortcut integration with AppSearch (Part 1)" into sc-dev 2021-02-26 19:25:30 +00:00
Winson Chiu
472f02851f Merge "Add OWNERS for pm.verify.domain" am: 1736ad8bfe am: b87d41ab87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606753

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie4dce6d50b8df36cb368519cbf1fad7c7054c7a6
2021-02-26 19:11:28 +00:00
Winson Chiu
b87d41ab87 Merge "Add OWNERS for pm.verify.domain" am: 1736ad8bfe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606753

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2cc5663bb712bcf4f8a2fd8c6a335bc5a4a50946
2021-02-26 18:36:42 +00:00
Winson
351f4c34c8 Update domain verification Settings API am: cb5517f329
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13445303

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5e2fce446795b30fbb6db48d0732ca9a30893dc4
2021-02-26 18:21:25 +00:00
Winson Chiu
b3a5d89d23 Merge "Send domains through Parcel#writeBlob to avoid size limit" into sc-dev am: ad07b85125
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13563509

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I140436ccb3db0a62cb003b78aabc0c06c11f7319
2021-02-26 18:20:23 +00:00
Evan Severson
bcd4a6d26d Merge changes from topics "remove_bg_mic_cam_public", "remove_role_exempt" into sc-dev am: 768cddd98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13679456

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I00f1edcad186eabcdb6743285bb052dfe007fa2c
2021-02-26 18:19:09 +00:00
Winson
cb5517f329 Update domain verification Settings API
Adjusts the logic for selecting a domain, removing the selection for
other applications once a domain is verified or overridden by another
application being selected.

To this end, exposes a new Domain class with verified/selected booleans
to encapsulate the state, returned in the initial response for the
Settings screen API. This avoids the usage of the
getDomainVerificationSet API, so that can be restricted to only the
domain verification agent in a future change.

Also introduces the concept of a DomainOwner, which represents a single
package who has been granted any positive level of approval to open
a domain.

Bug: 177923646

CTS-Coverage-Bug: 179382047

Test: atest com.android.server.pm.verify.domain
Test: TODO with Settings changes

Change-Id: Ib14049e397154616f84a2264167ac30659cd81c9
2021-02-26 18:11:26 +00:00
Winson Chiu
ad07b85125 Merge "Send domains through Parcel#writeBlob to avoid size limit" into sc-dev 2021-02-26 18:11:03 +00:00
Evan Severson
768cddd98e Merge changes from topics "remove_bg_mic_cam_public", "remove_role_exempt" into sc-dev
* changes:
  Remove role exempt flag
  Remove background microphone and camera from public api
2021-02-26 18:09:50 +00:00
Varun Shah
cc2dd4d222 Update #ACTION_UNINSTALL_PACKAGE doc.
Fixes: 181292470
Test: m
Change-Id: I04bfdd9dfc9bd49409aaa9bfc9958c2df6cfdaa2
2021-02-26 17:33:04 +00:00
Kholoud Mohamed
0215a5bfdc Merge "Exposed some testAPIs in UserManager" into sc-dev am: b3d381a109
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13462285

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I295b60fe5ec071a7e79297c643a78f203342b546
2021-02-26 13:00:22 +00:00
Kholoud Mohamed
afb12625a9 Exposed some testAPIs in UserManager
The following changes in UserManager are required for ongoing
improvements to CTS/GTS infrastructure.
- Exposed the following as testAPIs:
	* isGuestUserEphemeral
	* createUser
	* preCreateUser
	* createProfileForUser
	* createRestrictedProfile
	* getUsers
	* getUserType
- Added permissions to the following APIs:
	* CREATE_USERS for getUserName
	* INTERACT_ACROSS_USERS for getProfileParent
- Added CREATE_USERS permission to the documentation of
getUsers and the APIs that call it.

Test: Confirmed that a CTS test can call these APIs
Bug: 178695365
Change-Id: Id9105db3bfefb926139715b728acedefd2a5ca3e
2021-02-26 10:08:18 +00:00
Alex Buynytskyy
437a4f2e79 Merge "Remove INSTALLER_V2 permission since the API is finalized in S." into sc-dev am: a1ec6ad5e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13698061

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0eb30a923e8e5040ed3bcf1937eacb0e6eec4248
2021-02-26 10:03:26 +00:00
Alex Buynytskyy
a1ec6ad5e2 Merge "Remove INSTALLER_V2 permission since the API is finalized in S." into sc-dev 2021-02-26 09:50:23 +00:00
Winson
87f799c8bf Send domains through Parcel#writeBlob to avoid size limit
If the domains in each data class exceed 32 KB, serializes them using
writeBlob so that they get passed through shared memory rather than
the Binder transaction.

Bug: 177553185

Test: atest DomainVerificationCoreApiTest

Change-Id: I0dd4bd140c8b847eb604d8e42272ca5be5690731
2021-02-25 23:14:00 -08:00
Riddle Hsu
9d539f2c33 Merge "Optimize the Parcel read/write of common window data" into sc-dev am: ed46310238
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13674730

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If7facfd0a3bb394cac47e12f1197bac479f2d885
2021-02-26 04:18:11 +00:00