Commit graph

43 commits

Author SHA1 Message Date
Arian
4deb89bf9b sm8450-common: rootdir: Drop unnecessary actions from xiaomi_sm8450 specific init
Change-Id: Ib2b8f62f40a9a65b0653787309a337b6719ef200
2024-05-22 02:42:32 +02:00
Arian
5989afabdd sm8450-common: rootdir: Drop cit spkcal copy
Change-Id: I894b3cd651e1923f8c47fa8a491dcdcfad1c3ed5
2024-05-22 02:37:45 +02:00
Arian
4e0999f882 Revert "sm8450-common: rootdir: Add mbnota support"
On MIUI this is used to let updater write to data/vendor/mbnconfig, but we won't do this.

This reverts commit 60894cbcbe.

Change-Id: Ic3535a287ce80bc61541d2fd8dcfb64472db42bf
2024-05-22 02:27:02 +02:00
Arian
58f42d7fd4 fixup! sm8450-common: Move to QTI health AIDL service 2024-05-22 02:13:02 +02:00
Arian
c1be69ec02 sm8450-common: rootdir: Update kernel post boot script from ingot UKQ1.231121.127
Change-Id: I79229b48d77c60ff53c25f9644a086e0d7ce8929
2024-05-22 02:12:20 +02:00
Arian
3b63e5b6d6 sm8450-common: rootdir: Import kernel related scripts from LA.VENDOR.1.0.r1-15600-WAIPIO.0
Change-Id: I3a3f582550f668fced12e84d7ae0ddedac45d712
2024-05-22 02:08:14 +02:00
Michael Bestas
341bfeae81 sm8450-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2024-03-19 23:22:37 +01:00
Jens Reidel
8c6add2160 sm8450-common: Build Lineage PowerShare HAL
Change-Id: I3ea02cd0c6b1a26851f1961768e00e5f3339c4bb
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Jens Reidel
f9ec3dca24 sm8450-common: rootdir: Set more fingerprint permissions
Change-Id: I864af77ad6da08d5a8b05d13e638b3039619fc4b
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 23:22:37 +01:00
Rick Yiu
817ee62047 sm8450-common: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2024-03-19 23:22:37 +01:00
Bruno Martins
2d6f07b00c sm8450-common: 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.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2024-03-19 23:22:37 +01:00
Michael Bestas
c112334698 sm8450-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
2024-03-19 23:22:37 +01:00
Arian
106355e12e sm8450-common: Drop mfidoca, mtd- and tidaservice
Change-Id: I0b7a851137b954ea767ff1846c9ca30b36d1c875
2024-03-19 23:22:37 +01:00
Arian
761e3fe5cb sm8450-common: Switch to unified supplicant service rc entry
Change-Id: I6cc5a1d062c19be570d5631cb7ea9c760a992aef
2024-03-19 23:22:37 +01:00
Arian
8f6c27c442 sm8450-common: Add power HAL extension and use xiaomi-touch to handle dt2w
Change-Id: I5c65e0df255853eb2b3018a27ceb807c111bc4df
2024-03-19 22:58:04 +01:00
Jens Reidel
bac702fda9 sm8450-common: rootdir: Enable mgame mi_thermald mode
Out of all the modes that run the CPU at advertised speeds without
underclocking, mgame has the most conservative thermal limits.

