Commit Graph

3890 Commits

Author SHA1 Message Date
TreeHugger Robot
7193a0e774 Merge "Add a default implementation of UiTranslationStateCallback#onResumed." into sc-dev am: d8ef2b30f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14456467

Change-Id: I6ff6957ae56a8dc8326c55781c8363178fe1d854
2021-05-06 23:22:23 +00:00
TreeHugger Robot
d8ef2b30f4 Merge "Add a default implementation of UiTranslationStateCallback#onResumed." into sc-dev 2021-05-06 23:07:12 +00:00
Ahaan Ugale
ebc8d5154a Add a default implementation of UiTranslationStateCallback#onResumed.
This is temporary, to avoid breaking clients that already implemented
the API before onResumed was added.

Bug: 185274258
Test: manual
Change-Id: Icd2c392e248f01c22b95e0b88ba56847ae71f10a
2021-05-06 13:48:58 -07:00
Pierre Barbier de Reuille
8a3928876a Merge "Remove system_app_widget_internal_padding resource" into sc-dev am: 94cd7cbb04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14441818

Change-Id: I16481024f944948e60366d230795310db66360ce
2021-05-06 18:59:45 +00:00
Pierre Barbier de Reuille
94cd7cbb04 Merge "Remove system_app_widget_internal_padding resource" into sc-dev 2021-05-06 18:54:16 +00:00
TreeHugger Robot
c23cd2285a Merge "Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener" into sc-dev am: 8c62b2ba7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429650

Change-Id: Ia661cc856047a819a6f6dfac65cd8add3524100c
2021-05-06 18:43:19 +00:00
TreeHugger Robot
8c62b2ba7c Merge "Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener" into sc-dev 2021-05-06 18:36:32 +00:00
Pierre Barbier de Reuille
1187a1448e Remove system_app_widget_internal_padding resource
Fix: 187326256
Test: atest AppWidgetDimensionsTest
Change-Id: Ic78fa7e3165d9b937d100082915f28e90fca1f5b
2021-05-06 15:15:56 +01:00
Svetoslav Ganov
8fb897acef Merge "Prepare AttributionSource to expose to native" into sc-dev am: 720add59c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14381260

Change-Id: I14f40269541872bf807f669283da9a6f3d722f97
2021-05-05 23:44:49 +00:00
Svetoslav Ganov
720add59c7 Merge "Prepare AttributionSource to expose to native" into sc-dev 2021-05-05 23:23:54 +00:00
Kurt Dresner
81f2994f35 Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener
Bug: 175130323
Test: Presubmits
Change-Id: Ica48cd073e256055d5cac0f12e9ce814227eb0d6
2021-05-05 15:27:31 -07:00
Treehugger Robot
c8896eade1 Merge "update L photo size name with JPN_ prefix" am: 2a46c6491f am: 70100919d0 am: 9e0ab4a327 am: a5c04b6fd9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697309

Change-Id: Ic0294fe28d714b0f4d6ca081ce838a92a855ba80
2021-05-05 21:40:34 +00:00
Treehugger Robot
a5c04b6fd9 Merge "update L photo size name with JPN_ prefix" am: 2a46c6491f am: 70100919d0 am: 9e0ab4a327
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697309

Change-Id: Id300ef712eda7bfab164044c95c807ebf4e9798f
2021-05-05 21:35:24 +00:00
Kurtis Schlepp
11749564b1 update L photo size name with JPN_ prefix
Updates the Japanese Photo L media size name with JPN_ prefix

Test: L is present in API with updated name
Signed-off-by: Kurtis Schlepp <mopriadevteam@gmail.com>
Change-Id: Ib4e52b23571b166f6c000676fb81b4ac7c1f9a7a
2021-05-05 10:06:03 -07:00
Tom Natan
25bf625342 Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5 am: 65654644bc am: 43bf4624ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: If0f4b50388f57b79ce42043678f283eb140923ec
2021-05-05 16:46:27 +00:00
Tom Natan
43bf4624ec Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5 am: 65654644bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Id1b221629fee21648ee2a4683ab9a34b2efef1d6
2021-05-05 16:41:16 +00:00
Tom Natan
b9680bac79 Merge "Add an API method for clearing compat overrides on release builds" 2021-05-05 14:58:41 +00:00
tomnatan
2697018f70 Add an API method for clearing compat overrides on release builds
This will be useful when we want to clear overrides for apps that are no longer needed regardless of the version that is installed on device, e.g., when an app is being uninstalled, when we want to rollback an override, or when we deprecate a change-id.

