Commit Graph

148219 Commits

Author SHA1 Message Date
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
Pranav Vashi
7c57f71f72 Settings: add option to enable AOD on charging only [2/2]
Signed-off-by: Pranav Vashi <neobuddy89@gmail.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
Joey Huab
7a44c8f5d1 Settings: Don't make app lock settings searchable
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
Pranav Vashi
5ed3dd40b6 Settings: Add app lock summary for 0 protected apps
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
Pranav Vashi
973da33aa2 AppLock: Slightly bigger icon size
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:30 +09:00
Pranav Vashi
d26620b7ce Settings: Update AppLock API
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:29 +09:00
Pranav Vashi
4fd4972322 Settings: Allow locking all apps visible in launcher
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:29 +09:00
jhonboy121
edadced2f0 Settings: Introduce App Lock [3/4]
Squashed:

* AppLockCredentialActivity is a stripped down version of ConfirmDeviceCredentialActivity in Settings

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>

Settings: applock: adapt for API changes

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>

Settings: use a new task stack for app lock fragments

* fixes fragments staying in recents on going home
* also made other preferences do binder calls asynchronously

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>

Settings: applock: fix unlock prompt disappearing when trying to open apps

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>

Settings: applock: add hidden app settings

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>

AppLockPackageConfigFragment: allow launching app from app icon

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>

FlamingoSettings: applock: early return in setChecked if backing field has the same value

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>

[nift4: drop useless plurals.xml, make timeout values translatable]

* Dhina17 <dhinalogu@gmail.com>
        applock: Adapt for Android 14

Change-Id: I85d72ee72353417ead528483bbbe1ac1e6860063
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:29 +09:00
someone5678
eff5a9865a Settings: HideDevStatus: Query all apps installed by any user [2/2]
* And set value for all user

Change-Id: I5750800d7cdec1cb36922fac09a9d3b797806e33
2025-12-10 00:41:29 +09:00
someone5678
6f444282a1 Settings: Hide ADB and developer setting enable status [2/2]
* Code is adapted from cutout force full screen
* Give authorship

Co-authored-by: LuK1337 <priv.luk@gmail.com>
Co-authored-by: Tony Mantler <nicoya@google.com>
Co-authored-by: jhenrique09 <jhsv09@gmail.com>
Co-authored-by: jhonboy121 <alfredmathew05@gmail.com>
Co-authored-by: cjh1249131356 <cjh1249131356@gmail.com>
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: someone5678 <nemui3353@gmail.com>
2025-12-10 00:41:29 +09:00
someone5678
fd1f421ebf Settings: Allow skipping mirroring confirmation dialog [2/2]
Change-Id: I733cd7a235024d625342013641858e2c4790fb75
2025-12-10 00:41:29 +09:00
someone5678
c45ca9ea52 ExternalStorageProvider: Conditionally remove SAF restrictions [2/2]
* Write title and summary based on  NoStorageRestrict module's descriptions.

Ref:
https://github.com/DanGLES3/NoStorageRestrict

Change-Id: Ie62441f2c8e7ebaca3612100c79e7c24ebfb5b0e
Signed-off-by: someone5678 <someone5678@users.noreply.github.com>
2025-12-10 00:41:29 +09:00
someone5678
84b745ed00 Settings: Allow to hide screen capture status from apps [2/2]
* Allow to hide screen capture detection from privacy invasive apps
* This feature will be extended to screenrecord
  in the future release of Android (A15)

Change-Id: I82989e03b5e181a8a3fcf797a27a70bfa5fd06d1
Signed-off-by: someone5678 <someone5678@users.noreply.github.com>
2025-12-10 00:41:29 +09:00
Ido Ben-Hur
daf89d8b00 Settings: Add a dev option to unlimit screenrecord filesize [2/2] 2025-12-10 00:41:29 +09:00
Nauval Rizky
dc4ea5a0eb Settings: Add Game Space support
Co-authored-by: alanndz <alanndz7@gmail.com>
2025-12-10 00:41:29 +09:00
saikiran2001
563e271638 Settings: Whitelist WRITE_DEVICE_CONFIG permission
* Still appears in android 12

