Commit Graph

7098 Commits

Author SHA1 Message Date
Jesse Chan
279b0052e3 Settings: Add an option to force pre-O apps to use full screen aspect ratio
When an app target pre-O releases, the default max aspect ratio
is 1.86:1 which leads to ugly black areas on devices that have
screens with higher aspect ratio (for example Galaxy S8/S9).

This change adds an option to allow users to change aspect ratio
for pre-O apps to full screen aspect ratio.

Change-Id: I0fb73511cf654ee22a4cfb7aef252008f8db8855
2025-08-28 13:35:05 +03:00
Jon Evans
640a320107 Settings: display: Add wake on plug switch
Change-Id: I22ee2a05040561cca796814573adc5226f1f03d4
2025-08-28 13:35:04 +03:00
Bruno Martins
4ab09243e3 Settings: Add proximity check on wake preference
Splitted from commit 5aa2f34, adapted to the Lineage SDK
and squashed with commits c6dc688 and 19105ab.

Change-Id: I7516c833ff39de6bdb36c815a5292606cbaa0533
2025-08-28 13:35:04 +03:00
LuK1337
486f2ce5c5 Settings: Add high touch sensitivity and touchscreen hovering toggles
Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Change-Id: Ib8712d2d0c0fe4396dbea7c7fc130e0c253d3207
2025-08-28 13:35:03 +03:00
Bruno Martins
dda1cd68c0 Settings: Move SIM restrictions currently applied to per-app data usage
When Google introduced commit d3b35f2, all the custom addons for
per-app network isolation became hidden on devices that set the
overlay config_show_sim_info to "false".

Expose only the toggles that really make sense, i.e. for the mentioned
usecase, leave the main toggle (restrict all), WiFi and VPN data
toggles.

Change-Id: I4720483d98ae69fbb6eec8fa749e8d071e91c629
2025-08-28 13:35:03 +03:00
Oliver Scott
0017a2f638 Settings: Add support for allowing/disallowing apps on cellular, vpn and wifi networks
*) Add options to disable all cellular, vpn and wifi data
   in app data usage settings.

*) Disable the existing background data and unrestricted
   data usage options when all cellular data access is
   disabled.

*) The vpn data option can be selected independently from
   the Wi-Fi and cellular options.

*) Prevent DataSaverBackend from overwriting uid policies

This is a replacement for the appops menu based cell/wifi data
restriction settings in cm-13.0:
Author: Danesh M <daneshm90@gmail.com>
Date:   Mon Mar 7 15:17:59 2016 -0800
    Settings : Add per app internet/data control
    CYAN-3976
    CRACKLING-834
    Change-Id: I13192df837c057b5cadde8f31532e12daaf3c1b0

Change-Id: Ic087c27a5ed0bdb84bb8f297c425c6bcbffec848
(cherry picked from commit d4a2eea698cbc4636a635d60f2a52ec1bbc36ba2)
2025-08-28 13:35:02 +03:00
Sam Mortimer
0b57abfdec Settings: Add support for allowing/disallowing apps on restricted networks
*) Add option to disable all network traffic
   in app data usage settings.

*) Disable the existing background data and unrestricted
   data usage options when all network traffic is
   disabled.

Change-Id: I0aaf5703d6dd5d6e6ec3cda3940f28833fe052ea
2025-08-28 13:35:02 +03:00
Adnan
fa351b4335 Settings: Add option to scramble pin layout when unlocking (1/2).
Change-Id: I3e2c200a0a31d3c765831bc30280029a50c88051
2025-08-28 13:35:01 +03:00
Sam Mortimer
49fbdbe055 Settings: Add hotspot setting to allow VPN upstreams
Co-Authored-By: Sage Cheng <sagecheng@calyxinstitute.org>
Change-Id: I34924fe8e60e3d492f219aa6d0ffa54f0bd46e38
2025-08-28 13:35:01 +03:00
Bruno Martins
5df9be2540 Settings: Allow devices to provide remote gesture preferences
* Not all devices can use common gestures as implemented in LineageParts

