Commit Graph

10885 Commits

Author SHA1 Message Date
Oli Lan
c580952131 Merge "Call OnPrimaryClipChanged when classification status changes." into sc-dev am: b74c7adf8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14327544

Change-Id: I4360da193722d42bbe635a23aa5d997c7c323a2f
2021-04-30 17:30:44 +00:00
Oli Lan
b74c7adf8e Merge "Call OnPrimaryClipChanged when classification status changes." into sc-dev 2021-04-30 17:20:04 +00:00
Winson Chiu
55bd899358 Merge "Implement domain verification backup and restore" into sc-dev am: 1b8610d9a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14058688

Change-Id: I787ebecf9a70b0debff5f634e411f06f79e4c0f1
2021-04-30 16:22:33 +00:00
Winson Chiu
1b8610d9a9 Merge "Implement domain verification backup and restore" into sc-dev 2021-04-30 16:17:30 +00:00
Jay Sullivan
08c22ba817 Merge "Make REVOKE_WHEN_REQUESTED a SystemApi field" into sc-dev am: a26bf49927
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14297593

Change-Id: Ife64ac3f5cab9cacd333a83dc19925ed4793b3ca
2021-04-29 20:04:49 +00:00
Jay Sullivan
a26bf49927 Merge "Make REVOKE_WHEN_REQUESTED a SystemApi field" into sc-dev 2021-04-29 19:52:33 +00:00
Jeff Sharkey
deacbdbb7d Merge "Restore file truncation where expected." into sc-dev am: 02b741f883
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14266167

Change-Id: I5270dddb6f3daa79f4dbff6101497a8303f2c482
2021-04-29 15:36:49 +00:00
Jeff Sharkey
02b741f883 Merge "Restore file truncation where expected." into sc-dev 2021-04-29 15:31:16 +00:00
TreeHugger Robot
e31344c371 Merge "Update documentation for activity flags." into sc-dev am: 51cac482f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14308715

Change-Id: I75c53fb20d3c3a0443441dd4629cf44714e27954
2021-04-29 08:51:05 +00:00
TreeHugger Robot
51cac482f5 Merge "Update documentation for activity flags." into sc-dev 2021-04-29 08:48:15 +00:00
Jay Thomas Sullivan
7a7834230e Make REVOKE_WHEN_REQUESTED a SystemApi field
We have a reason to reference this flag from the base framework.  Mark
the flag as @SystemApi so it can be referenced.

Bug: 184962595
Test: atest AutoRevokeTest
Change-Id: Id9cb5d32b4afc9c49b8f97996fdfde2d4c239ca4
2021-04-28 20:33:48 -04:00
Todd Kennedy
449bcb0da9 Merge "PackageParser OWNERS noparent" am: 26a5186ab1 am: 159886625a am: 2678377c4b am: 229773b648
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688565

Change-Id: I211fa81fc83caf97aa322559d3f8e1e1d22aa3c6
2021-04-28 22:47:35 +00:00
Todd Kennedy
229773b648 Merge "PackageParser OWNERS noparent" am: 26a5186ab1 am: 159886625a am: 2678377c4b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688565

Change-Id: Iacc17024700bdb7ac9c7d044288bd35b0dfb0054
2021-04-28 22:41:50 +00:00
Jeff Sharkey
fe738fbd0d Restore file truncation where expected.
Several years ago ParcelFileDescriptor.parseMode() was fixed to match
the behavior of fopen(), since developers expect consistent behavior
between managed and native code.  FileUtilsTest.testTranslateMode()
verifies that all these modes are correctly translated.

However, this unintentionally changed the behavior of
ContentResolver.openOutputStream(), which only sends the 'w' mode
to the remote process.  Developers expect this API to behave like
the FileOutputStream constructor, which always truncates the file
unless opened with the append mode.

Since some remote providers may not be prepared to handle the 't'
mode, this change carefully uses Os.ftruncate() to restore this
expected behavior in all cases.

For other APIs that return opened files, this strategy is applied
to restore the original behavior, but only when the target SDK of
the app is expecting this truncation to take place.  The reason for
this is that moving forward our goal should always enable
ContentInterface APIs to be a transparent conversation between apps
without attempting to alter the behavior.  Apps talking with older
providers can apply the Os.ftruncate() logic themselves, if
desired, once they target Android Q or higher.

