Commit Graph

57423 Commits

Author SHA1 Message Date
Pranav Vashi
8e2fa0fe26 Settings: Check GSA package too for CTS availability
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:32 +09:00
flakeforever
3edcf6f6c6 Settings: bluetooth: Fix generateSummary out-of-bounds 2025-12-10 00:41:32 +09:00
andy
96d8d44bcd Settings: Improve RAM summary for devices >12GB of RAM
* settings: Improve RAM summary formatting to show one decimal place

* settings: Update RAM formatting to use gigabytes with no decimal places + base 10 units for closer accuracy to advertised RAM sizes
2025-12-10 00:41:32 +09:00
Pranav Vashi
b52dea13a3 Settings: Prevent Wifi Tethering NPE
Log:

time: 1740837422345
msg: java.lang.NullPointerException: Attempt to read from field 'java.lang.String[] android.net.TetheringConfigurationParcel.tetherableWifiRegexs' on a null object reference in method 'java.lang.String[] android.net.TetheringManager.getTetherableWifiRegexs()'
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$WifiTetherSettingsActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String[] android.net.TetheringConfigurationParcel.tetherableWifiRegexs' on a null object reference in method 'java.lang.String[] android.net.TetheringManager.getTetherableWifiRegexs()'
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4129)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4316)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
	at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
	at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2719)
	at android.os.Handler.dispatchMessage(Handler.java:109)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8787)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)
Caused by: java.lang.NullPointerException: Attempt to read from field 'java.lang.String[] android.net.TetheringConfigurationParcel.tetherableWifiRegexs' on a null object reference in method 'java.lang.String[] android.net.TetheringManager.getTetherableWifiRegexs()'
	at android.net.TetheringManager.getTetherableWifiRegexs(TetheringManager.java:1637)
	at com.android.settings.wifi.tether.WifiTetherBasePreferenceController.<init>(WifiTetherBasePreferenceController.java:50)
	at com.android.settings.wifi.tether.WifiTetherSSIDPreferenceController.<init>(WifiTetherSSIDPreferenceController.java:59)
	at com.android.settings.wifi.tether.WifiTetherSettings.buildPreferenceControllers(WifiTetherSettings.java:295)
	at com.android.settings.wifi.tether.WifiTetherSettings.createPreferenceControllers(WifiTetherSettings.java:289)
	at com.android.settings.dashboard.DashboardFragment.onAttach(DashboardFragment.java:127)
	at com.android.settings.wifi.tether.WifiTetherSettings.onAttach(WifiTetherSettings.java:206)
	at androidx.fragment.app.Fragment.performAttach(Fragment.java:3075)
	at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:510)
	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:279)
	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2211)
	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2106)
	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2049)
	at androidx.fragment.app.FragmentManager.executePendingTransactions(FragmentManager.java:779)
	at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:723)
	at com.android.settings.SettingsActivity.launchSettingFragment(SettingsActivity.java:515)
	at com.android.settings.SettingsActivity.createUiFromIntent(SettingsActivity.java:324)
	at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:283)
	at android.app.Activity.performCreate(Activity.java:9019)
	at android.app.Activity.performCreate(Activity.java:8997)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1532)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4111)
	... 13 more

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:32 +09:00
minaripenguin
5e2c84d01b colors: Introduce Reality display engine [2/2]
Change-Id: Ib565b3ffaa8a5f5832d5a620961abffd754e2dfc
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
2025-12-10 00:41:32 +09:00
ezio84
ec7587d465 Settings: Allow to quickly open Running Services from meminfo view
@/neobuddy89: Updated for A14.

Change-Id: I252ce85bda3daab5c5e4db097a6fd743365bc309
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:32 +09:00
Ido Ben-Hur
043f9a0bf6 Settings: Better check for GSA package
This fixes lens & CTS for vanilla users with full GSA installed.
While not enabling it for users who only have the stub.
Check if the activity exists to achieve that.

Same as we do in L3, see: cd4c6afd5b

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:32 +09:00
Ido Ben-Hur
d1797ce890 Settings: Add Circle To Search [2/2]
Requires framework overlays:

<string name="config_defaultContextualSearchPackageName" translatable="false">com.google.android.googlequicksearchbox</string>

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:32 +09:00
Ido Ben-Hur
bacd39318a Settings: Add a toggle for long press on navbar to search [3/3]
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:32 +09:00
Joey Huab
63f5ca31b5 Settings: Modernize dev option insults 2025-12-10 00:41:32 +09:00
Pranav Vashi
30f2ddfaca Fix long click intent for Smart Pixels tile [2/2]
Change-Id: Id6b5fffd814f035be1bb75d1434456e0c02aa97f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:32 +09:00
Ido Ben-Hur
d071bfebf5 Settings: Move custom vib pattern to its own preference
Also improve the code while at it

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
3ee81b2fcb Settings: Follow new ringtone vibration patterns
For preview

See: 7b3ab13002
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
1ee5267d6d Settings: Preview ringtone vibration pattern
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
5c1cea77b5 Settings: Allow choosing a custom vibration pattern [3/3]
Change-Id: I574da771ae90321f65d8ffddecd59db430105bb2
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
9b3c789826 Settings: Add vibration patterns from OOS [3/3]
a rewrite of: c4560cafae

Change-Id: If5e776b622d603ed9c4022e23e6904b5c996e195
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:31 +09:00
Gao Honghua
b893ae175e Fix memory leak on wifi
Google: 3425623
Change-Id: I5cd3c427280ebb2e8ed1b18d39d1b29c962b7658
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2025-12-10 00:41:31 +09:00
minaripenguin
c51ca8b50f WifiTetherClientLimitPreference: Fix compilation 2025-12-10 00:41:31 +09:00
someone5678
5cfd1276c1 [TMP] Settings: Bluetooth: Don't check persistable uri permission for BtHelper
Change-Id: I392c70e04bdc64dba7f897cae2b124b195049af5
(cherry picked from commit f1074d6226820ec095abce89b7a387409e69d513)
2025-12-10 00:41:31 +09:00
maxwen
c86240f23b Settings: disable all bugreport settings
we dont need those

Change-Id: I7dd62da21e7a48b6a8182df60ac1a06461a1fa8e
Signed-off-by: rohan <purohit.rohan@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: Kunmun <kunmun.devroms@gmail.com>
2025-12-10 00:41:31 +09:00
someone5678
0876b26204 Settings: Use List Preference for Zen mode settings
Change-Id: Id737ab6469012fcc1fbfb5c5bd5112f6c55c0eeb
2025-12-10 00:41:31 +09:00
someone5678
6f6aa340cf Settings: Use List Preference for Dock speaker plays and Emergency tone
Change-Id: Ia899f2ba6d4663c2315ee35c093ca14cb26ae450
2025-12-10 00:41:31 +09:00
Joe Maples
42ab19853b Settings: Add developer setting to set the default GPU renderer.
This reverts commit 7c26e3388c.

DerpFest edit: Migrate to androidx

Change-Id: I3add320d15ee2dc9a22497e40687bc5e1781e043
Signed-off-by: NurKeinNeid <mralexman3000@gmail.com>
Signed-off-by: rezaadi0105 <rezaadipangestu5@gmail.com>
2025-12-10 00:41:31 +09:00
Omkar Chandorkar
d323251adf Settings: Disable financed lock
TODO: Find why DeviceLock APEX misbehaves and re-enable

Change-Id: I76b0738505c67432d1d93c4c03d5c782978a86ca
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:31 +09:00
ReallySnow
29c6ceba2b Settings: Make google's battery widget work
Change-Id: I763a3bdb7bc0385fce04fe2635f06e601f9557ab
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2025-12-10 00:41:31 +09:00
Adithya R
0ec57800a1 Settings: Show package name in app info header
Right below the icon and the app name

We won't show the version name there since it wouldn't be copy-able.

Change-Id: If301986194a609384af5519b5990e62a86e605d7
2025-12-10 00:41:31 +09:00
dragonGR
98fd92aa83 Settings: Address a memory leak
Change-Id: Icd72b0beef66c08a5d11e770c59eaebdb7977272
Signed-off-by: spezi77 <spezi7713@gmx.net>
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
61ad4824ce Settings: Introduce AutoDimService [2/2]
Exactly like AutoAODService but for REDUCE_BRIGHT_COLORS_ACTIVATED

