Commit Graph

156 Commits

Author SHA1 Message Date
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
LuK1337
1317cf2b12 LineageSettingsProvider: Make it compile again
* IContentProvider API now requires us to pass an attribution tag.

Change-Id: Ie991f71fb34717ab7d811ccb519a0d2d595df388
2020-09-15 10:11:35 +02:00
Sam Mortimer
fdf52b5ed0 lineage-sdk: Run bpfix
* Run bpfix -w .

Change-Id: I72bf80791a5053de06e5472b3d6fccb3d6b0ed55
2020-09-15 00:01:31 +02:00
Sam Mortimer
93abc79d05 lineage-sdk: use platform_apis for LineageSettingsProvider
* Fixes compile error:
  lineage-sdk/packages/LineageSettingsProvider/Android.bp:17:1: module "LineageSettingsProvider" variant "android_common": platform_apis: platform_apis must be true when sdk_version is empty.

Change-Id: I3024ef46e729fea6f85ed9e84acf8ab5a9f05cb1
2020-09-14 22:07:11 +02:00
Michael Bestas
abce3bd2d5 LineageSettingsProvider: Add privapp permissions xml
Change-Id: Ic3b263a94b9269a478c162cd01073870e518df94
2020-05-06 21:39:59 +03:00
Michael Bestas
8bd3a0cbf7 Automatic translation import
Change-Id: I907c2c99ffee9b9a24c2bbafc1b1ad29c145f092
2020-04-23 16:46:09 +03:00
Chippa-a
5802c11140 lineage-sdk: Update path for custom charging sound
Audio files were moved to /product on Android 10.
Moreover, align with AOSP and use the wireless sound
for wired usecase too.

In order to perform upgrade properly, handle the migration
for custom charging sound setting.

Change-Id: Ifb2085e3f56d777091d66544a72cdd75c843fb56
2020-04-21 15:05:56 +01:00
Michael Bestas
a693b1e74a Automatic translation import
Change-Id: I83a67e766b76c8e68bc719ef8ef41c7c22bf14ae
2020-03-30 20:27:55 +03:00
Sam Mortimer
507605002f lineage-sdk: Bump PREF_HAS_MIGRATED_LINEAGE_SETTINGS for 17.0
Change-Id: Ia88d36533c0b0a2dd8ca18e93de5d03441dd8092
2019-11-15 00:24:18 +01:00
Sam Mortimer
3d25e8b3f7 lineage-sdk: Fix LineageSettingsProvider tests
* Fix bp and manifest to work with AndroidJUnitRunner.

* Remove broken tests (we no longer intercept in fw/b
  settings provider and QS_USE_MAIN_TILES was removed).

* Tests pass when executed using:
  adb shell am instrument org.lineageos.lineagesettings.tests/androidx.test.runner.AndroidJUnitRunner
  (see README.md for more info)

Change-Id: I3fcf4885c61106f43e99847293220afee78e2f6a
2019-09-20 16:44:37 -07:00
Sam Mortimer
7e03d078bc lineage-sdk: Add call methods for list and delete to our settings provider
To match changes in fw/b settings provider

Change-Id: Ie4683fe29b9109091d0ebd4910d31b7b4c714daa
2019-09-19 22:08:52 -07:00
LuK1337
e530d7a126 lineage-sdk: Clean up imports
Change-Id: Ie14853382ebefd42fdf827e2999a2a2a6d0a1cd1
2019-09-10 16:10:48 -07:00
Sam Mortimer
3a06cbea25 lineage-sdk: Include authority in content provider calls
API changed here:
633a13e2fa (diff-944e798f679ef205433bd711345d06dcR75)

Fixes:
AndroidRuntime: Caused by: java.lang.SecurityException: The authority
unknown does not match the one of the contentProvider: lineagesettings

Change-Id: I5fe85fee777f919824e6a2ff78986e2d736e0267
2019-09-09 07:37:31 +02:00
Sam Mortimer
e8814c5f0b lineage-sdk: Run bpfix on our Android.bp files
In particular, fixes packages/LineageSettingsProvider/tests/Android.bp
which otherwise results in errors about unknown properties tags
and instrumentation_for.

Change-Id: I1d44fce77765a77ed6f3c23763f439a216eaefda
2019-09-09 07:32:54 +02:00
Sam Mortimer
3533d385d9 lineage-sdk: Migrate to androidx
* Migrate from support library to androidx