In addition, rename CompatChanges#setPackageOverride to
addPackageOverrides.

Bug: 183183372
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: Iff416c8b4c88b5eddc9e21c73219198d23266fa1
2021-05-05 07:10:41 +00:00
Joanne Chung
fd86960f3c Merge "API feedback: seperate start and resume state for UiTranslationStateCallback" into sc-dev am: bd351242a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14410478

Change-Id: I6b33f2e4c08969931efcabac95f4433f555c5dda
2021-05-05 07:02:11 +00:00
Joanne Chung
bd351242a9 Merge "API feedback: seperate start and resume state for UiTranslationStateCallback" into sc-dev 2021-05-05 06:36:24 +00:00
Joanne Chung
8e9d678ff0 API feedback: seperate start and resume state for UiTranslationStateCallback
Bug: 185274258
Test: manual
Test: atest android.translation.cts.UiTranslationManagerTest

Change-Id: Ic2246a9ef64a214ce39e187056a9add56e616d1a
2021-05-05 12:31:25 +08:00
Lucas Dupin
c2fcc01b76 Merge "Add shade 10 to system palette" into sc-dev am: 534b1ea38f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14413934

Change-Id: I61ce10996574800e607b43c5fe6ba1c7024060a3
2021-05-05 00:01:18 +00:00
Louis Chang
3e41f18978 Merge "Remove WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY" into sc-dev am: ba6bf9dad3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14242368

Change-Id: Ib7739d7ef39c3412a6b9bb3c47a28441d5ce0747
2021-05-05 00:00:39 +00:00
Lucas Dupin
534b1ea38f Merge "Add shade 10 to system palette" into sc-dev 2021-05-04 23:43:29 +00:00
Louis Chang
ba6bf9dad3 Merge "Remove WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY" into sc-dev 2021-05-04 23:42:51 +00:00
Sahana Rao
8f6f6fa721 Merge "Change hasRequestRawExternalStorageAccess() to return integer" into sc-dev am: 8f28e57780
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14327548

Change-Id: I6bb834eb44bdb0faccfebb0d981718fb8395f2d2
2021-05-04 19:21:38 +00:00
Sahana Rao
8f28e57780 Merge "Change hasRequestRawExternalStorageAccess() to return integer" into sc-dev 2021-05-04 19:19:17 +00:00
Inseob Kim
f6af5c4bd7 Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5 am: 5c50929036 am: 77b8f5858f am: 0bc6f0f6be
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587

Change-Id: I6604d6d951bf838faa55180ee94720cfe93629d8
2021-05-04 16:28:17 +00:00
Inseob Kim
0bc6f0f6be Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5 am: 5c50929036 am: 77b8f5858f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587

Change-Id: I540e6e54f2a345372dd2e95a2eaeecb32afe747b
2021-05-04 16:21:02 +00:00
Lucas Dupin
ad070286d6 Add shade 10 to system palette
Fixes: 186851836
Test: manual
Test: atest SystemPalette
Change-Id: Ic594c7f9079703f4ab664871519a900c69e124bd
2021-05-04 08:53:21 -07:00
Inseob Kim
4055ce5313 Add an api for platform sepolicy version to vintf
PLATFORM_SEPOLICY_VERSION will be the latest version in system's
compatibility matrix. This change adds a function
getPlatformSepolicyVersion, which ultimately gets
PLATFORM_SEPOLICY_VERSION, just like getSepolicyVersion for vendor.

This will be used from the SELinux CTS.