Signed-off-by: mukesh22584 <mks22584@gmail.com>
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
2eec709cf1 Settings: Allow scheduling always on display [2/2]
* Squash of
  yaap/packages_apps_YASP@30441ec
  yaap/packages_apps_YASP@b896aa6
  yaap/packages_apps_YASP@f500a60

[jhonboy121]: adapted to A13 and use a preference controller to update the preference

Co-Authored-By: jhonboy121 <alfredmathew05@gmail.com>
Change-Id: If736f5609ca660e3c9797a309c814d2dcd618d31
2025-12-10 00:41:31 +09:00
Joey
f401bbc5ad Settings: Add a preference controller for Volume steps settings
* Enable volume steps pref by default
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
f7df878d2f Settings: Allow customizing volume stream steps [2/2]
only media, calls and alarms seem fit
the rest are pretty much set and forget and don't need vol button granularity

Change-Id: I6ce6fa79df7b94ae84912945f6129048895067b2
2025-12-10 00:41:31 +09:00
Quick
1201585298 Settings: Add PixelLauncher to allowlist for settings search
* Adapt to kotlin.

Co-authored-by: Joey Huab <joey@evolution-x.org>
2025-12-10 00:41:31 +09:00
aswin7469
1a26a26df3 Settings: gestures: Enable Cycle through ringer modes for all
* why should oplus have all the fun

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2025-12-10 00:41:31 +09:00
rituj
9fab4f5616 Settings: Add option to cycle through ringer modes [2/2]
* @mickaelmendes50 : Adapt to Android 12, 13

Signed-off-by: rituj <ritujbeniwal@gmail.com>
Change-Id: If4a387a9f8a465d33b25b87b0360fa20f1cee7de
2025-12-10 00:41:31 +09:00
Ido Ben-Hur
9ae7f8fe5f Settings: Export an activity for private DNS settings
For the DNS tile long press intent in base
2025-12-10 00:41:30 +09:00
Ido Ben-Hur
6b5f34599b Settings: Allow disabling private DNS for VPN [2/2]
Allows using the VPN's DNS instead of the set private DNS
Automatically restores the previous set mode

Change-Id: Ib7d91bf151ed593648357c1d7e4013d309e2d927
2025-12-10 00:41:30 +09:00
Anushek Prasal
7340e8ed75 Settings: Change back gesture height intervals
Signed-off-by: Anushek Prasal <anushekprasal@gmail.com>
2025-12-10 00:41:30 +09:00
maxwen
86d9f8c549 Allow changing back gesture height [2/2]
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
Danny Baumann
ee39140069 Settings: Add back increasing ring feature (2/3)
This is a squash of the following commits:

Author: Danny Baumann <dannybaumann@web.de>
Date:   Tue Nov 11 13:14:07 2014 +0100

    Add back increasing ring feature (2/3).

    Change-Id: Iafc79a57651db327a100e0f1723b62f442b638be

Author: Danny Baumann <dannybaumann@web.de>
Date:   Mon Nov 24 13:05:39 2014 +0100

    Fix NPE.

    When entering the notification prefs sub activity without the increasing
    ring pref being visible and leaving it right away, onActivityStop()
    threw an NPE because the handler wasn't yet constructed.

    Change-Id: Ia4291d8ac3d1dbf76d432db7e0e973844163c4ae

Author: Danny Baumann <dannybaumann@web.de>
Date:   Fri May 29 08:48:46 2015 +0200

    Fix up increasing ring tone volume preview behaviour.

    Change-Id: Ibe7fdf1ee7f0aa1c7c76052df69fa92e8b6a2ffd

Author: Keith Mok <kmok@cyngn.com>
Date:   Tue Jul 12 09:45:45 2016 -0700

    Settings: Always set ramp-up time value during bindView

    onProgressChange is not always called if we set the
    ramp up time to 5 sec (0 in seekbar value, since it is
    the default value, no change).
    Causing the text showing the ramp up time text value not
    updated and display as empty when user enable/disable
    increasing ring volume with ramp up time set to 5 sec.

    FEIJ-1572

    Change-Id: Id32d6b51aab05e80be59bc1912c4ae7c5d114ac5

Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date:   Wed, 18 Jan 2017 15:55:13 +0800

    Move notif volume pref on top of increasing ring pref

    Change Iafc79a57651db327a100e0f1723b62f442b638be added two
    increasing ringtone-related preferences between the notification
    volume preference and the ring volume preference.

    However, the notification volume preference should be grouped
    together with the media, alarm, and ring volume preferences.

    Hence, move the notification volume preference back to where
    it should be.

    Change-Id: I138e6f78b6c231643d86746858e0cbdfcb0942eb