* needed after r30 merge

log:-

13:23:56.691  1422  2892 E DatabaseUtils: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_DEVICE_CONFIG
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2065)
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at com.android.providers.settings.SettingsProvider.setAllConfigSettings(SettingsProvider.java:1090)
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:422)
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at android.content.ContentProvider.call(ContentProvider.java:2448)
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at android.content.ContentProvider$Transport.call(ContentProvider.java:517)
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:295)
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at android.os.Binder.execTransactInternal(Binder.java:1154)
02-02 13:23:56.691  1422  2892 E DatabaseUtils: 	at android.os.Binder.execTransact(Binder.java:1123)
02-02 13:23:56.691  1099  4392 E Utils   : did not find channel-count and/or sample-rate

Signed-off-by: saikiran2001 <bjsaikiran@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I8539ae676a97e17b0c328cb4d1f386bda2feae42
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
2025-12-10 00:41:29 +09:00
Oliver Scott
70acdc87e7 Settings: Expose clipboard auto clear setting [2/2]
[someone5678]
* Adapt to current project
* Use Settings instead of DeviceConfig as GMS don't likes it
* Add switch for clipboard auto clear
* Import resources from CalyxOS and crDroid Android and adapt it
* Update summary setting logic

Ref:
72db57c966
48e00e2b81
33c49aa70c
bc81eea9cc

Issue: calyxos#2208
Change-Id: Ie101177aba90ea085d83c0cb641ffed447cceecd
Signed-off-by: someone5678 <59456192+someone5678@users.noreply.github.com>
2025-12-10 00:41:29 +09:00
SKULSHADY
da8ea87e85 Settings: Double tap to trigger doze [2/2]
* Also adapt Add video to Double tap to trigger doze from Pie: a66601a

Change-Id: Id98543542db937c6cc1f176cd55f6b02e472849d

Settings: DoubleTapGesture: Use new material-you illustration preference

* Switch to new Android 12 animation. Huge thanks to aryanata for the animation

Change-Id: Idfc536dff628fb4ba9cd45f6453add68f64a7b46

Settings: Add a preference controller for Double tap to Ambient

* Follows 41903244b1d8cf43c6c657b8ba5d9e7648136c72.
* Hide by default.

Co-authored-by: Akash <akashniki@gmail.com>
Co-authored-by: Aryanata Andipradana <a.ryan.ata.ap@gmail.com>
Co-authored-by: Joey <joey@evolution-x.org>
2025-12-10 00:41:29 +09:00
Adithya R
7ccf58d196 Settings: Add toggle for Smart 5G [2/2]
Change-Id: I72958e2313b48553ba82565ace8ebf5dd9e0cdf4
Signed-off-by: mukesh22584 <mks22584@gmail.com>
2025-12-10 00:41:29 +09:00
Jason Edson
71a05be971 Settings: Show user's Google avatar on the homepage
Change-Id: I16f3e241d2d2a4a25977fe7428687b88c8fde0c6
Signed-off-by: Jason Edson <jaysonedson@gmail.com>
2025-12-10 00:41:29 +09:00
jhenrique09
7b671a55e2 Settings: Set the default account provider to Google
Change-Id: I4cedd3ea99be911e874270bee86f9c5447cc4268
Signed-off-by: Adithya <gh0strider.2k18.reborn@gmail.com>
2025-12-10 00:41:29 +09:00
cjybyjk
6a3db1f45b Settings: SoftAp: add Hidden SSID preference
Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn>
Change-Id: I8a222a9a9ae8f005953b738368168d551a502491
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:29 +09:00
cjybyjk
279130665f Settings: SoftAp: add support for setting shutdown timeout
Change-Id: I80aebe3ca8e13e3dc5c503d5a8527282e96e486a
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Co-authored-by: jhonboy121 <alfredmathew05@gmail.com>
Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:29 +09:00
cjybyjk
2a8e418b1e Settings: SoftAP: Add client manager
Change-Id: If9f0c1000ff4e7dd0b602a61299f1eb2c7608ac5
Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:29 +09:00
kamikaonashi
bee65dd352 Settings: Add BatteryDivider to fuelgauge
some devices with prebuilt kernel report, example 4mAh, instead of 4000mAh or whatever current mAh is.
add config to let override the divider