* Various improvements and cleanup by @bgcngm

Change-Id: I10bbf5056125e8309f344c3eb18cc628bd7ec34e
2019-09-09 07:09:59 +02:00
Michael Bestas
9b69fd9c0c Automatic translation import
Change-Id: Iaab92105e9b37bcf015ba07362cc6fbd14047d8a
2019-08-25 20:36:37 +02:00
Michael Bestas
2250c78241 lineage-sdk: Correct default value of charging sounds
* It is enabled by default on Pie

Change-Id: Ia6faeee4d41c088d057fe1719f32d70f7fa1b099
2019-08-19 18:33:07 +02:00
Martincz Gao
92bd1871b6 lineage-sdk: Use AOSP default ringtone for power notification
Change-Id: I5b9aa82f23d404ea4372658671608b106600733f
2019-08-19 18:32:55 +02:00
Michael Bestas
10e0e87158 Automatic translation import
Change-Id: I0aeca2cb7c42a517b92b6d6cae3856572b210a63
2019-08-04 16:22:27 +03:00
Michael Bestas
1c52f374a4 Automatic translation import
Change-Id: I2d6ab8ea3d829b91c1d147f2efe9249f7a6cd04b
2019-06-08 18:56:59 +03:00
Hendrik Hagendorn
5ded0fcf6c sdk: Update for refactored battery icon options
* Handle the migration for old settings and default
   to Android's stock battery style.
 * Hiding battery icon is now achieved using icon blacklist
   via system tuner settings.

Change-Id: Ie41d71c774a34abe225e2c0a6a0a9fd4316189cd
2019-06-02 22:27:30 +01:00
Michael Bestas
952ef00123 Automatic translation import
Change-Id: I9a0517fe270f0b6f37b22bf2cc3ab9974e3fcdd1
2019-04-07 21:57:39 +03:00
Michael W
13e33b7116 Automatic translation import
Change-Id: If43774499b4bbea34c504b1a86ee4c2a1d09fc75
2019-03-11 17:21:03 +01:00
Michael Bestas
7c58c4c5fa Automatic translation import
Change-Id: Ia4b2bbf6b93883e87ed88d2d0acde820dfea3698
2019-02-26 19:00:28 +02:00
Michael Bestas
fab8bbfd32 LineageSettingsProvider: Fix migration of FORCE_SHOW_NAVBAR
* It was moved from Global to System but no migration was in place
  to handle upgrades from previous versions.

Change-Id: If76243b0224dbc0138cf3c5dbc8aaeefa69f06a4
2019-02-04 22:39:33 +01:00
Han Wang
68a1d795d3 lineage-sdk: Remove useless logic on database upgrading
* The upgradeVersion < newVersion part is never reachable because we
   increase upgradeVersion unconditionally. Make it back to stage by
   nuking it as no one has experience issues before.

Change-Id: Icac1e18c192292ad3147fd4af4c862e93ef34ba5
2019-01-19 17:07:54 +01:00
Michael Bestas
bbc2643632 Automatic translation import
Change-Id: I0256f07ce9acdc90e9cd4b25c6c28608cd6cade8
2019-01-12 20:02:23 +02:00
LuK1337
50e230446a lineage-sdk: Fix setting default def_force_show_navbar value
* DEV_FORCE_SHOW_NAVBAR has been renamed and moved to System.

Change-Id: I5aecbd66769b332692a4b54a1ba1d88b4679ed1d
2018-12-04 14:32:11 +01:00
Sam Mortimer
84d90ce2a1 lineage-sdk: Bump PREF_HAS_MIGRATED_LINEAGE_SETTINGS for 16.0
Change-Id: Ia88d36533c0b0a2dd8ca18e93de5d03441dd8092
2018-10-09 23:35:27 +02:00
Sam Mortimer
cd0ec5ba84 LineageSettingsProvider: Cleanup after LINEAGE_SETUP_WIZARD_COMPLETED deprecation
Change-Id: I997759d1f79fae514566e6474ea7802c2c7d1f53
2018-10-05 18:46:34 +02:00
LuK1337
c5e6a03d01 sdk: Update default clock position
* Also migrate users using right clock so
  that they get the new default setting.

Change-Id: I2e38a16af46d77ff92ada268b8fc0927b0c4806c
2018-10-05 01:41:13 +02:00
Sam Mortimer
55db77b688 lineage-sdk: Move force show navbar to lineage system settings
*) Mild cleanup of DEV_FORCE_SHOW_NAVBAR in the process.