Change-Id: Iae4ca9fc686e3dc82411524688841211e0cceb7b
2025-06-22 13:02:41 +03:00
Zhao Wei Liew
fe928c3843 Settings: gesture: Add LineageParts touchscreen gesture settings
We'll allow devices to add touchscreen gesture settings
using the LineageHW TouchscreenGesture API.

Change-Id: I569b91ed66d34097a2bd96fb56af660a2702224b
2025-06-22 13:02:41 +03:00
Michael Bestas
6d9d8a5819 Remove useless USB page header
* This causes the options to go off screen and almost always
  require scrolling in order to reach all the options.

Change-Id: I3880982978aa50f11bf24b4da6e91a0917181811
2025-06-22 13:02:41 +03:00
Rashed Abdel-Tawab
77692e85e7 Settings: Add double tap to sleep preference
* Place it under Display settings, near the existing
   double tap to wake preference.

Change-Id: I0baa49f9367331febf29260a0f60ba3a020be729
2025-06-22 13:02:41 +03:00
Danny Lin
c1590bf7b9 Fix inconsistent USB preference screen title
The title of the USB preference screen ("USB Preferences") is
inconsistent in several ways:

1. It doesn't match the title of the preference that launches it
2. No other preference screens say "preferences" in their title, since
   it's redundant
3. It violates the Material text conventions, which prefer to not
   capitalize titles in the UI

This commit changes it to "USB", which fixes all of the inconsistencies
listed above.

Change-Id: I7330a9e4e121d57ee2140ef60aefb4412b1fe728
2025-06-22 13:02:41 +03:00
Paul Keith
7e1173dcdf Settings: Add livedisplay preference screen
We can't inject via IA if we want to disable the preference via
config_enableLiveDisplay

Change-Id: I482a073e9c699d3f2bc5870567d603ceca2065b1
2025-06-22 13:02:41 +03:00
Jesse Chan
2f368378dd Settings: Implement hide gestural navigation hint bar
Change-Id: I14dd73414c9f7ee1b01f315c9eeae0fd3ac4f859
Signed-off-by: Jesse Chan <jc@lineageos.org>
2025-06-22 13:00:17 +03:00
Steve Kondik
170340bc59 Settings: Add a RemotePreference for device-specific doze settings
* If a device has its own panel, we should replace the item under
   display settings instead of having to clutter up the dashboard.
 * Devices that provide Doze settings typically implement own AOD pref,
   so hide AOSP one.
 * This uses the new RemotePreference API to allow the external
   app to update the view.
 * The action for this is "org.lineageos.settings.device.DOZE_SETTINGS".

Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Change-Id: I22fd7e6307b370807415ce2132bed4808b2befe1
2025-06-22 13:00:17 +03:00
Michael Bestas
2739162b84 Settings: Forward port pattern visibility settings (2/2)
Change-Id: Ic627953c5df854c442671a98b5da539b994da18b
2025-06-22 13:00:17 +03:00
Michael Bestas
34a8deb417 Settings: Forward port lock pattern grid size (2/2)
Co-authored-by: Alberto97 <albertop2197@gmail.com>
Co-authored-by: d34d <clark@cyngn.com>
Co-authored-by: Dhina17 <dhinalogu@gmail.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Co-authored-by: Roman Birg <roman@cyngn.com>
Change-Id: I7078d703c218cd096d9b77c003a94b52fbce6322
2025-06-22 13:00:15 +03:00
Sam Mortimer
ce15d330cc Settings: Add LineageParts charging sound settings preference
Replace the existing AOSP setting with this.

Change-Id: I13894a86bcfad8d1dfaedc2dcbca6ad70f651b5c
2025-06-22 12:59:29 +03:00
Roman Birg
d58f018299 Settings: Add LineageOS legal info
Open up the LineageOS legal info in the browser.

Change-Id: I263ccc0509e275d17512528deb606341d58e7a0d
Ticket-Id: CYNGNOS-1895
Signed-off-by: Roman Birg <roman@cyngn.com>
2025-06-22 12:59:29 +03:00
Michael Bestas
3a00671373 Settings: Hide "Mainline module version" preference
* Remove misleading titled preference (Google Play system update)
* This is always set to current android version for AOSP