Author: Bruno Martins <bgcngm@gmail.com>
Date:   Mon Dec 11 23:45:39 2017 +0000

    Adapt increasing ring feature to O-MR1 and new Settings UI

     * Make it depend on SettingsLib's version of Lifecycle and Mixin.

     * Create a custom style for the IncreasingRingtonePreference
       and match the new UI in Oreo Settings app.

    Change-Id: I25462159fa39f5cdaddb1898c71f536572e900a4

Author: Bruno Martins <bgcngm@gmail.com>
Date:   Fri Jan 14 17:56:29 2022 +0000

    Adapt increasing ring feature to S and new Settings UI

    Change-Id: Ib70f6f71f62e59c945d69ab9c23ca185fde4a4b0

Change-Id: I3f22c77504a5014f9dbd40909d760149143570fe
2025-12-10 00:41:30 +09:00
ShevT
f8e2ff3311 Settings: Add simcard number title for SIM1
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
jhenrique09
3c837277e3 Settings: Fix ringtone selection for devices with e-SIM
https://github.com/PixelExperience/android-issues/issues/2651

Change-Id: Ib283876196346b3b5492b8b4403530227cdf961e
(cherry picked from commit 4b275f3f518acc939a73523569602f6112737fc0)
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
jhenrique09
7c29c1956b MSIM Ringtone: Improve on devices with ESIM
Change-Id: Ib0e0348b29d9bcb567f2d3c0725dd6950a3bbc1e
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
jhenrique09
2ad3bcbcd7 Settings: Use AOSP translations for MSIM ringtone
Change-Id: I048a161e33eaabe8d2eb46fee49cae844836258f
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
maxwen
e60e722eb5 Settings: enable SIM card ringtone only if slot not empty [1/2]
same as in SIM card settings page

Change-Id: I3d0478080fdb838e0b730fdf7900dfa2f2e2ffe0
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
Ting Yu
a89d02598f Settings: Phone ringtone setting for Multi SIM device [2/3]
Support displaying phone ringtone setting for each slot as follows:
"Phone ringtone - SIM 1"
"Phone ringtone - SIM 2"

The purpose is to distinguish incoming call from each slot by ringtone.

Depends-On: I9c6ccff938122332d222853d469ad9a623c7d193

Bug: 118735436
Test: Manual
Change-Id: I06c59016e9b6da51ed8a4678a66674fc48c20e40
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
beanstown106
58864d1c1e Settings: Incall vibration option [3/3]
* allow setting vibration when call is connected
* allow setting vibration when call is disconnected
* allow setting vibration for call waiting
* this works with google and aosp dialer :)

Adapted to PE

[arrow-13.0]:
- Move inside accessibility_vibration_settings
  as all the aosp vibration toggles are there

includes:
fixup! Settings: incall vibration options [3/3]

[ghostrider-reborn]
- Enable by default
- Add to the slider-based prefs page as well

Change-Id: I55e99f501a3af07287c57a23939666351f4cef67
Signed-off-by: Karan Parashar <whyredfire@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: someone5678 <someone5678@users.noreply.github.com>
2025-12-10 00:41:30 +09:00
Dhina17
49c520a7ab Settings: Move applock to apps section
security advance section is too hidden
so that users even don't know about applock.

Change-Id: Iaaa2fd17befd915df485e16461abcc8ffc0f7191
2025-12-10 00:41:30 +09:00
Pranav Vashi
f8ef1252b4 Settings: AppLock: Update for kotlin errors
Change-Id: I7115c6e2031d613e59859710f587ee2a26614001
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
Pranav Vashi
10d33a3a0b Settings: Let app lock use face unlock
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
Pranav Vashi
81a32f493f Settings: Add app lock settings for alternate security settings provider
* When google security settings provider overrides security settings,
  app lock settings cannot be found.
* Add same to advanced settings.

Fixes: https://github.com/crdroidandroid/crdroid_features/issues/101
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00