67 Commits

Author SHA1 Message Date
kamikaonashi
1d5220a5c0 stone: rootdir: label IRQs correctly
209 = kgsl_3d0_irq
218 = msm_drm
2024-08-13 07:21:29 +00:00
EmanuelCN
feee889d61 stone: rootdir: Move KGSL and MSM_DRM to cores 6 and 7
By putting them on the bigger cores, they can be processed quicker,
resulting in improved responsiveness.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-06 18:51:00 +00:00
Jake Weinstein
3eec417e9c stone: Do not balance msm_drm and kgsl_3d0 IRQs
These are critical for display performance and should not be balanced
in order to improve latency and responsiveness.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:46:12 +00:00
Randall Huang
eb86b461c9 stone: rootdir: etc: fstab: data=journal,commit=1 for /metadata
Since Ext4 doesn't implement "-o sync", it commits metadata at every 5 secs.
This may cause /metadata corruption.

Bug: 162883014
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:44:41 +00:00
kamikaonashi
8ca0e209f0 stone: rootdir: fix PowerHAL nodes
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_prefer_spread with value: 0, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_busy_hyst_ns with value: 3000000, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_busy_hysteresis_enable_cpus with value: 15, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_min_task_util_for_boost with value: 51, fd: -1
W libperfmgr: Failed to write to node: /proc/sys/kernel/sched_min_task_util_for_colocation with value: 35, fd: -1

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:44:04 +00:00
Sugakesshaa
e26e3d453e stone: Enable powerhint parsing after boot completion
Signed-off-by: Nomishaw21 <nomishaw9@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:43:00 +00:00
Paul Crowley
4fb6fd0086 stone: Remove wait_for_keymaster and all references
No longer needed now init listens for property changes on a
separate thread.

Bug: 186580823
Test: Cuttlefish boots successfully
Change-Id: Ief3a546d2154231d18957c2f703bd128966d7288
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:49:33 +00:00
kamikaonashi
00540766d6 stone: rootdir: give permissions to adjust vibration
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:38:18 +00:00
stic-server-open
177d231af1 stone: rootdir: Remove duplicate "start logd"
* It is started in the on init phase in /system/etc/init/hw/init.rc

Change-Id: Ie10e1d4c520329a76627a965ca139f9ad0f71875
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:50:30 +00:00
Bart Van Assche
127b4bc623 stone: rootdir: Restore I/O performance
As one can see in cfq_arm_slice_timer(), the CFQ I/O scheduler supports
two parameters that can make it delay I/O: group_idle and slice_idle.
Restore I/O performance by setting both the group_idle and slice_idle
parameters to zero.

Bug: 213617178
Bug: 313578691
Change-Id: I02429876790a6456ca957ff7c38f0c8bf88127f9
Signed-off-by: Bart Van Assche <bvanassche@google.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:50:08 +00:00
ROMSG
753c3ae1a0 stone: rootdir: switch to LMKD 2024-05-26 12:34:35 +00:00
kamikaonashi
d6907e8e60 stone: rootdir: increase swappiness 2024-05-26 12:34:35 +00:00
theangelofdead01
df1e376e6f stone: rootdir: Remove some data cache
fix some string issues on dirty flash update ROM zips

Signed-off-by: saikiran2001 <bjsaikiran@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 07:51:54 +00:00
Vedraj Gawas
a5dcd1729a stone: drop unnecessary values related to soc
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-17 12:06:57 +00:00
kamikaonashi
480e88c7b3 stone: properties: drop soc model
not needed after detection

d661cca81a8e2898a08f1add97f65cdd52218c2e

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-13 15:54:06 +00:00
kamikaonashi
6180b366b5 stone: rootdir: give permissions to read fastcharge node
Co-Authored-By: Vedraj Gawas <82878564+gawasvedraj@users.noreply.github.com>
2024-05-10 18:46:47 +02:00
kamikaonashi
99cf61a642 stone: !fixup ZRAM
forgot to add
2024-05-08 17:32:01 +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
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
kamikaonashi
3c264af93b stone: rootdir: more access for thermal 2024-05-07 22:58:39 +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
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
Adithya R
33bbd48315 sm6375-common: init: Run cnss_diag only when requested
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2024-05-07 22:19:36 +02:00
Drpto
a930cbcfe4 sm6375-common: fstab: data=journal,commit=1 for /metadata
Since Ext4 doesn't implement "-o sync", it commits metadata at every 5 secs.
This may cause /metadata corruption.

Bug: 162883014
Change-Id: Icd38754bad1b1529d01165ea8c703c214d20bb4b
Co-authored-by: Randall Huang <huangrandall@google.com>
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Signed-off-by: Leonardo Ledda <leonardoledda@gmail.com>
Signed-off-by: Drpto <dr.juniornoob@gmail.com>
2024-05-07 21:55:16 +02:00
kamikaonashi
4f65ed16fe stone: fix ZRAM
set 4GB for all users and set swappiness to 80
2024-05-07 21:49:25 +02:00
Michael Bestas
29774bbb63 sm6375-common: rootdir: Set vendor.post_boot.parsed=1
* Allows perf to work properly on boot to restore selected power profile

This fixes log spam -
QTI PowerHAL: Failed to acquire lock.

Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2024-05-07 21:31:27 +02:00
Andy | アンディ
9a202f1a3b sm6375-common: Build Lineage Health 2023-09-14 15:20:14 +08:00
Andy | アンディ
f3a447da69 sm6375-common: Add DT2W Services
DT2W Services feature are finished now
2023-09-07 14:16:18 +08:00
Andy | アンディ
607a67ad90 sm6375-common: Remove unused code 2023-09-07 00:20:58 +08:00
Akash Srivastava
1fb81e7e84 sm6375-common: rootdir: Chown the cgroup.procs nodes
* Perf-hal tries to access the nodes but requires permissions as reflected in the logs
* 11-10 19:25:50.044  1055  1080 E ANDR-PERF-OPTSHANDLER: Cannot open/create foreground cgroup file

