Commit Graph

10089 Commits

Author SHA1 Message Date
Philip P. Moltmann
c691c16811 Merge changes from topic "CameraMicQSTile"
* changes:
  Provide IndividualSensorPrivacyController instead of bind it
  Add mic sensor privacy QS tile
  Hook up camera toggle QS tile to SensorPrivacyManager
  Create camera toggle tile
2021-01-15 19:00:34 +00:00
Jeff Sharkey
1364e402cf Merge "update owners for AppSearchPerson related files" am: a1daeb7005 am: f7de146c0f am: 613909af31
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I52abae8fc729406ac97feea1e17e725d5b54e6d4
2021-01-15 13:57:48 +00:00
Jackal Guo
8b2f2602f9 Merge "Refactor PackageParser (1/n)" 2021-01-15 01:07:02 +00:00
Philip P. Moltmann
bde12fd465 Hook up camera toggle QS tile to SensorPrivacyManager
Bug: 162549680
Test: Toggled tile and looked at 'dumpsys sensor_privacy`
Change-Id: I8b734adf3df7ef57b7c5c88f4b8fabe6ad60b96f
2021-01-14 22:32:04 +00:00
Jeff Sharkey
613909af31 Merge "update owners for AppSearchPerson related files" am: a1daeb7005 am: f7de146c0f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie2c4250a4813d9e3120cb01e96cd7f51532c52c0
2021-01-14 17:10:15 +00:00
Patrick Baumann
6a6b8d43bb Merge "Add support for pathSuffix" 2021-01-14 16:28:15 +00:00
Jeff Sharkey
a1daeb7005 Merge "update owners for AppSearchPerson related files" 2021-01-14 16:25:29 +00:00
Jackal Guo
3949de1552 Refactor PackageParser (1/n)
The PackageParser is deprecated, but two inner classes PackageLite
and ApkLite are still used widely. To move away from PackageParser,
the first step is having alternatives of these inner classes.

Besides, some constants in the PackageParser are also used. This CL
also moves them into the individual class.

Bug: 174723245
Test: make
Change-Id: Ice151dc4daf7e342e9f77cfdae69682c1d5ba56f
2021-01-14 11:57:30 +08:00
Todd Kennedy
3060654c8f Merge "add new owners for IntentFilter and Intent" am: c9e61a5c83 am: 5fcf36eefe am: cceb8b5a97
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549534

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie5197a46d7267a8ee6ea383b98b9eedac491a4da
2021-01-13 21:20:05 +00:00
Todd Kennedy
cceb8b5a97 Merge "add new owners for IntentFilter and Intent" am: c9e61a5c83 am: 5fcf36eefe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549534

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b89d19806bd96e3af6f8b93cb23db6faa641634
2021-01-13 20:47:21 +00:00
Bernardo Rufino
79745b3cae Merge "Deprecate Intent.ACSD" 2021-01-13 19:57:46 +00:00
Pinyao Ting
e164c3223e update owners for AppSearchPerson related files
Bug: 151359749
Test: manual
Change-Id: I4ab1e9f9b8a70021f8fc7bd0fdfbab63d71fffaa
2021-01-13 11:50:59 -08:00
Todd Kennedy
c9e61a5c83 Merge "add new owners for IntentFilter and Intent" 2021-01-13 19:47:10 +00:00
Bernardo Rufino
8c24eb10b4 Deprecate Intent.ACSD
The intent can be used to prevent the user from accessing critical
notifications (b/137274359) and system dialogs in general (eg. the
long-press power menu, assistant UIs, etc.). For these security reasons,
in S, the intent is severely limited to only a few use-cases/callers
after investigation (go/close-system-dialogs-usage), these are:

1. Permission holders of BROADCAST_CLOSE_SYSTEM_DIALOGS (includes
   platform, sysUI and recents).
2. Non-activity notification trampolines: Apps send the intent before
   starting an activity in trampolines.
3. Tests: Tests that interact with the UI send the intent to dismiss
   random dialogs.
4. Windows above the notification shade: Apps with windows above the
   shade that want to start activity send the intent to collapse the
   shade in order to show the activity to the user.

For apps w/ targetSdk < S: The intent will be dropped with the exception
of the cases above.

For apps w/ targetSdk S+: Sending the intent will result in a
SecurityException except for cases 1 and 3. For cases 2 and 4:

2. Non-activity notification trampolines: These activity starts are
   blocked (go/notification-trampolines), so the app has no reason to
   send the intent anymore.
4. Windows above the notification shade: The platform will automatically
   collapse the shade on activity starts in this case.

In all other use-cases, the user and the system is in control of closing
system dialogs, not third-party applications. Hence, marking
Intent.ACSD as deprecated for third-party applications.

