Commit Graph

22923 Commits

Author SHA1 Message Date
Alex Buynytskyy
4b7f97e065 Merge "Reduce lock contention." into tm-dev 2022-03-02 02:31:06 +00:00
Binh Nguyen
e5753a77ad Register AdServices to SystemServiceRegistry
Test: build
Bug: 210159588
Change-Id: If1e234b4e61292cc9d8ff62dbcdc042c495b70f0
2022-03-01 13:51:55 -08:00
Alex Buynytskyy
9d681f1d97 Reduce lock contention.
Remove lock for cached state in ApplicationPackageManager.
Short-circut the instant app check for internal API calls.

Bug: 215305214
Test: presubmit
Change-Id: Ie122d76f6ea0e950fa25b22bea65f9938a3bf5f1
2022-03-01 20:27:46 +00:00
Xiaowen Lei
6504cbee86 Merge "Register only one binder listener and keep a map of listener to executor." into tm-dev 2022-03-01 17:24:25 +00:00
TreeHugger Robot
c4293b56e2 Merge "Restrict what activity launches show permission prompts" into tm-dev 2022-03-01 17:21:36 +00:00
Antoan Angelov
1cb9022785 Merge "Rename device management role holder role name" into tm-dev 2022-03-01 17:14:30 +00:00
Nikita Ioffe
8056335fcd Merge "Rename SupplementalProcess to SdkSandbox" into tm-dev 2022-03-01 17:07:16 +00:00
Xiaowen Lei
87598eb118 Register only one binder listener and keep a map of listener to executor.
This optimizes the code by keeping only one remote connection.

Also fixed a typo in WindowManagerService: "StateState" -> "State".

Bug: 216630470
Bug: 220379118
Test: atest CtsWindowManagerDeviceTestCases:KeyguardTests
Change-Id: I8abb64f750e91db7048279f5217b63d35959c3b6
2022-03-01 06:55:44 +00:00
TreeHugger Robot
0a540657a1 Merge "Clarify setRemotePlaybackInfo usage" into tm-dev 2022-02-28 17:52:53 +00:00
Nikita Ioffe
df5971335b Rename SupplementalProcess to SdkSandbox
Bug: 218314884
Bug: 220320098
Test: presubmit
Test: atest PackageManagerShellCommandTest
Test: atest SdkSandboxPermissionTest
Change-Id: I9fb98e0caee75bdaaa35d11d174004505f236799
2022-02-28 17:29:55 +00:00
TreeHugger Robot
deb79e3070 Merge "Split DPM API to check current Wi-Fi network" into tm-dev 2022-02-28 17:07:06 +00:00
Nate Myren
eb4e3d20da Restrict what activity launches show permission prompts
Only show a permission prompt if the activity is a launcher, the calling
app is the same as the opened intent app, or the
isEligibleForLegacyPermissionPrompt ActivityOption is set. Also prevents
the dialog from showing while the keyguard is locked.

Test: atest NotificationPermissionTest
Bug: 194833441
Fixes: 220891438
Change-Id: Ie5381af045d538a5b822bb1ccdf62b1dd916114f
2022-02-28 08:23:19 -08:00
TreeHugger Robot
ff23fb2fab Merge "Never instatiate App class multiple times" into tm-dev 2022-02-26 01:39:23 +00:00
Beth Thibodeau
48af92dc4b Clarify setRemotePlaybackInfo usage
Bug: 220019433
Test: builds
Change-Id: I419b4f03cecc6df858f57e8b1c524d76418ab8e8
2022-02-25 16:38:10 -05:00
arangelov
0b6456d3ec Rename device management role holder role name
Test: compiled
Bug: 217275188
Change-Id: I336439a14542889a193651b2998e3da4733da441
2022-02-25 19:14:56 +00:00
TreeHugger Robot
a48dbac731 Merge "Fixes dumpsys activity --list-dumpables" into tm-dev 2022-02-25 12:59:50 +00:00
Felipe Leme
297f149e9e Fixes dumpsys activity --list-dumpables
It was listing the dumpables twice.

Test: adb shell dumpsys activity com.android.car.carlauncher/.CarLauncher --list-dumpables
Fixes: 221376952

Change-Id: Ia1004b449d10e559e6b6f968bc2cb61547f74a65
2022-02-25 08:04:30 +00:00
Felipe Leme
def235492c Merge changes from topic "testDelegatedCertInstallerDeviceIdAttestation" into sc-v2-dev-plus-aosp am: 6cbad8cff9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16873887

Change-Id: I57b942c413552622d015fd84f1d73157513b4731
2022-02-25 05:21:08 +00:00
TreeHugger Robot
f8575a83bd Merge "Allowing launch cookies to be passed via pending activity starts" into tm-dev 2022-02-25 00:21:27 +00:00
Makoto Onuki
c3565962b3 Never instatiate App class multiple times
- GMS-core is still sometimes seeing the app class being
instatiated multiple times.

