LineageOS Infra
5f6ea17cbe
Automatic translation import
...
Change-Id: I6961c6888346996dadbf4aaf786fd6fa2c7b9171
2025-04-07 16:25:25 +00:00
Michael Bestas
38be42ce0a
sdk: Cleanup imports
...
find . -name "*.java" | xargs java -jar \
~/bin/google-java-format-1.25.2-all-deps.jar \
--aosp --fix-imports-only --replace
Change-Id: If39579285c13cecdb3592d8ccf0605b8030b340e
2025-03-23 12:06:59 +02:00
LineageOS Infra
2772796326
Automatic translation import
...
Change-Id: Ib252621063045843d0a6d1655d98fe86f37b2725
2025-02-15 15:47:20 +00:00
LuK1337
59c2643018
LineageSettingsProvider: Migrate tethering_allow_vpn_upstreams to AOSP
...
Change-Id: I1453d075f39c0e11a0fd056924d9ec5957928c26
2024-12-20 18:54:18 +02:00
LineageOS Infra
eed35b8aad
Automatic translation import
...
Change-Id: I8902b6005532ade17489e89fa4b29104fb4bcd41
2024-11-16 06:48:07 +00:00
Michael Bestas
5a577dc607
sdk: Make it REUSE compatible
...
Change-Id: Iba2bcaf5e677eafebc48c6aca3d3625f821d6e27
2024-11-07 13:28:42 +00:00
Michael Bestas
5efaee2299
sdk: Remove SettingsProvider tests
...
Change-Id: I3abde5201b7d103b038f98c05fdf0026a7834ea8
2024-11-07 13:28:42 +00:00
Oliver Scott
f7c44fc818
Clear restricted networking mode allowlist
...
Replaced by POLICY_REJECT_ALL
Issue: calyxos#2192
Issue: calyxos#2637
Change-Id: I78ff47624e520f9a3fe492165544d93edbbe814d
2024-10-23 01:38:13 +03:00
Michael Bestas
baebbbf0d1
LineageSettingsProvider: Relocate loadRestrictedNetworkingModeSetting call
...
It shouldn't be in a SQLiteStatement block.
Change-Id: I342af1f9e52150bd87aa20701a7109db3fa6f2bb
2024-05-29 14:54:17 +03:00
LineageOS Infra
360dad610b
Automatic translation import
...
Change-Id: I5e3baf2c7a67a8c1ff0b007de1a94b51aada8825
2024-05-15 15:50:26 +00:00
Michael Bestas
691670d7bc
Revert "LineageSettingsProvider: Allow enabling lockscreen rotation by default"
...
This reverts commit 1a53318ab3 .
Change-Id: I886affb6949ca928b92b496116b9ad3d77827ed0
2024-02-21 17:07:38 +00:00
LineageOS Infra
6538e84b23
Automatic translation import
...
Change-Id: I6033402fd381bf001100db04934ffae0126d4318
2024-02-10 19:04:38 +00:00
Bruno Martins
e2d1d6a391
LineageSettingsProvider: Allow to set a default for QS brightness slider
...
Change-Id: Ie9003e2c14e7f5ba1b34cd7c3c7ab95a3c9501cf
2023-10-03 22:23:44 +01:00
Michael Bestas
aa4306a860
Remove deprecated settings migration code
...
This was used for cm 12.1 to 13.0 migration.
Change-Id: I4a074b15ed54d7b64d7f14e66bd4d2036b09e4cb
2023-07-22 19:16:33 +03:00
Michael Bestas
d072074908
Partially revert "LineageSettingsProvider: Support migration from cmsettings"
...
The migration happened in lineage 15.1,
we only support direct upgrades from 17.1.
This partially reverts commit e7008a222e .
Change-Id: Ic2acd93565e21475ea6f896941107230d880e890
2023-07-22 18:46:54 +03:00
Michael Bestas
1a53318ab3
LineageSettingsProvider: Allow enabling lockscreen rotation by default
...
...and enable it by default for sw600dp
Change-Id: I0df4f0907591146a21d3da0e0d11e3213ad8767a
2023-07-20 17:28:53 +02:00
Michael Bestas
63769995c1
Drop < lineage-16.0 database migration support
...
It is only possible to upgrade from 17.1 to 20.0 directly,
let's just drop all the old migration steps.
Change-Id: I04ec638f3b7c75d53629c8fec5523a0ccc7eabb5
2023-07-13 16:19:43 +02:00
Chirayu Desai
7e5dade283
Change existing migrations to use new helper methods
...
* We usually shouldn't touch existing migrations,
they would have already ran for most (if not all) users,
and don't run for existing users since they start at
the latest version.
* However, we've recently discovered many issues with these
migrations, and past reported issues are now starting to make
sense (they can be explained by migration running over and over again)
* As such, let's fix this once and for all to make things clearer.
* We also tend to copy older migrations when writing soemthing new so it
should help having these done :)
Change-Id: Ic45efc823da7ea8a137e79b3769a9ca53c2f8667
2023-07-13 16:19:43 +02:00
Tommy Webb
1c5a5dd010
Add helper methods for reading and writing settings
...
Add new private methods readSetting, readIntegerSetting,
readLongSetting, writeSetting, and writeSettingIfNotPresent
to reduce boilerplate and potential for code errors.
Change-Id: I9872cc50db86056cdc1588741600b66ee9d40f9f
2023-07-13 16:19:15 +02:00
Tommy Webb
663a948c50
Do not use transactions when reading settings
...
There is no need to use database transactions to simply read settings.
We also were not setting the transaction as successful, which was
causing the outer transaction for the whole onUpgrade operation to be
rolled back, meaning that some devices would be stuck at old db
versions and perform repeated migration attempts on every boot.
Issue: calyxos#1290
Change-Id: Icefe994379152f9a3aa6c0c5b447cc55d5c4cf46
2023-07-12 14:27:42 +03:00
Chirayu Desai
173b6d8693
Migrate side FPS settings
...
* Really shouldn't have touched an existing migration before
* Anywho, let's change it back to what it was but make it compile
* Then, let's migrate that old setting to the new AOSP setting,
but flip it since it works differently.
Change-Id: I342d8c78aa8faeda5dcaafe9199deb51c570efd0
2023-07-12 14:27:38 +03:00
LineageOS Infra
eee2b70594
Automatic translation import
...
Change-Id: I54bfe88fe79f568e701e48c5d3ebb29fd1578ea6
2023-06-20 16:28:06 +00:00
Michael Bestas
bf6f48ceb3
Update LineageDatabaseHelper for 13 QPR3
...
Change-Id: Iea691957d02c181c6409b5fc918a1b04d37369a2
2023-06-14 20:30:17 +03:00
LineageOS Infra
cd2c9124c7
Automatic translation import
...
Change-Id: Iba040a5e3a3283230dbe5cfaccc28275090dbf94
2023-06-01 12:49:27 +00:00
LineageOS Infra
528400a142
Automatic translation import
...
Change-Id: I6d7f4c50273d842d4eef721f5283a184b45293f1
2023-04-24 08:41:32 +00:00
Michael Bestas
9f63a522db
Fix FINGERPRINT_WAKE_UNLOCK migration for devices not supporting it
...
Change-Id: I81469da5a1696f7ff92ff11216ba0b98459a9bde
2023-03-20 02:37:31 +02:00
Michael Bestas
dc0c1d8a5c
Migrate FINGERPRINT_WAKE_UNLOCK to the new AOSP setting
...
Change-Id: If5ad35077cfa4fb222928e97db4d50b68a0567c3
2023-03-15 01:18:31 +02:00
Michael Bestas
938f8dfd57
Migrate berry_black_theme to Secure table
...
AOSP theme settings live in Secure table, let's do the same
Change-Id: I31eafeb940fe50cdde03e12cb3431f4f325d772b
2022-09-25 19:51:16 +02:00
Michael Bestas
fd9f38394d
Automatic translation import
...
Change-Id: I57327e9ee6eebc60ec26f519f81cfbe648bcd193
2022-06-20 23:57:09 +03:00
Michael Bestas
88b323507b
Automatic translation import
...
Change-Id: I65e81dc7fdcdefd9d81d44a5302fcbb5bd2a317f
2022-05-10 21:58:12 +03:00
Asher Simonds
e727e72f16
lineage-sdk: Bring in the new icon
...
* Part of the new iconset made by Asher Simonds
Includes
* LineageSettingsProvider
* LineageOS System
Co-authored-by: Michael W <baddaemon87@gmail.com >
Change-Id: Ia3241f19e4e3e8ad8ed7688baf6a7dab7c0d3c0e
2022-04-06 23:14:42 +02:00
Chirayu Desai
a97180fa58
Move trust usb setting to global, and drop keyguard from name
...
* We're expanding this to allow disabling usb devices always.
Change-Id: Ibdea983160ae88c3eb696540631facefc288b859
2022-03-24 14:46:11 +01:00
Oliver Scott
ca136deee2
Log failure to update DATABASE_VERSION
...
Change-Id: I7fc844acda3892cea68c1e9a44a89e87c997f789
2022-03-21 23:40:21 +01:00
Luca Stefani
b0d6dd92e8
sdk: s/UserHandle.USER_OWNER/UserHandle.USER_SYSTEM/g
...
USER_OWNER has been deprecated and replaced by USER_SYSTEM
Change-Id: I93b057a52dcdcb3760b7c2139bea2e25a624a78f
2022-03-07 22:42:53 +01:00
Oliver Scott
e385b0c2f3
Enable Restricted Networking Mode and allowlist INTERNET apps by default
...
* Handles fresh installs and upgrade scenarios
* Replaces network isolation feature
Change-Id: Ia35ba7cdc07ed9f49c09e2dd5275bfc233d9efe2
2022-01-05 00:44:55 +01:00
Bruno Martins
ea5bec56fd
LineageSettings: Deprecate charging sound settings in favor of AOSP ones
...
There's no need to have our own settings for this when we can simply
override the existing AOSP ones.
Change-Id: I84e1f7286cd6b4ee68c62f17ad104c76031ee0ff
2021-12-31 17:20:56 +01:00
Luca Stefani
9256c6841b
settings: Allow validating Global settings
...
Change-Id: I7648e092b31fdf685ad01577834755cb631fde73
2021-12-23 00:48:11 +01:00
Luca Stefani
9ca1852af1
settings: Also check WRITE_SECURE_SETTINGS perm for System table
...
In M+ Google changed the permissions required to access the System table
and forced every caller to either hold the WRITE_SECURE_SETTINGS
permission or target pre M API
Change-Id: Ie4a4dd11e28b1caff1a6cd9be52f79b236f9271f
2021-12-23 00:47:02 +01:00
Michael Bestas
014cbda272
LineageSettings: Sort defaults based on table
...
* No functional changes, matches LineageDatabaseHelper
Change-Id: I8f4e2468974aa5d186a81ce76baba5a0b8d11c44
2021-11-07 00:44:33 +02:00
Michael Bestas
42b82632d6
LineageSettings: Remove unused defaults
...
Change-Id: Ibcf52069a4755a73be596453cc0ac791cfca8b1d
2021-11-07 00:44:33 +02:00
Michael Bestas
e9206cc3a3
LineageSettings: Remove "advanced_mode" setting
...
* This was a CyanogenMod feature that we never forward ported.
Change-Id: Idce22d57784132ff0676bce3e1dd55f9793c1a59
2021-11-07 00:44:32 +02:00
Michael Bestas
b1a4f1be15
lineage-sdk: Remove unused protected app/component code
...
Change-Id: Ie054c1da1381cd9ba0c10405ce50b5c727ad1987
2021-11-06 12:52:01 +02:00
Michael Bestas
eb64e79f86
lineage-sdk: Remove weather related code
...
* This has been untouched since 2016 and it depends on LockClock
which has been dropped and was also untouched for years.
There is no good weather provider without API restrictions,
so just remove this dead code.
Change-Id: I6540006ce0d7339b7794b6ab207593afb161aa3d
2021-11-06 12:52:00 +02:00
Michael Bestas
2d0905bd68
lineage-sdk: Remove all code that is marked as Deprecated
...
Change-Id: I04581d30a5b4ef9d176d17c7aa3baf4b58e8d2af
2021-11-06 12:52:00 +02:00
Luca Stefani
4068ca7095
lineage-sdk: Move apps to system_ext
...
Change-Id: Ifb4bda9d5399e31d26ec257fcc185b22635596df
2021-10-13 12:10:33 +02:00
Luca Stefani
5769464c12
Twelve bringup
...
Change-Id: I5e54d1763e5cd1dd8ae895f15d4d54887ced3133
2021-10-13 12:10:32 +02:00
Bruno Martins
1416383888
LineageSettings: Mark lookup features as deprecated
...
These are now handled directly in our Dialer app.
Change-Id: I8d1cd0963360a88be21fdda727725cdb7146723f
2021-06-06 00:20:35 +02:00
Bruno Martins
1bc4dc52ca
LineageSettingsProvider: Allow overriding volume panel default location
...
Change-Id: Iad500afd0e4f0d65aed9905f9fd9fd8ada51fce9
2021-05-28 23:47:32 +02:00
LuK1337
56e1fbec1b
LineageSettingsProvider: Make lockscreen visualizer off by default
...
Change-Id: Ia7a3ddc32d189c53bca5aad8989d75636da7bdb4
2020-11-20 16:31:53 +01:00
LuK1337
9104aee9cd
LineageSettingsProvider: Migrate keyboard/button backlight to 0.0f -> 1.0f range
...
Change-Id: I42123b2cc2acde35c5db9087f478be5adc63b3ec
2020-10-05 20:35:53 +01:00