Test: Builds
Bug: 159105552
Change-Id: Id82415ab4cfe09f7582da06ee20adb1e1cf447e0
2021-01-13 16:27:34 +00:00
Mathew Inwood
f3793ebcc9 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092 am: 982e50f2c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab20c244c8ff5b04f3236cfccb453a4fbe5a8705
2021-01-13 10:34:26 +00:00
Mathew Inwood
982e50f2c6 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4eeffeb0d9ab509e2f436435bf2079558e2d1c7d
2021-01-13 10:12:53 +00:00
Mathew Inwood
29bf6e8443 Merge "Derestrict some non-SDK APIs." 2021-01-13 09:38:35 +00:00
Todd Kennedy
cfed1e57ae add new owners for IntentFilter and Intent
Change-Id: I08cf0635715290a3baba049a81b35bcad0eddb03
2021-01-13 03:55:25 +00:00
Treehugger Robot
48dec93d4a Merge "Revert "OMS: add transactional API"" am: 7facc4ec41 am: ba88e64636 am: c9d2ce70de
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1548437

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8e88ddf57a29aeed73157801e29a8379f6bea79c
2021-01-13 00:49:22 +00:00
Treehugger Robot
c9d2ce70de Merge "Revert "OMS: add transactional API"" am: 7facc4ec41 am: ba88e64636
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1548437

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6d5bf83f5d5ce2600084e4c2be28199ffe78db22
2021-01-13 00:48:58 +00:00
Patrick Baumann
8cbf2e5a8f Add support for pathSuffix
This change adds support for a simple pathSuffix attribute in an app's
intent filter that can be applied to the path or ssp to match the end of
either. This enables filters that match based on file extensions as a
common use case.

This change additionally finally exposes the pathAdvancedPattern
attribute to enable more complex matching logic. This feature was added
back in API 26, but never exposed as a supported attribute in app
manifests, essentially making it useless to the average developer.

Test: atest IntentFilterTest
Bug: 139934742
Bug: 35193418

Change-Id: Ib58d5fb5419e621497e402b16a3a31c0c73f77cd
2021-01-12 16:15:52 -08:00
Treehugger Robot
7facc4ec41 Merge "Revert "OMS: add transactional API"" 2021-01-13 00:00:42 +00:00
Ryan Mitchell
295e0d7183 Revert "OMS: add transactional API"
This reverts commit ac6bbdb6b0.

Reason for revert: b/177065099

Change-Id: I11d8a498f25b3e734a28f160a6b65c5b5720a38d
2021-01-12 21:09:53 +00:00
Adam Bookatz
185089663b Merge "Add User* OWNERS file (part 2)" am: da79da08f0 am: b9b73d26db am: 9ac98ffa59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3fc005c69350f13002ceea055c7b97b8486eb484
2021-01-12 21:04:55 +00:00
Adam Bookatz
9ac98ffa59 Merge "Add User* OWNERS file (part 2)" am: da79da08f0 am: b9b73d26db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I87bc14c52e4aa4ed42f73496e104f0f3182c613b
2021-01-12 20:55:13 +00:00
Joanne Chung
d47c351b8d Merge "Initial layout of translation related APIs." 2021-01-12 16:00:23 +00:00
Adam He
2653f23d47 Initial layout of translation related APIs.
The initial translation related APIs. The APIs and the implementation
will be revised in the follow up changes. The service register will
on the next changes.

Bug: 173243538
Bug: 176208267
Test: manual verification (build)

Change-Id: Ib7b39e1b548bc6663a81482fa335632e8da18d6a
2021-01-12 21:08:05 +08:00
Adam Bookatz
6cd4cd01fb Add User* OWNERS file (part 2)
Part 1 was aosp/1546301.
Two parts are required due to b/175318571.

Test: N/A
Change-Id: I1a89f7d26da70dce36d1e891a8e8ebc4042dc56c
2021-01-12 01:03:39 +00:00
Julia Reynolds
071f0a46fc Add a status API for conversations
Status are transient pices of information about the current
activities or availability of someone in a conversation. They
may be shown in places where conversations are shown.

Test: atest, cts
Bug: 163617224
Change-Id: I4b61bc3b7f338e9c8cae2c6142622a7040547ddb
2021-01-11 10:15:08 -05:00
Ryan Mitchell
597cb08904 Merge changes from topic "oms-transactional-api" am: b9ba6a8d0f am: f50bf40b9b am: 13405917a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1236071

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1c9be5b9bd85ea9a54b06b1b39a8d89e8d96206c
2021-01-07 19:21:04 +00:00
Ryan Mitchell
13405917a6 Merge changes from topic "oms-transactional-api" am: b9ba6a8d0f am: f50bf40b9b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1236071

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iad26205fed43fd9082c8995e65592e89d3a64dde
2021-01-07 18:48:16 +00:00
Jeff Sharkey
7bdb59ff90 Merge "update owners for shortcut and launcher related files" am: 6173852165 am: 8d21688681 am: 82d5729a4b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540651

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9489078072612dcc541de5acf570eb22519042b0
2021-01-07 17:53:22 +00:00
Jeff Sharkey
82d5729a4b Merge "update owners for shortcut and launcher related files" am: 6173852165 am: 8d21688681
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540651

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie0d9564ead4ed0f689cfbbc8e80425d4a8447500
2021-01-07 17:35:45 +00:00
Ryan Mitchell
b9ba6a8d0f Merge changes from topic "oms-transactional-api"
* changes:
  OMS: add tests for the OMS transactional API
  Push OverlayDeviceTests onto /system
  OMS: add transactional API
  OMS: block until settings are persisted
  OMS: replace OMSImpl.OverlayChangeListener with return values
  OverlayDeviceTests: add missing TEST_MAPPING
