76 Commits

Author SHA1 Message Date
firebird11
dc654b0a42 sm8150-common: Remove dcvs init
*not needed anymore

Change-Id: I321f9ca6773c82c6c1f63d3a4f81aa1fa030acb0
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-04 19:58:32 +01:00
firebird11
0d59b71c45 sm8150-common: Sensor based UDFPS, Double and Single tap (2/5)
* Based on commits from @pwnrzr and @ivecera

Change-Id: I994a9ef28815d11ffb303a56a2f20f2c80d62551
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-02 17:19:38 +01:00
Yumi Yukimura
7ed87cfb41 sm8150-common: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2026-02-02 12:14:49 +01:00
Alexander Koskovich
6c771d5383 sm8150-common: Pick up USB configurations from QCOM
* If we want to override anything in particular, e.g.
   PID/VIDs we will create a seperate script named
   'init.xiaomi.usb.rc'.

Change-Id: I83882d8992eb367211871130c163f4ca5689fcd4
2026-02-02 12:14:11 +01:00
grepfox
65a7b1030e sm8150-common: Drop IOP remnants
Change-Id: I481d9341e84f568926786e6f16fee9a59ad2cc7e
2026-02-02 12:12:48 +01:00
armdebug
cf4ba3ff5d sm8150-common: Migrate partition scheme selection logic to Soong select
Change-Id: I80a617ea3ec52de799a606463ae33610eb198272
2026-02-02 12:10:32 +01:00
armdebug
b9c7469d7f sm8150-common: Revert "Build AIDL NXP NFC HAL"
This reverts commit 384d3ddf48.

Change-Id: I343467dd953fe5cfd83c61baef480de0c5dd8b8a
2026-02-02 12:08:01 +01:00
armdebug
537ca2e973 sm8150-common: Limit max brightness for "green" & "blue" leds
* Reducing max_brightness limits the LED current draw from 8mA to approximately 1mA.
* This mitigates light leaking.

Change-Id: I3f9b08f3073e256fba102495c6134375fe02b6ae
2026-02-02 12:06:22 +01:00
Marc Bourgoin
dd9fea8a37 sm8150-common: Remove time_daemon from init.qcom.rc
It is covered by a self-contained module

Change-Id: I24f5ccab38328a785c4eb4af8005ad37799b8df8
2025-10-30 01:17:16 +01:00
Bruno Martins
7ebd1ba42b sm8150-common: Ditch rild.libpath prop
This is only needed for AOSP rild services. It's currently
unused since the move to QCRIL.

Change-Id: I5eb4d0bc2d086d5a2f29e3c3f5ee2d8f0220f5f5
2025-10-30 01:17:16 +01:00
Nagireddy Annem
cb00ac5ee5 sm8150-common: init: Set permissions to rawdump node
Move permission setting logic from init rc file to ueventd rc file.

Change-Id: I4b94e0e188f8b420a608cc2e0d97e4b960381c31
2025-10-30 01:17:16 +01:00
Lorenzo Colitti
d5773b5df3 sm8150-common: Delete dhcpcd init entries, since dhcpcd is no more.
Bug: 27192644
Change-Id: I1aa25190c07f027884421d91c1e93f214493382d
2025-10-29 23:09:48 +01:00
Ethan Chen
c2fc742fe9 sm8150-common: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2025-10-29 23:09:47 +01:00
LuK1337
384d3ddf48 sm8150-common: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
2025-05-21 02:21:34 +02:00
SahilSonar
360ebf086c sm8150-common: rootdir: Move init.recovery.qcom.rc to Android.bp
Change-Id: I452b4f3c5d43c54d477833382e3257be6a4617fa
2025-05-21 02:21:33 +02:00
Sebastiano Barezzi
e5281d2d3e sm8150-common: Move ramdisk fstab target to Soong
Change-Id: I1e3c56a6ab44a3e64021e23d5e6e3d8e972071b4
2025-05-21 02:21:33 +02:00
Sebastiano Barezzi
1400953280 sm8150-common: Go back to 32-bit WFD system service
Change-Id: Id25b78a4474d444bd8673dad0f22c2835a207a40
2024-12-24 00:46:32 +01:00
Sebastiano Barezzi
68bc6d852b sm8150-common: Use 64-bit system WFD service
Also drop unused 64-bit vendor libs