device tree example:
830a87b139
2025-12-10 00:41:29 +09:00
Ido Ben-Hur
89dce4d1e8 Settings: Long press to copy wifi password
Instead of marking and manually copying. Better UX
2025-12-10 00:41:29 +09:00
Joey
d41c2b2337 Settings: Add config to show/hide vendor security patch level 2025-12-10 00:41:29 +09:00
janak
7c1e380d58 Settings: fix npe in ImeiInfoPreferenceController 2025-12-10 00:41:29 +09:00
minaripenguin
18fbb7926b Add support for manually installed google sound picker 2025-12-10 00:41:29 +09:00
minaripenguin
50169a920c TopLevelSettings: Fix null pointer crash on high dpi devices
* reference issue: https://github.com/RisingTechOSS/issue_tracker/issues/49

cc: mnri
2025-12-10 00:41:29 +09:00
minaripenguin
76718b1ff5 Move developer options to the most bottom part
* it was breaking the scrolling to the most bottom part for some reason

Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
2025-12-10 00:41:29 +09:00
minaripenguin
0cd4745921 AppUtils: Filter cloneable apps to include only launchable packages
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
2025-12-10 00:41:29 +09:00
SuperDroidBond
7dab125134 Settings: Fix total RAM calculation
- Showing 11GB for 12GB RAM variant device
2025-12-10 00:41:29 +09:00
TogoFire
62c569e201 Revert "[Wi-Fi] Remove 'Do not validate' option in CA certificate spinner"
This is not a definitive fix, so revert it. WPA2-Enterprise (802.1X) or
WPA2-PSK.

[xawlw]:
- Sometimes we can't connect to some Enterprise WiFi networks because we
  don't know its domain so let's revert this 'Security' feature
- Read more about it here:
  https://www.xda-developers.com/android-11-break-enterprise-wifi-connection/

This reverts commit 33cde5dbee.
This reverts commit 94b8579607.

Signed-off-by: TogoFire <italomellopereira@gmail.com>
Signed-off-by: xawlw <abdulazizawlw@gmail.com>
Change-Id: I3cec92b74a419b5463c5e5db496863e66d034703
2025-12-10 00:41:28 +09:00
PainKiller3
1392f86fc9 Settings: Add missing summary for Display size and text
Change-Id: I716020461e7d7e5ee0f1041a07b3a21b700f7650
2025-12-10 00:41:28 +09:00
Alex
070da71ef9 Settings: Make sure settings shortcut icons follow system accent
Change-Id: I88400b3ae2477c73ce16695f977974de45f7b44c
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
2025-12-10 00:41:28 +09:00
DarkJoker360
92155f1624 InstalledApp: Hide GooglePlay icon for webapps
* It appears that with recent chromium versions bookmarks became web
  based apps with an own package name and app icon, since those are
  detected as normal apps from Settings let's hide GooglePlay icon.

Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
2025-12-10 00:41:28 +09:00
George G
9b683aec85 InstalledApp: show link to Google Play
Shows a Google Play store icon in the App Info actionbar of apps
Excludes aosp built ones, but still works for apps generally found in /system, like SuperSU
The openPlayStore() code was created by @nicholaschum for Substratum, thank you!

BenzoEdit: fixed it for pie and updated drawable
Change-Id: Ic55e572405d97b1f8ae3f8e3b5aceaa38b6a991e
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2025-12-10 00:41:28 +09:00
Roman Royer
6a8e2bad20 Allow sorting Applications by size
Allow sorting applications by size in Settings->Apps
just like in Settings->Storage/USB->Apps

Change-Id: I9e022162110e1feff20f257992086e66735e0f5e
2025-12-10 00:41:28 +09:00