Commit Graph

20301 Commits

Author SHA1 Message Date
Felipe Leme
ec7d92a735 Merge "Fixed createAndManageUser() for headless system user mode." into sc-dev am: f2a7576696
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13679504

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I84048171bc1acf78920c2a63dea393c7761938ae
2021-03-01 18:04:32 +00:00
Hui Yu
ef1986f495 Merge "Call new API setTemporaryAppAllowlist() and specify temp-allowlist reasonCode." into sc-dev am: 2533037dc5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13705796

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7117c45dc6dce542d72983885bb17fdd3ba50fb0
2021-03-01 18:02:38 +00:00
Ruslan Tkhakokhov
ac5580350c Merge "Update D2D logic in line with new opt-out rules" into sc-dev am: b56fc740bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13699589

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If2236b3d5aec63ff3f1e4540f33c8e11b246009d
2021-03-01 18:00:48 +00:00
Felipe Leme
f2a7576696 Merge "Fixed createAndManageUser() for headless system user mode." into sc-dev 2021-03-01 16:46:04 +00:00
Hui Yu
2533037dc5 Merge "Call new API setTemporaryAppAllowlist() and specify temp-allowlist reasonCode." into sc-dev 2021-03-01 16:30:58 +00:00
Ruslan Tkhakokhov
b56fc740bb Merge "Update D2D logic in line with new opt-out rules" into sc-dev 2021-03-01 14:53:36 +00:00
Kholoud Mohamed
bc986f2f76 Merge "Added some testAPIs in ContentSuggestionsManager" into sc-dev am: 6c80c464e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13582330

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id335dd4c03d6d68ff99d7973139ff0d1391a7953
2021-03-01 13:46:22 +00:00
Kholoud Mohamed
6c80c464e0 Merge "Added some testAPIs in ContentSuggestionsManager" into sc-dev 2021-03-01 12:06:19 +00:00
Ruslan Tkhakokhov
75ee2bf7f1 Update D2D logic in line with new opt-out rules
* Ignore android:fullBackupContent for apps targeting Android S+ while
  in D2D
* Update LocalTransport::getTransportFlags() to support
  FLAG_DEVICE_TO_DEVICE_TRANSFER (required for CTS testing)

Bug: 180523564
Test: atest FullBackupRulesHostSideTest
Change-Id: I115c1c76f4b0d8b486cc9f146ef630fda3ff2a03
2021-03-01 10:26:07 +00:00
Jeff DeCew
75020a8aff Merge "Fixes Copyright date & incorrect a11y announcement" into sc-dev am: 1c05dbcd2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13700786

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic18c7f5f26dbd18b042da24739f06021151d38bc
2021-02-27 17:02:06 +00:00
Jeff DeCew
1c05dbcd2b Merge "Fixes Copyright date & incorrect a11y announcement" into sc-dev 2021-02-27 16:37:30 +00:00
Jeff DeCew
09ef67529c Merge changes I57fb542a,If2a13daf into sc-dev am: 6cd5cb738d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13713266

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5bbd00c8c70184c0818a22d27ebeb4747f584c2b
2021-02-27 03:57:40 +00:00
Jeff DeCew
6cd5cb738d Merge changes I57fb542a,If2a13daf into sc-dev
* changes:
  Fix the vertical positioning of the text in collapsed notifications.
  Increase the notification height to 88dp
2021-02-27 03:08:17 +00:00
Jeff DeCew
726294ff05 Fixes Copyright date & incorrect a11y announcement
Fixes: 180118819
Test: Manual
Change-Id: I8a89ece2db075ceb33861109d1634442a670233e
2021-02-26 15:49:16 -05:00
Jeff DeCew
09e36a2cb2 Merge "Hide the snooze button from various notifications." into sc-dev am: 8ceb0f52d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13710325

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic06e110f2e06f7c923a84f67fc292cdca93d0adc
2021-02-26 19:36:51 +00:00
Jeff DeCew
072848e163 Increase the notification height to 88dp
Test: manual
Bug: 181048615
Change-Id: If2a13daf2b4b583102ec0a1d1f3df8b9f17b41dd
2021-02-26 14:18:59 -05:00
Jeff DeCew
8ceb0f52d1 Merge "Hide the snooze button from various notifications." into sc-dev 2021-02-26 19:17:38 +00:00
Hui Yu
a31f4f26c4 Call new API setTemporaryAppAllowlist() and specify temp-allowlist reasonCode.
Deprecate/delete setTemporaryAppWhitelistDuration(int type, long duration) which is also a new API added very recently.

Bug: 171305836
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Reboot device, observe "tempAllowListReason" in logcat.

