Commit Graph

19355 Commits

Author SHA1 Message Date
Collin Fijalkovich
5e687f4544 Merge "Add tracepoint for reportFullyDrawn" 2020-11-09 15:19:46 +00:00
Riddle Hsu
9873b97017 Merge "Preserve window for Activity#recreate if possible" 2020-11-09 08:31:37 +00:00
Kurt Dresner
3d21c80934 Add projection state APIs to UiModeManager and UiModeManagerService.
Bug: 134997071
Bug: 169702986
Test: Code builds, runs, unit tests added for new functionality.
Change-Id: I29cfb198101cdc5d1f4de84f8701928643b756c3
2020-11-06 14:12:39 -08:00
Riddle Hsu
fa3d31106d Preserve window for Activity#recreate if possible
To prevent a black screen if the activity calls recreate in
the foreground.

Bug: 133216672
Test: ActivityThreadTest#testRecreateActivity
      ActivityThreadTest#testHandleActivity_assetsChanged
Change-Id: I47d22895287f94cc77130767b67d4b0bdf82c3a3
2020-11-06 23:38:29 +08:00
vichang
d476543630 Merge "Remove android.icu.impl.ICUBinary.dataPath for apps targeting S+" am: ffcc7427a8 am: 6cb4bb76d6 am: aa95c6d0b9 am: 18b664c70e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481307

Change-Id: I3647a19ce7804865d21affd6a59948032cdd8225
2020-11-06 12:45:32 +00:00
vichang
18b664c70e Merge "Remove android.icu.impl.ICUBinary.dataPath for apps targeting S+" am: ffcc7427a8 am: 6cb4bb76d6 am: aa95c6d0b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481307

Change-Id: Ibf2aa192a02fdb8fa9d52ad50ee7aca54c4b6461
2020-11-06 12:33:27 +00:00
vichang
aa95c6d0b9 Merge "Remove android.icu.impl.ICUBinary.dataPath for apps targeting S+" am: ffcc7427a8 am: 6cb4bb76d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481307

Change-Id: If52898da0b66bf70ed7533bc991251a1f927f19c
2020-11-06 11:57:38 +00:00
vichang
ffcc7427a8 Merge "Remove android.icu.impl.ICUBinary.dataPath for apps targeting S+" 2020-11-06 10:51:53 +00:00
TreeHugger Robot
e875230f57 Merge "Use op package name as the calling package while start activities" 2020-11-06 09:55:18 +00:00
Collin Fijalkovich
91a82aaa25 Add tracepoint for reportFullyDrawn
Adds in a tracepoint for the app startup reportFullyDrawn API under the
activity manager category.

Test: Flashed build and took a trace of messages, verified RFD
tracepoint triggered.
Bug: 172604392

Change-Id: I86733f70bdd4902ec63d9922d7418c648d4089cc
2020-11-05 17:26:21 -08:00
TreeHugger Robot
e3995878b2 Merge "Do not power off display on lockNow() on automotive builds." 2020-11-05 18:37:25 +00:00
Felipe Leme
fc586009b1 Do not power off display on lockNow() on automotive builds.
Test: manual verification
Fixes: 171517112

Change-Id: I410e06b911b099c0ed4b7b4e3ac493c9a272fa6b
2020-11-05 08:51:54 -08:00
TreeHugger Robot
2428e93999 Merge "Remove DPMS#getProfileOwner in favor of getProfileOwnerAsUser" 2020-11-05 10:38:37 +00:00
arangelov
790348fbf1 Remove DPMS#getProfileOwner in favor of getProfileOwnerAsUser
Test: atest DevicePolicyManagerTest
Test: atest CrossProfileAppsTest
Bug: 153995973
Change-Id: I103c45ea61814e476eea197d357ef0ce75edefdc
2020-11-05 10:37:00 +00:00
Paul Hu
ca0ac0d202 Merge "Expose AppOpsManager#OPSTR_ACTIVATE_PLATFORM_VPN as system API" am: 01bec3bb2b am: b8eb5b0ee1 am: b892146fb4 am: d667289cc6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484021

