Commit Graph

1092 Commits

Author SHA1 Message Date
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
Luca Stefani
efe6d135bf Make Usb Restrictor available if USB HAL 1.3+ is present
The new HAL exposes an identical interface

Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: Ic7a0862ca92dab5d25c11926235b2e8194cb7e62
2021-12-19 21:57:44 +01:00
Oliver Scott
55652b702a lineage-sdk: Add min_sdk_version 30 to org.lineageos.platform.lineagesettings
Change-Id: Id828373f7984aeb36a935edf132a688a16250174
2021-12-10 07:35:02 +01:00
Michael Bestas
b4fb451607 Move liblineage-sdk_platform_jni to /system_ext
Change-Id: Ida89af9027779496f5134f32fbb9d973ca7b2313
2021-11-14 21:39:06 +02:00
Volodymyr Zhdanov
0ea65ec244 lineage-sdk: Stop using PreferenceScreen styles for preferences
* until it's fixed in androidx

Change-Id: Ia9c1b0edb2066ac91172ab202657b01252c3972d
2021-11-14 16:09:36 +01:00
Michael Bestas
fdd7189e82 Remove leftover LINEAGE_ICON_CACHE_SERVICE
Change-Id: Ia05cb10c51526b76387b563f226a4ec08e720995
2021-11-14 15:05:27 +02: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
83f54dd052 lineage-sdk: Remove DataUsage related code
* Unused

Change-Id: Ifda534617c62de7b7098c2a2ff674cf2159a74b8
2021-11-06 12:52:01 +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
b2dc2962cf LineageSettings: Remove leftover Dialer lookup settings
Change-Id: I99e375f37d20c5699aa12b98f5e1d6769a2b1f45
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
Michael Bestas
659c78ee60 lineage: Temporarily disable LineageAudioService overlay
Change-Id: I6bec78095e0e3f76984d9162928baf3dc70b9b30
2021-11-06 12:51:59 +02:00
Michael Bestas
b5a2cffe92 Partially revert "lineage-sdk: Comment out LineageAudioService"
* We should just disable the service until it's brought up

Change-Id: I63dc8aca52edd0346fb4bb63afbd0fb7f3f8d148
2021-11-06 12:51:59 +02:00
Luca Stefani
520186e5ac lineage-sdk: Bring back Lineage resources to system
This partially reverts commit 4068ca7095.

Reason for revert:
* Currently Android (PackageManagerService) scans for packages (APKs)
  only in ANDROID_ROOT/framework/ along the standard
  $partition/{app,priv-app} directories.

* By moving to system_ext we accidentally broke the addition of
  AndroidManifest entries to the runtime (resources and assets weren't
  affected as handled manually/differently).
  Note: jars can still be loaded with no issues from this partition.

* Instead of allowing system_ext to provide framework packages and
  pending (future) AOSP discussion to include system_ext to the allowed
  path, simply move back the package.

Change-Id: I352c1518ed43e0631abaebccc1e2093b09d49b6f
2021-10-29 23:23:05 +02:00
LuK1337
89d7c9ba1c lineage-sdk: LineageParts is now in /system_ext
Change-Id: Ia1513006fd46153e2a4a39e5ffb014d0b1624dc4
2021-10-26 21:13:31 +02:00
Sam Mortimer
62697e0f46 lineage-sdk: Comment out LineageAudioService
Requires:
deebe5a37b

*) To be reverted during later ship of topic:twelve-sdk-audio

Change-Id: I1f65fb90e0a7609d719080fa9e48150e1227cff7
2021-10-19 11:13:51 +02:00
Luca Stefani
04c0fc1235 Include lineage res srcjar in every library
Change-Id: I8c15df04d7ef03896420b7584370f9c43d4dbc47
2021-10-13 12:12:19 +02:00
Luca Stefani
50ff674bb2 Update lineage-res definition to follow framework-res
Change-Id: Ia4d8035f08a1f5c58fec05d10a9be07d0bbb6f95
2021-10-13 12:11:52 +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
530d7e015d LineageSettings: Import Settings changes
This brings us inline with AOSP package

Change-Id: I21991f0a440e171506bebb3e922d0ef9fe5c4210
2021-10-13 12:10:33 +02:00
Luca Stefani
5769464c12 Twelve bringup
Change-Id: I5e54d1763e5cd1dd8ae895f15d4d54887ced3133
2021-10-13 12:10:32 +02:00
Timi Rautamäki
641bc03260 lineage-sdk: add ATV button settings
Change-Id: I7d41e71301e480aef73c32af77c0eb78c9053b6d
2021-09-22 16:17:03 +00:00
Eamon Powell
7a57f52199 fixup! lineage-sdk: Add preference keys for one shot auto-brightness
Fix typo in comments

Change-Id: I13b0673ef6b4b3ec501cfea2b5dbfe9b20df3833
2021-08-29 11:30:06 +10:00
Cédric Bellegarde
6e7936c0ca lineage-sdk: Add preference keys for one shot auto-brightness
Change-Id: Ifde39e542b078c40b2fd33e951b68fabef417921
2021-08-23 18:11:50 +02:00
Michael Bestas
ce85343092 Automatic translation import
Change-Id: I63129c8bb2de7de2fd2bf6a5b8090878598e9985
2021-08-21 04:06:30 +03:00
Michael Bestas
e1363720b0 Read sensitive_pn.xml from product partition
Change-Id: I8bcc078b10c7bf822b2d9ebabaade626eca5fd1b
2021-07-23 01:04:31 +02:00
Han Wang
ad35709dbd lineage-sdk: Mark all pending intents as immutable
* Prepare for S behavior change.