Change-Id: Ie9799e87de2f3a3421ff501ed8937f5f684458ee
2025-06-22 12:59:29 +03:00
Luca Stefani
581089a2ef Add toggle to enable ADB root
Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Co-authored-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: Ic80dbf79265c0fe7113f42299479873befb05004
2025-06-22 12:59:29 +03:00
Steve Kondik
0e30559b26 Settings: Add rotation settings
* Links to LineageParts

Change-Id: I896c53089fca0ee3b0e867144bb1d72fe8946eaf
2025-06-22 12:59:29 +03:00
LuK1337
638fab6e55 Settings: Add LineageOS entries into device info
Co-authored-by: Harry Youd <harry@harryyoud.co.uk>
Co-authored-by: Kevin F. Haggerty <haggertk@lineageos.org>
Co-authored-by: Timi <timi.rautamaki@gmail.com>
Co-authored-by: Tobias Tefke <tobias.tefke@tutanota.com>
Change-Id: I8d4c6869f8dfa34a96567bec18f9f8276b66a64e
2025-06-22 12:59:29 +03:00
LuK1337
159eee0278 Settings: Put device info header above "Basic info"
Change-Id: I8db12e882c16d6afa0e04bc1c4e93f7ec99960ed
2025-06-22 12:59:04 +03:00
Torsten Grote
c18a1ef322 Allow the user to change the BackupTransport
Set the following config overlays to activate this feature:

* config_backup_settings_intent to settings://com.android.settings.backup.transport
* config_backup_settings_label to some user-facing label
  e.g. Change backup provider
* config_ignored_backup_transports to hide transports from the list

Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: I080d96e2c34045a0e61f3fa1b839f463550f2028
2025-06-22 12:59:04 +03:00
Florian Mayer
92e1b25a29 Fix crash if device policy disables MTE
Flag: EXEMPT bugfix
Test: set device policy using TestDPC, observe crash is gone
Bug: 407990172
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ec6b4842bef8f6f29989bb370d44499a70d6172e)
Merged-In: Ib5f01cb5bb3296ee0b5909a1a730e9dad040902b
Change-Id: Ib5f01cb5bb3296ee0b5909a1a730e9dad040902b
2025-04-07 20:00:34 -07:00
Yuri Lin
0773c4d93f Merge "Merge bundle global & type preference controllers." into main 2025-03-24 12:13:24 -07:00
Treehugger Robot
dc34cabee1 Merge "Show hearing device pairing intro according to the device's supported status" into main 2025-03-21 01:55:57 -07:00
jasonwshsu
e3eb185e00 Show hearing device pairing intro according to the device's supported status
Bug: 390078046
Test: atest HearingDevicePairingIntroPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I19b9825a55732c9edb058dd517d6021549e55307
2025-03-21 14:28:12 +08:00
Marcelo Arteiro
157030dcef Pending Location information added to Dark Theme
Resolved an issue in Settings where sunset/sunrise dark mode failed silently when a location was unavailable. Now, an error dialog is shown, even if location services are enabled, but a specific location is missing.

A footer stating the same issue is now present while the location is pending.

Existing banner that appears when Location is disabled is now being removed once Location is turned on. Previously the UI would refresh only after exiting and returning to the preference view.

Bug: 324548844
Bug: 402025928
Test: atest UiModeManagerServiceTest
Flag: EXEMPT bugfix
Change-Id: I914937185f11a686b453f929728b6329ebd05389
2025-03-20 03:21:45 -07:00
Haijie Hong
6c608b7e8a Merge "Show bond loss UI in device details" into main 2025-03-19 00:22:21 -07:00
tom hsu
9896b590d3 [Satellite] Change footer format in satellite setting
- Use controller base design instead of current

Flag: EXEMPT bug fix
Bug: b/401648126
Fix: b/402037025
Test: Manual test
Test: atest pass
Change-Id: Icb3fd6a1c5340e554593fc57cb238bf98d3ed0e3
2025-03-18 22:59:38 -07:00
Haijie Hong
519f1752f0 Show bond loss UI in device details
Bug: 380801155
Test: atest BluetoothDetailsFragmentTest
Flag: EXEMPT minor change
Change-Id: I458778e1a3adde4ec1ddd8b84b8dc7f1d91621f5
2025-03-18 11:41:52 +08:00
Yuri Lin
53f94f0495 Merge bundle global & type preference controllers.
This change allows the combined preference controller to be a central place to manage dependencies between the global switch and the individual type checkboxes. When the last individual checkbox is unchecked, the global switch turns off as well. When the global switch is flipped, the individual type preferences become visible or invisible.