Change-Id: I5b315cd95cd0be59debb75caf9678845b284b666
2020-11-05 09:50:21 +00:00
Paul Hu
d667289cc6 Merge "Expose AppOpsManager#OPSTR_ACTIVATE_PLATFORM_VPN as system API" am: 01bec3bb2b am: b8eb5b0ee1 am: b892146fb4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484021

Change-Id: Ibe2ed0ef2cf3e2c654c8a1fca8dc045fc2666f08
2020-11-05 09:37:59 +00:00
Paul Hu
b892146fb4 Merge "Expose AppOpsManager#OPSTR_ACTIVATE_PLATFORM_VPN as system API" am: 01bec3bb2b am: b8eb5b0ee1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484021

Change-Id: I280d5f807ee40838ab8abe865a3d272e58ce8cbb
2020-11-05 09:14:16 +00:00
Paul Hu
01bec3bb2b Merge "Expose AppOpsManager#OPSTR_ACTIVATE_PLATFORM_VPN as system API" 2020-11-05 07:55:10 +00:00
Eugene Susla
3f1e82b12c Merge "Disregard annotation params for stale dataclass detection" 2020-11-04 23:57:15 +00:00
Bill Yi
f2d4156f5b Merge rvc-release RP1A.201105.002 to aosp-master - DO NOT MERGE
Merged-In: Ic1e07d28a41eea2ce59cc21702dae95d61adc24e
Change-Id: Ibc69b3e372167485bb70ae3277222bbe8ef7ff27
2020-11-04 13:57:54 -08:00
Eugene Susla
ddb2681455 Disregard annotation params for stale dataclass detection
Annotation processor seens annotation args with constants already inlined,
making it challenging to compare to the souce-generated metadata that contains
initial expressions.

For now just ignoring args for all non-DataClass annotations to prevent false positives

Test: . frameworks/base/tests/Codegen/runTest.sh
Exempt-From-Owner-Approval: changing metadata on multiple files
Change-Id: I640816ae0f20f36b1b828bc2161f53788c4a4dae
2020-11-04 12:40:58 -08:00
Julia Reynolds
0ef853937d Merge "Add some missing conversation log fields" 2020-11-04 13:14:47 +00:00
Eran Messeri
3b04027a04 DO NOT MERGE: Introduce DPMS shim for active DO/PO check am: bdd52cb48b am: 9e6305e3b0 am: fcebc45fb0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486196

Change-Id: I76bfbffc3485cd07675ffc8c8c64f11a8a7d5d03
2020-11-04 13:00:13 +00:00
Mathew Inwood
e7b1832d7e Merge "De-restrict LoadedApk.getCompatibilityInfo()." 2020-11-04 13:00:00 +00:00
Eran Messeri
fcebc45fb0 DO NOT MERGE: Introduce DPMS shim for active DO/PO check am: bdd52cb48b am: 9e6305e3b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486196

Change-Id: I467120ce7e419a75749efac109609bb30cc35eff
2020-11-04 12:46:45 +00:00
TreeHugger Robot
135dc67cc9 Merge "Revert "Mark ACTION_REMOTE_BUGREPORT_DISPATCH broadcast as protected"" 2020-11-04 11:06:50 +00:00
Eran Messeri
bdd52cb48b DO NOT MERGE: Introduce DPMS shim for active DO/PO check
Introduce a shim into DevicePolicyManagerInternal &
DevicePolicyManagerService so that NetworkStatsAccessTest would not
diverge from internal development branches.

The DevicePolicyManagerService refactoring on the internal branch
removed isActiveAdminWithPolicy in favour of isActiveDeviceOwner and
isActiveProfileOwner.

These methods are being made available in AOSP for
NetworkStatsAccessTest.

