Commit Graph

29 Commits

Author SHA1 Message Date
Joonas Kylmälä 2d8ae47d99
Disable phone number lookup settings during upgrade
This disables during the upgrade settings that cause private
information leaking through phone number lookup feature.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Acked-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2019-10-10 13:25:06 -04:00
Arne Coucheron 55c755aa72 CMSettings: Add default overlay for forward and reverse lookup
Change-Id: I3510a3e136ef86a8d45847a0bf7a35fb426212f9
2016-07-29 11:17:46 -07:00
d34d e1c502d3cf LLS: Allow default enabled events to be overlaid
Change-Id: I4607c0cace28c0987c2ed13d04db7c1eb67a1d0b
TICKET: CYNGNOS-3103
2016-06-26 08:34:04 -07:00
Roman Birg 5b6638051e CMSettingsProvider: load provisioned flag when creating DB
If the database needs to be created, it will not be upgraded. So, if the
device was provisioned and the table wasn't created, we don't upgrade
and so we cannot bring the old flag to the new location.

Fix this by setting the new cm provisioned flag on database creation.

Ticket: CYNGNOS-3017

Change-Id: I1e961f1cb2d06c55c1e92ef63c6dbaee17dbc304
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-06-09 11:58:55 -07:00
Danesh M 68665286e8 CMSettings : Move force_show_navbar to global
Keep feature inline with 12.1, only allow owner to
control the feature and mirror across users.

Also add additional checks for moved settings.

Change-Id: Ida11b71bc5ce9463628f8c5d76e59902d47d59bb
2016-05-13 13:35:13 -07:00
Michael Bestas 4a0ad7cfbb CMSettings: Fix upgrade from cm-12.1 after weather changes
* Only the owner can write to the global db

Change-Id: Iec7736c28ff0bc7a35dae8bbc85ca2b1c137da49
2016-05-08 01:15:29 +03:00
Luis Vidal 186ae8353d Set a default temperature unit
Bump the DB version and set a default temperature unit in
global settings

Change-Id: I14f80e1b3fa3ae4a47769c02b5ebd6a905a53e46
TICKET: CYNGNOS-2751
2016-05-06 17:49:03 -07:00
Roman Birg bf5261c360 CMSettings: add CM_SETUP_WIZARD_COMPLETED key
We need to store the state of _our_ setup wizard.

To not break existing devices' provisioning, copy the current state of the global
provisioned flag to the new key value.

Ticket: CYNGNOS-2431

Change-Id: I3d88361edc126788f42b28efd11f3c7598117138
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-04-22 08:29:38 -07:00
Adnan Begovic 2f2d432495 Revert "Allow to ignore presentation indicator of outgoing calls [1/3]"
This adds public cmsdk symbols to the bootclasspath. :(

  2)   testBootClassPathIsClean(org.cyanogenmod.tests.versioning.unit.ClassPathTest)
java.lang.AssertionError: Jar file /system/framework/telephony-common.jar should not have cyanogenmod.alarmclock.ClockContract$AlarmsColumns !

This reverts commit 3a590c3057.

Change-Id: I03cc2796e84e602933e7132f9181a5822c7f327c
2016-03-10 11:46:03 -08:00
Gabriele M 3a590c3057 Allow to ignore presentation indicator of outgoing calls [1/3]
With some mobile network operators, the presentation indicator of
outgoing calls is always set to either "unknown" or "restricted".
As consequence, the dialed number doesn't show up in clear in the
call history. Allow to ignore the presentation indicator of outgoing
calls to never hide the dialed numbers.

Change-Id: Ia7b9fef3a929e512d8ecb704204b36e3836a056b
2016-03-07 17:06:40 -08:00
Adnan Begovic c8e4f0066f CMSettingsProvider: Define battery style default.
Change-Id: Ic0cea75783ee5a0a7be3d0a24e57588ca177169a
TICKET: CYNGNOS-2041
2016-02-17 14:11:08 -08:00
Adnan Begovic 5af31cd0b0 CMSettingsProvider: Get rid of redundant qs tile defaults.
If you've git blamed this commit because your build broke,
  move your default tiles overlay to

     `vendor/cmsdk/cm/res/res/values/config.xml`

  with the entry value of config_defaultQuickSettingsTiles

  TICKET: CYNGNOS-1908
Change-Id: Id721136ce669d420fde46322a339b9517b1a3677
2016-02-08 11:46:10 -08:00
Adnan Begovic d0d4ce972e CMSettings: Fix defaults load on provider creation.
The database is innaccessible during creation through
  the android resolver interfaces, thus, no defaults were
  loaded even though the code would execute.

  So rewrite the DatabaseHelper to create a singular bulk transaction
  per table when default settings are to be loaded, and provide
  verification tests for the CMSettingsProvider.