Bug: 157888856, 180680924
Test: atest CtsContentTestCases:ContentResolverTest
Change-Id: Iacec49164c4ce3891db0270635e9f458dea7becd
2021-04-28 14:25:46 -06:00
Guliz Tuncay
9550d2f640 Merge "Migrate |documenter to |role" 2021-04-28 16:30:28 +00:00
TreeHugger Robot
5fa89103e8 Merge "Move new changes to ParsingPackageUtils" into sc-dev am: 9ccd991dac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14319867

Change-Id: I5e21edbb688c0412a3c4e1c6875683dad3903544
2021-04-28 08:05:34 +00:00
TreeHugger Robot
9ccd991dac Merge "Move new changes to ParsingPackageUtils" into sc-dev 2021-04-28 07:36:36 +00:00
Jackal Guo
ed537a2acf Move new changes to ParsingPackageUtils
PackageParsers is marked as Deprecated so any new change should be
in the alternative. Moving the new activity launch mode definition
to ParsingPackageUtils.

Bug: 174723245
Test: atest IntentTests
Change-Id: I841f9d9d5d5555a78902cc3c126ed811dd2ccfc6
2021-04-28 09:30:14 +08:00
Winson Chiu
7edfb41f13 PackageParser OWNERS noparent
Remove other OWNERS from PackageParser.java to disallow future changes.
No new code should go into PackageParser.java except in extreme outlier
circumstances.

Change-Id: I2f663d2ae527beccbd47402492aa51d0cc6f6c13
2021-04-27 16:14:50 +00:00
Oli Lan
7461b08f9f Call OnPrimaryClipChanged when classification status changes.
To allow apps to know when text classification has been completed
on clipboard clips, ClipboardService will now call any
OnPrimaryClipChangedListeners when the classification status
of the primary clip changes.

This change is made as per API council suggestion.

This CL also ensures that the classification status is set on
any related profiles.

Bug: 185177537
Test: atest ClipboardManagerListenerTest
Test: atest ClipDescriptionTest
Test: atest atest ManagedProfileCrossProfileTest#testCrossProfileCopyPaste

Change-Id: I63c44a051d1e8029b6d56b9af5d1e506355a8466
2021-04-27 17:08:06 +01:00
Svetoslav Ganov
180f5ab24e Merge "Revert "Prepare AttributionSource to expose to native"" into sc-dev am: b9b8524f38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14315965

Change-Id: Ie3634408b2393594a914c582140f69b9c665ac20
2021-04-27 02:25:16 +00:00
Svetoslav Ganov
b9b8524f38 Merge "Revert "Prepare AttributionSource to expose to native"" into sc-dev 2021-04-27 02:12:30 +00:00
Adam Bookatz
33e17a9933 Revert "Prepare AttributionSource to expose to native"
Revert "Prepare AttributionSource to expose to native - native"

Revert submission 14225527-bug-158792096-04/16/21-1

Reason for revert: b/186467053
Reverted Changes:
I16740cc2d:Prepare AttributionSource to expose to native - na...
I4e050e78b:Prepare AttributionSource to expose to native

Change-Id: I83e4091231241c2211edf5745735f4ee993c6680
2021-04-26 23:20:46 +00:00
TreeHugger Robot
1973485504 Merge "Add examples for EXTRA_PERMISSION_GROUP_NAME and EXTRA_ATTRIBUTION_TAGS" into sc-dev am: de1232b368
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14313156

Change-Id: I2195ac60354f9bc086918c7ace0da79b25a219be
2021-04-26 22:46:52 +00:00
TreeHugger Robot
de1232b368 Merge "Add examples for EXTRA_PERMISSION_GROUP_NAME and EXTRA_ATTRIBUTION_TAGS" into sc-dev 2021-04-26 22:39:10 +00:00
Vadim Caen
98a00d7a76 Merge "API to override the splashscreen theme" into sc-dev am: 8773bbe881
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13996772

