Commit Graph

669 Commits

Author SHA1 Message Date
kamikaonashi
49e689ae03 stone: overlay: !fixup duplicate entries
should do stuff like this when sleep deprieved
2024-05-08 07:26:22 +02:00
kamikaonashi
305d92a593 stone: drop dependencies 2024-05-07 23:33:54 +02:00
kamikaonashi
186dbed08e [SQUASH] stone:parts: Implement HBM & Auto HBM
m8250-common: hbm: Add preference for time-based HBM disable

To specify a duration after which High Brightness Mode (HBM)
is automatically disabled if the lux level falls below the
defined threshold.

[EmanuelCN: Use thread sleep and recheck lux after timeToDisableHBM]

Signed-off-by: AnierinB <anierin@evolution-x.org>

sm8250-common: hbm: Deactivate the HBM tile when the screen turns off

When the screen is turned off, HBM will shut down and the HBM tile should become inactive.

sm8250-common: hbm: Refresh the QS brightness slider whenever the HBM is activated

The brightness slider should be set to 100% when the HBM is activated.

sm8250-common: hbm: Avoid writing to the backlight when turning off the HBM

Not needed.

sm8250-common: hbm: Include a 7-second delay when turning off the HBM

The HBM turning off while walking through a shadow was frustrating. Address this issue by verifying if the threshold has been reached after the 7-second delay.

sm8250-common: sepolicy: allow parts to get SettingsLib prop

ThermalSettingsFragment's use of ApplicationsState includes a
check of whether a package is an instant app or not. The function
isInstant() in AppUtils reads settingsdebug.instant.packages prop
to retrieve a list of instant packages for debugging purposes.

We do not actually use this property, but this check triggers an
SELinux denial for every package in the list and spams the logs
with permission denied errors. Get rid of these log spams by
allowing parts to read the prop.

Test: open the thermal profile settings and check logs

sm8250-common: sepolicy: Allow devicesettings write to vendor_sysfs_graphics

sm8250-common: Disable hbm thermal throttle

adapted to stone (sm6375)

Co-Authored-By: Emanuel <emanuelghub@gmail.com>
Co-Authored-By: maxwen <max.weninger@gmail.com>
Co-Authored-By: Hikari-no-Tenshi <16803494+Hikari-no-Tenshi@users.noreply.github.com>
Co-Authored-By: Anierin Bliss <anierin@evolution-x.org>
Co-Authored-By: Alec Chan <88945170+alecchangod@users.noreply.github.com>
2024-05-07 23:17:44 +02:00
kamikaonashi
17699aec4f stone: sepolicy: allow apps to read clock speeds 2024-05-07 23:13:46 +02:00
kamikaonashi
472a305177 stone: libinit: update fingerprints
update fingerprints to HyperOS ones

Co-Authored-By: Arijit Saha <107979673+Arijit78@users.noreply.github.com>
2024-05-07 23:13:38 +02:00
RealJohnGalt
29d5b49f7b stone: media: add dav1d av1 decoder entry
Based on 10bit av1 for msmnile which can do up to 1080p60 10bit av1
without frame drops.

NOTE: YouTube app ignores perf limits
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:13:32 +02:00
Arijit78
d7f5cd97a8 stone: Add build fingerprint
apparently QPR2 doesnt boot without it, even though it gets called via libinit

thanks goolag?
2024-05-07 23:13:24 +02:00
wangchaohui
97f200ee45 stone: parts: Dirac: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
2024-05-07 23:13:14 +02:00
Peter Kalauskas
0e2783f6ca stone: parts: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Fix for UQPR2
2024-05-07 23:13:07 +02:00
Michael Bestas
7ecb46ef20 stone: overlay: Enable battery cycle count
Change-Id: I92bc8363e1c9e2ad54c29a0a30dce992e25f697d
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:13:01 +02:00
Giovanni Ricca
451f3b0921 stone: Build goodix lib from source
Change-Id: Ibaf1b9489b509318032c720c9c83e315cfe6ab3e
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:12:55 +02:00
Nippon
3e3626464d stone: proprietary: import missing seccomp files
W android.hardware.media.omx@1.0-service: Could not read additional policy file '/vendor/etc/seccomp_policy/mediacodec.policy'
W android.hardware.media.omx@1.0-service: Could not read additional policy file '/vendor/etc/seccomp_policy/mediaextractor.policy'
W android.hardware.media.omx@1.0-service: Could not read additional policy file '/vendor/etc/seccomp_policy/mediaswcodec.policy'

Signed-off-by: Nippon <adamayyad1999@hotmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:12:47 +02:00
Cole Faust
0f6992ac10 stone: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:12:14 +02:00
Steven Moreland
26c7da639b stone: Move /vendor/ueventd.rc to /vendor/etc/ueventd.rc
The root location of this file is deprecated for Android T.

