Skip to content
Snippets Groups Projects
  1. Jun 04, 2024
    • Sanal Buvaev's avatar
      Revert^4 "Add throtling to crashloop mitigations" · 0ec926a3
      Sanal Buvaev authored
      This reverts commit c996b909.
      
      Reason for revert: Fixed CTS tests
      
      Change-Id: I4ebb7d1a05eec41e8c5f603c42972c2e16d60b3d
      0ec926a3
    • Felix Stern's avatar
      Refactor show/hide IME process · d87895b9
      Felix Stern authored
      Changing the process of how the IME is shown or hidden:
      - Showing or hiding the IME is driven through its requested visibility (InsetsControlTarget) via InsetsController/DisplayImeController and thus sent to the server (InsetsStateController).
      - When hiding the IME, the requestedVisibleTypes are sent after the end of the animation.
      - Introduced new OnImeRequestedChangedListener that is called via WindowManagerService that is called to start the show/hide IME flow in IMMS.
      - When the IME becomes (un)available, its leash is (re)set.
      - Show/Hide requests from InputMethodManager are redirected through InsetsController.
      
      Test: atest CtsInputMethodTestCases
      Flag: android.view.inputmethod.Flags.refactorInsetsController
      Bug: 298172246
      Change-Id: I8e3a74ee579f085cb582040fdba725e7a63d6b85
      d87895b9
    • Siim Sammul's avatar
      Stop adding large proto tombstones to dropbox. · 1a739692
      Siim Sammul authored
      Processing the large proto tombstones can cause OOM and there is no point adding tombstones larger than dropbox max capacity as they will not get uploaded.
      
      
      Bug: 343135528
      Change-Id: Ib308e48dcfc3282ae7ab0e9fa0827cc8fae97078
      1a739692
    • Yi Kong's avatar
      profcollect: Remove unused DEBUG logs · dbac80e4
      Yi Kong authored
      We have enough logging now, they have become excessive.
      
      Change-Id: Ia26dbbf7d771554e29087527bea97d6e6d5887bb
      Test: presubmit
      dbac80e4
    • Charles Chen's avatar
      Enable to override AnimationOptions per change · 0409a5f5
      Charles Chen authored
      Since we move AnimationOptions to each change, we should also support
      to override AnimationOptions per activity-target change.
      
      Test: atest TransitionTests
      Bug: 327332488
      Bug: 295805497
      Flag: com.android.window.flags.move_animation_options_to_change
      
      Change-Id: I302f64b7ad6af7bc6140c33d981f331861cb8c53
      0409a5f5
    • Charles Chen's avatar
      Move AnimationOptions to Change · 32814954
      Charles Chen authored
      There are several reasons for this requests:
      1. Fix "Dim flicker on package installer"
      2. Implement overlay transition by animation resources override
      3. Activity Embedding Animation Customization
      
      Test: atest TransitionTests ActivityEmbeddingAnimationRunnerTests ActivityEmbeddingControllerTests
      Bug: 327332488
      Bug: 295805497
      Flag: com.android.window.flags.move_animation_options_to_change
      Change-Id: I060b87506a1bf732228ec6b44e7e9dd48782ec0c
      32814954
    • wilsonshih's avatar
      Reset mAnimatingExit flag while relayout visible window. · daff5ea4
      wilsonshih authored
      The timing issue happen when a closing dialog activity request to
      launch itself again before the task move to background. By default
      system will play an exit animation for the dialog style window, when
      the activity being move to foreground again, core will cancel previous
      exit animation so the window can be visible. But the window surface
      shouldn't be hide and/or destroy in onExitAnimationDone, since the
      window is request to be visible again.
      
      Bug: 342644763
      Test: repeatly closeing the sample activity, verify the window surface
      of app window won't be hide after the relayout request.
      
      Change-Id: Id2718b438ef9f21b0bc4182e50b59de07c445372
      daff5ea4
    • Riddle Hsu's avatar
      Pause surface position for bounds change transaction · c85f1ba3
      Riddle Hsu authored
      Currently the entering pip bounds is applied at the end of enter
      animation. There could be 2 flickering cases:
      1. There is an offset from display cutout while the activity is
         fullscreen. The offset should be gone once the task no longer
         overlap with display cutout. But the position change applies
         before the app redraws. Which looks like shift left and then
         right in a short time.
      2. Before the window frame is recomputed, the surface position is
         updated with pip bounds, e.g. (0,0)-(200,1000)=(-200,-1000).
      
      So this change updates the window surface position until the app
      has reported its draw transaction, and then applies them at once.
      
      Replaced mResizedWhileGone because it was never read for a long time.
      
      Bug: 331315278
      Test: Assume the target app support auto-pip and it doesn't draw
            under display cutout.
            E.g. LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
            Enter PiP from 90 degrees to home with 0 degrees.
            The pip content won't shift horizontally a few frames.
      Change-Id: I1cd79ccb05ac61edf37dffbbec8cfe37cb85b1f3
      c85f1ba3
  2. Jun 03, 2024
    • Varun Shah's avatar
      Remove dependency on gate_fgs_timeout_anr_behavior flag. · 149611da
      Varun Shah authored
      Now that the enable_fgs_timeout_crash_behavior flag is completely rolled
      out, remove any dependencies on the stop-gap flag we had in place. If we
      need to rollback the crashing behavior in the future, we can simply
      disable the crash flag since that behavior is decoupled from the timeout
      callback flag.
      
      Bug: 330399444
      Test: atest CtsFgsTimeoutTestCases
      Change-Id: Ifd64d11493d60ec4841e13163caa9e08e03e0a89
      149611da
    • Dmitri Plotnikov's avatar
      Make SystemHealthManager.takeUidSnapshot call async · c0d8b4eb
      Dmitri Plotnikov authored
      Bug: 339041893
      Flag: backstage_power com.android.server.power.optimization.oneway_battery_stats_service
      Test: atest CtsOsTestCases:SystemHealthManagerTest
      Change-Id: Id47990cf9c3a87c81525ef02df96c04c62f1422b
      c0d8b4eb
    • Dmitri Plotnikov's avatar
      Fix NullPointerException when telephony does not return ModemActivityInfo · 0cb75c6d
      Dmitri Plotnikov authored
      Bug: 342865877
      Test: atest FrameworksServicesTests PowerStatsTests
      Test: atest --host FrameworksServicesTestsRavenwood PowerStatsTestsRavenwood
      Flag: com.android.server.power.optimization.streamlined_connectivity_battery_stats
      Change-Id: Iaabbf99a672e2154d2927cc58aeb97b63d6d6488
      0cb75c6d
    • Lei Ju's avatar
      Reformat client info in dumpsys · 3bb502aa
      Lei Ju authored
      Bug: 343787523
      Test: presubmit
      Change-Id: Ibe9742f7501150a6e31c97feb42190b2e47edafb
      3bb502aa
    • Ioannis Ilkos's avatar
      Publish TracingServiceProxy after storage has been unlocked · 5a104f2b
      Ioannis Ilkos authored
      TracingServiceProxy depends on external system services to forward its
      requests to. There is an edge case where reportTrace was called before
      the encrypted storage was unlocked and before external services can be
      bound (e.g. occurs when reportTrace is concurrent to system_server
      starting up).
      
      This change defers the registration of the service until we are ready to
      accept requests. As a side-effect this also means that the device needs
      to be unlocked before the service is published.
      
      Bug: 333846370
      Test: atest PerfettoReporterTest
      Test: boot device without lock and invoke perfetto reporting (verify the report is accepted immediately)
      Test: boot device with lock and invoke perfetto reporting (verify the report is accepted after unlocking)
      Test: invoke perfetto reporting concurrent to kill -9 `pidof system_server`
      Change-Id: Ibb75c3e314d30b18cdc32e3774be1ee8022960b1
      5a104f2b
    • Varun Shah's avatar
      Fix NPE in UriPermission. · 2a473a4d
      Varun Shah authored
      Also, fix read/write typo.
      
      Change-Id: I54e00a4af061a5e5c4c46bb8c432a05df3803574
      Fixes: 344613486
      Test: builds/flashes
      2a473a4d
    • Sumedh Sen's avatar
      Update conditions for updates without user action for Android V · 9aaa1146
      Sumedh Sen authored
      -For Android V, updates without user action are permitted for apps
      targeting API 33+
      -Updated the conditions for SDK version check in PackageInstallerSession and associated
      documentation in PackageInstaller.SesionParams
      
      Bug: 325888262
      Test: atest CtsSilentUpdateHostTestCases
      Change-Id: Idfe3af5ac5f3a29016634b1486f0a94f7892a445
      9aaa1146
    • Essence Cain's avatar
      Check for emergency installer attribute and permission to trigger an emergency uninstall · 83bd143d
      Essence Cain authored
      Change-Id: Ia61bdf9045bc6b07feb01726aceb395b7a974bc2
      Test: m
      Bug: 321080601
      Flag: EXEMPT bugfix
      83bd143d
    • Guojing Yuan's avatar
      [CDM] Throw SecurityException when the caller can't access the · 7a2a7bf4
      Guojing Yuan authored
      associations
      
      Fix: 338005013
      
      Test: CTS
      Change-Id: I3af4dd3aeebba03fe5cd6d3746e7998d505e1948
      7a2a7bf4
    • art-benchmark-service's avatar
      Update boot image and system server profiles [M82C37P58S0PP] · 3a157131
      art-benchmark-service authored
      Bug: 254051423
      
      Test: go/art-benchmark?p=BootImageProfileId:39982&f=CandidateName:in:39985
      
      = Perf stats =
      (lower is better)
      
      Regular update to the boot image profiles. Benchmark shows a code size reduction of 0.5MB and improvements in App-memory and system-memory with a tiny improvement in boot Time.
      
                   Avg % [Confidence interval min-max %]
      App Startup:            0.42 [-1.59, 2.42]
      App RSS:               -0.49 [-1.15, 0.16]
      App Anon RSS + Swap:   -0.75 [-2.04, 0.53]
      Memory(PSS):           -0.25 [-1.1, 0.61]
      Memory(RSS):           -0.49 [-1.09, 0.12]
      Memory(Private-dirty): -2.6 [-4.54, -0.66]
      Boot time:             -0.57 [-1.44, 0.3]
      Code size:             -0.50MB (-0.607%)
      
      Ignore-AOSP-First: Boot image profiles
      BYPASS_INCLUSIVE_LANGUAGE_REASON: Profile of existing code
      
      =Generation Strategy=
      
      method_threshold: 0.82
      image_class_threshold: 0.37
      preloaded_classes_threshold: 0.58
      priority_packages_thresholds {
        key: "service-appsearch.jar.prof:CLASS:android"
        value: 0.026428571
      }
      priority_packages_thresholds {
        key: "service-appsearch.jar.prof:METHOD:android"
        value: 0.058571428
      }
      priority_packages_thresholds {
        key: "service-art.jar.prof:CLASS:android"
        value: 0.026428571
      }
      priority_packages_thresholds {
        key: "service-art.jar.prof:METHOD:android"
        value: 0.058571428
      }
      priority_packages_thresholds {
        key: "service-connectivity.jar.prof:CLASS:android"
        value: 0.026428571
      }
      priority_packages_thresholds {
        key: "service-connectivity.jar.prof:METHOD:android"
        value: 0.058571428
      }
      priority_packages_thresholds {
        key: "service-wifi.jar.prof:CLASS:android"
        value: 0.026428571
      }
      priority_packages_thresholds {
        key: "service-wifi.jar.prof:METHOD:android"
        value: 0.058571428
      }
      priority_packages_thresholds {
        key: "services.jar.prof:CLASS:android"
        value: 0.026428571
      }
      priority_packages_thresholds {
        key: "services.jar.prof:METHOD:android"
        value: 0.058571428
      }
      
      =Profile stats=
      
      Data info:
      - total aggregations: 1873
      - number of (device types, builds): 245
      
      File boot-image-profile.txt
        - hot methods: 610 added, 615 removed
        - methods: 610 added, 615 removed
        - classes: 17 added, 15 removed
        - totals now: 32511 hot methods, 32511 methods, 17851 classes
        - totals before: 32516 hot methods, 32516 methods, 17849 classes
      
        per package info as csv (selected):
          package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
          android, 575, 574, 8, 10, 20958, 10421
          com.android, 17, 23, 6, 4, 2320, 3538
          java, 9, 9, 2, 1, 7241, 2131
          android.view, 160, 164, 1, 0, 3394, 1148
          android.hardware, 3, 1, 0, 0, 471, 873
          android.animation, 46, 46, 0, 0, 413, 89
          android.app, 35, 35, 0, 2, 2923, 1183
          android.content, 74, 71, 0, 0, 1908, 635
          android.graphics, 76, 76, 3, 0, 1974, 374
          android.icu, 19, 19, 0, 0, 2043, 1497
          android.media, 0, 0, 2, 0, 792, 637
          android.net, 7, 7, 0, 0, 252, 222
          android.widget, 77, 77, 0, 0, 1403, 445
      
      File preloaded-classes
        - hot methods: 0 added, 0 removed
        - methods: 0 added, 0 removed
        - classes: 33 added, 24 removed
        - totals now: 0 hot methods, 0 methods, 17762 classes
        - totals before: 0 hot methods, 0 methods, 17753 classes
      
        per package info as csv (selected):
          package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
          android, 0, 0, 21, 14, 0, 10372
          com.android, 0, 0, 6, 5, 0, 3515
          java, 0, 0, 5, 5, 0, 2118
          android.view, 0, 0, 2, 3, 0, 1142
          android.hardware, 0, 0, 2, 0, 0, 873
          android.app, 0, 0, 1, 2, 0, 1180
          android.content, 0, 0, 0, 1, 0, 632
          android.graphics, 0, 0, 0, 3, 0, 368
          android.icu, 0, 0, 11, 0, 0, 1497
          android.media, 0, 0, 2, 0, 0, 628
      
      File boot-image-profile.txt
        - hot methods: 601 added, 606 removed
        - methods: 601 added, 606 removed
        - classes: 14 added, 14 removed
        - totals now: 22381 hot methods, 22381 methods, 14605 classes
        - totals before: 22386 hot methods, 22386 methods, 14605 classes
      
        per package info as csv (selected):
          package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
          android, 575, 574, 8, 10, 20894, 10390
          com.android, 17, 23, 5, 4, 1390, 3125
          android.view, 160, 164, 1, 0, 3394, 1148
          android.hardware, 3, 1, 0, 0, 471, 873
          android.animation, 46, 46, 0, 0, 413, 89
          android.app, 35, 35, 0, 2, 2923, 1183
          android.content, 74, 71, 0, 0, 1908, 635
          android.graphics, 76, 76, 3, 0, 1974, 374
          android.icu, 19, 19, 0, 0, 2043, 1497
          android.media, 0, 0, 2, 0, 792, 637
          android.net, 7, 7, 0, 0, 252, 222
          android.widget, 77, 77, 0, 0, 1403, 445
      
      File preloaded-classes
        - hot methods: 0 added, 0 removed
        - methods: 0 added, 0 removed
        - classes: 26 added, 19 removed
        - totals now: 0 hot methods, 0 methods, 14530 classes
        - totals before: 0 hot methods, 0 methods, 14523 classes
      
        per package info as csv (selected):
          package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
          android, 0, 0, 21, 14, 0, 10341
          com.android, 0, 0, 4, 5, 0, 3102
          android.view, 0, 0, 2, 3, 0, 1142
          android.hardware, 0, 0, 2, 0, 0, 873
          android.app, 0, 0, 1, 2, 0, 1180
          android.content, 0, 0, 0, 1, 0, 632
          android.graphics, 0, 0, 0, 3, 0, 368
          android.icu, 0, 0, 11, 0, 0, 1497
          android.media, 0, 0, 2, 0, 0, 628
      
      File art-profile
        - hot methods: 1774 added, 2504 removed
        - methods: 1774 added, 2504 removed
        - classes: 7 added, 3 removed
        - totals now: 3950 hot methods, 3950 methods, 82 classes
        - totals before: 4680 hot methods, 4680 methods, 78 classes
      
        per package info as csv (selected):
          package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
          android, 3, 4, 1, 1, 21, 1
          com.android, 1771, 2500, 6, 2, 3929, 81
          android.hardware, 3, 4, 0, 1, 18, 0
      
      InternalReferenceRawProfileId: 39982
      InternalReferenceCandidateProfileId: 39985
      
      Test: build & benchmark
      
      Change-Id: I984aa7fffa8d68fc315124699e64de1a8cba2993
      3a157131
    • vignesh ramanathan's avatar
      Adding flag to override Package source with adb install command. · 6371b012
      vignesh ramanathan authored
      BUG: b/329826852
      
      Test: Manual
      
      Change-Id: Ie07952be4c0e88236e79c21b3f07537beeaf91a8
      
      Change-Id: I774db150e103c445c972e1f5e63ee73218d83392
      6371b012
    • Aurélien Pomini's avatar
      Updates the dim for USER_SYSTEM if mCurrentUserId = null · 5c58aae5
      Aurélien Pomini authored
      If setWallpaperDimAmount is called during boot before
      WallpaperManagerService#switchUser is called, it will produce a NPE
      since the mCurrentUserId is still USER_NULL. Instead, update the dim for
      USER_SYSTEM in that scenario.
      
      Flag: NONE, the logic only changes in a case that would produce a NPE
      otherwise.
      Test: presubmit
      Bug: 344545351
      
      Change-Id: I3c8de053837e80fa6dc90f26b61e1f0f3af0eecf
      5c58aae5
    • Julia Reynolds's avatar
      Guard against crashes in effects services · f71d6a6e
      Julia Reynolds authored
      Test: DefaultDeviceEffectsApplierTest
      Test: activate mode with effects active, reboot
      Bug: 344545351
      Flag: android.app.modes_api
      Change-Id: Iadc4558aeff2959fb494e730499eebe8afdb59f7
      f71d6a6e
    • Eric Laurent's avatar
      AudioDeviceBroker: fix createBtDeviceInfo for HEADSET profile · 840c738f
      Eric Laurent authored
      Add missing support for HEADSET profile in createBtDeviceInfo.
      
      Bug: 344014463
      Test: repro steps in bug
      Flag: EXAPT trivial bug fix
      Change-Id: Ib5c869339a40b1877e55951aafe717e77421ecf5
      840c738f
    • Linus Tufvesson's avatar
      Hide SAW subwindows · 89bc634c
      Linus Tufvesson authored
      .. when top window is hidden through Window#setHideOverlayWindows
      
      Bug: 318683640
      Test: atest CtsWindowManagerDeviceWindow:HideOverlayWindowsTest
      Flag: EXEMPT securityfix
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c37bc9147086f497ac7b1595083836014f524d5f)
      Merged-In: If19240f5aec2e048de80d75cbbdc00be47622d7f
      Change-Id: If19240f5aec2e048de80d75cbbdc00be47622d7f
      89bc634c
    • Olivier Gaillard's avatar
      Increase the dropbox disk quota to 20Mb for user debug builds as we add more... · fc26cff6
      Olivier Gaillard authored
      Increase the dropbox disk quota to 20Mb for user debug builds as we add more debug to dropbox for user debug.
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ea261f6a2a9d1034abfaf2ebdaae72c9869c8c90)
      Merged-In: Ib758fa6fa47cfd26e895bf8d7b9d5bde98c99461
      Change-Id: Ib758fa6fa47cfd26e895bf8d7b9d5bde98c99461
      fc26cff6
    • Mitch Phillips's avatar
      Workaround bad GC of tombstone watcher. · 476ed072
      Mitch Phillips authored
      There's some bad behaviour going on that's exclusive to WatchOS
      (discovered on the Pixel Watch 2). The TombstoneWatcher class is
      responsible for watching the /data/tombstones/ directory. It is a member
      of the NativeTombstoneManager class, which is created when
      ActivityManager starts, and lives until the device is powered off.
      
      Unfortunately, some bad behaviour (unclear exactly what at this stage)
      means that the TombstoneWatcher class is spuriously garbage collected,
      even though the parent NativeTombstoneMenager class is still alive and
      reachable. I chatted with hboehm@ from the ART team, and his hypothesis
      is that because the TombstoneWatcher member is initialized in the
      constructor and never used again, some optimiser is doing the wrong
      thing and thinking that it's unused and can be GC'd.
      
      The TombstoneWatcher uses inotify in native code to execute a callback
      when a file is added to a directory, so it's clearly in use, but
      unfortunately the bug allows this class to be GC'd anyway.
      
      What this means, in practice, is that app native crashes on WatchOS are
      not being handled correctly. This includes:
       - Apps cannot get their own crashes through the
         ApplicationExitInfo::getHistoricalProcessExitReasons API.
       - Crash reports are never sent to Google, with the exception of
         tombstones that last until the next reboot, where they're one-time
         scooped up and sent to Google. This has substantially increased
         latency (requires a reboot) and also probably drops quite a number of
         reports because there's a limit of tombstones on the device, and a
         rate limit of how many are sent by GMS.
      
      Bug: 339371242
      Test: atest CtsGwpAsanTestCases on eos (Pixel Watch 2, WatchOS)
      Change-Id: I9226e4368b03bd4742fccdafde6018f145da63e6
      476ed072
    • Matías Hernández's avatar
      Reject zen rule icon if its resource name is too long · e0bff5eb
      Matías Hernández authored
      Fixes: 341691431
      Test: atest ZenModeHelperTest
      Flag: NONE
      Change-Id: I93ac73bc3981b49be60d967eb2366a0067f6c852
      e0bff5eb
    • Rupesh Bansal's avatar
      Set user initiated change from strategy · 36c770ca
      Rupesh Bansal authored
      Bug: 343668410
      Test: atest com.android.server.display
      Change-Id: I4798a7a1e00704ce4a195d354fd10d8ac6c247c4
      36c770ca
    • lijilou's avatar
      AccessibilityWindowsPopulator:fix CWE problem by add mLock in dump · c6feab91
      lijilou authored
      method.
      
      Accessing mDisplayInfos, mInputWindowHandlesOnDisplays and other
      collections should add mLock lock according to AOSP requirements.
      
      Test: OEM monkey test
      Bug: 344434136
      Change-Id: Icb18683680c40939e0ebd352818702f90b79179f
      c6feab91
    • Sudheer Shanka's avatar
      Clarify the format of foregroundServiceType in dumpsys. · 3983cf4b
      Sudheer Shanka authored
      Test: n/a
      Flag: EXEMPT minor fix
      Change-Id: If1766196ba858487464fd2fe2c0366176be97587
      3983cf4b
    • b0202.jung's avatar
      Fix focused error of embedded task fragments · a209eafe
      b0202.jung authored
      If a display has freeform windowing environments such as Desktop
      or XR device, then resumed activity of task fragment will be set
      to focused app. However, it can break focused state in embedded
      task fragments.
      
      Thus, allow it only if a focused task is different from a next task.
      
      Bug: 343252725
      Test: Settings(AE) > Launch SubSettings > Check focused app/window
      Change-Id: Ib62ecb7c8e0fe453149f51c610c34d97bbde7cb1
      a209eafe
  3. Jun 02, 2024
    • petsjonkin's avatar
      Intoroducing RequestedRefreshRateVote · e5339e5c
      petsjonkin authored
      Even though preferredRefreshRate is communicated directly to SF, we need to validate that this rate is achievable
      
      Bug: b/330810426
      Test: atest AppRequestObserverTest atest VoteSummaryTest
      
      Change-Id: I108f600c7f3876ae11a682b6e6b066343445bacf
      e5339e5c
    • lijilou's avatar
      NotificationManagerService: add right lock for some methods. · d6df8749
      lijilou authored
      Test: atest
      Bug: 343818003
      Change-Id: Ia30d818d6ac19c2a3e9ae31b29122fb5bbac338a
      d6df8749
    • Linus Tufvesson's avatar
      Hide SAW subwindows · 55d02153
      Linus Tufvesson authored
      .. when top window is hidden through Window#setHideOverlayWindows
      
      Bug: 318683640
      Test: atest CtsWindowManagerDeviceWindow:HideOverlayWindowsTest
      Flag: EXEMPT securityfix
      Merged-In: If19240f5aec2e048de80d75cbbdc00be47622d7f
      Change-Id: If19240f5aec2e048de80d75cbbdc00be47622d7f
      (cherry picked from commit c37bc914)
      55d02153
    • Linus Tufvesson's avatar
      Hide SAW subwindows · a9a7079b
      Linus Tufvesson authored
      .. when top window is hidden through Window#setHideOverlayWindows
      
      Bug: 318683640
      Test: atest CtsWindowManagerDeviceWindow:HideOverlayWindowsTest
      Flag: EXEMPT securityfix
      Merged-In: If19240f5aec2e048de80d75cbbdc00be47622d7f
      Change-Id: If19240f5aec2e048de80d75cbbdc00be47622d7f
      (cherry picked from commit c37bc914)
      a9a7079b
    • Linus Tufvesson's avatar
      Hide SAW subwindows · 5a2a9f49
      Linus Tufvesson authored
      .. when top window is hidden through Window#setHideOverlayWindows
      
      Bug: 318683640
      Test: atest CtsWindowManagerDeviceWindow:HideOverlayWindowsTest
      Flag: EXEMPT securityfix
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c37bc9147086f497ac7b1595083836014f524d5f)
      Merged-In: If19240f5aec2e048de80d75cbbdc00be47622d7f
      Change-Id: If19240f5aec2e048de80d75cbbdc00be47622d7f
      5a2a9f49
  4. Jun 01, 2024
    • Ayush Sharma's avatar
      Handle null component name for default sms app · 59facef6
      Ayush Sharma authored
      Bug: 336726661
      Test: atest android.devicepolicy.cts.PersonalAppsSuspensionTest
      Change-Id: Ib721b73347160935479bc55ebf604f22c67239de
      59facef6
    • Yohei Yukawa's avatar
      Enable 1P IMEs for concurrent multi-user IME mode · f7d90f36
      Yohei Yukawa authored
      This is a follow up CL to my previous CL [1], which introduced
      
       IMMS#experimentalInitializeVisibleBackgroundUserLocked
      
      to re-implement how IMEs become recognized by the IMMS and how the
      initial default IME is picked up for the first use of each user.
      
      One thing I forgot to re-implement is that enabling at least one IME
      for each user in the first use, because
      
        Settings.Secure.ENABLED_INPUT_METHODS
      
      is empty by default for each user. We need to enable at least one IME
      for other logic to run.
      
      At the same time, the logic to determine what IMEs should be enabled
      by default has also been complicated and fragile [2][3][4][5][6],
      mainly because the expected user-observable behavior tends to be quite
      ad-hoc especially on phone use cases. Luckily on form factors where
      experimental concurrent multi-user IME is required we in general do
      not expect users to be able to install 3P IMEs. On such an environment
      just enabling all the 1P ("1P" here means pre-installed) IMEs should
      be acceptable at least as the initial implementation.
      
      This behavior is fully guarded behind
      
        IMMS#mExperimentalConcurrentMultiUserModeEnabled.
      
      There must be no observable behavior change unless the above settings
      is enabled.
      
       [1]: I82cfc366b614d7e55a0f4fa11d5eaf5f0f8eb0a8
            1ec914a0
       [2]: Id624d577d941245cca944498dc6935eb364865cf
            1f9a3cbe
       [3]: I831502db502f4073c9c2f50ce7705a4e45e2e1e3
            ed20f8d750ef0b6347448265a14ef2a2c7e1af5c
       [4]: Ife93d909fb8a24471c425c903e2b7048826e17a3
            745e7bca8a622ffdf0d0a8e8e2485eab98182ede
       [5]: I6571d464a46453934f0a8f5e79018a67a9a3c845
            d0dbd81fe2cd34c9a83e2f5217374d3e1a79f950
       [6]: I871ccda787eb0f1099ba3574356c1da4b33681f3
            b21220ef
      
      Bug: 341558132
      Test: presubmit
      Flag: android.view.inputmethod.concurrent_input_methods
      Change-Id: I414a228e068fa53223234fe1db3e813474841604
      f7d90f36
    • Jay Sullivan's avatar
      Log callingUid from setUidMode · 5b0af123
      Jay Sullivan authored
      ...because for non-systemuid-sourced binder calls, the
      logged stack trace currently tells us basically nothing
      except that someone called AppOpsService::setUidMode.
      
      Change-Id: Ia107e8f70d9fb5c53a157b189050483eb45e8e70
      Bug: 341219398
      Test: presubmit
      5b0af123
  5. May 31, 2024
    • Veena Arvind's avatar
      Don't unlock other users if user 0 or parent user does not contain escrow data. · 9cb7c7af
      Veena Arvind authored
      Bug: 324085891
      Test: atest CtsResumeOnRebootHostTestCases \
      FrameworksServicesTests: RebootEscrowDataTest \
      FrameworksServicesTests: LockSettingsServiceTests \
      FrameworksServicesTests: RecoverySystemServiceTest \
      FrameworksServicesTests: RebootEscrowManagerTests \
      FrameworksServicesTests: RebootEscrowProviderServerBasedImplTests
      Change-Id: Ibba55830bb3168d312d3f92094d7a266931439e6
      9cb7c7af
    • Priyanka Advani's avatar
      Revert "[CDM] Throw SecurityException when the caller can't acce..." · c9c5ea60
      Priyanka Advani authored
      Revert submission 27465408-rm-iae
      
      Reason for revert: Droidmonitor created revert due to b/343552834. Will be verifying through ABTD before submission.
      
      Reverted changes: /q/submissionid:27465408-rm-iae
      
      Change-Id: I6380ab0b29bf2b4d8a3af0df36c645ea547ee480
      c9c5ea60
Loading