Skip to content
Snippets Groups Projects
  1. Jan 25, 2024
    • Ihor Ivanov's avatar
      camera2: Add methods for backward compatibility · 87bdb2c3
      Ihor Ivanov authored and Dhina17's avatar Dhina17 committed
      
      libmcf-jni.so library (which is proprietary blob required
      for MotCamera2) looks for methods with these exact signatures,
      but signatures of these methods was changed in Android 11.
      
      This change returns these methods that makes MotCamera2
      fully-functional on Android 11.
      
      Change-Id: Ib9a701f6d8ebb783c52666e34e7539faba5cb99f
      Signed-off-by: default avatarIhor Ivanov <toulmee@gmail.com>
      87bdb2c3
    • Vache's avatar
      AudioService: Remove Analog Dock from fixed-volume devices · 621b61f3
      Vache authored and Dhina17's avatar Dhina17 committed
      * Many devices identifying as "Analog Docks" have not built in volume controls
        and rely on software volume (See: All Motorola Mods, older 3.5mm docks,
        etc.)
      
      Change-Id: Ie9b97c7b17b882a5d804db398d149bd777ccf5a4
      (cherry picked from commit 24ce6c3ea58f339cc8a537205e30d2516d2b073b)
      (cherry picked from commit a6eff9c92353cd74ebae12cc82840d1356844980)
      621b61f3
    • Vache's avatar
      BatteryService: Add support for battery Moto Mods · c41f1690
      Vache authored and Dhina17's avatar Dhina17 committed
      Squash of:
      
      Author: Vachounet <vachounet@live.fr>
      Date:   Thu May 8 14:16:54 2019 +0200
          BatteryService: Add support for battery Moto Mods
      
          * This relies on the prebuilt Moto Health service being
            included device side.
      
          Reference: I48803eeb72499fe8459805f6ef80ef5f868f431e
          Change-Id: I41a4d5fdeb5e1f2ad7838851ad0815cef7d72980
      
      Author: LuK1337 <priv.luk@gmail.com>
      Date:   Tue Mar 2 12:47:51 2021 +0100
          BatteryManager: Mark battery moto mods constants as hidden
      
          Change-Id: I095a646d78c718df14cd8cd4fcde848ae3ba01df
      
      Author: Ali B <abittin@gmail.com>
      Date:   Tues Mar 2 17:40:53 2021 +0300
      BatteryService: Mod: Check against all conditions
      
          * Change logical operators from `||` to ~&&` to achieve this.
          * Additionally, change to using supplementalOrEmergencyModOnline()
            to avoid duplicating logic.
      
          * This fixes battery power saver mode on some devices that were
            effected by the initial Battery mod commit.
      
          Change-Id: I9b2bfa26ab0c204f7a42ba6010f1f569fa7b0fd8
      
      Author:     Michael Bestas <mkbestas@lineageos.org>
      AuthorDate: 2023-07-11 00:38:16 +0200
      fixup! BatteryService: Add support for battery Moto Mods
      
          Change-Id: If1171bd9ec8972a489db0540889690ae4f9a5d3b
      
      Change-Id: Ic4017dd7946ffcf4ab874131240136c07f3f063b
      (cherry picked from commit 619042ec7eda1d8c8392246b91398b790c8b1b56)
      c41f1690
    • Kishan Dudhatra's avatar
      Report success on every fingerprint removal · 12c14395
      Kishan Dudhatra authored and Dhina17's avatar Dhina17 committed
      The Fingerprint HAL is not always reporting fingerprint removal success,
      so report success on fingerprint removal if no error has occurred.
      
      Change-Id: I28fe2767ecffc9a830a91f2a1f262fbeaac73a1a
      (cherry picked from commit 19642c74c69a33d0edd72356e46b7d7e85ac6af9)
      12c14395
    • LuK1337's avatar
      AutofillManager: Make userdebug default to NO_LOGGING · 7301ba1d
      LuK1337 authored and Dhina17's avatar Dhina17 committed
      Change-Id: I69b9eb04afc16a3a5acbea8cd26b9f1c42a03d4c
      7301ba1d
    • Luca Stefani's avatar
      core: pm: Allow wildcard in RRO system property value checks · 95b5de33
      Luca Stefani authored and Dhina17's avatar Dhina17 committed
      * We have RRO's that should enable regardless of what the target
        property is set to (e.g. `ro.com.google.gmsversion`).
      
      Change-Id: I58e4b4d80f89990e9d6dc8c7d6786f807d98e271
      95b5de33
    • Luca Stefani's avatar
      core: pm: Use checkRequiredSystemProperties from FrameworkParsingPackageUtils · 01f9cacf
      Luca Stefani authored and Dhina17's avatar Dhina17 committed
      The code in FrameworkParsingPackageUtils was added in efbb3196 and
      copied from ParsingPackageUtils in services.jar
      
      At that point in time there was already a duplicated implementation but
      in 2 different jars, but after that change they now both live in framework.jar
      
      Let's migrate to the FrameworkParsingPackageUtils implementation
      as that's already used elsewhere in framework.jar
      
      Test: m, refactoring
      Change-Id: Icd816d59fbe9d0070167c526e52c3b4e172f412b
      01f9cacf
    • Nick's avatar
      SystemUI: fix missing rotate suggestion in 2 button nav mode · 021c8297
      Nick authored and Dhina17's avatar Dhina17 committed
      "contextual", "menu_ime" and "right", we get three different variants
      for one and the same thing. Or well, that's how it was, until Google
      decided to break it. "contextual", which was used for 2-button nav due
      to a Google change, now contains the floating rotation button, but the
      code expects the in-navbar rotation button (and that makes more sense
      too). This was broken by a more or less recent Google commit moving the
      floating rotation button handler to Launcher3 for taskbar. Manually
      changing this to "menu_ime" in this overlay however gets 2-button nav
      back on track.
      Accessibility button, rotation suggestion button, IME switcher and menu
      button (with extra downstream commit that returns support for this) now
      work in 2-button again.
      
      Thanks to SirRGB for bringing this issue to my attention.
      
      Change-Id: I0a09ec0aa8b7dbfef02d1aaf0dedd2128156a6e7
      021c8297
    • Nick's avatar
      SystemUI: show ime switcher + cursor keys if we have space · 20131890
      Nick authored and Dhina17's avatar Dhina17 committed
      Change-Id: I930d9dcb23756aafbf9048066455b5fc5a280e17
      20131890
    • Nick's avatar
      PhoneWindowManager: only handle long press on back key if using it · 961bf332
      Nick authored and Dhina17's avatar Dhina17 committed
      Apps can handle long press back
      
      Test: CtsViewTestCases android.view.cts.LongPressBackTest#testAppIsNotDismissed
      Change-Id: I8c71a0282d98efd2ce69f5ea301f93833733ffae
      961bf332
    • LuK1337's avatar
      VolumeDialogImpl: Add STREAM_NOTIFICATION row · 52621aaf
      LuK1337 authored and Dhina17's avatar Dhina17 committed
      Change-Id: Ia851c70871ef561398203b358e8c4b32995f30cd
      52621aaf
    • Nick's avatar
      SystemUI: Enable cast tile without Wi-Fi connection · 91dd8def
      Nick authored and Dhina17's avatar Dhina17 committed
      * Match Settings behaviour
      * Miracast does not need Wi-Fi connection, it's Wi-Fi Direct
      
      Change-Id: I46c1394f35f993875beaaad547c9709a4355a342
      91dd8def
    • ganeshi4u's avatar
      SystemUI: screenshot: Add delete action chip intent · f7adbc30
      ganeshi4u authored and Dhina17's avatar Dhina17 committed
      
      [ghostrider-reborn] updated to android 12, 13
      
      Co-authored-by: default avatarAdithya R <gh0strider.2k18.reborn@gmail.com>
      Change-Id: Ia55ac91c2db2f44062674a699f8df63c96e1de5c
      f7adbc30
    • Weijie Wang's avatar
      SystemUI: Check whether the selected WFD route is available · 84379c8d
      Weijie Wang authored and Dhina17's avatar Dhina17 committed
      When the selected WFD route is not available, the cast tile in
      quick settings and the cast slot in the status bar are both shown
      as a connected icon, it is not reasonable. This CL checks whether
      the selected route is available when getting the cast devices.
      
      Bug: 247925238
      Test: Mannual
      Change-Id: Ifdbf4c61e95504ae7fc24933695e6fd348d75750
      84379c8d
    • Tommy Webb's avatar
      Fix multi-user silent notifications on lockscreen · 8f2f66da
      Tommy Webb authored and Dhina17's avatar Dhina17 committed
      Read the current user's setting for showing silent notifications
      on the lockscreen whenever user switching occurs. Otherwise, when
      switching to another user, the former user's setting will be in
      effect for the new user, which may cause silent notifications to
      be unexpectedly hidden or visible on the lockscreen.
      
      Change-Id: I65b10f82307cf8eecaafcd1a76ddb5f98bd7c326
      8f2f66da
    • Michael W's avatar
      SystemUI: SideFpsEventHandler: Don't crash without FingerprintManager · ac7cdb3a
      Michael W authored and Dhina17's avatar Dhina17 committed
      * On devices without FP, no FingerprintManager service is published
        resulting in a crash when accessing it
      * Since notifyPowerPressed is sent unconditionally, make sure we even
        have a FPS
      
      Change-Id: I74dbd6357aac4d3a0fb108018755b08968330156
      ac7cdb3a
    • Michael W's avatar
      SystemUI: Prevent NPE when checking for powerbutton FPS · aa818842
      Michael W authored and Dhina17's avatar Dhina17 committed
      * Without a fingerprint sensor at all we also have no access to a
        FingerprintManager, resulting in a NPE
      * Check the FingerprintManager before accessign it
      
      Change-Id: Ia5019524fdf195a9477392fc0264ead8d4d31994
      aa818842
    • Demon000's avatar
      DozeSensors: only use proximity sensor if supported · 8a2fac88
      Demon000 authored and Dhina17's avatar Dhina17 committed
      On msm-4.14 devices, when the proximity sensor is in use,
      the smp2p-sleepstate IRQ is fired multiple times a second,
      with each one holding a 200ms wakelock.
      This is probably a bug in the DSP firmware.
      To fix this, avoid using the proximity sensor in doze mode,
      because sleep is preferred to turning off the screen.
      
      Change-Id: I57750afd77267abdc49780f70636626d20e666ad
      8a2fac88
    • Sean McCreary's avatar
      InputDevices: Fix Hungarian language overlay · 0a31dea1
      Sean McCreary authored and Dhina17's avatar Dhina17 committed
      Correct mistake in keyboard_layout_hungarian.kcm:
      
          Shift + 1 -> '
      
      and add two missing combinations:
      
          AltGr + M -> <
          AltGr + . -> >
      
      Change-Id: I238cec3e23df36e054f35fb9a3847389fd844e6b
      0a31dea1
    • Sean McCreary's avatar
      MetaKeyKeyListener: Disable locking of toggled modifier keys · 9da8fe4d
      Sean McCreary authored and Dhina17's avatar Dhina17 committed
      Toggled (or 'sticky') modifier keys that lock when pressed twice
      cause unexpected behavior that confuses users. Shift is especially
      problematic, as there are three distinct Caps Lock states in
      Android: The Caps Lock key, Alt + Meta, and Shift pressed twice.
      Only the first illuminates the Caps Lock LED, and each can only be
      disabled by pressing the right key/combination again. This forces
      users to 'hunt' to find the right one, and pressing Alt twice will
      lock that modifier leading to yet more unexpected behavior...
      
      Get rid of locking for toggled modifier keys to improve this mess.
      
      Change-Id: I94de5d8d051b2d518457a1a44c9ee939508b9abb
      9da8fe4d
    • Michael W's avatar
      SystemUI: Make battery clickable again · e6eee43a
      Michael W authored and Dhina17's avatar Dhina17 committed
      Change-Id: I66751353944b4cf8a5b5827c3ce53129ec84f1e7
      e6eee43a
    • kyasu's avatar
      PhoneWindowManager: Fix wakeup and long-press actions of assistant key · 1752d190
      kyasu authored and Dhina17's avatar Dhina17 committed
      Added wakeup action and moved long-press action from
      interceptKeyBeforeQueueing to interceptKeyBeforeDispatching
      to handle long-press events.
      
      Change-Id: I77c8093db0e1a9a3b544723302a13df7bf199ba1
      1752d190
    • Aayush Gupta's avatar
      Settings: Add package name to installed app details [2/2] · 077b73d1
      Aayush Gupta authored and Dhina17's avatar Dhina17 committed
      
      Change-Id: I71d9379f9bfdce9efaec1e431a58daeb705d142b
      Signed-off-by: default avatarAayush Gupta <aayushgupta219@gmail.com>
      077b73d1
    • Tommy Webb's avatar
      SystemUI: React to PrivacyConfig changes properly · fa15ba61
      Tommy Webb authored and Dhina17's avatar Dhina17 committed
      Store normal callback references in PrivacyConfig, rather than
      WeakReference. This prevents the callbacks from becoming phantom
      reachable (finalized) shortly after SystemUI starts.
      
      Prior to this change, devices with an overlay config to enable location
      indicators may not properly utilize the indicator until the device is
      rebooted at least once after first install, if the garbage collector
      wins the race and finalizes the necessary PrivacyConfig callback.
      
      Test: Manual: Boot and unlock a device and wait about a minute for it
      to settle. Run `adb shell "dumpsys activity service \
      com.android.systemui | grep locationAvailable"`. It will return two
      results with matching values. Then, run `adb shell cmd device_config \
      put privacy location_indicators_enabled false` (or `true`; whichever
      does not match the value seen earlier) to change the values. Finally,
      run the first adb command again to verify that both of the values for
      locationAvailable match and reflect the newly-specified value.
      
      Issue: calyxos#1648
      Change-Id: I4ee1d5054a8bb294cea267034169c6615490a735
      fa15ba61
    • Tommy Webb's avatar
      JobScheduler: Respect allow-in-power-save perm · 48b78a05
      Tommy Webb authored and Dhina17's avatar Dhina17 committed
      Apps like Messaging may be allowlisted to be unaffected by doze mode
      using the allow-in-power-save permission, but prior to this change,
      their jobs are still restricted from running when the device is idle,
      leading to delayed processing. On the other hand, jobs scheduled by
      packages that are user-exempted via the "Unrestricted" app battery
      usage option do not experience such delays. This change causes system-
      exempted packages to be treated the same as user-exempted packages.
      
      Issue: calyxos#1525
      Bug: 223643513
      Test: CtsJobSchedulerTestCases
      Change-Id: I6d95b3940e536e93aae4b2b48706069e964bdb99
      48b78a05
    • Oliver Scott's avatar
      Increase maximum password length to 64 · 6831be6c
      Oliver Scott authored and Dhina17's avatar Dhina17 committed
      Change-Id: I9570db3ecb4e160eb759d48ae1c4aa70436b624f
      6831be6c
    • Michael Bestas's avatar
      SystemUI: Respect single-touch wakeup setting on rear & front fps devices · 9b04754c
      Michael Bestas authored and Dhina17's avatar Dhina17 committed
      Change-Id: I8c279d5c9ccb2298e84a0af18758c3604a70d9d7
      9b04754c
    • Adithya R's avatar
      SystemUI: Add FingerprintInteractiveToAuthProvider implementation · 170018fc
      Adithya R authored and Dhina17's avatar Dhina17 committed
      This is required for the "touch to unlock anytime" setting on devices
      with side mounted fingerprint sensor.
      
      Ref: 66a048d6
      
      Change-Id: If3308860a428d9966f2b0a0024764df95f8f9a8b
      170018fc
    • LuK1337's avatar
      SystemUI: Don't require AOD for screen off UDFPS · cd3c656c
      LuK1337 authored and Dhina17's avatar Dhina17 committed
      Change-Id: I47eceb1e99146c6793f9bd4e3b86d4f6878a11eb
      cd3c656c
    • Ido Ben-Hur's avatar
      SystemUI: DreamTile: Enable for everyone · eab563fd
      Ido Ben-Hur authored and Dhina17's avatar Dhina17 committed
      We all have dreams, thank you.
      
      Change-Id: I392b833f8a8617165aae8a8e96a5d552a0b249e6
      eab563fd
    • SagarMakhar's avatar
      Apply monet to fingerprint authentication ripple animation · 6bd70b31
      SagarMakhar authored and Dhina17's avatar Dhina17 committed
      Change-Id: I15d0f9fee13647062c651219b527e01a539b6909
      6bd70b31
    • mydongistiny's avatar
      SystemUI: Update string for add tiles with one click · e55ef951
      mydongistiny authored and Dhina17's avatar Dhina17 committed
      The QS panel explains how to add/remove tiles, however after
      'SystemUI: Allow user to add/remove QS with one click' the
      description is wrong. Update the string to suggest both ways.
      
      Change-Id: I2912e9254f9ed14436119addc913fe9907dc7f4e
      e55ef951
    • Andrzej Ressel's avatar
      SystemUI: Allow user to add/remove QS with one click · c6481b66
      Andrzej Ressel authored and Dhina17's avatar Dhina17 committed
      Change-Id: Ied86dcfb6179d936786273867a50610900f1c5e5
      c6481b66
    • Ido Ben-Hur's avatar
      SystemUI: Fix uneven DND icon padding in status bar · d903c00c
      Ido Ben-Hur authored and Dhina17's avatar Dhina17 committed
      Change-Id: I8f7f88d6451371458632b7949ef74bedbeccbaf8
      d903c00c
    • Michael Bestas's avatar
      GnssLocationProvider: Implement xtra-daemon toggle · c4da8040
      Michael Bestas authored and Dhina17's avatar Dhina17 committed
      Emergency location is handled through emergencyCallCallback
      that calls reloadGpsProperties() which in turn runs toggleXtraDaemon()
      before and after the emergency call
      
      Change-Id: I96dd4504f597ed71693c04d9d1806de1c1b73c38
      c4da8040
    • Michael Bestas's avatar
      GnssLocationProvider: Implement PSDS periodic download toggle · 31e0947b
      Michael Bestas authored and Dhina17's avatar Dhina17 committed
      It can be toggled using the existing Assisted GPS setting
      to avoid user confusion.
      
      Change-Id: Ic4c551d1726eac540e47faf214a963ec2adbf7f3
      31e0947b
    • Chirayu Desai's avatar
      GnssLocationProvider: Disable AGPS by default, it'll be enabled in SetupWizard · 65d42c24
      Chirayu Desai authored and Dhina17's avatar Dhina17 committed
      * This way the user can choose to turn it off, and it'll
        never have been enabled
      * If they just keep it as the default (toggle will be on in SuW),
        then it'll be enabled, which is the default we want
      
      Change-Id: I878200a0351d0b0018a975e432602de2badc4eef
      65d42c24
    • Chirayu Desai's avatar
      Ignore AGPS toggle during user-initiated emergency calls · c08f4140
      Chirayu Desai authored and Dhina17's avatar Dhina17 committed
      * The location toggle itself is already ignored during
        emergency calls.
      * Also ignore the AGPS toggle during that to not
        change behavior around emergency calls, we never
        want to affect those, because life is everything.
      
      Issue: calyxos#1490
      Change-Id: Iab13be99ccd65e0fdabcb67a25d73944ef24556a
      c08f4140
    • Tommy Webb's avatar
      Remove sensitive info from SUPL requests · 5c91efdd
      Tommy Webb authored and Dhina17's avatar Dhina17 committed
      
      Except in case of emergency, do not include sensitive subscriber
      information in SUPL requests (A-GPS).
      
      Issue: calyxos#618
      Co-Authored-By: default avatarMSe1969 <mse1969@posteo.de>
      Co-Authored-By: default avatarMichael Bestas <mkbestas@gmail.com>
      Change-Id: I9f372cfcf02d3b768bd5cf1de220eea1fe8c1dbb
      5c91efdd
    • Tommy Webb's avatar
      Fix stuck screen from display change timeout · f4040667
      Tommy Webb authored and Dhina17's avatar Dhina17 committed
      Occasionally, a remote display change is not processed within the
      timeout period. One prominent example is when a device is not able
      to complete its rotation from landscape back to portrait in time after
      the display is turned off. When this happens, and the callback is
      called after the timeout instead, DisplayContent.sendNewConfiguration
      abandons its effort when it sees there are pending display changes, but
      this callback itself might be the pending display change, and it does
      not expect itself to be included as part of this decision. Remove all
      callbacks before calling the last one to prevent this.
      
      Test: Manual: Build and run with REMOTE_DISPLAY_CHANGE_TIMEOUT_MS = 50,
      or some other low value. Enter landscape mode, e.g. by playing a video.
      Turn off the screen. Wait 3 seconds. Turn the screen back on. The lock
      screen will appear as normal. Previously, the screen would remain
      black until a restart or `adb shell wm` change interaction.
      
      Issue: calyxos#1392
      Change-Id: I53659d5580cdd70b4c7138dcca770b11f5397194
      f4040667
Loading