Bug: 170459325
Test: atest NetworkStatsAccessTest
Change-Id: Ic7e0898989fb8222aaba2b35436765c04eb3250c
2020-11-04 10:07:06 +00:00
Mathew Inwood
1676c29c07 De-restrict LoadedApk.getCompatibilityInfo().
It is relied on by blaze mobile-install.

Bug: 172409979
Change-Id: Idefbd92fd4a2887f49b50455478b96435b6ce351
Fixes: 172083033
2020-11-04 08:52:14 +00:00
Wei Sheng Shih
355c78fcfd Merge "Allow Activity#setTurnScreenOn to wakeup device" 2020-11-04 06:39:30 +00:00
Winson Chung
f97bf81d1e Merge changes I581de3ff,I7d777c59
* changes:
  5/ Validate and resolve shortcut & task activity infos
  4/ Add basic drag and drop policy & handler for the shell
2020-11-04 05:57:22 +00:00
wilsonshih
7cb5807f79 Allow Activity#setTurnScreenOn to wakeup device
Add a condition that Activity#setTurnScreenOn can wakup device, also
make that activity become visible and dismiss keyguard automatically
when

- keyguard is insecure and
- device is non-interactive

Follow 7caf48e, if the above conditions are met, turnScreenOn can also
dismiss multiwindow mode.

Bug: 155922711
Test: atest ActivityVisibilityTests KeyguardTests KeyguardLockedTests
KeyguardTransitionTests AppConfigurationTests ReplaceWindowTests
ActivityLifecycleKeyguardTests

Change-Id: I7b18c391819d8e69b51d6f5b5e99a023d5ea1a0f
2020-11-04 10:06:25 +08:00
Rubin Xu
fa006ae451 Revert "Mark ACTION_REMOTE_BUGREPORT_DISPATCH broadcast as protected"
This reverts commit 1ca0e68d58.

Reason for revert: CTS failure b/171979563
Bug: 171979563
Bug: 171495100
Change-Id: Ie7a8b2eacee8c40c02d47651c5db25e87da95f3f
2020-11-03 23:40:06 +00:00
TreeHugger Robot
a69a548e40 Merge "Append organized child task info for task created by organizer" 2020-11-03 17:54:00 +00:00
Soonil Nagarkar
c335e90564 Merge "Add API for immutable PendingIntents" 2020-11-03 17:36:10 +00:00
Sally Yuen
352aab514d Merge "Add API for setting a content description for BigPictureStyle's picture" 2020-11-03 17:29:29 +00:00
Victor Chang
2bce8f9a06 Remove android.icu.impl.ICUBinary.dataPath for apps targeting S+
Bug: 139480281
Bug: 171979766
Test: ZygoteHooksTest
Change-Id: Ic25e240fbcedc08f9de799c025841e88f521d0bf
2020-11-03 15:05:06 +00:00
Jerry Chang
eabac83ad1 Append organized child task info for task created by organizer
Appends organized child task info for task created by organizer in
order to present organized child tasks in overview.

Fix: 172043048
Test: atest RecentsTest
Change-Id: Idc213fbc524ff9606e14a8d7071e1a452934ae1c
2020-11-03 23:04:49 +08:00
Tobias Thierer
a6bccfc44f Merge changes I58e5d2a0,I59693819
* changes:
  BackupManagerService: Make new behavior conditional on ChangeId.
  Enforce BACKUP permission on Service end.
2020-11-03 14:52:31 +00:00
Chloris Kuo
2e4082e39b Merge changes from topic "Feedback-UnlockImportance"
* changes:
  Persist automatic setting in long press menu
  Reset notification channel importance
2020-11-03 14:07:45 +00:00
Tobias Thierer
7671f0d95c BackupManagerService: Make new behavior conditional on ChangeId.
Base CL ag/12885739 introduced unconditional enforcement of the BACKUP
permission for callers of BackupManagerService.isBackupServiceActive()
in the service, but dropped the enforcement on the app process side
(BackupManager).

This CL makes the behavior change conditional on a compat ChangeId.