Change-Id: Ie98c48dbcc62b3ce58bbc0319a37aab2250ffab8
2024-12-14 01:13:09 +01:00
Sebastiano Barezzi
70c4020b16 sm8150-common: Refactor Soong config namespace
Change-Id: I0273391af546d134a43cdd4f5c373953c92c2d61
2024-07-30 02:04:30 +02:00
Paul Crowley
d041bd5300 sm8150-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-06-24 23:48:55 +02:00
Sebastiano Barezzi
1263a3c4ff sm8150-common: Revert "Fix charger init trigger event after health AIDL move"
https://github.com/LineageOS/android_system_core/blob/lineage-21.0/init/init.cpp#L1099

This reverts commit 634d072ec8.

Change-Id: I284f80f364e9057a8373a015f0acaee3ef9e395d
2024-05-30 23:43:28 +02:00
Sebastiano Barezzi
973dbd3852 sm8150-common: Don't force A2DP offload to always enable
Let users disable it from developer settings

Change-Id: I649f215ab506d76854e6291b9f706bc5d9a22728
2024-04-30 13:03:00 +02:00
LuK1337
50e9bd0d44 sm8150-common: Build erofs odm and vendor images
Making these partitions erofs saves ~550MB, which lets us reserve
significantly more space on /product.

Change-Id: I88984f6137c0bc9f01da742a7a485445c2162157
2024-03-31 17:00:20 +02:00
Sebastiano Barezzi
33adbf8467 sm8150-common: rootdir: Remove wrappedkey flag from metadata
Not needed

Change-Id: I5ac136df3da9eaacd2425bf621b7b8818c3a6092
2024-03-31 17:00:20 +02:00
Sebastiano Barezzi
1ad758171e sm8150-common: rootdir: Check persist
Change-Id: Ia792f0092f1ba91f6c9c88ba132576087d440b04
2024-03-31 17:00:20 +02:00
Albert I
e0059696ea sm8150-common: Add support for virtual A/B configuration
* fstab_AB.qcom and partition size values are from
  nabu_global-user 12 RKQ1.200826.002 V13.1.4.0.SKXMIXM release-keys

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3f6d26bbfd6c8f72c0f5621f83cddb2b4f69b1a3
2024-03-31 17:00:19 +02:00
Suren Baghdasaryan
f5aac42dd4 sm8150-common: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2024-02-26 01:36:35 +01:00
Rick Yiu
4cac39f089 sm8150-common: Remove the remaining camera-daemon commands
Xiaomi duplicated them

See: Icfe520e7f7367461607cc8fb5e524d9699e79124
Change-Id: I1b73a602921c1455f59f2888f9a9d6bed50f61c7
2024-02-26 01:34:25 +01:00
Ivan Vecera
f0e45d83ca sm8150-common: init: Do not try to load kernel modules
We are not using kernel modules and all drivers are compiled-in.

Change-Id: I20ab5dd2df77ad5ef25acfb623fc67229db91fe3
2024-02-26 01:29:46 +01:00
Ivan Vecera
275aeddce0 sm8150-common: rootdir: Do not try to install prebuilt apps
We do not have AdrenoTest.apk or SWE_Browser.apk so it does not make
sense to try to install them.

Change-Id: I0615e2e50526f960d5a6c221798ab5ebd1162d7b
2024-02-26 01:29:46 +01:00
Sebastiano Barezzi
0b96378e19 sm8150-common: init: Drop debugfs stuff
Missed in I45e6f20c886d467a215c9466f3a09965ff897d7e