Change-Id: Iea263c300b235bb7306457e27e8cacf2e76c8fa2
2021-06-17 09:49:05 +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
Han Wang
162d0fd364 PerformanceManagerService: Account for QCOM perf HAL 2.1/2.2
Change-Id: Icb57a6b3a5ff72222983eafd40a7bc9db45d60f8
2021-06-03 10:23:08 +02:00
Bruno Martins
1bc4dc52ca LineageSettingsProvider: Allow overriding volume panel default location
Change-Id: Iad500afd0e4f0d65aed9905f9fd9fd8ada51fce9
2021-05-28 23:47:32 +02:00
Gegham Zakaryan
ad4bce40b2 lineage-sdk: Add LineageGlobalActions service
The service will offer updateUserConfig, getUserConfig, and
userConfigContains methods, which will be used from LineageParts and
fwb. The service will also observe Settings.Global.BUGREPORT_IN_POWER_MENU
and Settings.Secure.LOCKDOWN_IN_POWER_MENU to update the GlobalActions
dialog when these are updated.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I46663ab1ffe6f8d8b2a3dc7dbe54a65b7a62046a
2021-05-23 15:17:16 +02:00
Gegham Zakaryan
df05cf8b26 lineage-sdk: Follow AOSP order of PowerMenuConstants
Partially follow the order of config_globalActionsList and bring emergency and lockdown to top. Some of the order isn't followed as some items such as users and airplane don't exist in AOSP's list but are much more frequently used than, say, bugreport.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: Ie49e77fd99ad0f0dee7c6c7956fc7c1d0474ee63
2021-05-23 15:17:16 +02:00
Gegham Zakaryan
8e4a978315 Revert "sdk: Deprecate POWER_MENU_ACTIONS"
This reverts commit d8742f0727.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I4071297652a6cd0a47d6c642909b32f742e60781
2021-05-23 15:17:16 +02:00
LuK1337
feae6f7481 lineage-sdk: Mark DEVICE_HOSTNAME as deprecated and drop code using it
* AOSP feature is now in place, which uses device name
   as DHCP hostname.

Change-Id: I4adbaca2d980017e5cd81e200729f03b245c6a3e
2021-05-20 22:41:51 +02:00
LineageOS Builder
3a38117e81 Automatic translation import
Change-Id: I0473255a62d63007a98da5508db3d7d882bd6a75
2021-05-15 21:14:14 +02:00
LuK1337
6fe262abf7 lineage-sdk: Disallow KILL_APP action when task is pinned
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3468
Change-Id: I8420d5531422e9ed25588cd6e5198e14472569e5
2021-05-13 19:34:48 +02:00
LuK1337
1167224e01 lineage-sdk: Retire HostnamePreference as net.hostname no longer works
Change-Id: Ibecaccd5f853570fb4e02cba7274429f2bb037b2
2021-05-12 11:22:12 +02:00
LuK1337
7378e73713 lineage-sdk: Add KILL_APP button action
This partially reverts commit 9eca90278d.

Change-Id: I9bfc039540936e4dbd4313c8f368ce3e3e445290
2021-05-04 13:40:17 +02:00
LuK1337
44427ae3ef lineage-sdk: Add preference keys for back key long press customization
Change-Id: I8a5d80ef5f8aa238ad73ba034d275ea1094dffe9
2021-05-04 13:39:13 +02:00
LuK1337
122825fa60 lineage-sdk: Remove single hand mode enum values
Change-Id: I2865d57d5b6e49391898e8de06889b1a26c54970
2021-05-04 11:15:06 +02:00
Bruno Martins
d1461d3451 BatteryLights: Fix disabled lights when fully charged conditions
Make sure that the option has effect ONLY when battery is uh...
fully charged.

Additionally add previously missing logging.

Change-Id: Ib232d0ea6652230a2435be6931f964dc04a30f71
2021-05-03 19:05:45 +01:00
Bruno Martins
c47d955826 BatteryLights: Add ability to turn off LED when fully charged
Change-Id: I01b8c753a1f92838462a797fd97b5f6a3c666158
2021-04-30 19:40:57 +02:00
Arian
5f3ded7d05 Introduce anti flicker mode in LiveDisplay
Change-Id: Iba7387ff16d463d087c9a38bced90b6c1bd503b1
2021-04-06 11:35:41 +02:00
Luca Stefani
97c2e135f1 lineage-sdk: Move to schema parser
Change-Id: Id79656a4abed0d94e2af81f1935b663164ccc8d8
2021-03-13 17:36:20 +01:00
Luca Stefani
402a3860f4 lineage-sdk: Include SPN parser in org.lineageos.lib.phone
Change-Id: Ib87961a739d5494619c70ecc5f35df6aaadb2eb0
2021-03-13 17:35:59 +01:00
Luca Stefani
34c9267a74 lineage-sdk: Import SPN schema
* Will be used to verify SPN xml at build time
  and to automatically generate a C++/Java parser

Change-Id: Ic401c01b74a958b2e813f986725e6c677febabfb
2021-03-13 17:35:59 +01:00
Luca Stefani
0a32731db8 lineage-sdk: lib.phone: Compile against public SDK
* In order to be able to reference this package
  in non-platform packages, we need to compile
  this against the current sdk

Change-Id: Id87059d876854907d947e5802a04db634435c6ed
2021-03-13 17:35:55 +01:00