Commit Graph

41 Commits

Author SHA1 Message Date
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
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
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
Michael Bestas
0a1c673a2e sm6375-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-07-05 02:59:09 +07:00
Adithya R
75414e8a7b sm6375-common: Switch back to HWC for brightness control
Analysis of disassembled code in IDA revealed that the stock
libsdmcore is just writing the brightness to a custom sysfs node
in mi_display. Bind mount the real brightness node to that so it
gets written to the real node instead.

Change-Id: I3aa840e50b7a067667b949b0ba1f36d187602547
2023-07-05 02:59:09 +07:00
boedhack99
999faf7a82 sm6375-common: Update blobs to moonstone MIUI V14.0.3.0.TMPMIXM release-keys
Change-Id: I73698d84baa4949f069a32a19c0098f092a04e06
2023-06-29 23:13:19 +07:00
boedhack99
fad8458572 sm6375-common: Decommonize init device-specifics scripts
* we got different configs

Change-Id: Ibd7715bc72d7575afec209cdb962d9cebebec37a
2023-06-27 13:45:56 +07:00
boedhack99
8acb8e3a94 sm6375-common: Decommonize NFC build target
* moonstone/sunstone use NFC.st HALs

Change-Id: I2d21f1ad9d3ababd22d8b7f9eac5d45e95052984
2023-06-27 13:04:19 +07:00
dianlujitao
3f8897df42 sm6375-common: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing
 * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to
   same_process_hal_file like Pixels, but the partition is prebuilt thus
   we're unable to relabel it.
 * Copy the file to writable tmpfs, setup attributes and bind mount back
   to workaround the limitation.

[ghostrider-reborn]:
Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3

[kras edit:
 1. rename some contexts as per qva/kona
 2. extend to allow camera HAL and VPP service to access it as well]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
2022-09-04 23:18:08 +00:00
Sebastiano Barezzi
59a0c45f72 sm6375-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-09-04 13:00:30 +00:00
Sebastiano Barezzi
228921a381 sm6375-common: rootdir: Merge all our custom init rc into a single one
Change-Id: I9e4f9fbcc76986a02288a439706affecde25594f
2022-09-04 13:00:29 +00:00
Edwin Moquete
6a4288e605 sm6375-common: Set TARGET_TAP_TO_WAKE_NODE
Change-Id: I971349c0aaf6b11231ce79cd3260dd758bd88a2b
2022-09-04 13:00:05 +00:00
Albert I
4cd824325b sm6375-common: Set Bluetooth MAC address using persist property
The idea is to allow us to not depend on stock QTI Bluetooth HAL, as MAC
addresses fetched from NVRAM by nv_mac script will be saved as hex-encoded
files. We can decode back saved files to then the Bluetooth one be set using
persist property so it can be read by Bluetooth HAL.

This is loosely based on similar techniques used on Mi 9 and ZenFone Max Pro M2.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I74d07c3c3125a04962c37fe8bfcc8385d1fd3398
2022-09-04 12:59:52 +00:00
Ramii Ahmed
744fe6e329 sm6375-common: Override HAL service and enable with nfc SKU
Change-Id: I3c33c50b65410a09a0e5529f3c9a94fbf36d8a31
2022-09-04 12:59:43 +00:00
Sebastiano Barezzi
6a821ad6b4 sm6375-common: Override HAL service and enable with nfc SKU
Change-Id: I3c33c50b65410a09a0e5529f3c9a94fbf36d8a31
2022-09-04 12:59:42 +00:00
Ramii Ahmed
956f4d6883 sm6375-common: Adjust Biometrics HIDL for Xiaomi SM6375
* rename all manifest, init & relative files
* adjust chown's & chmod's to fit holi's fingerprint devices

Change-Id: I409847c845620555b8a9b7035682c2f88f8a60a7
2022-09-04 12:59:28 +00:00
Sebastiano Barezzi
cc5a5bc2ad sm6375-common: Remove wigig interface from wigig service
Change-Id: I58f725f1c9aff8dd09591f80e48e270298a93f13
2022-09-04 12:59:11 +00:00
Jimmy Chen
787f154338 sm6375-common: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2022-09-04 12:59:07 +00:00
Ramii Ahmed
64ce5c964b sm6375-common: import rootdir files
* From veux_global-user 11 RKQ1.211001.001 V13.0.10.0.RKCMIXM release-keys

Change-Id: I862cb3cd3f33f76d7049c5541b96c35ce7b490a9
2022-09-04 12:59:04 +00:00