Change-Id: I6130f6a5dcabfb37074f6fbb914a7a27bad1057a
2021-04-26 19:24:08 +00:00
Vadim Caen
8773bbe881 Merge "API to override the splashscreen theme" into sc-dev 2021-04-26 19:20:04 +00:00
Guojing Yuan
9e703b97e6 Add examples for EXTRA_PERMISSION_GROUP_NAME and EXTRA_ATTRIBUTION_TAGS
Fix: 184890546

Test: N/A
Change-Id: I900995fc9d78da87a17013aaa56c86453eef7fb8
2021-04-26 18:22:29 +00:00
TreeHugger Robot
6197966364 Merge "Prepare AttributionSource to expose to native" into sc-dev am: a095d6b2b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14190127

Change-Id: I36a035b2bd484d4901ebcdf08dbc4960ca5d4306
2021-04-26 17:02:34 +00:00
Jeff Chang
911123acdd Update documentation for activity flags.
1. LAUNCHED_FROM_HISTORY, remove the out of date sentence.
2. NEW_DOCUMENT,add information about documentLaunchMode="never"
3. SINGLE_TOP, refer to launch modes for more information.

Bug: 123083574
Test: build
Change-Id: Id4da7be9993aaf1140c1c709a23ae7ed6d1718f5
2021-04-26 17:39:47 +08:00
Svet Ganov
7b7ea938f5 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.

bug: 158792096

Test: atest CtsPermission5TestCases

Change-Id: I4e050e78b2361cbf524cc213802e0fef5b487f67
2021-04-25 19:00:30 +00:00
Vadim Caen
7817164210 API to override the splashscreen theme
By default, the SplashScreen uses the manifest theme.
This API allows user to change the theme used for the splashcreen for
the whole application.

Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests#testOverrideSplashscreenTheme
Bug: 185109768

Change-Id: I64e24910f6529a0ea2867b67d7e5963b971164b4
2021-04-23 10:53:59 +02:00
Varun Shah
e9ed8a38cb Merge "Update OWNERS for Content* framework." am: 81f00f0198 am: 44b972b1f7 am: 49548d9faf am: 62696eb689
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665999

Change-Id: I963ee440265fa29a10366f8c595dd044550c671f
2021-04-23 01:08:36 +00:00
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
Hui Yu
8e3df06bcb Merge "Temp allowlist bluetooth broadcast to start FGS for 10 seconds." into sc-dev am: 9757955874
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14179249

Change-Id: I7490210d3bae1cda43051963a372f53a6f5417bb
2021-04-23 00:00:28 +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
47426c23c0 Merge "Remove package manager feature for toggles" into sc-dev am: 171fe09c3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14194146

Change-Id: I8d9bb177b97bd549ab6683220b6b622bda62f335
2021-04-22 16:43:01 +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
3d6561d9fb Merge "Apply package visibility to LauncherApps.Callback" into sc-dev am: 011805bf48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14122531

Change-Id: I21a4e7bc4e1844fba689fa145685893723e6f943
2021-04-22 08:59:01 +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
7efd715e3e Merge "Update framework from jetpack." into sc-dev am: 5681f7c05f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14201757

Change-Id: I3e54780f4cb34c1a1e866b1ed608ffe05f1b3f34
2021-04-21 23:30:07 +00:00
Alexander Dorokhine
5681f7c05f Merge "Update framework from jetpack." into sc-dev 2021-04-21 23:17:21 +00:00
Lucas Dupin
7e3a49c401 Merge "Fix typos in documentation" into sc-dev am: 2a8031d889
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14240211

Change-Id: Ic4f618ac802f87812917829795d35e95bdb96a93
2021-04-21 22:19:03 +00:00
TreeHugger Robot
ac97159ac8 Merge "Addresses setRequireUserAction API feedback" into sc-dev am: 0b99af47c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14255126

Change-Id: Id84c084d207c81b5337f19a078d710895c25aea1
2021-04-21 22:18:07 +00:00
Lucas Dupin
2a8031d889 Merge "Fix typos in documentation" into sc-dev 2021-04-21 22:17:42 +00:00
Pinyao Ting
405f230584 Merge "Replace oneway shortcut api with AndroidFuture" into sc-dev am: a51996aa48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14254629

Change-Id: I83d1343e7b8ab594d551b63615bec32435542c49
2021-04-21 22:17:29 +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