Commit Graph

113 Commits

Author SHA1 Message Date
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
Sam Mortimer
e7008a222e LineageSettingsProvider: Support migration from cmsettings
*) Migrate database from cmsettings.db to lineagesettings.db

*) Remove old CMSettingsProvider.xml shared_prefs.

*) Remove the code to disable the PreBootReceiver component.
   PackageManager is not yet ready for component lookups when
   LineageSettings is called during fw/b service startups.
   However, the preboot intent is only sent when the build
   fingerprint changes so disabling it doesn't really buy us
   anything.  We also track and check migration state in
   sharedPrefs anyway.

Change-Id: I636f8315ce8a36f6d223d6a5accfe11c40ef9570
2018-01-27 13:25:35 +00:00
Sam Mortimer
c7a8ed54b5 lineage-sdk: DnD light brightness control for battery and notifications
*) Support separate normal and dnd led brightness levels for battery
   and notifications.

*) Move lineage-specific notification bundle extras definitions from fw/b
   to LineageNotification here in the sdk.

*) In addition to the existing bundle extra EXTRA_FORCE_SHOW_LIGHTS, add
   a new extra EXTRA_FORCE_LIGHT_BRIGHTNESS that can be used to override
   the brightness level set by a Lineage system setting brightness level
   on a per notification basis.  This is used by the brightness sliders
   in LineageParts that otherwise would have to juggle changing / restoring
   the system led brightness setting whenever the a slider is on display.

*) Disable all lights in dnd mode when lineage setting ZEN_ALLOW_LIGHTS
   is set to 0.

Change-Id: I917f402a291682b582f68c8324a33c461357dad9
2018-01-25 20:38:10 +00:00
Michael Bestas
99fba21024 lineage-sdk: Remove lineage status bar service
* Used for CM tiles API which is long dead

Change-Id: I66e8b57c035584aff5a4f5123388a4881e853a8f
2018-01-24 02:43:12 +02:00
Michael Bestas
0e540883cf Remove obsolete values-be translations
* values-be-rBY is used now

Change-Id: I1bfa7ec55606af83e92013dea6a907aa1fa3f6cc
2017-11-20 22:03:26 -08:00
Adrian DC
af41414b76 Multiple LEDs [2/2]: Remove feature support
* The feature was used only on Huashan since 2015

 * It serves only for a small part of the users
    who wanted to restrict to one light instead
    of three lights from the LEDs bar

 * Due to Oreo's new HIDL interfaces stack,
    the additional data holder would need
    a custom lights interface which is useless
    for a single device and a rare use case

Change-Id: Ie08a1d625c7ce00fefff5bc1159522207be69dbc
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-10-14 14:18:27 +02:00
Sam Mortimer
ae2d7e15ce Remove PartnerInterface and LiveLockScreen
Change-Id: I8044de599ef6db8e9a1ff63e43dc2cea9c28d02a
2017-10-12 21:53:02 +00:00
Sam Mortimer
0912ee88c7 Remove theme support
Change-Id: I41f1d0fa1ecc98c2872d2569534e6f2ef686a726
2017-10-11 23:17:36 -07:00
Sam Mortimer
2041fae2c5 Remove dependency on framework settings getDelimitedStringAsList()
The *DelimitedString* settings methods that we patched into
frameworks/base in <= 14.1 aren't used by anything else so move
the minimum code needed here thereby allowing us not to have to
add the frameworks commit to 15.0.

Link to previous code that was in 14.1:
https://review.lineageos.org/#/c/65703/

Change-Id: I3ec10e406e642ee90f5c2dbd89e598ea97682f67
2017-10-09 16:50:05 +00:00
Sam Mortimer
542742b751 lineage-sdk: rebrand step 2: update file contents
Change-Id: I9881acc57cdc0aeea2b296aac12a8af932d30aea
2017-10-06 09:40:24 -07:00
Sam Mortimer
5ede05bdca lineage-sdk: rebrand step 1: update paths
Change-Id: I4c2135d03d730a313a0638d0f857afa48fb220d3
2017-09-22 17:19:40 -07:00
Gabriele M
62ab051496 Make CMParts a protected component manager
This allows to start protected application from the "Protected apps"
activity without re-inserting the secret code.

Change-Id: Iaf727d741ef8e302b76a566ae9cd6a5031c85079
2017-09-21 17:13:26 +00:00
Abhisek Devkota
1908152a2f Automatic translation import
Change-Id: Ib32d0b8e15c609689d1272b3f9dabdef19fcbc50
2017-04-20 12:10:41 -07:00
Abhisek Devkota
24b3566263 Automatic translation import
Change-Id: I160460107f200f984ab6dc1a558969c38755bb5d
2017-02-24 18:13:36 +00:00
Danny Baumann
1dc89feae0 CMSettingsProvider: remove per-user cursor observation
We don't need it because we don't support using the returned cursor
directly, and it can cause deadlocks when being called from platform
code.