2021-01-07 15:48:20 +00:00
Jeff Sharkey
6173852165 Merge "update owners for shortcut and launcher related files" 2021-01-07 14:50:03 +00:00
Mathew Inwood
55350450fb Merge "Derestrict ContextWrapper.createApplicationContext." am: 6e1f2d209b am: 4b46fb6b09 am: f1f8f956c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541664

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If47397df98ebb90c079d110fbfd947aa17abe05b
2021-01-07 12:26:58 +00:00
TreeHugger Robot
db806b58cf Merge "Add a UI Context for RootTaskDisplayAreaOrganizer" 2021-01-07 11:58:04 +00:00
Mathew Inwood
f1f8f956c6 Merge "Derestrict ContextWrapper.createApplicationContext." am: 6e1f2d209b am: 4b46fb6b09
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541664

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If11ea65e77e954293a8474a32ef09ad09a8fb63e
2021-01-07 11:47:46 +00:00
Mathew Inwood
46a446f45e Merge "Derestrict Resources.getDisplayAdjustments()." am: ea01ff86d0 am: e48c5194db am: 37c7d893b1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541667

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic62efe2198ec8b30b509aed5821b13822f81273f
2021-01-07 11:12:18 +00:00
Mathew Inwood
37c7d893b1 Merge "Derestrict Resources.getDisplayAdjustments()." am: ea01ff86d0 am: e48c5194db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541667

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idebdb5ee7a25eabc83e7d9486384bfc4877c90fa
2021-01-07 10:51:25 +00:00
Mathew Inwood
6e1f2d209b Merge "Derestrict ContextWrapper.createApplicationContext." 2021-01-07 10:19:23 +00:00
Mathew Inwood
95709ba69f Derestrict some non-SDK APIs.
Per request from a partner, these APIs will not be restricted as they
are in use. This is conceptually a partial revert of change 5d123b6775.

NoNonSdkCheck: b/170729553

Bug: 171933273
Test: Treehugger
Change-Id: Ibb525e9a9e2fc90248b74f45f3cdcb0be7487c3a
2021-01-07 09:53:09 +00:00
Mathew Inwood
4224dc8b99 Derestrict ContextWrapper.createApplicationContext.
Usage has been discovered by an app so reverting this to its previous
state. This is conceptually a partial revert of change 5d123b6775.

NoNonSdkCheck: b/170729553

Bug: 175981568
Test: m
Change-Id: I3e61d3f56f176d573f68ba85f3b1762686aa62ef
2021-01-07 09:51:37 +00:00
Mathew Inwood
ea01ff86d0 Merge "Derestrict Resources.getDisplayAdjustments()." 2021-01-07 09:47:22 +00:00
Charles Chen
74e1d37cad Add a UI Context for RootTaskDisplayAreaOrganizer
Bug: 175416931
Test: atest SplitScreenTests WMShellUnitTests

Change-Id: Id11bfef19076840e46222014e268a553bd94f2ef
2021-01-07 17:09:32 +08:00
Treehugger Robot
ceeb28518f Merge "configure owners for shortcut related tests" am: 40e2fb68e6 am: 09c41ee5dd am: 0932dc2c83
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1542104

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iddf5a8d53b4d77dbfb440dbf10ec7ba8ce566918
2021-01-07 02:17:52 +00:00
Treehugger Robot
0932dc2c83 Merge "configure owners for shortcut related tests" am: 40e2fb68e6 am: 09c41ee5dd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1542104

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6b26283bc79a09467047932b76c21cb47627df97
2021-01-07 02:04:20 +00:00
Pinyao Ting
a4d472d23b update owners for shortcut and launcher related files
Bug: 151359749
Test: manual
Change-Id: I7e670f2c59a61ffaa341bb267133c2441206a686
2021-01-06 17:08:46 -08:00
Pinyao Ting
01c021dbe3 configure owners for shortcut related tests
Bug: 151359749
Test: manual
Change-Id: I9893b86091cf480a2cd2ba6d276a3779d02b6eb5
2021-01-06 13:47:33 -08:00
Mehdi Alizadeh
3ef6970d1a Merge "Adds RequiresPermission on ShortcutQuery#FLAG_GET_PERSON_DATA" 2021-01-06 21:09:24 +00:00