Change-Id: I9ec52e8969b20be027e5693637e65eddb99169c9
2024-02-26 01:29:46 +01:00
Sebastiano Barezzi
beceb49f0c sm8150-common: init: Drop support for eud module
Change-Id: If698c86537e1282c052db73a20873b4d342584b9
2024-02-26 01:29:46 +01:00
Sebastiano Barezzi
1aa812f278 sm8150-common: init: Fix "/sys/ lines must have 5 or 6 entries"
Change-Id: I088154491c303febb0101af9029180c128336e57
2024-02-26 01:29:46 +01:00
Alexander Koskovich
8b2467d46a sm8150-common: init: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2024-02-26 01:29:46 +01:00
Alexander Koskovich
184dd32a2f sm8150-common: init: 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

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2024-01-26 17:32:53 +01:00
Rick Yiu
ce7739a630 sm8150-common: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2024-01-26 17:32:53 +01:00
Bruno Martins
634d072ec8 sm8150-common: Fix charger init trigger event after health AIDL move
Change-Id: I58e7c493d3b300b1efb1685fba637fee6b56bec3
2023-11-16 17:49:12 +01:00
Sebastiano Barezzi
a19ffc6efc sm8150-common: Move to health AIDL services
Change-Id: Ibadf22d432791551c16d7f4e386b470574c390f8
2023-11-12 19:44:29 +01:00
Wang Han
224d14edd0 sm8150-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random
(Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2023-11-06 16:45:34 +01:00
Sebastiano Barezzi
818f3f7b1b sm8150-common: Update blobs from V14.0.3.0.TJUMIXM
Change-Id: Idf917176949e69eadcfbf30ab4fda5d911e2951b
2023-08-22 15:17:34 +02:00
Sebastiano Barezzi
7d648055b0 sm8150-common: Drop support for eSE
* E GPQeSE-HAL: gpqese_open: send GPQESE_CMD_OPEN to TA
* E GPQeSE-HAL: GPQESE_CMD_OPEN failed : 0xFFFF000E

Change-Id: I3b12e6d543a3af6cbb90817ce957c383fa381d78
2023-08-18 22:57:21 +02:00
Sebastiano Barezzi
9bca2e69db sm8150-common: Update blobs from vayu V14.0.1.0.TJUMIXM
Change-Id: I1899096842872ac178d647cacf948aedb4e83abe
2023-04-11 11:08:30 +02:00
Sebastiano Barezzi
e33100b6fb sm8150-common: rootdir: Merge custom init scripts to init.xiaomi.rc
Change-Id: I7dbc77c4ecfd05b4c115a3b621f9ab71ef072d70
2022-10-17 18:28:36 +02:00
Sebastiano Barezzi
6a78e8a941 sm8150-common: Align with sdm710-common
Change-Id: Ied50d499f4a17e0459476b480a848cb1e9c526e2
2022-10-17 18:28:36 +02:00
Sebastiano Barezzi
1f231f4fd6 sm8150-common: Update blobs from vayu V13.0.5.0.SJUMIXM
Change-Id: Ie2d0a33b13e3366d614045c84bb9e260f0cafd12
2022-07-25 14:16:27 +02:00
Sebastiano Barezzi
c65be2acce sm8150-common: Retrofit dynamic partitions for legacy devices
* Merge system, vendor and cust, giving us a whopping 6.4GB of space, pretty nice
* Take for granted that we always have dynamic partitions, remove guards where needed
* Introduce a new variable TARGET_IS_LEGACY to guard legacy vs new stuff, including retrofitting stuff
* Unfortunately we can't use the same fstab for all because of AVB
* Mark standard block devices as super block devices (from https://source.android.com/devices/tech/ota/dynamic_partitions/implement?hl=en#selinux-legacy)

Change-Id: I2553aad99f5c458cf6ac6b4265dc5840127c13e9
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
c82db04ae8 sm8150-common: Switch to two-stage init mounting
* Stop handling vendor mounting from kernel, first stage init is gonna do that, together with system (which is now /system)
* Use correct mount flags coming from kernel dts
* Move system and vendor mount points to /dev/block/by-name/, we don't have bootdevice symlink to that point in init
* Copy fstab to ramdisk for first stage init

Change-Id: I0d7c3ab52fe49e75ce81a4630c1556df1c060824
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
2bd4a9fd68 sm8150-common: Add support for NFC eSE
* andromeda, cepheus and raphael uses eSE instead of UICC
* Setup a new SKU for them
* Decommonize NFC configs
* Include secure element services and disable them by default
* Copy permissions with eSE ones

Change-Id: Ic38b675a461ea0b346103f0bbc6bfc2811ed46bf
2022-06-26 01:32:06 +02:00
Sebastiano Barezzi
92f59d19ca sm8150-common: udfps: Notify touchscreen driver about FOD UI status
Change-Id: I701aa39e5241fc6f76f0f8f9ef05705ee9d401d0
2022-06-25 14:35:44 +02:00
Sebastiano Barezzi
3e8c963b7a sm8150-common: rootdir: Reorder and cleanup fstabs
Change-Id: I55a62e1412f2c80bae22ffa99c76372f2551c825
2022-06-21 19:31:29 +02:00