Bug: 186596569
Test: atest CtsSecurityHostTestCases:android.security.cts.SELinuxNeverallowRulesTest
Change-Id: Ic7863ece9413b9a6a4a91ff42d3121935823fe8b
2021-05-04 12:53:52 +00:00
Svet Ganov
4bf102ae26 Prepare AttributionSource to expose to native
Separate the internal state of AttributionSource from the
class to make it a simple AIDL we can translate automatically
to native - keeping Java and native parts in sync. This
would allow writing a thin native lib for checking attribution
source permissions which would be used to teach camera and
audio about attributions.

Deinfe an AIDL interface for passing around an attribution
source and opr performing permission checker oprations allowing
native and Java permission checks on attribution chains to be
handled. The Java side permission checker functions are in a dedicated
permisison checker service on top of which sits the PermissionChecker.
We expose similar PermissionChecker native APIs sitting on top
of the same remote interface. The nice thing is that we have
native and Java permisison checkers in sync sharing remoting
code and being close in shape.

For now the PermissionChecker in Java is divorced from the
PermissionManager but in T we will consider how to unify them,
either by an extension object on the PermmissionManager or
APIs on the PermissionManager, or another approach, and then
migrate clients off the PermissionChecker APIs.

Sync app ops were not tracked across multiple binder calls which
prevents moving the permission checks in the system server as
this adds one more hop. Now sync ops are propagated backed the
call stack and only the ops for the package are dispatched to
it and the rest are propagated back to the caller, recursively.

bug: 158792096

Test: atest CtsPermission5TestCases
      atest CtsAppOps2TestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases

Change-Id: Ia5cbd2eb20a2da172a5960afdddd7e467f4bcb0d
2021-05-04 07:42:45 +00:00
George Mount
930d7b4eb7 Remove edge effect type from the API. am: b1aee44bea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14390423

Change-Id: If4f4c564adbcd2cc6d455f8224ad930cb6f07d4d
2021-05-04 04:46:58 +00:00
George Mount
b1aee44bea Remove edge effect type from the API.
Fixes: 186758538

Relnote: "Removes edge effect type from the API -- EdgeEffect now
supports only stretch edge effect for all applications."

Test: existing tests, modified to work with stretch
Change-Id: Iec7a9d4a0316ff3ba7297c4565bb881a1adcf949
2021-05-03 22:45:10 +00:00
Sahana Rao
d559e78253 Change hasRequestRawExternalStorageAccess() to return integer
Previously, hasRequestRawExternalStorageAccess would return null if the
app doesn't have requestRawExternalStorageAccess attribute in the
manifest. And, return true/false based on the value specified in
manifest.

Based on API review comments, changed the method to
getRequestRawExternalStorageAccess which returns
* RAW_EXTERNAL_STORAGE_ACCESS_DEFAULT if app didn't specify
requestRawExternalStorageAccess attribute in the manifest.
* RAW_EXTERNAL_STORAGE_ACCESS_REQUESTED if the app requested raw
external storage access.
* RAW_EXTERNAL_STORAGE_ACCESS_NOT_REQUESTED if the app requests to
disable raw external storage access

The API is not guarded with any system level API permissions, hence
changing the API to public API instead of system API. Also added
documentation to ensure apps don't misunderstand this API

Bug: 185484514
Test: atest packages/providers/MediaProvider
Change-Id: Ib7e41ab8ee38389bf44a360e4288d03e58ef44cf
2021-05-03 22:16:56 +01:00
Grace Jia
e2099469d2 Add support for selected contacts device to device sharing.
Bug: 163085177
Test: CTS tests
Change-Id: I4f6da463a29ba9cf067d36941a9b4e584012c817
Merged-In: I4f6da463a29ba9cf067d36941a9b4e584012c817
2021-05-03 12:19:27 -07:00
TreeHugger Robot
9d1a948f97 Merge "Fix nullability of the group name parameter in queryPermissionsByGroup()." into sc-dev am: 1d92fd8123
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14391263