Let's just cache the app instance to avoid such situations.

- Also removed some tentative WTFs, which have never been triggered.
(so they should be unrelated to the dup-app bug)

Bug: 185177290
Test: Boot / treehugger
Change-Id: I4c74a5798264472d1bfbf5604f399a49e5946c64
2022-02-24 15:39:22 -08:00
Makoto Onuki
eebb589d99 Merge "Update duplicate-app WTF" into tm-dev 2022-02-24 21:57:08 +00:00
Makoto Onuki
e214eee46f Update duplicate-app WTF
Simplify the logic, and instead only enable it for gms-core

Test: Manual test with a test app
Bug: 185177290
Bug: 221248960
Change-Id: If75cc3ef8e56469b384d9431f53bcacce638f23c
2022-02-24 18:10:17 +00:00
Kholoud Mohamed
7e76fddc52 Merge "Change Callable to Supplier in the dpm resource apis" into tm-dev 2022-02-24 17:28:18 +00:00
Kholoud Mohamed
8084c8c036 Merge "rename callingPackageResourceId to resourceIdInCallingPackage" into tm-dev 2022-02-24 16:18:09 +00:00
Pat Manning
80c4b33ddf Merge "Removing 'override' from nav bar mode APIs." into tm-dev 2022-02-24 15:44:35 +00:00
Kholoud Mohamed
c099351d94 Merge "Change DEVICE_POLICY_RESOURCE_UPDATED broadcast extras" into tm-dev 2022-02-24 13:11:00 +00:00
Stephanie Bak
9287b57771 Split DPM API to check current Wi-Fi network
Change validateCurrentWifiMeetsAdminRequirements to separate APIs for
SSID restriction and minimum security level restriction

Bug: 216628415
Test: atest DevicePolicyManagerTest
Change-Id: Ib0764d2d31a91934aa2acdc92ca2a5f61938139e
2022-02-24 09:21:15 +00:00
Sudheer Shanka
d6904c7f41 Merge "Update javadoc for recordResponseEventWhileInBackground()." into tm-dev 2022-02-24 03:15:03 +00:00
Felipe Leme
bce5c8c99a [automerge] Allows DPM.generateKeyPair() to be called from PO of affiliated user. 2p: e8caa07e9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16873887

Bug: 213388897
Change-Id: I49e4867165f0c8d7a3c258b0dd514b0b1e5dec1a
2022-02-24 02:31:37 +00:00
Felipe Leme
e8caa07e9f Allows DPM.generateKeyPair() to be called from PO of affiliated user.
If the key is used by device attestation, it can only be used by the
user that generated it, as it's not parcelable. Hence, on devices
running with Headless System User Mode (HSUM), the key must be
generated by the "real" user's PO, not the DO (which runs on system
user).

Test: atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegatedCertInstallerDeviceIdAttestation # on phone
Test: manual verification with TestDpc on automotive
Bug: 213388897

Change-Id: I58623f5c1a1d60af7743f5a815a491ebbad9b9fe
2022-02-23 18:28:16 -08:00
Cecilia Hong
77f82a27cf Merge "[DO NOT MERGE] Address the Smartspace UI templates APIs review comments." into tm-dev 2022-02-24 01:36:55 +00:00
TreeHugger Robot
199d49a834 Merge "Add documentation about permission in Nearby streaming policies" into tm-dev 2022-02-24 00:41:03 +00:00
Sudheer Shanka
4ac2838899 Update javadoc for recordResponseEventWhileInBackground().
Update it to make it clear that it is valid for only
explicit intents.

Bug: 206518114
Test: treehugger
Change-Id: I94ee73bb8050f4d4d6171b7d1c7f8053b43310f1
2022-02-23 20:32:48 +00:00
Cecilia
36376d66a3 [DO NOT MERGE] Address the Smartspace UI templates APIs review comments.
- Add JavaDocs for all methods in SubItemLoggingInfo;
- Add packageName field to SubItemLoggingInfo;
- Add BaseTemplateCard.SubItemInfo to warp a subitem's related info;
- Override Object.toString for Smartspace Text.

Fixes: 220129097
Test: atest CtsSmartspaceServiceTestCases
Change-Id: I459c9a229d05d328833de1b9264b4cf64b2b5813
2022-02-23 20:09:03 +00:00
Makoto Onuki
ad558f99b8 Revert "Disable per-process app class to investigate"
Revert "Disable per-process app class to investigate (disabling CTS)"

Revert submission 16804724-disable-per-proc-app