Change-Id: I491f608a7be5c9497c70b3e49501d7abf58a980c
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-03-19 22:58:04 +01:00
Arian
ce5d445710 sm8450-common: rootdir: Add ultrasound socket to sensors hal
Change-Id: Idf860292b6198aac2bf909747be8ab24872b83b2
2024-03-19 22:58:04 +01:00
Arian
7c587d3ae9 sm8450-common: rootdir: Add oem_291 group and ultrasound socket to audio hal
Change-Id: I72121d7130ee1f7d48c656774ceb1a70eed28925
2024-03-19 22:58:04 +01:00
Arian
c7fc76bb98 sm8450-common: rootdir: Add goodix fingerprint permissions
Change-Id: I99dec0b23be7ed93c0f91151f6eafabcdd9e19bd
2024-03-19 22:58:04 +01:00
Arian
a4395b9603 sm8450-common: rootdir: Add mi display permissions to ueventd
Change-Id: Ia50fd6db73de741cd9d774374b617a4ba3ed3615
2024-03-19 22:58:04 +01:00
Arian
733ec1b8a9 sm8450-common: rootdir: Import xiaomi additions to seperate file
Change-Id: Ic794aa8951e525e5fa409d5c6234121109d911c9
2024-03-19 22:58:04 +01:00
Arian
427f5ac4b7 sm8450-common: rootdir: Check persist
Change-Id: Ifc66f4ff386ef3fd01eb10ebe7d105ff9f18127b
2024-03-19 22:58:04 +01:00
Arian
60894cbcbe sm8450-common: rootdir: Add mbnota support
Change-Id: Id503db81379785fef63444e26ee674faa7ae1a06
2024-03-19 22:58:04 +01:00
Arian
973b08b277 sm8450-common: Add touch_report init script
Change-Id: I4db767086b34c46e64cb94a6e4dd20837672d31c
2024-03-19 22:58:04 +01:00
Arian
b18da8f560 sm8450-common: Configure recovery and import recovery.fstab from LA.VENDOR.1.0.r1-11000-WAIPIO.0
Change-Id: I107359e36cf2d67eba61d34e66610e765b6ba32a
2024-03-19 21:59:58 +01:00
sganda
89e306247b sm8450-common: rootdir: taro:Remove spunvm mount from rc file
Remove spunvm mount from rc file since IAR is not supported.

Change-Id: I446d378ada1d51d98d7365d87c94016bc4905879
2024-03-19 21:59:58 +01:00
Ritesh Kumar
0ee90c2e0e sm8450-common: rootdir: taro: fix QUIC copyright marking
This change fixes QUIC copyright marking as per guidelines.

Change-Id: I53794540a4b97341220400a9b2087d8cb557ee1d
2024-03-19 21:59:58 +01:00
Arian
9ccc2798fd sm8450-common: rootdir: Import taro specific scripts from LA.VENDOR.1.0.r1-11000-WAIPIO.0
Change-Id: Ic770480180b7531d6abbd423e4b0feb9c475b8fd
2024-03-19 21:59:58 +01:00
Vamsi Krishna Gattupalli
d5a07eccc6 sm8450-common: rootdir: adsprpc: To disable cdsp daemon if NSP defective for parrot
To disable cdsp daemon by checking value of node
fastrpc_cdsp_status which is set after checking if
NSP is defective.

Acked-by: Ansa Ahmed <quic_ansa@quicinc.com>
Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
Change-Id: I8f197c46d6cedb64a58ae49d0a5120c8a78e533f
2024-01-25 16:29:47 +01:00
Subrat Dash
9e64959380 sm8450-common: rootdir: init.qcom.rc: Do not register HIDL service
Remove the option to register HIDL service for
wpa_supplicant with a separate instance(wigigsvc).

Change-Id: I953b7d69e7dcaff83cadd9a55f3b76ab2a1216f3
2024-01-25 16:29:47 +01:00
Ganesh Vilas Chaudhari
37ff0286d1 sm8450-common: rootdir: Stop qcrild for qultivate targets
- For modemless qultivate targets, stop the qcrild and make
  ro.vendor.radio.noril property to yes

Change-Id: I111fa5cabc8524ee76a5c5c8c6449b77d1ff6874
CRs-Fixed: 3694884
(cherry picked from commit 7482be9422213036d54e8e3cdb07d6ab001cda51)
2024-01-25 16:29:47 +01:00
Hanuma Sri Saketh Valluri
d3128164e1 sm8450-common: rootdir: ueventd: Set hidraw node to 0660 system system
This is required for dynamic sensor HAL to access hidraw node, which is
needed to enable Headtracking for Spatial Audio on Halliday.2.0

