Commit Graph

57365 Commits

Author SHA1 Message Date
Nauval Rizky
dc4ea5a0eb Settings: Add Game Space support
Co-authored-by: alanndz <alanndz7@gmail.com>
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
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
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
someone5678
41c97f8f23 Settings: Use marketname for App Aspect Ratio summary
* If empty, use Build.MODEL

Change-Id: I27190e41bd08caac9303ae6115ad6970c9614770
2025-12-10 00:41:28 +09:00
minaripenguin
a2bc23f653 UsbDefaultFragment: Remove DeveloperOptionAwareMixin
* allows launching of usb settings fragment without enabling developer options

reference:
https://cs.android.com/android/platform/superproject/main/+/main:packages/apps/Settings/src/com/android/settings/development/DeveloperOptionsActivityLifecycle.java;l=37

Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
2025-12-10 00:41:28 +09:00
LynnrinChan
7273d25587 Settings: Hide radio info if device don't support voice
Change-Id: I481485b2563fdb27b35b31fa95795db94a863f2f
Signed-off-by: LynnrinChan <lynnrin@lynnrin.moe>
2025-12-10 00:41:28 +09:00
Pranav Vashi
d61824a1c9 Partially Revert "DynamicDenylistManager shall not exist"
This is required by SettingsGoogle fuel gauge.

This reverts commit da270f9fa1383b6717d6a872dc90eac8a6783c27.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Alvin Francis
a43e38e39b Settings: Update FaceEnroll ActivityDirector and Confirmation
Signed-off-by: Alvin Francis <nivlafx@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Anay Wadhera
78a8af301d Settings: Create face confirmation activity
Change-Id: Id245c958a3f32e36620240fab6b9b4961bee35d5
Signed-off-by: Alvin Francis <nivlafx@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Anay Wadhera
7a4c3d129d Settings: Create a ActivityDirector to optionally use SettingsGoogleFutureFaceEnroll
Change-Id: Ie6ca1276165a911c9681bc5a70b4b7f8a799f192
Signed-off-by: Alvin Francis <nivlafx@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Ido Ben-Hur
fdd9e34b9d WifiDisplaySettings: Fix some NPE
Log:
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.android.settings, PID: 13426
E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setText(int)' on a null object reference
E AndroidRuntime:        at com.android.settings.wfd.WifiDisplaySettings.onBindViewHolder(WifiDisplaySettings.java:349)
E AndroidRuntime:        at androidx.preference.PreferenceGroupAdapter.onBindViewHolder(PreferenceGroupAdapter.java:420)
E AndroidRuntime:        at com.android.settings.widget.HighlightablePreferenceGroupAdapter.onBindViewHolder(HighlightablePreferenceGroupAdapter.java:113)
E AndroidRuntime:        at com.android.settings.widget.HighlightablePreferenceGroupAdapter.onBindViewHolder(HighlightablePreferenceGroupAdapter.java:44)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.onBindViewHolder(RecyclerView.java:7379)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.bindViewHolder(RecyclerView.java:7462)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.tryBindViewHolderByDeadline(RecyclerView.java:6319)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6585)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.getViewForPosition(RecyclerView.java:6425)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.getViewForPosition(RecyclerView.java:6421)
E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager.next(LinearLayoutManager.java:2330)
E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1631)
E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1591)
E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:668)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4423)
E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:3800)
E AndroidRuntime:        at android.view.View.measure(View.java:25774)
...

Signed-off-by: Dmitrii <bankersenator@gmail.com>
2025-12-10 00:41:28 +09:00
Jyotiraditya Panda
2b5fcb49ba Settings: Make AppCloning independent of DeviceConfig
Change-Id: I8598d5613f5a14b6d4ee415eb788ff79362d83a2
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2025-12-10 00:41:28 +09:00
deadman96385
c389f11521 Open app when clicking on icon in App Info
Based on Xposed module Shortcut in App Info:
http://repo.xposed.info/module/com.mohammadag.shortcutinappinfo

Credit: Adam77Root
There is no vibration as in the module as I didn't find it necessary

@mydongistiny: Ported to Pie
Change-Id: I9c09a17bd0fd3a205ebb9cde366ce9d2335c6a84
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: blinoff82 <blinov.in@gmail.com>
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
someone5678
b1e4fb94ef BatteryStateDatabase: Set exportSchema to false
Log:
Output:
packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/BatteryStateDatabase.java:35: error: Schema export directory was not provided to the annotation processor so Room cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument by applying the Room Gradle plugin (id 'androidx.room') OR set exportSchema to false.
public abstract class BatteryStateDatabase extends RoomDatabase {
                      ^

Change-Id: I493d978ee204761e93fb177680bd102c30b45e9c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
someone5678
aedee4b1db Settings: Forcefully enable Hotspot Speed setting
* Follows device's configurations, not country code

Change-Id: Ifbbd3a746345da2790cc6582ac0d3e0524bf4ba8
Signed-off-by: someone5678 <someone5678@users.noreply.github.com>
2025-12-10 00:41:28 +09:00
xyyx
b04df88ac3 WiFi: Remove country code checking.
Always allow 5gHz AP option

Edit: Only remove getCountryCode

Change-Id: I1205c7cec7715c1fac25eb29a311e347855f4d49
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
minaripenguin
7efe5c0c63 DataProcessor: Do not skip and replace screen on component with screen on time
test: confirmed the screen on component does not show empty stat/s

Change-Id: Ie4fa4cf77ea06d699317c2b6fedbd5005d04ab6f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Vishalcj17
46a9894013 ChooseLockPassword: Decrease minimum pin length for auto confirm
This default enables auto confirm on a pin length of 4 and
correctly displays it in setup

Squashed:

