Commit graph

368 commits

Author SHA1 Message Date
Deokgyu Yang
6c9dca6051 gts3l-common: perf: Involve perf configs to the device tree
The configs are set for interactive, not EAS. So we have to edit those
configs to be based on EAS system.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 11:23:53 +09:00
Deokgyu Yang
6d6ef4a828 gts3l-common: sepolicy: Now we have sched_boost
I imported sched_boost implement to my custom kernel, which is for HMP system
basically but to use the CAF power optimizations we should have that node.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 11:00:46 +09:00
Deokgyu Yang
21dcb08866 gts3l-common: perf: Import perfd from lge_msm8996-common
As our power HAL only can work when if perfd exists, we have to import this
binary from another device.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 11:00:44 +09:00
Deokgyu Yang
615fa58f40 gts3l-common: rootdir: Remove duplicate energy-awareness service
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 09:02:12 +09:00
Deokgyu Yang
c6512651ca gts3l-common: rootdir: Change the default CPU governor to blu_schedutil
blu_schedutil is basically from the Pixel 3 kernel, and I did import
this to my custom kernel. This has been developed for the better battery
performance based on schedutil.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 01:38:44 +09:00
Deokgyu Yang
53ef5f6211 gts3l-common: perf: Remove perf-profiles excepts profile 0
For our power HAL, there is only one power profile needed.

Refers:
486641d489

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 01:38:44 +09:00
Deokgyu Yang
523ff7a21c gts3l-common: irq: Import msm_irqbalance from lge_msm8996-common
The msm_irqbalance configuration of lge_msm8996-common has more IRQ
numbers for excepting mdss and kgsl-3d0. This is good to improve UX stability.

Refers:
d5f348aedd

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-21 01:36:52 +09:00
Deokgyu Yang
b7d9ca6015 gts3l-common: thermal: We don't need thermal-engine configs
Settings are involved in the thermal HAL

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 23:20:47 +09:00
Deokgyu Yang
a00f867501 gts3l-common: power: Merge power-ext function in the power HAL and apply ours
As we're building our power HAL ourselves, the
TARGET_POWERHAL_SET_INTERACTIVE_EXT flag doesn't working at all. So I
merged this feature to our power HAL to use the extension works, which
is disabling S-Pen panel, LCD, hardware touch key power.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 21:45:44 +09:00
Deokgyu Yang
f54275789c gts3l-common: device: Remove building unnecessary OMX libs
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 21:18:15 +09:00
Deokgyu Yang
2307ff94cb gts3l-common: thermal: Implement thermal HAL to fix sensors
This fixes thermal management and thermal_zone number for the
GPU, battery, skin sensors

Refers:
https://github.com/LineageOS/android_device_lge_msm8996-common

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 21:18:15 +09:00
Deokgyu Yang
06d1732a08 gts3l-common: power: Import marlin power HAL
By copying files from LineageOS/android_device_lge_msm8996-common, it is
more proper for supporting EAS.

Refers:
- ca20a0d81e

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I55cfcb3b764059aac81d265529bdb979c6334f45
2022-02-20 21:18:12 +09:00
Deokgyu Yang
1362e5c29b gts3l-common: power_ext: Rename it for managing power_ext separately
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ib8a0ecf4a35f16c9ba874b1580735c696852dd7e
2022-02-20 20:09:54 +09:00
Deokgyu Yang
60c339b97c gts3l-common: blobs: Import media, OMX blobs from daisy
From daisy - QKQ1.191002.002

And remove Samsung OMX files as info described in:
https://review.lineageos.org/c/LineageOS/android_device_samsung_gta4xl-common/+/299021

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 16:54:33 +09:00
Deokgyu Yang
4d472d4aff gts3l-common: blobs: Import perf, thermal blobs from oneplus3
From oneplus3 - PKQ1.181203.001

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 16:54:33 +09:00
Deokgyu Yang
e025d6f38a gts3l-common: blobs: Update graphics blobs from daisy
From daisy - QKQ1.191002.002, which is based on Android 10

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 15:02:43 +09:00
Deokgyu Yang
100185f44f gts3l-common: blobs: Remove old camera firmwares
These files are not loaded anyway

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 14:43:44 +09:00
Deokgyu Yang
1b5e30e592 gts3l-common: blobs: Enable msm_irqbalance
Refers this commit:
e975bda056

