Skip to content
Snippets Groups Projects
  1. May 21, 2024
  2. May 18, 2024
    • Dhina17's avatar
      SystemUI: tuner: Migrate to M3 switch · d3282d18
      Dhina17 authored and Dhina17's avatar Dhina17 committed
      Tuners are being used within the settings so the switch style
      should match with the settings.
      
      Change-Id: I27fe9aae965b0d748981f18f914ab52530337ca5
      d3282d18
    • Nick's avatar
      fixup! SystemUI: tuner: navbar tuner refresh · 6112aca9
      Nick authored
      Change-Id: I82aaa8d5d44e5acecdd83947b31222f3d47ba5e9
      6112aca9
    • Dmitry Muhomor's avatar
      fix DevicePolicyManager#logoutUser() never succeeding · 1bf34183
      Dmitry Muhomor authored and Nick's avatar Nick committed
      To succeed, userId to switch to needs to be set with setLogoutUserIdLocked(), but this is not done
      in both callers of this method (both of which are "End session" buttons), making them no-ops.
      
      Change-Id: I47126611632f625edf49c0818df64e7b3e6a578e
      1bf34183
    • Dmitry Muhomor's avatar
      appops: skip ops for invalid null package during state serialization · 1665e92d
      Dmitry Muhomor authored and Nick's avatar Nick committed
      There's a bug that leads to construction of ops for invalid null package name.
      Package name should always be non-null, it's defined and treated as such in AppOpsService.
      It being null leads to crashes in system_server when appops state is serialized.
      
      Previous commit reverted a buggy workaround for this bug, add a new workaround to prevent these
      crashes.
      
      Change-Id: I5262a347adebf73167e63a5314ca0941d8e39e2c
      1665e92d
    • Dmitry Muhomor's avatar
      Revert "Null safe package name in AppOps writeState" · d2431210
      Dmitry Muhomor authored and Nick's avatar Nick committed
      This reverts commit 0b925d4f.
      
      Reverted commit introduced a bug:
      it skipped the "pkg" tag for ops with null package name.
      This meant that ops with null package name were serialized differently than ops with non-null
      package name.
      Tag hierarchy became the following:
      for non-null package name ops: "pkg" -> "uid" -> "op" -> "st"
      for null package name ops: "uid" -> "op" -> "st"
      
      Uid ops have the same first two tags as null package name ops started to have:
      "uid" -> "op". (refer to the loop over uidStatesClone elements above).
      
      This led to type confusion during deserialization that happens in readState():
      null package name ops were deserialized as uid ops, through readUidOps() instead of through
      readPackage().
      
      Uid ops are serialized differently than uid element inside package ops, specifically the latter
      skips the op mode ("m") attribute when the op mode is at its default value.
      
      Op mode attribute is read unconditionally in readUidOps(), which led to
      XmlPullParserException: Missing attribute "m"
      exception.
      
      This exception is caught in readState(), and is handled by discarding all deserialized state,
      which meant that all appops got reset to their default values.
      
      Subsequent commit adds skipping of ops with null package name during serialization:
      they are invalid, package name is defined and treated as @NonNull in multiple places.
      Such ops are being constructed due to another bug.
      
      Change-Id: I8b13b8f0979a6daff2db33a1b8e8544dd9e8e531
      d2431210
    • Ido Ben-Hur's avatar
      SystemUI: Nuke oriented navbar handle · 6825f9f0
      Ido Ben-Hur authored and Abdulwahab Isam's avatar Abdulwahab Isam committed
      AKA fake navbar
      AGAIN!!! For the 3rd time. This ain't working dear google.
      Not even getting better with their attempts.
      I gave up hope on this, I don't see it ever coming back.
      Adapted (lazily) to A13, A14
      
      Includes but not limited to these reverts (much code changed to make it work properly):
      
      Revert "Prevent secondary home handle from handling touches"
      
      This reverts commit d05ad989.
      
      Revert "Sample region under secondary home handle"
      
      This reverts commit d2fe92fb.
      
      Revert "Add ID to secondaryOrientationHandle for tests"
      
      This reverts commit 83308950.
      
      Revert "Show secondary home handle in immersive apps"
      
      This reverts commit 9c84ea1f.
      
      Revert "Draw a fake home handle during QuickSwitch"
      
      This reverts commit 63e92bc0.
      
      Revert "Draw a fake home handle during QuickSwitch"
      
      This reverts commit 63e92bc0.
      
      Change-Id: I8e632bb640678bc28eff2b3bfb0a869dd7b31c0c
      6825f9f0
  3. May 17, 2024
  4. May 13, 2024
    • Nick's avatar
      Power menu styles: Initial checkin for U [1/3] · fa3d4038
      Nick authored and Dhina17's avatar Dhina17 committed
      2024/05/07 - ikeramat & dhina17: port to u-qpr2
      
      Squashed:
      - SystemUI: power menu styles refresh
      
      Change-Id: I8e4a29ab0f65e3051b898e49e96ed0b2ef43acca
      fa3d4038
    • Nick's avatar
      Revert "Controls in QS" · 9f13b931
      Nick authored and Dhina17's avatar Dhina17 committed
      This partially reverts commit ffb1601d.
      
      This revert does keep Controls in QS 100% intact, but it allows the
      power menu to have controls as well. You can even have both, if you
      want.
      
      2022/11/05 - nift4: port to T
      2023/01/20 - nift4: QPR rebase
      		    trick for future rebases: for i in packages/SystemUI/res/values-*/strings.xml; do git show de1606e3:$i | grep quick_controls_subtitle && sed -i "s#</resources>#$(git show de1606e3:$i | grep quick_controls_subtitle)\n</resources>#g" $i; done
      2024/04/30 - ikeramat: port to u-qpr2
      
      Change-Id: I384b9fe5ed0422a5ec2abcedaf624252f72e19fd
      9f13b931
    • Nick's avatar
      Revert "Remove "Device Controls" from Settings" · 0383dbd6
      Nick authored and Dhina17's avatar Dhina17 committed
      This reverts commit 73702413.
      
      Change-Id: Idc55a0515983652fff1f68cd6503f46c607591cd
      0383dbd6
    • Michael W's avatar
      EasterEgg: Fix some warnings · dd910f72
      Michael W authored and Dhina17's avatar Dhina17 committed
      
      * Replace deprecated methods with the ones the android doc recommends
        as a replacement
      
      Change-Id: I1be5ba74da6f9a8e68bed4a0478675f90c9c28c6
      Signed-off-by: default avatarJoey Huab <joey@evolution-x.org>
      dd910f72
    • PainKiller3's avatar
      neko/Cat: Mark FLAG_IMMUTABLE PendingIntent with FLAG_MUTABLE · 88e552c4
      PainKiller3 authored and Dhina17's avatar Dhina17 committed
      
      * Fixes device control crash when interacting with cat control
      
      stacktrace: java.lang.RuntimeException: java.lang.IllegalArgumentException: 0|com.android.egg|1|com.android.egg.neko:allcats|10100 Not posted. PendingIntents attached to bubbles must be mutable
      	at android.app.job.JobServiceEngine$JobHandler.handleMessage(JobServiceEngine.java:109)
      	at android.os.Handler.dispatchMessage(Handler.java:106)
      	at android.os.Looper.loopOnce(Looper.java:201)
      	at android.os.Looper.loop(Looper.java:288)
      	at android.app.ActivityThread.main(ActivityThread.java:7837)
      	at java.lang.reflect.Method.invoke(Native Method)
      	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
      	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
      
      Change-Id: I1e755ce8a38cfefb1474bbfefd307767a436e9d0
      Signed-off-by: default avatarPainKiller3 <ninadpatil100@gmail.com>
      88e552c4
    • Nick's avatar
      EasterEgg: allow using toy without unlocking · d87813a7
      Nick authored and Dhina17's avatar Dhina17 committed
      * useful to test proper operation of home controls modifications
      * easier than buying an smart home :)
      
      Change-Id: I7fb23089611be6d50f252e2d8f6c1d1bba202cb6
      d87813a7
  5. May 09, 2024
  6. Apr 27, 2024
  7. Apr 23, 2024
    • danielml's avatar
      VolumeDialogImpl: Handle cases where media controller is not available · 61c0115f
      danielml authored and Dhina17's avatar Dhina17 committed
      
      As of QPR2, we can't crate a media output dialog with empty package
      name unless the use_media_router2_for_info_media_manager flag is
      enabled.
      
      When the flag is enabled, we can always show the dialog by passing
      the actual package name, or null if the media controller is not
      available.
      
      If the flag is disabled, we can only show the dialog if the media
      controller is available.
      
      Change-Id: Ic8d08905bf55be91b547708b316ef7c96c81c492
      Signed-off-by: default avatardanielml <daniel@danielml.dev>
      61c0115f
  8. Apr 20, 2024
    • Nick's avatar
      SystemUI: Enable fading squiggle animation of qs media player · cec5b727
      Nick authored and Dhina17's avatar Dhina17 committed
      - fixes the line having different curves between played and unplayed section
      - before https://imgur.com/a/vn4smvb
      - after https://imgur.com/a/7rL4jV6
      
      Change-Id: I2d2522c66341662eff74eb7d3686be7aa6e7ac5c
      cec5b727
    • Dhina17's avatar
      SystemUI: Add settings for pulse light face down [2/3] · 344ab6fd
      Dhina17 authored and Dhina17's avatar Dhina17 committed
      Change-Id: I185d828abe000bcf9d4ce3a0b79b35c7726f9d69
      344ab6fd
    • Nick's avatar
      wm: hacky fix for system_server crash · 8c0b6863
      Nick authored and Mohammad Hasan Keramat J's avatar Mohammad Hasan Keramat J committed
      When opening pre-Nougat app that did not specify resizable attribute
      (pre Nougat era) and also is forced to portrait orientation in
      freeform and then resizing its window, system_server will crash due to
      invalid resize. To avoid whole device going down, we just catch the
      crash - app will stop working (window will be empty), BUT this is a much
      better thing to have than whole device crashing. This fix is even more
      needed because since Android 13, Google saves freeform bounds, which
      means when you reopen the unresizable app, it will instantly crash
      system_server again and you cannot ever again use this app in freeform
      without factory reset.
      
      The proper fix is to enable force resizable in developer settings, or
      asking the app devs to fix it (by making the app resizable). Further
      Framework-side fixes for this should be done by AOSP.
      
      Change-Id: I40d48c0caa9c376160f427d27260bd6bd5f66978
      8c0b6863
    • Dhina17's avatar
      WindowDecor: Pass correct displayId for back key event · 494a2250
      Dhina17 authored and Mohammad Hasan Keramat J's avatar Mohammad Hasan Keramat J committed
      TaskOperations object is being created with default display context
      so it will provide the default display id only.
      It causes that back button is not working on external displays.
      
      Change-Id: Ia4772e898dda20fb16ae85f2b2652a17924e9a7c
      494a2250
    • Dhina17's avatar
      WindowDecor: Always show caption bar in external displays · a301b810
      Dhina17 authored and Mohammad Hasan Keramat J's avatar Mohammad Hasan Keramat J committed
      In desktop mode, status bar won't be shown there.
      so we don't have to bother about caption bar visibility
      based on status bar (immersive mode) there.
      
      Change-Id: I418c44cec81a7f939a617adfc22044c3aa6cf4b2
      a301b810
    • Nick's avatar
      wm: do not show keyguard windows when mirroring due to dream · becfe1bd
      Nick authored and Mohammad Hasan Keramat J's avatar Mohammad Hasan Keramat J committed
      Also process default display first, because it needs to be first for
      logic to work. Fixes multi display dreaming.
      
      Change-Id: Ic2f9f48f21099de43d1067100c84f1f266175e8a
      becfe1bd
Loading