Skip to content
Snippets Groups Projects
  1. Jan 23, 2024
    • Nelson Li's avatar
      Move fontchain_lint to build/core/tasks · c784e9e9
      Nelson Li authored
      Because `system.img` is a dependency of `fontchain_lint`, and
      `system.img` is currently not generated inside `Soong`, it is not
      possible to directly convert `fontchain_lint` to `Android.bp`.
      Move it to build/core/task first.
      
      Bug: 319050958
      Test: m fontchain_lint
      Change-Id: Iad483117a609786ecfb885b13015f18dda113155
      c784e9e9
  2. Jan 08, 2024
    • Nelson Li's avatar
      Convert validate_framework_keymaps to Android.bp · bedfe383
      Nelson Li authored
      The primary purpose of validate_framework_keymaps is to perform checks
      on all *.kl, *.kcm, and *.idc files using the "validatekeymaps -q"
      command. This action can be replaced by using a genrule.
      
      Bug: 318785074
      Test: m validate_framework_keymaps
      Change-Id: I657466d7ee2cec29900beeb0610cb0d30f34f92e
      bedfe383
  3. Jan 04, 2024
    • Pawan Wagh's avatar
      Add recovery permission to Settings app · 22a847e7
      Pawan Wagh authored
      Settings app needs to retrieve and publish update info from
      SystemUpdateManager. This is needed to install 16k developer option
      update which enables users to use 16K kernel from local OTAs.
      
      Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
      Bug: 302391134
      Bug: 295035851
      Change-Id: I89e30a8fc7e753f41c70e3ddbf759fb63ea97bd5
      22a847e7
  4. Jan 03, 2024
  5. Dec 28, 2023
  6. Nov 08, 2023
    • Kangping Dong's avatar
      [Thread] add Thread network permissions · fa35b426
      Kangping Dong authored
      Defines permissions for guarding access to Thread network API.
      
      The permissions are also granted to shell for CTS tests, see the
      instructions here: go/ctswrite#write-a-test-to-test-an-api-that-requires-system-permission
      
      Design doc: go/thread-android-api
      
      Bug: 262683651
      Merged-In: Ib15d5589bbd304d68840ee52a193676d12110512
      Change-Id: Ifc6c1d55cc170a5a200dfb5d531f5e0f86a9507a
      fa35b426
  7. Oct 24, 2023
  8. Sep 21, 2023
    • Riddle Hsu's avatar
      Only increase pending relaunch count if schedule is success · 37e0fd63
      Riddle Hsu authored
      Otherwise the client won't report finishRelaunching to decrease
      mPendingRelaunchCount and cause ActivityRecord#isSyncFinished
      to return false.
      
      Also skip pre-loading recents(home) if its process is still cached
      (e.g. intermediate state when switching user). Otherwise the
      transaction may be failed by frozen state.
      
      Bug: 301034389
      Test: atest RecentsAnimationTest#testPreloadRecentsActivity
      Test: Create multiple users with using different font size, wallpaper,
            dark theme. Launch several apps on each users. Switch between
            the users multiple times. There won't be transition timeout when
            returning from other apps to home.
      Merged-In: Ia2761e1e9fadf98ab952440ae884c12cc78697c8
      Change-Id: Ia2761e1e9fadf98ab952440ae884c12cc78697c8
      37e0fd63
  9. Sep 18, 2023
  10. Sep 12, 2023
    • Naomi Musgrave's avatar
      [Partial Screenshare] pause mirroring when the task is in PIP · 211876fa
      Naomi Musgrave authored
      To avoid malformed transformations due to inaccurate bounds
      when the task is in PIP. pause recording entirely when the
      task enters PIP and resume when the task leaves PIP.
      
      Bug: 297514518
      Test: atest WmTests:ContentRecorderTests
      Test: manual MediaProjection smoke tests, change windowing modes
      Change-Id: I92ba7a211d0c719e60d8a397f2ba1b250903eb01
      211876fa
  11. Sep 08, 2023
  12. Sep 07, 2023
    • Naomi Musgrave's avatar
      [MediaProjection] compare orientations of the same type · d71737d6
      Naomi Musgrave authored
      Attempted comparing orientations from different enums; manifested as wildly
      incorrect transformations when handling a rotation & the virtual display
      is resized.
      
      Bug: 289976187
      Test: atest WmTests:ContentRecorderTests
      Test: manual check full display & single app capture with rotations
      Change-Id: I10b03c5169a03b6540181b4bc4a3f47fa421f675
      d71737d6
  13. Aug 23, 2023
  14. Aug 22, 2023
  15. Aug 11, 2023
    • Vlad Popa's avatar
      Add MODIFY_AUDIO_SETTINGS_PRIVILEGED to the settings app · b3dfb4a6
      Vlad Popa authored
      This is necessary for the settings app to set the bt audio device type
      on the AudioManager.
      
      Test: manually set the bt audio device type
      Bug: 287011781
      
      Merged-In: I4978b56091b1132f112d4ddec500710964854ec7
      Change-Id: I4978b56091b1132f112d4ddec500710964854ec7
      b3dfb4a6
  16. Aug 10, 2023
  17. Aug 05, 2023
    • Mark Renouf's avatar
      Revert "Partial Screen Sharing - Use new app chooser base class" · 0ecc1064
      Mark Renouf authored
      Revert submission 23792411-pss-new-chooser-qpr
      
      Reason for revert: Additional dependency collided with ongoing
      development. Most of the a11y bugs motivating this seem to be specific
      to partial screenshare, so this ended up adding cost to Chooser
      development without clearly solving the underlying issue.. Need to
      regroup on a more sustainable solution to this.
      
      Bug: 294040231
      Test: Presubmits
      
      Reverted changes: /q/submissionid:23792411-pss-new-chooser-qpr
      
      Change-Id: I3a8be177fdd93fc7414e610019476ceeb40c9e7d
      0ecc1064
  18. Jul 27, 2023
    • Chris Göllner's avatar
      Partial Screen Sharing - Use new app chooser base class · ec80b12b
      Chris Göllner authored
      The old one in the framework is deprecated, and not developed anymore.
      Partial Screen Sharing is the only thing still using it, and preventing
      it from being removed.
      
      There also bug fixes and improvements in the new one, that the Partial
      Screen Sharing feature would benefit from.
      
      Bug: 265905535
      Test: MediaProjectionAppSelectorScreenshotTest
      Test: Manually build and run to trigger the app selector
      Change-Id: Icbc5b3bcf641288e12fc99973d8dae3467256a2c
      ec80b12b
  19. Jul 26, 2023
  20. Jul 25, 2023
    • Seigo Nonaka's avatar
      Deprecate fonts.xml and add hidden font_fallback.xml · e3510a82
      Seigo Nonaka authored
      Not to break the apps that reads fonts.xml and add new features to
      the system font customization at the same time, this CL introduces
      new hidden XML file font_fallback.xml which is currently a copy of
      the fonts.xml.
      
      The fonts.xml still exists but may not contain the latest system font
      settings due to compatibility problems. Application should use the
      public API for accessing system installed fonts which is available
      from API29.
      
      Bug: 281769620
      Test: atest CtsGraphicsTestCases
      Test: atest CtsTextTestCases
      Change-Id: I556b5fffb0c78f0c6150b472fd240b9a546de93f
      Merged-In: I556b5fffb0c78f0c6150b472fd240b9a546de93f
      e3510a82
  21. Jul 19, 2023
  22. Jul 12, 2023
  23. Jun 14, 2023
    • Max Zhang's avatar
      Map MAGIC button HID key to MACRO_1 for Ref RCU · b4d4b1f2
      Max Zhang authored
      Map MAGIC button HID key from Google Reference RCU to Android
      keycode KEYCODE_MACRO_1 for the MAGIC / customizable button
      feature.
      
      bug: 279825318
      test: manual
      Change-Id: Ic4705f0798ba1630297da83d3bc300afb27d0ad8
      (cherry picked from commit 798f9f54)
      b4d4b1f2
  24. Jun 05, 2023
    • Eghosa Ewansiha-Vlachavas's avatar
      Create new display rotation compat toast string for multi-window · 474318e3
      Eghosa Ewansiha-Vlachavas authored
      To add more clarity and improve the user experience, introduce a new
      toast string (to replace 'display_rotation_camera_compat_toast_in_split_screen')
      which includes the app name so it's clear to the user which app to
      relaunch in full screen.
      
      Fix: 282782484
      Fix: 267372967
      Test: atest WmTests:DisplayRotationCompatPolicyTests
      
      Change-Id: I07a0dc182ba46240449f2b12619c466f7484af06
      474318e3
  25. Jun 03, 2023
  26. Jun 01, 2023
    • fqjc86's avatar
      Added the permission for MANAGE_USERS in the priv_app allowlist · 52c39343
      fqjc86 authored
      This is necessary to allow NetworkStack to identify whether
      a connection was setup trough an enterprise-managed configuration,
      by querying DevicePolicyManager. Some behavior specific to
      enterprise networks require NetworkStack to differentiate this case.
      
      Bug: 189865016
      Change-Id: Iaeb91ebf9cccce8bf630fab5d1883473247b4def
      52c39343
  27. May 29, 2023
  28. May 23, 2023
    • Winson Chung's avatar
      Fix issue with task snapshots being taken too late · 3ca99e2a
      Winson Chung authored
      - Currently, a display change while recents transition is playing will
        result in the display change being applied prior to the recents
        animation playing, which means that the transition-end snapshots are
        taken in the wrong display configuration
      - Instead, When a display change is requested mid-recents transition,
        cancel the current transition and record the snapshots in place
        (this matchs legacy recents animation behavior)
      - Separately, if the snapshot is requested & recorded mid transition,
        then we can ignore the post-transition screenshot (which would be
        wrong in the display change case, or just extraneous even in the normal
        case where launcher has requested a screenshot itself already).
        We do this by comparing the time that the last snapshot was taken
        with the start of the transition.
      
      Fixes: 278189494
      Test: Go into Overview and rotate the device and observe the task views
      Change-Id: I985cd9c852a326027ae3ab4f7ffe837431d1c654
      3ca99e2a
  29. May 16, 2023
    • Naomi Musgrave's avatar
      (5/N)[MediaProjection] Send no frames until user reviews consent · d8a8b3da
      Naomi Musgrave authored
      When a host app re-uses a consent token, protect the user's data
      by ensuring no frames are sent out until the user has reviewed
      the permission dialog.
      
      Test: atest WmTests:ContentRecordingControllerTests
      Test: atest WmTests:ContentRecorderTests
      Bug: 271323540
      Change-Id: I0451ac709b64414fc75f3dfbca5a3dbe9244682d
      d8a8b3da
  30. May 12, 2023
  31. May 11, 2023
    • Vali Calinescu's avatar
      Refresh activity after stronger letterboxing for camera compat · 2833289b
      Vali Calinescu authored
      We used to refresh the activity only if the display rotation configuration was changing and the treatment was allowed. Now we are also refreshing the activity after stronger letterboxing (split screen aspect ratio is used for the camera activity). This is needed because we want to keep applying the camera compat treatment when the activity is resumed.
      
      Fix: 277818827
      Test: atest WmTests:DisplayRotationCompatPolicyTests#testOnActivityConfigurationChanging_splitScreenAspectRatioAllowed_refresh
      Change-Id: I61b807f18dc89582c9e1634cd533b1fa9e364d32
      2833289b
  32. May 10, 2023
    • Sarup Dalwani's avatar
      Moving permission and flag changes out of root identity for AppCloning · 3d65313a
      Sarup Dalwani authored
      IntentRedirection
      
      Earlier the permission was being checked with system server's pid and
      uid as we were clearing binder identity for finding the values of
      AppCloningBuildingBlocks flag. Because of this the check was moot,
      moving the check out, so that it uses callers pd and uid.
      
      Bug: 281738146
      Test: atest com.android.cts.appcloning.IntentRedirectionTest
      Change-Id: I62642d2c7cd76912ae800b02688cdc91d1a78214
      3d65313a
  33. May 03, 2023
    • Aishwarya Mallampati's avatar
      Updating Satellite Mode Key in Settings · fd8ffe82
      Aishwarya Mallampati authored
      When satellite is enabled by telephony (phone process) it needs to confirm that UWB gets disabled as well (UWB is listening for satellite enablement and disables itself). In order to register to get the UWB state states phone needs UWB_PRIVILEGED permission
      
      Bug: 275415823
      Test: atest SatelliteManagerTestOnMockService, Flashed on raven-userdebug: SMS and calls are working fine.
      Change-Id: I82c906c429df8b763dea09b1ee249b09e22e26b6
      fd8ffe82
  34. May 02, 2023
  35. Apr 28, 2023
  36. Apr 27, 2023
  37. Apr 25, 2023
    • Evan Rosky's avatar
      Allow Recents transitions to collect in parallel · b4963b6d
      Evan Rosky authored
      We can't fully support parallel transition collection,
      but we can for specific cases (like recents). This CL
      adds some hard-coded checks for recents specifically and
      allows it to collect in parallel with activity-only
      transitions. This is basically way of assigning "priority"
      to recents since it is a very user-forward operation
      and an integral part of how users percieve device
      performance.
      
      Bug: 277838915
      Bug: 264536014
      Test: In the running task, launch a slow-to-draw activity,
            then swipe to recents or home. It should not wait
            anymore.
      Change-Id: Ie09e31bf290847b108578b688f57360536fe7f4e
      b4963b6d
  38. Apr 22, 2023
    • Naomi Musgrave's avatar
      (2/N)[MediaProjection] Show dialog when token is reused · 1398b3d0
      Naomi Musgrave authored
      Validate if the IMediaProjection token (representing
      the user's consent) is used to get more than one
      MediaProjection instance, or if client app is trying to
      invoke MediaProjection#createVirtualDisplay more than
      once.
      
      Re-show the permission dialog for target SDK below U.
      
      Follow-on CLs will:
      * Black out recording when waiting for consent
      
      Bug: 274790702
      Test: atest FrameworksServicesTests:MediaProjectionManagerServiceTest
      Change-Id: I30c96d9a9afd69fba29314caeeb867f665bb83ad
      1398b3d0
Loading