Change-Id: I29181ce224c28277db1d45ec7fd0f79e032e5c90
BYPASS_INCLUSIVE_LANGUAGE_REASON=existing public API
2021-02-26 18:32:06 +00:00
Hui Yu
d117f9ccbf Merge "Specify temp-allowlist reasonCode while calling setPendingIntentAllowlistDuration()." into sc-dev am: edc573f0ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13705260

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iba60d9506c2bca90a7388b7064f4a1da831f7df2
2021-02-26 18:17:52 +00:00
Hui Yu
edc573f0ac Merge "Specify temp-allowlist reasonCode while calling setPendingIntentAllowlistDuration()." into sc-dev 2021-02-26 18:07:47 +00:00
Felipe Leme
161704e504 Fixed createAndManageUser() for headless system user mode.
It was refactored to split the "create" and "manage" parts so the
new user dialog is shown in the proper times, but such changed
broke the API when caller was passing initialExtras or a different
PO component.

To fix this issue, DPMS passes a token when the user is created,
and ignores the callback when the token matches.

This change also improved logging (which helped diagnose this issue).

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LowStorage,testCreateAndManageUser_MaxUsers,testCreateAndManageUser_GetSecondaryUsers,testCreateAndManageUser_SwitchUser,testCreateAndManageUser_CannotStopCurrentUser,testCreateAndManageUser_StartInBackground,testCreateAndManageUser_StartInBackground_MaxRunningUsers,testCreateAndManageUser_StopUser,testCreateAndManageUser_StopEphemeralUser_DisallowRemoveUser,testCreateAndManageUser_LogoutUser,testCreateAndManageUser_Affiliated,testCreateAndManageUser_Ephemeral,testCreateAndManageUser_LeaveAllSystemApps,testCreateAndManageUser_SkipSetupWizard,testCreateAndManageUser_AddRestrictionSet,testCreateAndManageUser_RemoveRestrictionSet,testUserAddedOrRemovedBroadcasts # on automotive and phone

Bug: 180515783

