Commit Graph

148025 Commits

Author SHA1 Message Date
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
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
ZeNiXxX
af8db763d1 Settings: Add Default USB Configuration
chiru2000: Add an drawable icon

nurkeinneid: Add missing order attribute

Signed-off-by: chiru2000 <chiranthangadi123@gmail.com>
Change-Id: I8cd237155f6df7d67ead592d719efe215375c5eb
Signed-off-by: NurKeinNeid <mralexman3000@gmail.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
xyyx
ac74a08835 Settings: Expose radio info (*#*#4636#*#*)
idoybh edits: Move to about phone in settings

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I7cf1ee8685749212ddeee9b4e7135af3185f78b8
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
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
Alvin Francis
340221b94c Settings: Update gesture and security prefs
Signed-off-by: Alvin Francis <nivlafx@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Pranav Vashi
8ac1c2ea3a Settings: Import settings from pixel-fw
mnri: Updated for u qpr2
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: Alvin Francis <nivlafx@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
Alvin Francis
6599d35840 Settings: Import columbus preference settings
Signed-off-by: Alvin Francis <nivlafx@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
someone5678
39c5994e06 Settings: Replace android:name for SettingsGoogle
Change-Id: I8562406da48b4f6ecec1945e17a54b7d8e1f7479
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:28 +09:00
minaripenguin
7ef68b469c Settings: Define android manifest
* for SettingsGoogle

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
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
Pranav Vashi
961f28d8a0 Settings: Add permission to hold wake lock
* Required for our custom doze.

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
Danny Lin
0bbb944325 Expand abbreviation in average memory usage string
We shouldn't use a technical abbrevation of "avg" here for the common
word "average" now that it's exposed to all users in app info settings,
since we can't expect everyone to know what "avg" stands for.

Languages other than English have been left alone because it looks like
most of them are already using the expanded word.

Change-Id: If7d8881a6a7e135d69f8b07f80119dd5a768fc49
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
Adithya R
a859adcc9d Settings: Move Vo5G toggle right below VoLTE
Change-Id: Ibb221a2cfcc131f125968370d419c1567389f468
Signed-off-by: Anushek Prasal <anushekprasal@gmail.com>
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
Subhajeet Muhuri
f7bbe61757 Settings: Link smallest width options in display settings
Change-Id: If0c2c43c7be624259d10cddbed1ffd308d062df0
Signed-off-by: mukesh22584 <mks22584@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
Michael W
1482e2b755 Settings: Follow system theme for SD card activities
* Setting up a new SD card is currently using light theme, no matter
  the system setting
* Convert to DayNight to have it follow system theme

Change-Id: Iaf41c95a03859f40f9895b713c26ee76ff01fed6
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
ReallySnow
78ec325a8b Settings: Add missing icon for media output
Change-Id: Id4ac89dba079ab46dcb7d97cca7b2c4c8f9fb612
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
Mukesh Singh
f3be981a26 Settings: Remove typo in manifest to fix predictive back
- Thanks to @Twinchin12 to point out

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
Your Name
b76af069ff Drawables: Dark mode support for app installation restriction icon
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00
Pranav Vashi
aecd3907ff Settings: Add icon for emergency broadcasts
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:27 +09:00