Skip to content
Snippets Groups Projects
  1. Jan 17, 2024
    • Hongwei Wang's avatar
      Work around the flicker on enter PiP for foldables · fdaa880f
      Hongwei Wang authored
      This is work around for b/311084698
      
      We use to rely on the mIsInStateChange flag to avoid resetting the
      surface of PiP task, it's broken recently. The windowing mode check here
      is not ideal but it should be safe to ignore any resetting from
      UnfoldAnimationController for a Task that's already pinned.
      
      Before: http://recall/-/aaaaaabFQoRHlzixHdtY/ahJ6dpKl1ajsaReCX70Wb
      After: http://recall/-/aaaaaabFQoRHlzixHdtY/cc0H4jAt0KxqzFxzkfVjk7
      Flag: NONE
      Bug: 311084698
      Test: Manually following the reproduce steps in bug
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0e6c31448829cadffecc66aaebc2210d134d240b)
      Merged-In: I5f60b2da8eaf948145ca61fb21433f5640f1feeb
      Change-Id: I5f60b2da8eaf948145ca61fb21433f5640f1feeb
      fdaa880f
    • Jonathan Scott's avatar
      Always sync user restriction state to UserManager · 096fa0d4
      Jonathan Scott authored
      On certain Android 14 builds, global restrictions set by the
      DPC can errornously go into UserManager's local restriction
      store, resulting in a bad state where they cannot be unset
      in future. Fix this by always force syncing user restrictions
      from the policy engine to the UserManager when a restriction is
      being set or cleared by the DPC. The force sync ensures that both
      local and global restriction states of UserManager are consistent
      with policy engine, for the restriction that is being updated.
      
      Ran through the following manual tests:
      1. (DO) Start with A14 bad build, set global restrictions
         -> OTA to this fix
         -> try clearing policy
      2. (DO) Start with A14 bad build, set global restrictions
         -> reboot device
         -> OTA to this fix
         -> try clearing policy
      3. (DO) A13 with local & global restrictions set
         -> OTA to A14 bad build
         -> set same restrictions again
         -> OTA to this fix
         -> try clearing policy
      4. (DO) A13 with local & global restrictions set
         -> OTA to A14 bad build
         -> reboot device
         -> set same restrictions again
         -> OTA to this fix
         -> try clearing policy
      5. (DO) A13 with local & global restrictions set
         -> OTA to A14 bad build
         -> OTA to this fix
         -> try clearing policy
      6. (DO) A13 with local & global restrictions set
         -> OTA to A14 bad build
         -> reboot device
         -> OTA to this fix
         -> try clearing policy
      7. (DO) A13 with local & global restrictions set
         -> OTA to this fix
         -> try clearing policy
      8. (BYOD PO) A13 with global restrictions set
         -> OTA to A14 bad build
         -> reboot device
         -> OTA to this fix
         -> try clearing policy
      Case 1 & 2: fresh A14 setup
      Case 3 & 4: OTA'ed devices with workaround applied
      Case 5 & 6: OTA'ed devices without workaround applied
      Case 7: directly OTA'ed to build with fix
      Case 8: same as case 5 & 6 but on a BYOD PO device
      
      Bug: 311687929
      Bug: 299302474
      Test: btest a.d.c.PolicyEngineTest
      Test: atest android.devicepolicy.cts.UserRestrictionsTest
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5394ddbee5dd88a35e2a9a8508dc260395895ac1)
      Merged-In: I4d700bc42ec114d1c0fc86f230f7f7612819195c
      Change-Id: I4d700bc42ec114d1c0fc86f230f7f7612819195c
      096fa0d4
    • Alex Buynytskyy's avatar
      Disallow system apps to be installed/updated as instant. · 1f4651d2
      Alex Buynytskyy authored
      Bug: 299441833
      Test: atest android.content.pm.cts.PackageManagerTest
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:496e78a1951f2ed69290f03c5625c0f8382f4d31)
      Merged-In: Idd89a6dd72f0e68259095f677185f0494391025c
      Change-Id: Idd89a6dd72f0e68259095f677185f0494391025c
      1f4651d2
  2. Jan 12, 2024
  3. Jan 11, 2024
  4. Jan 09, 2024
  5. Jan 08, 2024
  6. Jan 05, 2024
  7. Jan 04, 2024
  8. Dec 29, 2023
  9. Dec 28, 2023
  10. Dec 27, 2023
Loading