Import msm_irqbalance binary from oneplus3 blobs.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-20 14:43:42 +09:00
Deokgyu Yang
1b8aa77576 gts3l-common: boardconfig: Let builder know our kernel version
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ic2e6c85b01bdc1c0b00886553ed97f0c1b017546
2022-02-20 14:33:24 +09:00
Deokgyu Yang
7d5e7de6bd gts3l-common: boardconfig: Use lld instead of ld
This also resolves my workaround for building kernel,
780bb8553c

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ia6baaa3f2055206f7e21fbf97d2616b03b95ff79
2022-02-20 14:33:24 +09:00
Deokgyu Yang
a28c2c4e82 gts3l-common: boardconfig: Our tablet has HDR, wide color display
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2543d69b4f66283a2dc82966b954b1bc214c8c2a
2022-02-20 14:33:24 +09:00
Deokgyu Yang
d78f085f81 gts3l-common: boardconfig: Enable triple buffering
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I751fac1ddca482aaf08a9b845bc12f1c181dc24e
2022-02-20 14:33:24 +09:00
Deokgyu Yang
66aab5c3bc gts3l-common: boardconfig: Enable partitions on loop devices
This is used by the new "virtual disk" feature used by vold to help
debug and test storage code on devices without physical media.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I89c9263f4d1843a751f39fb5c7d7d2150267a295
2022-02-20 14:33:24 +09:00
Deokgyu Yang
6d630439d2 gts3l-common: sepolicy: Address some denials
This includes crash_dump, gmscore_app, and so on.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I97496ba8aa380d45c8374e52eba2050a757ec27d
2022-02-20 14:33:24 +09:00
Deokgyu Yang
85805b0000 gts3l-common: rootdir/etc: Set dynamic_stune_boost to 10
Setting 10 is enough to use smoothely

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Iae69c3a7255a4ecee261039b43c1c7ab0e3e8ff4
2022-02-20 14:33:24 +09:00
Deokgyu Yang
bf64496924 gts3l-common: sepolicy: Add some missing policies and add genfs_contexts
Temporarility

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I4611d613a38f64fb0156f329983d1d6248f0b37b
2022-02-20 14:33:24 +09:00
Deokgyu Yang
6f1d7bef0b gts3l-common: sepolicy: Add touch HAL policies
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I8f6f3757d7e16080ddf2e7b4dbb977912fe38a17
2022-02-20 14:33:24 +09:00
Deokgyu Yang
5f43768923 gts3l-common: overlay: Move hw key properties to overlay/frameworks/base
This enables the hardware navigation bar feature on HavocOS
Configuration Center

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2022-02-09 01:25:08 +09:00
Deokgyu Yang
e9377b7f80 Revert "gts3l-common: fastcharge: Build fastcharge HIDL"
This reverts commit e6a3db5299.
2021-12-19 19:26:23 +09:00
Deokgyu Yang
57ba7cff63 gts3l-common: audio: Remove unsupported hw_acc effect
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ib117d4862d4bd7d6cf078ee9dfe251a698fd8a80
2021-12-19 18:18:42 +09:00
Deokgyu Yang
98b74e74a3 gts3l-common: boardconfig: Override SDK API level 26 for mm-qcamera-daemon
Update of the commit 24df69b

Confirmed this working with clean installation

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I21ddd66000d18fa93a77e1eb6714f1ae6fd7f0b2
2021-12-19 18:17:31 +09:00
Deokgyu Yang
b5b52e9383 gts3l-common: overlay: Set lockscreenAntiFalsing.. to false
Seems settings this to true breaks unlocking process sometimes on our
device

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I0e1f9bd260e62f76a06c5cca2576c5d925c9b91c
2021-12-19 17:59:16 +09:00
Deokgyu Yang
0a6d07aa1d gts3l-common: media: Import LineageOS/Oneplus3 media configs
Ours somewhat contaminated for Samsung specific setups. So I removed all
the stock media configs and import them from
LineageOS/android_device_oneplus_oneplus3

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I36cbc17d0f6da25733b4d4bc9c57469ddf0fb866
2021-12-19 17:16:53 +09:00
Deokgyu Yang
7424e389a0 gts3l-common: media: Remove media directory by a step to migrate into configs
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I843f7046552e3d0aa29fc8106aab6476f110be70
2021-12-19 17:13:22 +09:00
Deokgyu Yang
3bc8e6628e gts3l-common: wlan: Add TetheringOverlay
It will handle Wifi Tethering more properly.

Refers:
- 6419ffb0f8

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie916cb5ec8be4cf837efd4de8444cc327013b1af
2021-12-19 17:10:49 +09:00
Deokgyu Yang
aa77b19aef gts3l-common: wlan: Add WifiOverlay
It will handle Wifi more properly.