Bug: 158482162
Test: Manually checked that an app similar to the code sample from
      http://b/158482162#comment1 can reproduce the behavior.
      This is true both before the base CL and after this CL, when
      the app targets an old SDK version (26).
Test: Checked that both (a) before this CL, (b) after this CL where
      the change is manually enabled for the app via the below commands,
      the app runs into a SecurityException instead:
$ adb shell am compat enable 158482162 com.example.tester
$ adb shell dumpsys platform_compat | grep 158482162
ChangeId(158482162; name=IS_BACKUP_SERVICE_ACTIVE_ENFORCE_PERMISSION_IN_SERVICE; enableSinceTargetSdk=31; packageOverrides={com.example.tester=true})

Change-Id: I58e5d2a0b438296137fd76720636c8fdce740ded
2020-11-03 11:08:11 +00:00
Joanne Chung
cf061c1f55 Merge "Allow voice recognition service to blame other apps access." 2020-11-03 06:31:31 +00:00
Chloris Kuo
c468bba15d Reset notification channel importance
Test: atest, manual test on device
Change-Id: I290ce116ede1538354e8444b76ec69de79e338f2
2020-11-03 05:32:07 +00:00
Shuo Qian
6d396415d3 Merge "Try to add AppOps Keys into Proto to unblock my project" am: 324ef4ff23 am: 053e5b3d7f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1477127

Change-Id: I165d4b7e9a2396fd677d2beb435a2da5119c8614
2020-11-02 22:55:40 +00:00
Winson Chung
93fd63d021 4/ Add basic drag and drop policy & handler for the shell
- Add basic policy for handling drags over home/fullscreen tasks
  /split tasks. For now, default to only allowing split to non-docked
  root task
- Refactor drag layout to have same lifecycle as the window instead of
  being per-drag session
- Resolve activity info for tasks as well as activity drag items
  (shortcuts to be resolved in a follow up CL)
- Fix crash due to sending drag events to all displays

Bug: 169894807
Test: atest DragAndDropPolicyTest

Change-Id: I7d777c59296e9ca9e1d169c8a021f9263af94d65
2020-11-02 14:53:56 -08:00
Tobias Thierer
b2ab2c414f Enforce BACKUP permission on Service end.
BackupManager runs in the client process, whereas BackupManagerService
runs in the system server process. Therefore, apps permissions need should
be enforced on the service side.

Bug: 158482162
Test: Manually checked that a sample app  encounters SecurityException
      after but not before this CL, when running code similar to the
      sample in http://b/158482162#comment1 to figure out whether
      isBackupServiceActive() for its own uid.
Change-Id: I59693819542a80a065a9c88373393b0ba0dbef65
2020-11-02 21:49:17 +00:00
Shuo Qian
324ef4ff23 Merge "Try to add AppOps Keys into Proto to unblock my project" 2020-11-02 21:43:07 +00:00
paulhu
86054e5e42 Expose AppOpsManager#OPSTR_ACTIVATE_PLATFORM_VPN as system API
Connectivity service module is using some AppOpsManager @hide
APIs but they are not able to call after CS become a
mainline module. Thus, expose them to System APIs.

Bug: 170593746
Test: make update-api
Change-Id: Idb8ee13394ccbd266061eef0cab08a5e28948a3e
2020-11-03 00:54:55 +08:00
Adam Wright
c0850b8e6d Merge "Remove maxTargetSdk from APIs used by backup" 2020-11-02 16:44:05 +00:00
Julia Reynolds
1785b2efb6 Add some missing conversation log fields
Test: cts, manual
Fixes: 157240045
Change-Id: I5c77649596612115c8db99d7e32221b07bf1bda6
2020-11-02 09:41:08 -05:00
Mathew Inwood
5f0edaaaf5 Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Merged-In: I8285daa8530260251ecad6f3f38f98e263629ca7
Change-Id: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
2020-11-02 10:30:09 +00:00