Change-Id: I519245ffb350c172bb1eef2b0d507089fc87907c
2018-09-27 23:09:04 -07:00
LuK1337
cb1d854001 sdk: Add migration for /missing/ custom button actions
* Since we removed onehand from settings
  we need to make sure user doesn't have them
  set in settings otherwise we will hit
  ArrayIndexOutOfBoundsException exception.
* Fixes : BUGBASH-1525

Change-Id: I7a5737ecfe5e70c3f0108c03b3e8745eade80433
(cherry picked from commit eb8fc0648f645a265ce8d1b6daf575795eb69510)
2018-09-04 00:47:18 +02:00
Rashed Abdel-Tawab
703249ae8d lineage-sdk: Android.mk -> Android.bp
Change-Id: Iac2bd318e7ceb6b96e30d26832d98b7b2726cd5b
2018-08-30 02:31:18 +02:00
Sam Mortimer
8daa2ca6ae LineageSettingsProvider: Don't set LINEAGE_SETUP_WIZARD_COMPLETED
*) This was initialized from Settings.Global.DEVICE_PROVISIONED and it is no
   longer possible to access system settings during provider startup since:
235272a216

*) LINEAGE_SETUP_WIZARD_COMPLETED has been deprecated since 14.1:
797a45aa69

*) We will later cleanup the unused setting during topic:pie-db-upgrade

Change-Id: I185648ca25995fae80362642d297573795d04bfa
2018-08-30 02:29:52 +02:00
Sam Mortimer
1e5a24c4cc lineage-sdk: Remove proguard shrinktests
Removed by:
e4936e1c2d

Change-Id: I3c0fe281fa06839a620a47402b72fc653b6ee037
2018-08-21 13:37:50 +02:00
Sam Mortimer
283ab86554 lineage-sdk: Set LOCAL_PRIVATE_PLATFORM_APIS := true
Change-Id: I06b9374ccee78550fcc26d876a9e4ea50198bbfe
2018-08-21 13:36:14 +02:00
LuK1337
9a5742fc33 sdk: Add default setting for clock position
* Will be used by devices with notch.

Change-Id: Ie2af3f4741637656054d97ecbb5f20553c6001fd
2018-07-26 21:43:26 +02:00
Michael Bestas
b51402703f Automatic translation import
Change-Id: I1e864fd7e123826117d996ffb688927379f28597
2018-06-18 23:28:45 +03:00
Michael Bestas
506bef406e Automatic translation import
Change-Id: I4c2317a017fb1c58b9b490e4e9e9e05bec1275de
2018-06-03 14:10:28 +03:00
Michael Bestas
ff242a26c1 Automatic translation import
Change-Id: I2ba6cf000f997a70900a390768321c9961b9bc14
2018-05-08 19:47:48 +03:00
Michael Bestas
a34e338626 Automatic translation import
Change-Id: Id5a6f4eb1afe35cb95416832a51c3c64aa4a3696
2018-04-01 22:33:09 +03:00
Dan Pasanen
faca0b31b6 LineageSettingsProvider: explicitly include android support libs
* Fixes non-jack build

Change-Id: I1b22ad0ca9e21e2b329678be18f02cf69de44a1a
2018-03-21 22:50:36 +00:00
Michael Bestas
d70eb3905a Automatic translation import
Change-Id: Ie12729572a5f5aff8198c4d642b895fafcbf2c10
2018-03-09 00:36:25 +02:00
Michael Bestas
b68e02306a Automatic translation import
Change-Id: I5f0d7df148653f6f67f826c8ee4770dc19992d23
2018-02-25 22:04:41 +02:00
LuK1337
5c6b56138f LineageSettingsProvider: Fix default setting for DEV_FORCE_SHOW_NAVBAR
* It has been moved to Global.

Change-Id: I99dfa3742bd0c7963b4795b13afe5d4c8a0681c3
2018-02-23 21:05:56 +01:00
Michael Bestas
1c51c1c2e8 Automatic translation import
Change-Id: I8081d8983553a18b617b784ebbf8c8b0a27b511e
2018-02-22 03:50:39 +02:00
Asher Simonds
c97a9ad191 LineageSettingsProvider: adaptive icon
Change-Id: I6a6d2acd2b319d313d02b18c59464563f1a84565
2018-02-17 12:51:03 +00:00