Change-Id: Ia6bddecd13fcdfc9604f40391ab7b2a5e98c146b
2021-02-26 08:46:09 -08:00
Jeff DeCew
e28685630d Hide the snooze button from various notifications.
* Foreground service notifications.
* Colorized notifications (where the snooze button's color would be wrong).
* FullScreenIntent notifications, which are timely.
* HUNs, since the expanded state could have the button.

Bug: 179178086
Test: manual
Change-Id: I3fa46d6493c14ddf7e9b9e28afb7de15b1ddd89a
2021-02-26 08:29:31 -05:00
Anna Zappone
5b2dc33510 Merge "Migrate from Uid to UserHandle" into sc-dev am: 635114d0e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13688245

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I36417b0407059d458dcc2769058be68b782e3648
2021-02-26 10:53:38 +00:00
Anna Zappone
635114d0e7 Merge "Migrate from Uid to UserHandle" into sc-dev 2021-02-26 10:19:39 +00:00
Hui Yu
f5e73ef979 Specify temp-allowlist reasonCode while calling setPendingIntentAllowlistDuration().
Delete the overloaded version of setPendingIntentAllowlistDuration() without reasonCode.

Bug: 171305836
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Reboot device, observe "tempAllowListReason" in logcat.

Change-Id: Ib8bd22eefb5d5f308d2bcca17221499c2a6adc79
2021-02-25 22:33:44 -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
Riddle Hsu
ed46310238 Merge "Optimize the Parcel read/write of common window data" into sc-dev 2021-02-26 04:07:39 +00:00
Hui Yu
88efd76d6a Merge "Log the temp allowlist reason/duration at FGS start." into sc-dev am: 3d96c757a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13454819

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I93f8836cfb6428cbe2da91edbf706ca4864b3ef3
2021-02-26 02:04:39 +00:00
Todd Kennedy
e83e85ad04 Merge "Revert "Revert "Keep old package manager constructor""" into sc-dev am: fd7bff7f70
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13698261

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4f7c9ae7cc3164deaaaf3b46c5256366342254df
2021-02-26 02:02:45 +00:00
Hui Yu
3d96c757a5 Merge "Log the temp allowlist reason/duration at FGS start." into sc-dev 2021-02-26 01:21:13 +00:00
Todd Kennedy
fd7bff7f70 Merge "Revert "Revert "Keep old package manager constructor""" into sc-dev 2021-02-26 00:55:18 +00:00
Soonil Nagarkar
e02478da84 Merge "Update some Nullable annotations on PendingIntent" into sc-dev am: 8a3d8f79a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13690718

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaba6cf21913b4f7d17e1385be06264d8646e25bf
2021-02-25 22:33:19 +00:00
Soonil Nagarkar
8a3d8f79a5 Merge "Update some Nullable annotations on PendingIntent" into sc-dev 2021-02-25 22:05:13 +00:00
Todd Kennedy
534f4d3e9a Revert "Revert "Keep old package manager constructor""
This reverts commit e756211374.

Reason for revert: Apparently this is used; b/179601086

NoNonSdkCheck: The original change erroneously removed the method from the block-list; this reinstates the method
Fixes: 179601086
Test: builds
Change-Id: I383bc0a0e2a319b24e11aa7a07a69603efff706f
2021-02-25 21:17:44 +00:00
Neil Fuller
9250a5d089 Merge "Improve server flags / add more server control" into sc-dev am: fcfe1f1c56
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13690805

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic66d5864573fa4f3cde8e8747eeedd31d1e2e7a6
2021-02-25 18:40:09 +00:00
Neil Fuller
fcfe1f1c56 Merge "Improve server flags / add more server control" into sc-dev 2021-02-25 18:24:54 +00:00
Svetoslav Ganov
dfe1d7a18a Merge "Location provider app ops remapping" into sc-dev am: 3f9a7c0f52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13527070

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib638e0ff78114b16acf92110a5b308868a94bb3a
2021-02-25 18:24:08 +00:00
Svetoslav Ganov
3f9a7c0f52 Merge "Location provider app ops remapping" into sc-dev 2021-02-25 18:18:42 +00:00
Neil Fuller
2856d9e52f Improve server flags / add more server control
Add more server flags that can be pushed to devices to influence geo
detection service behavior.

This renames DeviceConfig as ServerFlags and introduces an intermediary,
the ServiceConfigAccessor, to hide details and handle changes to config
values that need the location_time_zone_manager to restart.

Simulating server flag changes example:
adb shell cmd device_config put \
    system_time primary_location_time_zone_provider_enabled_override false

Inspecting manager / provider states:
adb shell dump location_time_zone_manager

The following manual tests were conducted to check the plumbing:

Modifying settings behavior:
adb shell cmd device_config put \
    system_time location_time_zone_detection_setting_enabled_override true
<Confirm the settings value cannot be changed by user>

adb shell cmd device_config put \
    system_time location_time_zone_detection_setting_enabled_override false
<Confirm the settings value can be changed by user>

adb shell cmd device_config delete \
    system_time location_time_zone_detection_setting_enabled_override
<Confirm it returns to normal>

Disabling the feature / location_time_zone_manager:
adb shell cmd device_config put \
    system_time location_time_zone_detection_feature_supported false
<Confirm SettingsUI (after restart) doesn't show the geo detection option>
<Confirm manager is not started>

Enabling the feature / location_time_zone_manager:
adb shell cmd device_config put \
    system_time location_time_zone_detection_feature_supported true
<Confirm manager is restarted>

Note: "cmd device_config" doesn't allow multiple config keys to be
changed at once, and any change to service config keys cause the
location_time_zone_manager to restart. When changing multiple, set
"location_time_zone_detection_feature_supported false" to stop the
manager, and "location_time_zone_detection_feature_supported true" when
all changes are done.

Test: Manual testing (see above)
Test: treehugger
Bug: 178107773
Change-Id: I07b57add1ed47197587907b9f0a85f38acc0a76a
2021-02-25 15:24:24 +00:00
Zimuzo Ezeozue
b3ed799a13 Merge "Extend AnrController to improve ANR dialog controls" into sc-dev am: b9f76e103c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13676710

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I01382c005813fdd6a4742e4c681cb59351b878aa
2021-02-25 14:45:27 +00:00
Kholoud Mohamed
a84aac45c3 Merge "Exposed some testAPIs in DPM" into sc-dev am: 3006355655
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13607749

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6eb14386f1cad0b2b1fda3b544a20c046f955c82
2021-02-25 14:41:36 +00:00
Sudheer Shanka
b455116706 Merge "Allow EJs to obtain new network capability." into sc-dev am: 8632838c50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13526199

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I17dc44c86f41545b859de0afa3f7749e0cfef10e
2021-02-25 14:40:07 +00:00
Louis Chang
3dc3185216 Merge "Rename Stack to Task related terms (7/n)" into sc-dev am: 09f52aa440
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13468207

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I52b3df66c6b6dd517f35fd34ac877264a272c47d
2021-02-25 14:38:13 +00:00
Rajeev Kumar
0fb77424d8 Merge "Add API to set device owner type for a managed device" into sc-dev am: b21d30888b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13524654

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I16ff2d3df0e59ba536b1538c24e7e99c3d07737a
2021-02-25 14:33:23 +00:00
Ruslan Tkhakokhov
498bb8813b Merge "Get OperationType from transport" into sc-dev am: 04501d566e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13641708

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5ed46d43d6bbc7109e89c465ca9428234365e692
2021-02-25 14:33:00 +00:00
Ruslan Tkhakokhov
3c81d288d6 Merge "Parse include / exclude config specified by dataExtractionRules" into sc-dev am: c3bf79a2cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13606568

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I08b53d417d5211696f1fabfa8c85770259f68063
2021-02-25 14:32:43 +00:00
Zimuzo Ezeozue
b9f76e103c Merge "Extend AnrController to improve ANR dialog controls" into sc-dev 2021-02-25 14:17:15 +00:00
Anna Zappone
aa4aef9968 Migrate from Uid to UserHandle
Fixes WorkProfile storage issues.

Bug: 179810781
Test: PeopleSpaceTileTest, PeopleSpaceUtilsTest
Change-Id: I9baadc1308fcd5725458bf9dd6e4917e79975dab
2021-02-25 10:43:38 +00:00
Kholoud Mohamed
3006355655 Merge "Exposed some testAPIs in DPM" into sc-dev 2021-02-25 10:23:37 +00:00
Sudheer Shanka
8632838c50 Merge "Allow EJs to obtain new network capability." into sc-dev 2021-02-25 09:19:15 +00:00