This is a roll forward of two reverted changes combined into one:
commit b6d0441662
commit e5e51116fb
It additionally fixes an issue where in multi-user profiles (such as a guest user), rules would be incorrectly identified as not created by the system and would therefore fail to be created in settings.
Bug: 257477671
Bug: 245236706
Bug: 242537431
Test: NotificationManagerServiceTest; ZenModeHelperTest; manually verified that it's possible to create zen schedules from guest mode
Change-Id: I0c4c705cfe5fc875151958957daaf8657fbc21a7
(cherry picked from commit 7261cdd30b)
Merged-In: I0c4c705cfe5fc875151958957daaf8657fbc21a7
used by system to fetch accounts.
When `null` is used with getAccountsFromCache method, there is
conversion from calling UID to packageName (call getPackageNameForUid in
filterAccounts), and then another conversion using packageName to UID in
resolveAccountVisbility). Sometimes (as determined by PackageManager), a package which is installed in primary profile but is not installed in work profile is used to fetch accounts for work profile. This causes fetching accounts in work profile to fail.
The fix uses "android" as packageName for all methods used by system
process. This ensures that this conversion always works.
Test: atest AccountManagerServiceTest
Bug: 246257147
Change-Id: Id2e4b860f49366db5a85a3fd83b3fedeeabc9cbb
(cherry picked from commit 33f942c2ef)
(cherry picked from commit 8567a7841a)
Merged-In: Id2e4b860f49366db5a85a3fd83b3fedeeabc9cbb
This action should be only broadcasted when the user data is cleared
successfully. Broadcasting this action when failed case may result in
unexpected result.
Bug: 240267890
Test: manually using the PoC in the buganizer to ensure the symptom
no longer exists.
Change-Id: Ica8aa541e694d62c768a5a3f965547377198eef7
(cherry picked from commit 94b10bba20)
Merged-In: Ica8aa541e694d62c768a5a3f965547377198eef7
While the device is provisioning, do not allow clicks on the privacy
chip.
Test: atest HeaderPrivacyIconsControllerTest
Bug: 253043058
Change-Id: I9c8f642976f3332f4d5c9db89a4917dae501f251
(cherry picked from commit ea4a8ec146)
Merged-In: I9c8f642976f3332f4d5c9db89a4917dae501f251
Previously were unable to add new zen rules because rules added via the settings pages were getting registered under package "com.android.settings", which then were not considered "system rules". These rules should have package android, so when we can trust the caller (via checking that the caller is system) we should be taking the package name from the owner of the rule.
Bug: 245236706
Bug: 242537431
Test: NMSTest; manual
Change-Id: Id69b671592396ac3304862dadbe73de328a8e27a
(cherry picked from commit e5e51116fb)
Merged-In: Id69b671592396ac3304862dadbe73de328a8e27a
instead of checking that of the configuration activity, which is potentially spoofable. The package name is verified to be the same app as the caller by NMS.
This change removes isSystemRule (called only once) in favor of checking the provided package name directly.
Bug: 242537431
Test: ZenModeHelperTest, manual by verifying via provided exploit apk
Change-Id: Ic7f350618c26a613df455a4128c9195f4b424a4d
(cherry picked from commit b6d0441662)
Merged-In: Ic7f350618c26a613df455a4128c9195f4b424a4d
Resources used in WindowManager Core are added to frameworks/base/core/res/ so we often run into problem where WindowManager owners can't fully approve CLs that have trivial changes in resource files.
Bug: 262439469
Change-Id: Ifdf283aed9b7803ca403bec2e5c21c3dfcc4e824
Test: manual
- CentralSurfacesImpl currently takes a long time to initialize, so in
between registration and updating CommandQueue with the registered
bar's disabled flags, the service may already have updated its
disabled state. This state would have already come into CommandQueue
but would be clobbered by CSI in the post-init task.
Since there are some legacy constraints in ordering of the
initialization, we'll unblock the tests by forcing a disable flag
update following the update to CommandQueue with the previous disabled
flags. We can later investigate applying the returned flags earlier
in the cycle, or add a mechanism to skip apply the registered disable
flags if they were updated mid-init.
Bug: 260615374
Test: atest WMShellFlickerTests:com.android.wm.shell.flicker.splitscreen.CopyContentInSplit
Change-Id: I98943292ecab5cdc693149f417e5c4e8af137d1d
This has become redundant since we're now checking the signature in
userspace.
Bug: 258538225
Test: atest GtsFontHostTestCases
Test: atest UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Test: atest FontManagerTest
Change-Id: I18dc93e1b54b3ff97474113cd5689e7cc058e000
Merged-In: I18dc93e1b54b3ff97474113cd5689e7cc058e000
This is a partial cherry-pick from ag/20131484 (Enable fs-verity to all
APKs on install), where the change to InstallPackageHelper.java is
excluded to avoid the complexity of diverged code base in package
manager.
This is safe because:
1. The function signature does not change.
2. The caller isn't giving it a null signature in AOSP yet, so it won't
break existing package manager use case.
This partial cherry-pick is desired in order to unblock some work across
internal and AOSP branches.
Bug: 258538225
Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.ApkVerityInstallTest
Merged-In: I119e5189603af888dfa1ece2bee9e7635120854b
Change-Id: Ie0001bb74a0b7dffd9f6a3d2a23f5c66f381bea7
- update blur to blur by radius
- update timing
- add y translation on all complications and status bar
Test: atest ComplicationLayoutParamsTest
Test: manually on device http://shortn/_wY7QNZ5HIB
Bug: 260637747
Change-Id: Ib378327d65e24013845d6b86ce83a72220276467
Length of the vertical volume dialog slider (the one that pops up in response to volume button press) is now proportional to device height
Bug: b/220088292
Test: Manual. Press volume button up/down on a large screen device. Verify the slider is no longer short.
Change-Id: I70dcc2eb6748536f772aaeebd5a3a64be0050f56
Added a unit test to ensure that EventReceivers are correctly created
and destroyed on creation/destruction of WindowDecorations.
Bug: 258271539
Test: atest CaptionWindowDecorViewModelTests
Change-Id: I85ce32508174a17730f4a931d4c81616aedf92e0