Change-Id: I525b276e3de0558303727d8f2675367d227834cd
2024-01-25 16:29:47 +01:00
Sai Kumar Kunchala
53aab8c384 sm8450-common: rootdir: wpa_supplicant(aidl): Add support for starting AIDL lazily
Able to start supplicant from framework using
ISupplicant.getService() in init_qcom.rc.

Change-Id: Ia4efd2a71916fef88835ba5df2fefc1d403895a1
CRs-Fixed: 3591871
(cherry picked from commit eeac14f4c6e1a8d984b1556cedb2f1b2bef93663)
2024-01-25 16:29:47 +01:00
PRANAY BHARGAV BHAVARAJU
46ceefad47 sm8450-common: rootdir: avoid setting permission for /dev/hw_random
Below patch from system/core is setting required access policy
for /dev/hw_random. And CTS test is updated accordingly

https://android-review.googlesource.com/c/platform/system/core/+/2229337
https://android-review.googlesource.com/c/platform/cts/+/2232052

Change-Id: I762dfa3b1e84dee6c49fc178b5b75cf1c134cfb7
2024-01-25 16:29:47 +01:00
Yuanfang Zhang
de333dc9cc sm8450-common: rootdir: ueventd: Add support for byte-cntr1
The device under /dev/byte-cntr1 should be with permission
root diag.

Change-Id: Id5e45789995b706360742253fc93dc2304f70442
2024-01-25 16:29:47 +01:00
Anand Jha
941fe452b6 sm8450-common: rootdir: Remove vendor.ril-daemon commands
Remove legacy rild vendor.ril-daemon services
commands as they are not used now.

Change-Id: Ib1a88d34dc73ff72f553b923e75ef084dd5d56f1
CRs-Fixed: 3262433
2024-01-25 16:29:47 +01:00
Michael Adisumarta
5b82062c5e sm8450-common: rootdir: ueventd: Add support for ipa_lnx_stats_ioctl
The device under /dev/ipa_lnx_stats_ioctl should be with permission
radio radio.

Change-Id: I531cbda9954e17012b247f6505b51cd5adda7c3d
2024-01-25 16:29:47 +01:00
Naman Jain
4abfd2ac85 sm8450-common: rootdir: init: remove getprop commands for fixing avc denials
remove logic from init scripts where getprop is used,
causing avc denials. Removed logic is not applicable
to current targets using this.

Change-Id: Ib783c6b2c341da59d24b8f4626e0461e1fbbdd0d
2024-01-25 16:29:47 +01:00
Mohammed Mirza Mandayappurath Manzoor
97798cb173 sm8450-common: rootdir: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2024-01-25 16:29:47 +01:00
Naman Jain
e6e7537915 sm8450-common: rootdir: ueventd: set permissions to rawdump node
move permission setting logic from init rc file to ueventd rc file.

Change-Id: Ifbb555affd9200eb3d2fb3e405fc81a266df9f5e
2024-01-25 16:29:47 +01:00
Satish Kumar Kodishala
cc837a6545 sm8450-common: rootdir: Add permissions for btfmslim node
Add permissions for btfmslim node to be
able to access from FTM.

Change-Id: Idd2988dff0967f05429e9e142937a96a274a4833
2024-01-25 16:29:47 +01:00
Benergy Meenan Ravuri
14163a49cd sm8450-common: rootdir: ss_ramdump: set io priority to realtime
Change-Id: Ie6af973c15cae9ae983041298caa130df9e5f0b1
2024-01-25 16:29:47 +01:00
Arian
d9a4f0ce33 sm8450-common: Import qcom common scripts from LA.VENDOR.1.0.r1-11000-WAIPIO.0
Change-Id: Ia3030c7c18ad39ac58d17a3147b269a6f1093b59
2024-01-25 16:29:40 +01:00