Commit Graph

186 Commits

Author SHA1 Message Date
Michael Bestas
b4fb451607 Move liblineage-sdk_platform_jni to /system_ext
Change-Id: Ida89af9027779496f5134f32fbb9d973ca7b2313
2021-11-14 21:39:06 +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
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
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
5769464c12 Twelve bringup
Change-Id: I5e54d1763e5cd1dd8ae895f15d4d54887ced3133
2021-10-13 12:10:32 +02:00
Michael Bestas
ce85343092 Automatic translation import
Change-Id: I63129c8bb2de7de2fd2bf6a5b8090878598e9985
2021-08-21 04:06:30 +03: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
Han Wang
162d0fd364 PerformanceManagerService: Account for QCOM perf HAL 2.1/2.2
Change-Id: Icb57a6b3a5ff72222983eafd40a7bc9db45d60f8
2021-06-03 10:23:08 +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
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
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
Arian
5f3ded7d05 Introduce anti flicker mode in LiveDisplay
Change-Id: Iba7387ff16d463d087c9a38bced90b6c1bd503b1
2021-04-06 11:35:41 +02:00
Han Wang
4457a818c3 lineage-sdk: Fix NPE when using getPictureAdjustmentRanges()
* This method can return null, and List.addAll(null) will
   throw NPE. Fix it.

Change-Id: I4e5fc719209dbfbce785b1e0b07588e2406203ea
2021-03-06 10:27:55 +01:00
Michael Bestas
09b2736bce Automatic translation import
Change-Id: I42337aacd36b8e1f5a5ef2feb4de3cc048d191b3
2021-02-28 02:38:28 +02:00
Han Wang
6b80931a54 PerformanceManagerService: Account for QCOM perf HAL 2.0
* This also allows waiting for MPCTL to start on boot
   if devices are using the newest perf HAL.

Change-Id: I3855198d7bcf01472595616e820d47bcec01d8d4
2020-12-11 17:07:53 +01:00
Bruno Martins
c127bb2d83 sdk: Set AOSP default behavior for app switch button long press action
The default is no action. Furthermore, split screen is not supported
on Android Go devices and being that one the default action makes it
inconsistent with Go-aware ButtonSettings code in LineageParts.

Change-Id: I21e834f8557d0d0dc81af8443bcb8db30300ded0
2020-12-05 00:32:25 +01:00
Bruno Martins
1f93089a72 sdk: Allow support for keyboard lights toggle mode only
Change-Id: Ibf7d9f5a2fb15e2085161275236d998b3f162450
2020-10-29 16:19:59 +02:00
Bruno Martins
13069beb3a sdk: Move to new button and keyboard brightness configs
For as strange as it may be, so far the visibility of the features depended
on the default value of config_{button,keyboard}BrightnessSettingDefaultFloat.
This was nonsense, because it would force everyone to overlay that default
with a value of 0.0, just to make the unsupported feature go away.

Change-Id: If605238bf30642db057b06b03224d9a8b4451f12
2020-10-29 14:16:18 +00:00
LuK1337
612a8b9820 sdk: Switch to public API getting WiFi SSID
Change-Id: Icd3f05169a8884ea981f0cf1dbf7c024c34c721e
2020-10-08 13:57:53 +02: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
Bruno Martins
a5fcead6cf lineage: res: Introduce overlays for biometrics hax
Change-Id: I5037be2fc49680a5092939b5e8b6518a506d7297
2020-10-05 20:35:11 +01:00
Bruno Martins
05473f5a8d lineage: res: Introduce button/keyboard backlight config overlays
Change-Id: I55214f39aefda1bdcbc2fa7aa5845812a68f94af
2020-10-05 18:09:51 +01:00
Bruno Martins
4218524124 TrustInterfaceService: Do the needful at a later stage
According to the lifecycle of a SystemService, onStart() is called to get
the service running and the service should publish its binder interface
at that point. First of all, ensure to do that and then do the real work
once boot is completed.

This was actually the root cause of the issue that commit c06e32d
addressed (not entirely correctly). Although the crash was no longer
observed after that commit, the proper fix is actually this one.

Change-Id: I42dc7182ba3d0db5413709de229ab9c0c4926df6
2020-10-01 19:21:18 +02:00
Bruno Martins
9b94f22095 LineageHardwareService: Publish binder service during onStart()
According to the lifecycle of a SystemService, onStart() is called to get
the service running and the service should publish its binder interface
at that point.

Change-Id: I99031807f45d8d7e048582749b1ba6885aa12af4
2020-10-01 19:21:18 +02:00
Bruno Martins
5d877cde9c ProfileManagerService: Fix initialization order
According to the lifecycle of a SystemService, onStart() is called to get
the service running and the service should publish its binder interface
at that point. First of all, ensure to do that and then initialize the
rest of the stuff only during PHASE_ACTIVITY_MANAGER_READY boot phase,
because services can only broadcast intents after that phase.

This fixes a particular issue, that was causing LineageParts to crash
while starting System Profiles activity.