Flag: android.service.notification.notification_classification
Bug: 380291070
Test: atest BundleCombinedPreferenceControllerTest, manual
Change-Id: I4e97d3d999c6114dd8c71100a0b0de1eb8f94e31
2025-03-17 15:04:38 -04:00
tom hsu
f0efc2e363 [Satellite] Refactor code to controller base.
- Your mobile plan

Flag: EXEMPT refactor
Bug: b/403149290
Test: atest pass
Change-Id: Ia21f3d8b301401799263a1a2b43d82e9a46729a5
2025-03-17 13:52:58 +00:00
tom hsu
006007446b [Satellilte] Remove dynamic string of messaging and connectivity
Flag: EXEMPT bug fix
Bug: b/401648126
Test: Manual test.
Change-Id: I3ec28cfa2a05b421f19918414af8e75c5c0b224e
2025-03-17 11:28:02 +00:00
tom hsu
c19341db32 [Satellite] Refactor about content of Satellite setting
Flag: EXEMPT refactor
Bug: b/403149290
Test: Manual test pass
Test: atest pass
Change-Id: I55868869a9442648995343c857758c23fe358bc2
2025-03-14 07:42:27 +00:00
tom hsu
93f714446a [Satellite] Move satellite setting related code to a folder
Flag: EXEMPT refactor
Fix: b/403149290
Test: build pass
Test: atest pass
Change-Id: I849adc99fb16d1278efd1d481a4fd99fadb45e98
2025-03-13 16:12:16 +00:00
shaoweishen
b547394a56 [Physical Keyboard] Update seekbars
Update seekbars color and style.

Bug: 374030364
Bug: 399285693
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Test: atest
packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/

Change-Id: I251a7241b614114a5bb9d5090fcd22cb873ebc51
2025-03-12 00:50:15 -07:00
Yuhan Yang
3fbdd379bf Merge "Initial commit to add autoclick main toggle" into main 2025-03-11 18:55:09 -07:00
Nikhil Nayunigari
989c4cf698 Merge "Edits ethernet interface details settings subpage with more info" into main 2025-03-11 15:57:38 -07:00
William Leshner
1a8bf51a04 Merge "Move hub mode settings under display." into main 2025-03-11 14:50:35 -07:00
Nikhil Nayunigari
a821ac9185 Edits ethernet interface details settings subpage with more info
Adds IPAddress, Mac address, RX/TX Speed and Metering options to the
settings sub page.

Flag: com.android.settings.connectivity.ethernet_settings

Test: atest SettingsRoboTests:
com.android.settings.network.NetworkProviderSettingsTest

Bug: 390709492

Change-Id: I9a310f94037e089f3d57ff36f77b88edbb0ee1f1
2025-03-11 21:06:55 +00:00
Graciela Putri
cf0d8cba31 Merge "Remove (experimental) from app aspect ratio settings title" into main 2025-03-11 11:56:04 -07:00
Yuhan Yang
a572f89f43 Initial commit to add autoclick main toggle
screen cast: go/screencast-ntc4mdgxndq2mdyxnjcwnhw2yjbhymvlnc0wna

Bug: 391416057
Test: atest ToggleAutoclickMainSwitchPreferenceControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: I6bfa346016d0ab08a61e4813b2c9e16b76281799
2025-03-11 15:49:20 +00:00
Will Leshner
417b667be4 Move hub mode settings under display.
And add a "when to show" setting.

Bug: 401001786
Test: manually
Flag: com.android.systemui.glanceable_hub_v2

Change-Id: I5f660a1be4bdbb5ab5bb14aa070bfa81b31da6b4
2025-03-10 11:08:57 -07:00
Michael Mikhail
0d44396f76 Merge "[catalyst] migrate media controls settings" into main 2025-03-07 07:27:51 -08:00
Yuri Ufimtsev
245df05c33 Merge "Add Content Protection settings to Advanced Security page" into main 2025-03-07 03:22:23 -08:00