Change-Id: I8dbf83e4aac805eeb6f567cedf61d904adc972e8
2021-05-03 15:20:48 +00:00
TreeHugger Robot
1d92fd8123 Merge "Fix nullability of the group name parameter in queryPermissionsByGroup()." into sc-dev 2021-05-03 15:12:34 +00:00
Nikita Dubrovsky
af9ee7ebeb Merge "Update ContentInfo to implement Parcelable" into sc-dev am: 686e4780e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14341829

Change-Id: Ifa091595fc264b93d5d32d1071e2692b1d93c830
2021-05-01 00:38:05 +00:00
Nikita Dubrovsky
686e4780e3 Merge "Update ContentInfo to implement Parcelable" into sc-dev 2021-05-01 00:25:24 +00:00
Hai Zhang
8f6290db77 Fix nullability of the group name parameter in queryPermissionsByGroup().
Change-Id: Id503da0fe4f16a92997634089fc052d58e78f9df
Fixes: 141452667
Test: presubmit
2021-04-30 21:43:05 +00:00
Florian Mayer
0f7d78bfe7 Merge changes from topic "playprofileable" into sc-dev am: 748c3a8040
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14328127

Change-Id: I26cbadace6a71fe9195eb0271224514ae5f73332
2021-04-30 20:50:12 +00:00
Florian Mayer
748c3a8040 Merge changes from topic "playprofileable" into sc-dev
* changes:
  Add packageInstaller to packages.list.
  Add profileable opt-out to packages.list.
2021-04-30 20:42:16 +00:00
Kurt Dresner
a7e28fd8a8 Merge "Make PROJECTION_TYPE_ALL=-1 so that all bits are on." into sc-dev am: 3a4ecbf88f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14310287

Change-Id: I4621487aabb8e19a8fe76d925f4ce935a07105e4
2021-04-30 18:37:06 +00:00
Kurt Dresner
3a4ecbf88f Merge "Make PROJECTION_TYPE_ALL=-1 so that all bits are on." into sc-dev 2021-04-30 18:23:24 +00:00
Nikita Dubrovsky
9b9b00ff46 Update ContentInfo to implement Parcelable
Bug: 186683314
Test: atest CtsViewReceiveContentTestCases:ContentInfoTest
Change-Id: I59376947cfa8dad5d2021cb1d2f5c121a1f90596
2021-04-30 11:09:04 -07:00
Tyler Gunn
ea88d95521 Merge "Remove deprecated at birth DiagnosticCall class." into sc-dev am: a6502cc4d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14342191

Change-Id: I36df50578404e9d69b8895857b28007243ba2a79
2021-04-30 16:16:12 +00:00
Tyler Gunn
a6502cc4d6 Merge "Remove deprecated at birth DiagnosticCall class." into sc-dev 2021-04-30 15:54:09 +00:00
TreeHugger Robot
a862fde66e Merge "Change streaming policy implementations" into sc-dev am: 78a91deb5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14121961

Change-Id: I4e400a995c3be21aecebf24f8a67068fa428465e
2021-04-30 13:53:35 +00:00
Florian Mayer
6ea939f3bf Add profileable opt-out to packages.list.
We now have two notions of profileable:
 * profileable from shell: the user can profile the app using ADB-based
   tools (e.g. Android Studio or shell) . This is off unless the app
   opts in.
 * profileable from platform services: trusted platform services can,
   in accordance to the app installer's Terms Of Service profile the
   app. This is the default unless the app opts out. This is enforced
   by the profilers with information provided by the framework.

A new flag <profileable android:enable="false"/> can be used to opt out
of profiling in general. If this is not given, the app is considered
profilable by the platform, but the data will *not* be exposed to the
user via shell or adb. If profiles of the app should be given to the
user (e.g. for using Android Studio), <profileable
android:shell="true"/> can can still be used.

We write whether the app opted out or not to packages.list, to be
consumed by the profilers.

CTS-Coverage-Bug: 186720347

Test: m
Test: on userdebug: /data/system/packages.list for preinstalled, Play
      Store installed app and sideloaded app.
Test: on user: atest CtsPerfettoTestCases.
Bug: 170284829

Change-Id: I8d4bbedc043976fd11a95a511bd95a05c7ced7b9
2021-04-30 11:52:31 +00:00