Bug: 189268918
Bug: 178221726
Test: device reaches boot complete after raising API level to 32
Change-Id: I97a6d2e5cacd0ac5eeb81daafeb8b1a0ad5c119b
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:12:04 +02:00
basamaryan
a76e77cb19 stone: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
Signed-off-by: mukesh22584 <mks22584@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:11:58 +02:00
Tomasz Wasilczyk
8d21165dc6 stone: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:11:50 +02:00
kamikaonashi
1afa95c892 stone: properties: Disable Async MTE on System Server
Co-Authored-By: exer <98556122+ekkusa@users.noreply.github.com>
2024-05-07 23:11:31 +02:00
ghostrider-reborn
70b4e7ebf7 stone: properties: disable IMS debugging in props
silence some useless log
2024-05-07 23:11:24 +02:00
ghostride-reborn
5aebd21566 stone: properties: Set debug.sf.defer_refrash_rate_when_off=1
This is required on some devices with video mode panel, since the
scheduler sets refresh rate to 120 Hz _after_ turning screen off at
60 Hz (VRR idle) but the HWC ignores this and when the display is
turned back on SF thinks we are back at 120 Hz while HWC is still
rendering at 60 Hz. Defer setting refresh rate until the screen is
turned back on, to avoid this confusion.
2024-05-07 23:09:51 +02:00
Lucchetto
7bac08421a stone: properties: Disable phantom process monitoring 2024-05-07 23:07:46 +02:00
kamikaonashi
f50d736549 [SQUASH] stone: configs: add media_codecs from stock holi config and build codecs
enables secure streaming on some streaming apps.
2024-05-07 23:04:59 +02:00
kamikaonashi
43312b6de2 stone: overlay: disable "mobile data always on" 2024-05-07 23:03:03 +02:00
kamikaonashi
ad8602e112 stone: parts: import dirac from marble 2024-05-07 23:01:30 +02:00
kamikaonashi
60db844c45 stone: properties: disable cpu vsync 2024-05-07 22:59:23 +02:00
kamikaonashi
5a80c2a21a stone: parts: drop 90hz per app refresh rate 2024-05-07 22:59:00 +02:00
kamikaonashi
3c264af93b stone: rootdir: more access for thermal 2024-05-07 22:58:39 +02:00
kamikaonashi
47292224d5 stone: adress sepolicy denials
Co-Authored-By: Onett Boots <90538882+onettboots@users.noreply.github.com>
2024-05-07 22:58:32 +02:00
minaripenguin
9a4c7064d6 stone: update fling velocity for modern devices 2024-05-07 22:58:27 +02:00
kamikaonashi
69dc1708b4 stone: parts: update clear_speaker_sound.mp3
nobody uses it, so include easter egg :)
2024-05-07 22:58:21 +02:00
xNombre
c21c45126a stone: add missing libvnfwk_detect_jni.qti and symlink for CneApp
Needed by CneApp.

dlopen failed: library "/system_ext/lib64/libvndfwk_detect_jni.qti.so" needed or dlopened by "/apex/com.android.art/lib64/libnativeloader.so" is not accessible for the namespace "vendor-clns-5"
2024-05-07 22:57:57 +02:00
Bruno Martins
f18c331af6 stone: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.
2024-05-07 22:57:51 +02:00
Flower sea
7109ac5201 stone: rootdir: move init.xiaomi.rc to rootdir
since we dropped init and switch to libinit implementation, lets push init.xiaomi.rc to rootdir
2024-05-07 22:57:05 +02:00
kamikaonashi
abfbbd961e [SQUASH] stone: switch to libinit
switch to libinit for device recognition, taken and modified from

https://github.com/Evolution-X-Devices/device_xiaomi_marble/commits/udc/libinit
2024-05-07 22:56:43 +02:00
kamikaonashi
69b4f212a5 sm6375-common: audio: increase speaker volume 2024-05-07 22:52:06 +02:00
kamikaonashi
a5b3ae5923 sm6375-common: audio: import mixer_paths.xml from stock
extracted from moonstone 14.0.6.0
2024-05-07 22:52:00 +02:00
kamikaonashi
1f9df34613 sm6375-common: set ART debug to release mode 2024-05-07 22:51:53 +02:00
redgroul
6aafdc6ba6 sm6375-common: Use threaded GLES render engine 2024-05-07 22:51:41 +02:00
redgroul
268e1fc7d9 sm6375-common: Force triple frame buffers This yields significantly
reduced jitter and doesn't have any measurable impact on latency.
2024-05-07 22:51:27 +02:00
kamikaonashi
1eb9cedb9a stone: switch to AOSP Wifi Display 2024-05-07 22:50:25 +02:00
kamikaonashi
7d4c2f09c7 stone: drop duplicate vendor.camera.aux.packagelist 2024-05-07 22:47:27 +02:00
kamikaonashi
d3eeac4cd2 sm6375-common: add remove_packages and make it optional
set new flag TARGET_DEBLOAT for optional remove_packages
this may be useful to debloat updater for unofficial roms. you can expand the list for any package, just write them in the Android.mk of remove_packages folder

Co-Authored-By: Michael Bestas <mikeNG@users.noreply.github.com>
2024-05-07 22:46:51 +02:00
kamikaonashi
3f6b7f691a stone: declare proper cpu variant 2024-05-07 22:45:54 +02:00
kamikaonashi
fe6f00d73e sm6375-common: add missing lineage_health sepolicy file 2024-05-07 22:44:48 +02:00
kamikaonashi
594ff27184 sm6375-common: build libstdc++_vendor 2024-05-07 22:40:32 +02:00
Shinjo Akane
fd87f8ba11 sm6375-common: Build libprotobuf from source 2024-05-07 22:40:25 +02:00
kamikaonashi
17e30d6474 sm6375-common: import XiaomiParts and adapt for stone
imported and adapted xiaomiparts from https://github.com/AlphaDroid-devices/device_xiaomi_sm8350-common/tree/alpha-13/parts

with thermal profiles, per app refresh rate, speaker cleaner
2024-05-07 22:40:18 +02:00
Ghosuto
5e277cff29 sm6375-common: introduce spatialaudio from cheetah 2024-05-07 22:40:01 +02:00
TogoFire
6fbfec2559 sm6375-common: add Viper4FX 2024-05-07 22:39:41 +02:00
kamikaonashi
94d0958333 stone: call audio_effects.xml 2024-05-07 22:37:28 +02:00
kamikaonashi
134a85aff2 stone: audio: add back audio_effects.xml
taken from stock hyperos rom (moonstone)
2024-05-07 22:35:35 +02:00