    From: Adithya R <gh0strider.2k18.reborn@gmail.com>
    Date: Wed, 27 Dec 2023 20:08:33 +0530
    Subject: ChooseLockPassword: Don't uncheck auto confirm above minimum length

    Fixes aaf4cd67.

    Change-Id: Ic94db010318ecbfc1d58653c3fd85b8cdb653e83

Change-Id: I482be235261de1e636c89e33722df4f4e412b07c
Co-authored-by: Mesquita <mesquita@aospa.co>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Shen Lin
48b7e3f855 Refactor AppPicker page to adopt Settings main theme
AppPicker in Development options has been existed since 2012 without
too much maintanace. This CL mainly adopt Settings main theme into it,
and migrate from depreaced ListActvity to androidx while reamining restraint.

Bug: 277978841
Preview: https://docs.google.com/spreadsheets/d/1vwzriR1mZj2B2Flw1eu1OwfZY5wRz6YOaq7bDcXxStE
Test: manual, presubmit
Change-Id: I8bf3be499202eba894070cffd5f20f44d3d45de5
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Erfan Abdi
5925ca9b76 FaceEnroll: Fix circle camera view background color
Change-Id: I798f229cce7a899d3c55e56005713e09ce890fb6
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
minaripenguin
90eb22a7e0 Settings: Disable automatic system server heap dumps by default
Change-Id: I83534dfb3f84f9c4a986cf071dd60b5bf057575e
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Altaf-Mahdi
3caaab1fdc InstalledAppDetails: fix refreshing storage summary after force stop
* if app is force stopped, current implementation causes a nasty loop which in turn causes
  very high cpu usage: refreshUi() > checkForceStop() > mCheckKillProcessesReceiver > refreshUi()

* fix storage not being updated by running refreshUi() in onRunningStateChanged from AppInfoBase

Change-Id: Iec24bb620d1a6287d7ccf583db978ef338ef762e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Jyotiraditya Panda
9d37400b70 Settings: Improve code for time spent in app
Change-Id: I3b1db9b6f4918b1ea770c0ec0c89e22119e3e6b1
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Jason Edson
d4504b0077 AppInfo: Add time spent in app from Wellbeing
In application info show the time spent in app menu
item like in stock.

Change-Id: I057f14cbfd6ebfb43b6d591983b55c5ed9e1c765
Signed-off-by: Jason Edson <jaysonedson@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
Ido Ben-Hur
aa75e0cb50 Settings: OverlayCategoryPreferenceController: Sort overlays by name
No, the user has no reason to view em by priority, thank you.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
SleepQueen
bbad47e49a Setting: batteryinfo: Add config to enable/disable battery design & maximum capacity info
* Legacy devices like the Pixel 2 Series do not support this feature, only show Unavailable for design capacity and maximum capacity in battery information.
* Enabled by default

Test: Build & flash

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2025-12-10 00:41:27 +09:00
Lian Dongzhou
c24058b649 Fix memory leak on sensormanager
Test: Monkey test

Google: 2954774
Change-Id: I597f6bc93a7a440fe0e6018025302a27c5ee2b3f
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2025-12-10 00:41:27 +09:00
Ido Ben-Hur
767a50a987 Settings: Skip auth for USB func ctrl when unlocked in the last 60s
Change-Id: I36e417b93e2e2481368f2fe84eaa4b5dafc3b74b
2025-12-10 00:41:27 +09:00
Ido Ben-Hur
8d9c9c044a Settings: Skip auth for WiFi net share when unlocked in the last 60s
So it matches with the QS tile behavior

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
minaripenguin
a5cc6b9d2b fuelgauge: Hide screen time since last full charge if not valid
Change-Id: I1c826182b75670241ddfbcf810def21ade476eb8
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
2025-12-10 00:41:27 +09:00
ezio84
c53126396f Port "Battery Usage Alerts" feature from factory images
thanks @daveyannihilation for suggestions about how to check prebuilt apk

NB: this needs the new Turbo.apk in your vendor blobs:
1305ba501e
Signed-off-by: mydongistiny <jaysonedson@gmail.com>

Change-Id: I51d0213242ad87bfcfecd71c97e3cbb3ff6fd158
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: DennySPB <dennyspb@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
Jyotiraditya
76f9545826 Settings: Move blur toggle to Display options.
Change-Id: I64cadfd69c66a30ada9f5ba5509dd97a85124326
2025-12-10 00:41:27 +09:00