TICKET: CYNGNOS-1706
Change-Id: I3d8c5f25704ec9620fe57b82865531fb976a516f
2016-01-25 18:06:39 -08:00
Adnan Begovic 0d9d1ab12e CMSettings: Introduce concept of protected apps managers.
TICKET: CYNGNOS-84
Change-Id: I06245b0a69eea3474c1c093c5843bd59b5c53a80
2016-01-22 15:14:26 -08:00
Ricardo Cerqueira 20d9638593 Add overlay for SWAP_VOLUME_KEYS_ON_ROTATION
This got lost along the transition

Change-Id: I35f5c6cdd73ff1d4a590fa6980d3214dda2bd740
2016-01-22 18:11:49 +00:00
Edward Wang b9f80b66fd cmsdk: Load notification led customization defaults
Issue-Id: YAM-34

Change-Id: I67395465eb830ae994d8d796a4dbdae08ade5b01
2016-01-13 16:12:45 -08:00
Adnan Begovic 9734639366 cmsdk: Fix quick pulldown settings, and unhide numerous system settings.
Change-Id: Ibfc41a74ca5e5902ea704919ce076d8442258406
2016-01-02 12:12:37 -08:00
Danesh M 6ff47d4e1b CMSettings : Add default overlay for people lookup
Change-Id: I64db011fbe66045b52536f2c4b9d92e42603bd30
2015-12-22 11:19:24 -08:00
Roman Birg cb4a990216 Profiles: add isEnabled(); send state changes
Ref: CYNGNOS-1461
Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-21 10:30:15 -08:00
Roman Birg a61af19bdc cmsdk: add LOCKSCREEN_VISUALIZER_ENABLED
Change-Id: Ia8b11083a54195acfebab76c646987962b798c16
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-16 15:40:32 -08:00
Adnan Begovic be9f6b8f47 CMSettingsProvider: Split default load, don't load global for non-owner.
Any "CALL" into the CMSettingsProvider on a new user triggers the load
  default settings mechanism which may lead to attempting to load "global"
  settings for non owner which is impossible.

Change-Id: Ic8535e3c211aeaccfd3d72c3f9b11eef4d9087b8
2015-12-14 14:21:08 -08:00
Alexander Martinz 0fa8756f31 Fix build breakage caused by "add default value for QS_USE_MAIN_TILES"
* commit 204ffe00a3

Change-Id: I84d58a31e7f91e448865a05cf947f1e7d3442653
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
2015-12-07 23:56:06 +01:00
Roman Birg 204ffe00a3 add default value for QS_USE_MAIN_TILES
Change-Id: I22f1430841b7eec3a01431bfd12ed1591361f46d
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-07 13:26:10 -08:00
AdrianDC a63e78ba92 cmsdk: Move Notification LEDs settings to CMSettings
* Lights with Screen On
 * LEDs Brightness
 * Multiple LEDs

Change-Id: I8c3f3cae53c834d1d2798d9dece00e3253ccb1db
Signed-off-by: AdrianDC <radian.dc@gmail.com>
2015-11-13 14:13:09 +01:00
d34d b59538ccd0 CMSettings: Move Global settings to CMSettings
Change-Id: Ib054409d5ad790e011e12ecbc6786bf3562a1b80
2015-11-12 17:23:39 -08:00
Yvonne Wong 49b98823f6 CMSettingsProvider: Add ability to read region locked themes
Change-Id: I51c0d68d763e7cfec7bdc7b18782d66732fb2160
(cherry picked from commit 20cecb7dec7efb35277138bc7fa57704c3757414)
2015-10-26 15:16:39 -07:00
Yvonne Wong 5fdff90050 Remove AOSP settings from CMSettings/CMSettingsProvider
Change-Id: I85eee73bf215c72f42067c0e3d2f68946485a10f
2015-10-09 14:26:53 -07:00
Yvonne Wong 05d0129478 Add way to migrate CM specific settings to CMSettingsProvider
issue-id: CYNGNOS-829

Change-Id: I08743ebf9ffd3846ae501ed41e396b1556dc41cf
2015-09-25 13:17:19 -07:00
Yvonne Wong 0eb2999091 Add CMSettingsProvider and CMDatabaseHelper
issue-id: CYNGNOS-828

Change-Id: I01c08c0e432d6a941950a565e5ab6664664e2a7f
2015-08-31 13:52:27 -07:00