Commit Graph

57344 Commits

Author SHA1 Message Date
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
Fabian Leutenegger
82754f2212 Settings: Fix potential NPE in WifiTetherSecurityPreferenceController
* if updateDisplay() gets called but mShouldHidePreference was set to true during init in the constructor, [1] will cause an npe due to securityNames and securityValues being null
 * adding that check as well to updateDisplay() will prevent this from happening

[1]:
for (int i = 0; i < securityNames.length; i++) {
mSecurityMap.put(Integer.parseInt(securityValues[i]), securityNames[i]);
}

Change-Id: Ib9dec499b7aebcfa424f2dd9b310317d4fb0eaf0
2025-12-10 00:41:26 +09:00
maxwen
3123a2f7ea Settings: Check wifi direct feature for showing preferences
Change-Id: I706bd7bb35e8da004a0dfc8c0949beea082514ea
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Dmitry Muhomor
a70aa305d2 battery usage UI: use a fallback name for unknown components
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Oliver Scott
77909062da Wi-Fi timeout feature
Also includes squashed change:

Author: Tommy Webb <tommy@calyxinstitute.org>
Date:   Thu May 18 13:47:42 2023 -0400

    fixup! Wi-Fi timeout feature

    Only allow admin users to adjust the Wi-Fi timeout.

    Issue: calyxos#1633
    Change-Id: I9379bdd1fae136b2900692b4ea49c10106b3f285

Issue: calyxos#228
Change-Id: Ib35e45c38ca8c4f7146c8868b92ab98ca8d3c5b3
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Oliver Scott
03f2f52e6f Bluetooth timeout feature
* Now use AOSP settings storage instead of LineageSettings.
  This is so the Bluetooth APEX module can access the setting.

Also includes squashed change:

Author: Tommy Webb <tommy@calyxinstitute.org>
Date:   Thu May 18 13:49:24 2023 -0400

    fixup! Bluetooth timeout feature

    Only allow admin users to adjust the Bluetooth timeout.

    Issue: calyxos#1633
    Change-Id: I8b3ae8f0faffde194ee417548e7d200842000fb6

Issue: calyxos#124
Change-Id: I4f4646139cd42b7ad20b486ed77dd00499aa3c6e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
jhonboy121
c20a46b63a Settings: Fix rest of the edit menu icon tint
Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Akash
bbf662318c NightDisplay Settings: Use List Preference for NightLight settings
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
IacobIonut01
3f0760f894 Settings: Use ListPreference instead of DropDownPreference
Change-Id: I34c21377840ec8a298f3c49e03445151eecc3ec4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Pranav Vashi
d52e5688de Settings: Use List Preference for Dark mode
* Rather ugly Drop Down

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
ezio84
0ca6f0cb0b Enable FeatureFlags on "user" builds too
Change-Id: I72c90ae2f66eb1d6a9c6a423f50ea9df626559d2
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Ido Ben-Hur
30f778eacd Settings: Fix regulatory info availability check
queryIntentActivities will return something even if the activity is disabled
directly check the flag that controls the enablement

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
jhenrique09
ac0dfd3030 Settings: Don't show module version if isn't a date
What's the sense on showing Android version instead of date?

Change-Id: I4cd2ae780c19182db2f66811be63dff131d26d6b
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
hoffc
f55b6bf4b6 Settings: add sim status listener in about phone
Add sim status listener in about phone to dynamiclly update sim status and phone number info when sim card hot-swap.

Change-Id: Iee69f34ca85225ea6286f5ba517681b42366a71c
CRs-Fixed: 2978481
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Quince
69d252b1d7 Settings: Add a DEVICE field to the getSummary() function
Missing this field results in the text string "Market Name" being displayed instead of the device name.
2025-12-10 00:41:26 +09:00
someone5678
6da36481de Settings: Add Market Name to device info
Change-Id: Ic2bc692eec7d180a97e71b701e345806de78496a
2025-12-10 00:41:26 +09:00
Tim Zimmermann
3a7ae660c1 Settings: Show SoC Model rather than value of ro.board.platform if available
* These properties were introduced in S, so why not use them?

Change-Id: I2abb584e140841c03f8daa7cc6c0107f24a0e234
2025-12-10 00:41:26 +09:00
Rashed Abdel-Tawab
d183b8f95c Settings: Add platform and RAM to Model & Hardware
This seems kinda empty... Fill it with fun stuff

Change-Id: Ia43cb31b7567bed07f2b8a1d8637de4e66320c90
[jaysonedson@gmail.com: Move to new HardwareInfo]
Signed-off-by: Jason Edson <jaysonedson@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Dmitry Muhomor
6cd3704eb9 add App info > Storage > Manage storage button for apps that support it
There's a "Clear storage" button in App info > Storage & cache. When app implements a "manage
storage space" activity, that button opens it instead of actually clearing the storage.

"Manage space" activity might not provide an option to clear app storage or it might not work at
all.

This change adds a separate button to launch that activity and makes the "Clear storage" button
ignore its presence.
2025-12-10 00:41:26 +09:00
Joey Huab
b54aa2f650 Settings: Do not hide Now Playing for Pixel devices 2025-12-10 00:41:26 +09:00
Pranav Vashi
184131faec Settings: Add config to display Now Playing
* Disabled by default as most devices dont support it.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Dmitry Muhomor
b45269eb32 add per-connection Wi-Fi MAC address randomization option
fixup! add per-connection Wi-Fi MAC address randomization option
2025-12-10 00:41:26 +09:00