Commit Graph

62 Commits

Author SHA1 Message Date
feiyuchen
58a89634b7 sm8450-common: rootdir: Add "system" group to Audio HAL
needed for using EdgeTpu.
Due to this code goes to AOSP, please see CL details and test result in
b/289097511#comment24.

Bug: 289097511
Change-Id: Ie0969309346cd85b4bb8ac71860a529710c73345
2025-04-03 19:19:15 +02:00
Arian
3dd2e7eb74 sm8450-common: rootdir: Drop platform specific setup from init.qcom.sh
Change-Id: I4c2298b7c110d3a4b9fc8530e8197ead75a02ff6
2025-03-14 10:46:48 +01:00
Arian
0439ed5c48 sm8450-common: rootdir: Drop platform specific setup from init.qcom.early_boot.sh
Change-Id: Ie07521b41d5d1a9652af325ad96ab29f5dd89230
2025-03-14 10:46:48 +01:00
Arian
c4ce48c269 sm8450-common: rootdir: Drop platform specific setup from init.qcom.post_boot.sh
This did nothing except setting persist.vendor.mmi.misc_dev_path
and writing build image information to /sys/devices/soc0.

`zeus:/ # bash -x /vendor/bin/init.qcom.post_boot.sh
++ getprop ro.board.platform
+ target=taro
++ cat /proc/sys/kernel/osrelease
+ KernelVersionStr=5.10.230-gki-g4e1607caf9af
+ KernelVersionS=10
+ KernelVersionA=5
+ KernelVersionB=10
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ chown -h system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
chown: /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate: No such file or directory
+ chown -h system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
chown: /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor: No such file or directory
+ chown -h system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
chown: /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy: No such file or directory
++ getprop vendor.boot.emmc
+ emmc_boot=
+ case "$emmc_boot" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ case "$target" in
+ '[' -f /data/prebuilt/AdrenoTest.apk ']'
+ '[' -f /data/prebuilt/SWE_AndroidBrowser.apk ']'
+ case "$target" in
+ '[' -f /sys/devices/soc0/select_image ']'
+ image_version=10:
++ getprop ro.build.id
+ image_version+=AP4A.250105.002
+ image_version+=:
++ getprop ro.build.version.incremental
+ image_version+=1738747703
++ getprop ro.product.name
+ image_variant=zeus
+ image_variant+=-
++ getprop ro.build.type
+ image_variant+=userdebug
++ getprop ro.build.version.codename
+ oem_version=REL
+ echo 10
+ echo 10:AP4A.250105.002:1738747703
+ echo zeus-userdebug
+ echo REL
++ getprop persist.vendor.console.silent.config
+ console_config=
+ case "$console_config" in
+ echo 'Enable console config to '
Enable console config to
++ ls -l /dev/block/bootdevice/by-name/misc
+ misc_link='lrwxrwxrwx 1 root root 16 1970-11-04 04:28 /dev/block/bootdevice/by-name/misc -> /dev/block/sda11'
+ real_path=' /dev/block/sda11'
+ setprop persist.vendor.mmi.misc_dev_path /dev/block/sda11`

Change-Id: I20177ec77805feed90c019a6390cbad03f462577
2025-03-14 10:46:48 +01:00
Arian
2c3f5dfa7a sm8450-common: rootdir: Drop useless init.qcom.class_core.sh
This did nothing for us:
`zeus:/ # bash -x /vendor/bin/init.qcom.class_core.sh
++ getprop ro.board.platform
+ target=taro
+ '[' -f /sys/devices/soc0/hw_platform ']'
++ cat /sys/devices/soc0/hw_platform
+ soc_hwplatform=MTP
+ '[' -f /sys/devices/soc0/soc_id ']'
++ cat /sys/devices/soc0/soc_id
+ soc_hwid=457
+ '[' -f /sys/devices/soc0/platform_version ']'
++ cat /sys/devices/soc0/platform_version
+ soc_hwver=65536
+ case "$target" in`

Change-Id: I6e0f4b123387582975b15c0c39272877909739bb
2025-03-14 10:46:48 +01:00
LuK1337
035ee2950a sm8450-common: Unmount /firmware after fastbootd starts
Fixes `fastboot flash modem modem.img`.

Change-Id: I17e2183f666979c94c3f5b1affd660bfd60df15d
2025-03-14 10:46:13 +01:00
Arian
d361023121 sm8450-common: Build and configure xiaomi touch hal
Change-Id: I01cb169d6f9609985a9eb70ba86b1497bd58aac1
2025-03-14 10:39:44 +01:00
Arian
e5a374590f sm8450-common: udfps: Update fod_finger_state node based on actual udfps state
Change-Id: I9f468457acfe373b9fdab7df7a9065905629263c
2025-01-07 18:57:32 +01:00
Arian
63248dc54b sm8450-common: Kill touch_report for good
Change-Id: I455ac88ab2fe0aa3616464f0689d651a7508f4f1
2024-10-06 17:47:23 +02:00
Manish Kushwaha
0fa9bde971 sm8450-common: Migrate sensor HAL to AIDL interface
Bug: 247478991
Test: tested on-device (P23) ab/P46941077
Test: `sensor_test -ahal list` and `sensor_test list`
Test: `sensor_test -ahal sample -s0` and `sensor_test sample -s0`

Change-Id: I40f6ab6b7780c53cd638a1f77c95f6c324dc2d15
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2024-09-29 20:14:23 +02:00
Yumi Yukimura
1c9b985889 sm8450-common: rootdir: Add more infos to ro.boot.hardware.revision prop
Change-Id: I8110a8a9ec653b4dbb73563336c3859571d0a58e
2024-08-14 13:13:45 +02:00
Arian
b9c2346f04 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
8210210618 sm8450-common: rootdir: Add sdcard1 and usbotg to recovery fstab
Change-Id: I9beeff2d45b12801d5cb8d854ea363872ca4949c
2024-08-12 10:24:41 +02:00
ghostrider-reborn
13ca7d9b37 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
c9bb2e3850 sm8450-common: Migrate to QTI USB Gadget 1.2 HIDL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2024-08-01 01:08:47 +02:00
Sebastiano Barezzi
726eb1babb 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
fc7ee605fd 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
41a868e899 sm8450-common: Move to double tap sensor
Change-Id: Ib4803011fefad35c8b7a2d1e2b7d2744b32b13f4
2024-06-09 11:07:59 +02:00
Arian
7004d0df09 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
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