Change-Id: I8a397523aec8b5008da3e596eee23463618c8489
2020-10-01 19:21:18 +02:00
Paul Keith
4b568b121c sdk: Add overlay for disabling livedisplay
* config_defaultLiveDisplayMode should also be set to 0.

Change-Id: I06ded48ec8783d5319925f391cb7f54391cd1dea
2020-10-01 16:42:18 +02:00
Bruno Martins
c06e32dcc2 TrustInterfaceService: Init mNotificationManager in the constructor
Ensure that the variable is not null when removeNotificationForFeatureInternal(int)
is called so to avoid the NPE:

   E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.NotificationManager.cancel(int)' on a null object reference

This fixes LineageParts crashing when disabling Trust notifications.

Change-Id: Ia0fa793378116101821a7bd424e0859869db48f5
2020-09-26 14:39:36 +02:00
Bruno Martins
063a591095 jni: Switch to jni_headers
Change-Id: I9df3558e828fcf4071681775c3790d1c75e96043
2020-09-20 23:02:20 +02:00
Bruno Martins
97fa452b81 jni: Use NELEM macro from utils/misc.h
Change-Id: I5b8a584fa0b72bb1a4955dce5e73b42cbb4f8250
2020-09-20 23:02:01 +02:00
LuK1337
bede8e54bd Trust: setBlockableSystem() has been renamed to setBlockable()
Change-Id: I62a560971c1be2fb1f26d58c75c0761f5db98278
2020-09-15 10:16:10 +02:00
Sam Mortimer
07564a9939 lineage-sdk: use libnativehelper
* And modify include paths to allow compile:
  JNIHelp.h -> nativehelper/JNIHelp.h

Change-Id: I8d7b09a4f4d4bf1b6c49d5cd5cc191b383080809
2020-09-14 22:09:11 +02:00
Jarl-Penguin
ae6540bc43 lineage-sdk: Fix typo for filterDisplayModes comment
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I710a23500909beff04392b8df8e4bf9e9e33162d
(cherry picked from commit 38d62ca22f02ca4c1b74fa3c2f53491d00484ef3)
2020-09-12 10:57:36 +02:00
Michael Bestas
a674865ad8 Automatic translation import
Change-Id: Iad577fd5870aefc1c6b21d1a938106929c86352d
2020-06-26 17:24:58 +02:00
Alexander Martinz
4fed3ece43 LineageSettingsService: prevent setting net.hostname to null
If the user did not set a custom hostname, the settings service will
set net.hostname to null.

Only set net.hostname if the user actually set a custom hostname.

Change-Id: Ie9cc84e5e8c9468a7e698896e2b21c14a37ebffc
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2020-06-25 16:20:29 +02:00
Michael Bestas
d4444ddb0a Automatic translation import
Change-Id: I935c810592e329abd48705c57d67f855071d21c9
2020-05-23 18:20:09 +03:00
Michael Bestas
a5e2132739 sdk: Remove weather from default services
* It's not brought up

Change-Id: I4bcce5d3a8273a2863f5987c8c44e3ab318c811c
2020-05-06 19:49:16 +03:00
Michael W
eec59ae1b6 Trust: Actually cancel notification if the setting is disabled
* When onboarding, the notifications show up properly
* Once you disable any of the notifications, none of them vanishes
  due to the logic being inverted:
  We want to cancel the notification if the warning is not allowed!

Change-Id: Id3f3b3c9e184cc11d2909dd1e0f7859e32588728
2020-05-05 00:27:35 +02:00
Michael Bestas
8bd3a0cbf7 Automatic translation import
Change-Id: I907c2c99ffee9b9a24c2bbafc1b1ad29c145f092
2020-04-23 16:46:09 +03:00
Michael Bestas
a693b1e74a Automatic translation import
Change-Id: I83a67e766b76c8e68bc719ef8ef41c7c22bf14ae
2020-03-30 20:27:55 +03:00
Michael Bestas
e987cfdc6f Automatic translation import
Change-Id: I00a026ec55060642ba678a54e00dd98c88ed0d61
2020-01-27 16:40:24 +02:00
BeYkeRYkt
5cb3e512cd PerformanceManager: Fix applying power profile in low power mode
* Fixes the wrong power profile after rebooting the device, if before that low
  power mode was turned on.

Change-Id: I6008433b5e304a0f168ba9c7eeb189f4d3e83347
2020-01-17 10:16:46 +02:00
Michael Bestas
f355fdbfe8 sdk: Remove berry style leftovers
Change-Id: I59cf25452d1de34bc3c357cdc01b6a4f985802ad
2019-12-16 15:10:11 +01:00
Wang Han
d0702b1288 lineage-sdk: Drop root status of Trust
Change-Id: Iaec0b2a8a781a0e9d301a21a3af5e4362a5d6630
2019-12-08 23:04:18 +01:00
Bruno Martins
4eeac2c95b sdk: Nuke Berry Styles
This is being ditched in favour of ThemePicker.

Change-Id: I00c5faca452164d59b804cb64166edb83611f77d
2019-11-21 02:36:13 +02:00