Reason for revert: The revert has reached weekly. Now I'll revert it to see what change it made.
Reverted Changes:
I87f16857b:Disable per-process app class to investigate
I87f16857b:Disable per-process app class to investigate (disa...

Change-Id: Ib84035c7819acc347e0bbba8bfada66300778c63
Test: treehugger
Bug: 185177290
2022-02-23 18:17:45 +00:00
Neil Fuller
02eebf4399 Merge "Switch "UTC time" to "Unix epoch time"" am: 1ecf1d2462 am: b78dfa9ee9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1979487

Change-Id: Ideb71c913dda192e7557e5f665fae6bb1f39ae8a
2022-02-23 17:06:42 +00:00
kholoud mohamed
fb3103edad Change Callable to Supplier in the dpm resource apis
Bug: 217388602
Test: atest EnterpriseResourcesTests
Change-Id: I7ac5634b965041107f612882cbba8598a3af6520
2022-02-23 17:02:57 +00:00
Pavel Grafov
11c572a248 Merge "Remove mDeviceOwnerName - it's never read" into tm-dev 2022-02-23 16:54:06 +00:00
Neil Fuller
b78dfa9ee9 Merge "Switch "UTC time" to "Unix epoch time"" am: 1ecf1d2462
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1979487

Change-Id: I87481e4d54250097a306a1e7a0c48c0223f37f37
2022-02-23 16:43:27 +00:00
kholoud mohamed
ad443f8083 rename callingPackageResourceId to resourceIdInCallingPackage
Bug: 218875965
Test: manual
Test: atest EnterpriseResourcesTests
Change-Id: I489d2dfd49010599028fb43ba6d2a265e564f2e3
2022-02-23 14:10:27 +00:00
kholoud mohamed
1b6b9dfeb8 Change DEVICE_POLICY_RESOURCE_UPDATED broadcast extras
Changed the resource type extra to be an int value to indicate the
resource type instead of having individual boolean extras for each
resource type.

Bug: 218875965
Test: N/A
Change-Id: Ic734c4d0e0a769dd981ef214e1be41f62d74705c
2022-02-23 14:10:09 +00:00
Pat Manning
5342b3d416 Removing 'override' from nav bar mode APIs.
Bug: 217668440
Test: StatusBarManagerTest.java, StatusBarManagerServiceTest.java
Change-Id: I1c5fa5f5d564a78e3abaf1457a105d5e8c6402b9
2022-02-23 10:46:25 +00:00
TreeHugger Robot
f8806f1342 Merge changes from topic "game_loading_statsd_to_tm-dev" into tm-dev
* changes:
  Increase API coverage for android.app.GameState
  Add statsd logging and address API review feedback
2022-02-23 10:32:55 +00:00
Xiaowen Lei
8d50e04afc Merge "Add role guarded APIs for subscribing to keyguard locked state in KeyguardManager." into tm-dev 2022-02-23 06:43:49 +00:00
Maurice Lam
ea90abb5cb Add documentation about permission in Nearby streaming policies
Fixes: 215301014
Test: Existing tests pass
Change-Id: Iee6c961a622d81d76779e5e6b5c5543f132a0de1
2022-02-22 20:35:54 +00:00
jimblackler
f44ddcc068 Add statsd logging and address API review feedback
Bug: 207662418
Bug: 216294586
Test: atest CtsStatsdAtomHostTestCases:GameManagerStatsTests
Change-Id: Icaa9d49f020f25d982a515b03aa9c91c34d2a778
Merged-In: Icaa9d49f020f25d982a515b03aa9c91c34d2a778
2022-02-22 17:07:35 +00:00
Neil Fuller
69c6a42de0 Switch "UTC time" to "Unix epoch time"
This is more correct.

Bug: 218802673
Test: Compile only
Merged-In: Ic477c021529a94b4a3665426b7daaf6567fa311a
Change-Id: Ic477c021529a94b4a3665426b7daaf6567fa311a
2022-02-22 15:05:33 +00:00
Selim Cinek
ad59468664 Allowing launch cookies to be passed via pending activity starts
When overriding pending activity starts using remote animations,
we're now also allowing the passage of a launch cookie to associate
the task with the launched app. This allows us to return to the
right widgets for certain apps using broadcast trampolines.

Fixes: 220290671
Test: add Photos widget, return properly to widget
Change-Id: I339ea827836fa53ab5bb1617a72f9e0e5ae0f5ec
2022-02-22 14:30:56 +00:00
Yan Zhu
02272fd207 Merge "New @TestApi: DevicePolicyManager.isNewUserDisclaimerAcknowledged()" into sc-v2-dev am: 7ac3a06942
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16924150

Change-Id: I8e626dc38466799b2d65dfbd7519b0263ee60211
2022-02-22 04:08:11 +00:00
TreeHugger Robot
75ac29b6ac Merge "make DevicePolicyResources constructor private" into tm-dev 2022-02-21 17:35:21 +00:00