Change-Id: I2f85be1152569ba27e4622d310d867e20965faa3
2017-02-24 16:02:06 +00:00
Zhao Wei Liew
cb1bb042d5 Add a proper description for CM_SETUP_WIZARD_COMPLETED deprecation
Change-Id: I7bf1ee5644b178173941803fccafbbd501289acd
2017-02-19 09:42:44 +00:00
Paul Keith
797a45aa69 cmsdk: Deprecate CM_SETUP_WIZARD_COMPLETED
Change-Id: I1ddf79d8308def2056fa509b64a2ec4af5c39f31
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
2017-02-17 17:47:17 -06:00
Abhisek Devkota
8f0eb557ac Automatic translation import
Change-Id: Ic47d5d629a71bd9820d34a6253793c472f64900b
2017-02-16 10:43:04 -08:00
Abhisek Devkota
77b94bc5a1 Automatic translation import
Change-Id: I0a2d9102882f87207faf28726585f782282ee4bd
2017-02-11 12:43:33 -08:00
Christian Morlok
c0254632e1 cmsdk: fix update path for version 7
* Do not break boot if clock position tunable is unset
* Fixes I2412051289a922dfc72cdf266b47f32cf7aaa31a

Change-Id: I8d841f324f5bf8499365ca48cdf6aa4710ccd957
2017-01-08 00:52:37 +01:00
Hendrik Hagendorn
5bb06dccb5 cmsdk: remove 'hide clock' option from clock position tunable
* Hiding the clock is now possible using the icon blacklist.
* Since the the hide option in the clock position tunable
  isn't currently implemented let's remove it

Change-Id: I2412051289a922dfc72cdf266b47f32cf7aaa31a
2017-01-06 12:06:01 +01:00
clyde@build01
9b8fb749a3 Automatic translation import
Change-Id: Id5bdaabe9eb57cab45064ab172c4656f3379c2ee
Ticket: -
2016-12-21 18:29:16 -08:00
blinky@build01
3d0d6bfd9d Automatic translation import
Change-Id: I992ceb77e65474432e28a543ab312287b40449a2
Ticket: -
2016-12-20 18:05:29 -08:00
inky@build01
bb4cbde17f Automatic translation import
Change-Id: I27edba2815b88f0bcb41a8cfdde1f41a8b1c5f60
2016-12-08 22:52:40 -08:00
Steve Kondik
d64ea163e2 cmsdk: Set directBootAware for CMSettingsProvider
* This is needed for providers which must start early.

Change-Id: Id44dc97dff1348766cbad37656486a787f716390
2016-08-31 22:26:51 -07: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
Adnan Begovic
705890212d CMSettingsProvider: Add coverage for CMSettings' interfaces.
TICKET: CYNGNOS-3016
Change-Id: I55b762b51ad98194c235b83c36e3a6683c33ac4e
2016-06-07 10:45:53 -07:00
Adnan Begovic
8cbdd2a58a CMSettingsProvider: Fix defaults test for DEV_FORCE_SHOW_NAVBAR.
Since DEV_FORCE_SHOW_NAVBAR was moved to global, the test needs
  to query its value there.

TICKET: CYNGNOS-3016
Change-Id: Ided274ec065ec989b4ca4f172ec569adb74cbfd5
2016-06-07 10:45:30 -07:00
Adnan Begovic
cf8f5cefcb CMSettingsProvider: Register as CMTS package.
Change-Id: I6733d352c47b4abbadc42222d3dd5976db8d36b6
2016-06-07 10:45:13 -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
Roman Birg
256a7350ce CMSettings: don't trample user metrics setting on upgrade
During an upgrade, we try to migrate values which are
considered to be LEGACY settings to the new provider, however
because of a bad upgrade path, we need to check if the key exists in the
new database AND the old database, and then we can skip it in that case.

Ticket: CYNGNOS-2740

Change-Id: I5d6bc8399ccc328f4190ed7508c27bd9d5de1b9d
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-05-11 14:45:14 -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
Michael Bestas
380d31c00c Automatic translation import
Change-Id: Ic3958966b87da56246142a98957d9cfe820b4066
2016-04-16 17:52:35 +03:00
Michael Bestas
3f42978e6f Automatic translation import
Change-Id: I2c8633db25b85efc83b1539c8c20b9146fb220d5
2016-03-28 08:01:18 -07:00
Michael Bestas
948e399b5d Automatic translation import
Change-Id: Iedea6c96b80f72ad83b9bb38069c069982ca5fce
2016-03-18 16:01:14 -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
Roman Birg
60a4ebcb43 cmsdk: insert dnd & edit tiles for 12.1 -> 13.0 upgrade
Ref: CYNGNOS-1924

Change-Id: I6d221e143dc91ec3dbc1c9a1877754f2b98b732e
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-02-19 11:40:44 -08:00
Adnan Begovic
c8e4f0066f CMSettingsProvider: Define battery style default.
Change-Id: Ic0cea75783ee5a0a7be3d0a24e57588ca177169a
TICKET: CYNGNOS-2041
2016-02-17 14:11:08 -08:00
d34d
e67ae8f648 CMSettings: Enforce correct permission for writing settings
If an application is writing to SECURE or GLOBAL they should only
be required to hold the WRITE_SECURE_SETTINGS permission and not
both.

Change-Id: Ife14b5e19340f04e2e3b7ebba121104253d1dc88
2016-02-11 11:29:46 -08:00