Signed-off-by: CHRISL7 <70589286+CHRISL7@users.noreply.github.com>
Change-Id: I730f8b8bc7cc2b17595cac6130deacbc346d008f
2023-08-25 23:11:29 +07:00
Vishalcj17
542594f725 sm6375-common: ueventd: Change permissions for /dev/diag
[1] - Add override

* Logs spam with error '-13' which basically translates to access
denied/invalid permission.

* Fix this by giving system read and write access.

Before in log:
Diag_Lib:  Diag_LSM_Init: Failed to open handle to diag driver, error
= 13

Change-Id: Ic06b0de0a729052593fb3c703362c5c199f9fd0b
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Signed-off-by: CHRISL7 <70589286+CHRISL7@users.noreply.github.com>
2023-08-25 23:09:51 +07:00
Arvind Kumar
ebefc7846e sm6375-common: rootdir: SoC change to support holi APQ
Change-Id: Iee1d338dfbc4475db4269da030ef7c2859fae7c2
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-08-25 23:07:05 +07:00
chrisl7
30690b8531 sm6375-common: rootdir: Update fstab to MOONSTONE
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Change-Id: I23a25efb487b6e294164fd1678899444feccb079
2023-08-25 22:57:42 +07:00
Alexander Koskovich
74f4a3d94e sm6375-common: init: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-08-25 22:45:07 +07:00
coduxer
49da079a94 sm6375-common: rootdir: Fix fingerprint goodix events
[1] - this fixing the goodix issue when long press the powerbutton due
annoying kernel events

Change-Id: I8d3e867de2f0c30a46c371a36b691cb9011bd519
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-08-25 20:49:49 +07:00
Arian
2c629fd249 sm6375-common: Add power HAL extension and use xiaomi-touch to handle dt2w
Change-Id: I5c65e0df255853eb2b3018a27ceb807c111bc4df
2023-08-14 06:59:02 +07:00
boedhack99
a06e28e40b sm6375-common: rootdir: Add support SM4375 Soc ID
* Taken from sunstone MIUI V14.0.4.0.TMQMIXM release-keys

Change-Id: Iae8fb1deccb5799e553abec07ac7885315a5384e
2023-08-13 23:03:44 +07:00
boedhack99
bd6f67ef93 sm6375-common: Update blobs to moonstone MIUI V14.0.4.0.TMPMIXM release-keys
Change-Id: Ie92837de844c37012d561d869b98245d32b20d75
2023-07-24 23:36:34 +07:00
boedhack99
c0523074ff sm6375-common: ueventd: Give permissions for HW info
Change-Id: I8031a01c77dbe11f8c6e36e790ead027998e7284
2023-07-18 17:29:03 +07:00
boedhack99
4c46cee681 sm6375-common: Cleanup unavailable configs included
Change-Id: I9704b850f7c6fa9a8c320051e80bd21b56f2699e
2023-07-11 12:49:09 +07:00
Hridya Valsaraju
d51883bb09 sm6375-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2023-07-11 00:14:09 +07:00
ZVNexus
f21a4f829e sm6375-common: rootdir: Don't mount TraceFS twice
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
Change-Id: I384f57dde4c32cabd5f4db29d7e042160d7405db
2023-07-11 00:14:00 +07:00
SreekanthPalakurthi
98e238cb2e sm6375-common: rootdir: Remove useless sensingdaemon
Signed-off-by: Christopher <mizdrake7@gmail.com>
Signed-off-by: kssrao13882 <kssrao13882@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
Change-Id: I4d9a9dbbc9d7289e61db5912d27540b123a6aef2
2023-07-10 23:53:18 +07:00
SreekanthPalakurthi
b07b551744 sm6375-common: rootdir: Remove useless ptt_socket_app
Signed-off-by: Christopher <mizdrake7@gmail.com>
Signed-off-by: kssrao13882 <kssrao13882@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-07-10 23:50:57 +07:00
SreekanthPalakurthi
3b9d625aae sm6375-common: rootdir: Remove useless qseeproxydaemon
Signed-off-by: Christopher <mizdrake7@gmail.com>
Signed-off-by: kssrao13882 <kssrao13882@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-07-10 23:50:31 +07:00
SreekanthPalakurthi
93dd0bf7e7 sm6375-common: rootdir: Remove useless esepmdaemon
Signed-off-by: Christopher <mizdrake7@gmail.com>
Signed-off-by: kssrao13882 <kssrao13882@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-07-10 23:50:04 +07:00
Bruno Martins
af4fb7886e sm6375-common: Remove vendor-ril lib path property trigger
No longer used with QC RIL services.

Change-Id: Ib660b20f2a3cca222a10a1919f0f81ee174bf6dc
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-07-10 23:49:40 +07:00
Luofan Chen
35c902711d sm6375-common: Build lineage health HAL
Change-Id: I1ca5f25f3a2d8734647b9cc0ff4885b0b817c6ad
Signed-off-by: althafvly <althafvly@gmail.com>
2023-07-10 16:23:18 +07:00
boedhack99
0b165f85f6 sm6375-common: Add support soc id detect
* Add support for SM4350

Change-Id: Ic548b4ad7e866bc3fbfc29a3386d5329c899c913
2023-07-09 17:01:55 +07:00