Skip to content
Snippets Groups Projects
  1. Jun 09, 2024
    • luka177's avatar
      UEventObserver: ignore uevents without name · ca6b5bb8
      luka177 authored and Erfan Abdi's avatar Erfan Abdi committed
      * Fix for NPE on broken uevents causing soft reboot
      
      E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: UEventObserver
      E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
      E AndroidRuntime:   at com.android.server.policy.PhoneWindowManager$HdmiVideoExtconUEventObserver.parseState(PhoneWindowManager.java:7667)
      E AndroidRuntime:   at com.android.server.policy.PhoneWindowManager$HdmiVideoExtconUEventObserver.parseState(PhoneWindowManager.java:7633)
      E AndroidRuntime:   at com.android.server.ExtconStateObserver.onUEvent(ExtconStateObserver.java:56)
      E AndroidRuntime:   at com.android.server.ExtconUEventObserver.onUEvent(ExtconUEventObserver.java:63)
      E AndroidRuntime:   at android.os.UEventObserver$UEventThread.sendEvent(UEventObserver.java:217)
      
      Change-Id: I17711b0af41f4e7cd2ad57d242e1bdd209635622
      ca6b5bb8
  2. Jun 07, 2024
  3. Jun 03, 2024
  4. May 23, 2024
  5. May 21, 2024
  6. 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
  7. May 17, 2024
  8. 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
  9. May 09, 2024
  10. Apr 27, 2024
  11. 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
Loading