Refers:
- ee18061dca

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I22cbfaddd9c13a6ae653856a751012faf38f202f
2021-12-19 17:07:07 +09:00
Deokgyu Yang
24df69b790 gts3l-common: boardconfig: Override SDK API level 27 for mm-qcamera-daemon
As our tablet was updated until Android 9, I tried to use SDK API level
28 but it couldn't init the camera feature. But setting to level 27
seems working well.

Here is the details of overriding SDK API level from a LineageOS commit,
which has Change-Id: I1d95a4019c298497dce504894d0db705e541a92d
```
Replace file pinning applied in commit fee6d01 by setting the lower SDK version
that exempts mm-qcamera-daemon from the tight restrictions on mutex calls.

This allows us to update to the latest blobs without needing to manually
re-patch the offending camera lib.
```

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ib75d5806c1facbd8e4e5dd4ea140a2716c6c2f54
2021-12-19 16:54:45 +09:00
Deokgyu Yang
43f874285d gts3l-common: audio: Add Dolby audio effect
References:
- https://review.lineageos.org/c/LineageOS/android_device_samsung_gta4xl-common/+/314961
- https://forum.xda-developers.com/t/rom-official-lineageos-18-1-for-galaxy-s10e-s10-s10-s10-5g-exynos.4315407/page-7#post-85586605

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: If58ceb23d4b30759ce3b93102a04623b6f291a5f
2021-12-19 16:50:53 +09:00
Deokgyu Yang
f5462e7c39 gts3l-common: boardconfig: Correct FLASH_BLOCK_SIZE value
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I1d86143f17750967b138b88a725eff05af01c1e3
2021-12-19 13:55:36 +09:00
Deokgyu Yang
9cf5c4215b gts3l-common: overlay: Remove showNavigationBar key
This will be detected by a system, we should not set that value
explicitly

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I78fc095de92455cb511ba7d729e842f816805b23
2021-12-19 03:43:33 +09:00
Deokgyu Yang
9053fbc505 gts3l-common: touch: Add touch HAL implement
To use KeyDisabler for hardware touch keys.
This will disable touch keys properly.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I6c2cfb8577bab19c708300aa16e0eb18730c293d
2021-12-19 03:43:17 +09:00
Deokgyu Yang
079374591f gts3l-common: permissions: Remove unused proximity permission
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I08d6e34330c349a2180e1a940638cd046f1c5543
2021-12-19 01:04:09 +09:00
Deokgyu Yang
66b3e2ae72 gts3l-common: permissions: Use correct permissions for Vulkan
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I6e2847ae87ca01b62dbe3177e9eacf5f4e2b6ccb
2021-12-19 01:04:06 +09:00
Deokgyu Yang
ec3dda2242 gts3l-common: wfd: Use legacy WFD
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I931aeef24c30a459b3050191f960e02165aa7301
2021-12-19 01:02:29 +09:00
Deokgyu Yang
240b9c900e gts3l-common: proprietary-files: Change/add aptX libraries
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ice4194e064820d4fafb1e99bdea4110d4bd1f1dd
2021-12-18 01:52:18 +09:00
Deokgyu Yang
ede499448c gts3l-common: device: Add FilpFlap package
AOSP based flip cover support

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I64d68526a661035c44c6c36f490377ed01a2d7f0
2021-12-12 19:22:43 +09:00
Deokgyu Yang
7be09db821 gts3l-common: rootdir/bin: Remove unsupported tuning HMP properties
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Idde6d73a84df9caa03f7cae0b4f50cb0f57ee19e
2021-12-12 19:22:06 +09:00
Deokgyu Yang
3dea0f9971 gts3l-common: rootdir/bin: Add dynamic_stune_boost config
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ifcee8b3b72a88db4aab2848fc277bb549242026d
2021-12-07 03:53:52 +09:00
Deokgyu Yang
8a969b404f gts3l-common: rootdir/bin: Edit schedtune values
Got values from the following repository;
https://github.com/LineageOS/android_device_lge_msm8996-common

That also uses the property values from Google

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ib104190b235a07c9c92933ebe6984c2f6426a11e
2021-12-07 03:26:49 +09:00
Deokgyu Yang
1147585fa6 gts3l-common: configfs: Optimize for msm8996 family
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I11c3e9da11b74d93def9823c0942e9d8e66f33a2
2021-12-06 15:27:39 +09:00