Commit graph

45 commits

Author SHA1 Message Date
Yumi Yukimura
cc00e83945 sm8450-common: rootdir: Add more infos to ro.boot.hardware.revision prop
Change-Id: I8110a8a9ec653b4dbb73563336c3859571d0a58e
2024-08-14 13:13:45 +02:00
Arian
2099b087c5 sm8450-common: rootdir: Set hardware revision property
The bootloader sets androidboot.hwversion, use this and set the ro.boot.hardware.revision property in order to show it in settings.

Change-Id: I3c6c678bf055091ea9fcb2a1524d321e2c1be043
2024-08-14 13:11:58 +02:00
someone5678
a275858370 sm8450-common: rootdir: Add sdcard1 and usbotg to recovery fstab
Change-Id: I9beeff2d45b12801d5cb8d854ea363872ca4949c
2024-08-12 10:24:41 +02:00
ghostrider-reborn
6d47060aef sm8450-common: Fix battery and USB OTG detection
* In cape (msm-5.10) pmic driver now lies in adsp [1], so
   adsp firmware must to be loaded along with qti battery/
   charger kernel module, in order to get battery and usb
   power_supply up & running

 * With this, we dont need to set usb mode to peripheral
   explicitly either

 * The GKI kernel for 5.10 explicitly disabled
   FW_LOADER_USER_HELPER_FALLBACK, and the right way to enable it is to
   echo 1 to the /proc/sys/kernel/firmware_config/force_sysfs_fallback,
   so do this before writing to adsp sysfs node.

[1]: 4e2b0f663a

Depends-On: Id0e64302dbbdc53620cbc1825c36e13bb9e58aef
Change-Id: I835fa5daaa53eb704cc6c0777d7069d47ecbe10c
2024-08-12 10:24:41 +02:00
Yumi Yukimura
aaa391c8f6 sm8450-common: Migrate to QTI USB Gadget 1.2 HIDL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2024-08-01 01:08:47 +02:00
Sebastiano Barezzi
856fd64d7b sm8450-common: Partially revert "Move to QTI health AIDL service"
https://github.com/LineageOS/android_system_core/blob/lineage-21.0/init/init.cpp#L1099

This partially reverts commit 2d6f07b00c.

Change-Id: I284f80f364e9057a8373a015f0acaee3ef9e395d
2024-08-01 01:08:47 +02:00
Paul Crowley
050a73468d sm8450-common: 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
2024-08-01 01:08:46 +02:00
Arian
ec8a98e97f sm8450-common: Move to double tap sensor
Change-Id: Ib4803011fefad35c8b7a2d1e2b7d2744b32b13f4
2024-06-09 11:07:59 +02:00
Arian
999f5ead73 sm8450-common: Enable single_tap sensor and set permissions for touch sensors
Change-Id: I777ed71ecc5dc502182567bc7e1166605251af93
2024-06-09 11:07:59 +02:00
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
58f42d7fd4 fixup! sm8450-common: Move to QTI health AIDL service 2024-05-22 02:13:02 +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
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
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
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
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
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