101 Commits

Author SHA1 Message Date
Rik
05c854497d sm8250-common: init: Remove cache on boot 2025-12-28 20:09:06 +00:00
Marc Bourgoin
d12366b92c sm8250-common: Remove time_daemon from init.qcom.rc
It is covered by a self-contained module

Change-Id: I24f5ccab38328a785c4eb4af8005ad37799b8df8
2025-07-29 22:54:59 +02:00
Bruno Martins
35d25d5a30 sm8250-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-07-29 22:54:59 +02:00
Nagireddy Annem
bec0fec763 sm8250-common: init: Set permissions to rawdump node
Move permission setting logic from init rc file to ueventd rc file.

Change-Id: I4b94e0e188f8b420a608cc2e0d97e4b960381c31
2025-07-29 20:52:05 +00:00
Lorenzo Colitti
0dc8f630c3 sm8250-common: Delete dhcpcd init entries, since dhcpcd is no more.
Bug: 27192644
Change-Id: I1aa25190c07f027884421d91c1e93f214493382d
2025-07-29 22:42:53 +02:00
Ethan Chen
fc0d8d5fff sm8250-common: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2025-07-29 22:42:53 +02:00
Sebastiano Barezzi
97deb55242 sm8250-common: Move ramdisk fstab target to Soong
Change-Id: I1e3c56a6ab44a3e64021e23d5e6e3d8e972071b4
2025-02-04 22:51:19 +01:00
Yumi Yukimura
2e949882d3 sm8250-common: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2025-01-03 00:25:23 +01:00
Yumi Yukimura
9a023df289 fixup! sm8250-common: rootdir: Fix derps in configure_memory_parameters()
Change-Id: Ib4b5cdfdb83de5913c172256509c89af2ba4e3f7
2024-10-17 20:08:26 +08:00
Yumi Yukimura
a59442f345 sm8250-common: rootdir: Fix derps in configure_memory_parameters()
* Remove product name guards where we need
* Don't call same functions twice
* Take munch's swappiness

Change-Id: I48e5ed36f151f0f73fb82291a6cbcbc11f93b52a
2024-10-06 22:22:21 +08:00
AdarshGrewal
5cbd7bb7a6 sm8250-common: rootdir: Set permission for pcie wlan rx
Change-Id: I93c29adffdd6a721cc2dc1bfa48b8d92c7550afa
2024-09-13 10:29:25 +00:00
Sebastiano Barezzi
c94abe6d27 sm8250-common: Refactor Soong config namespace
Change-Id: I0273391af546d134a43cdd4f5c373953c92c2d61
2024-07-29 23:07:50 +02:00
Yumi Yukimura
2b0d5d32a0 sm8250-common: rootdir: Add more infos to ro.boot.hardware.revision prop
Change-Id: I8110a8a9ec653b4dbb73563336c3859571d0a58e
2024-07-21 22:19:14 +00:00
Yumi Yukimura
0fe2568344 sm8250-common: rootdir: Set ro.boot.hardware.revision property
* The value would be shown on Settings > About phone > Model > Hardware version.

Change-Id: I3a9707597ba01690bdf992e77d7d59d67213bca9
2024-07-21 20:38:25 +00:00
Daniel Banacki
55b4661188 sm8250-common: init: Toggle UFS powersaving during boot phases
Following Google Documentation:
https://source.android.com/docs/core/perf/boot-times#disable-power-saving

Change-Id: I0b50685da488c42675a9dbd3eaf04e03cd8f0c8c
2024-07-12 01:04:46 +02:00
Paul Crowley
20ed91545e sm8250-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-25 00:41:23 +02:00
Sebastiano Barezzi
87c8256e89 sm8250-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 ae47f72b4e.

Change-Id: I284f80f364e9057a8373a015f0acaee3ef9e395d
2024-05-30 23:42:42 +02:00
Yumi Yukimura
d007ef4c2a sm8250-common: Make RIL blob read device name from a dedicated property
* vendor/lib64/libril-qc-hal-qmi.so checks for device name from the
  property `ro.product.vendor.device`, If it gets a wrong device name
  then the modem would end up crashing with CRITICAL_DATA_CHECK_FAILED
  error (perhaps it's Xiaomi-specific thing)
* `ro.product.vendor.device` property could be spoofed to something
  else by the user sometimes, so let's switch to another property to
  make sure RIL won't get broke because of it

Change-Id: I90c5594d43ba6b590500806c4b4b83b0c9878fea
2024-04-13 19:21:12 +02:00
Yumi Yukimura
e9e537eae6 sm8250-common: Set subsystem restart level with ssr_setup util
Change-Id: I9b2e3e7c0212fd14c0ac00958a02b43217b1fd5e
2024-04-13 19:21:12 +02:00
Ivan Vecera
2e6923d475 sm8250-common: udfps: Allow access fod_status node in /sys/touchpanel
* fts_521 and goodix_driver_gt9886 used in umi exposes fod_status sysfs node
  in /sys/touchpanel

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: I9707e1837c41b0cbc3f03180774af1b53c4b2f6d
2024-04-13 19:21:12 +02:00
althafvly
0f4a9b04bb Revert "sm8250-common: touch: add IHighTouchPollingRate"
This reverts commit 7172b20f4f.

Reason: Kernel part is not implemented.

Change-Id: I8625e4cf6a1af5ba9febec38736e61a82007f728
2024-03-18 12:08:28 +00:00
LuK1337
e08a25b9b6 sm8250-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-17 13:29:06 +01:00
LuK1337
bfeb2a6ae1 sm8250-common: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
2024-03-17 13:29:06 +01:00
Suren Baghdasaryan
35cecd63c4 sm8250-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 00:18:51 +01:00
Sebastiano Barezzi
c61b05f5b9 sm8250-common: init: Remove more WLAN modules loading
Change-Id: I44fb35d90a5f2d3aa284779e75aa2c5eb5ca71e9
2024-02-26 00:18:51 +01:00
Ivan Vecera
e8f89b8179 sm8250-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-19 17:00:07 +01:00
Ivan Vecera
85f9b4b00f sm8250-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-19 16:56:29 +01:00
Sebastiano Barezzi
5f55ffe842 sm8250-common: init: Fix "/sys/ lines must have 5 or 6 entries"
Change-Id: I088154491c303febb0101af9029180c128336e57
2024-02-19 16:56:19 +01:00
Alexander Koskovich
43db334e93 sm8250-common: init: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2024-02-19 16:56:16 +01:00
Sebastiano Barezzi
05132e8782 sm8250-common: init: Drop debugfs stuff
Missed in I45e6f20c886d467a215c9466f3a09965ff897d7e

Change-Id: I9ec52e8969b20be027e5693637e65eddb99169c9
2024-02-19 16:56:11 +01:00
Alexander Koskovich
e347064378 sm8250-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-18 23:01:34 +01:00
Rick Yiu
eb7301fb09 sm8250-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-18 23:01:34 +01:00
Bruno Martins
ae47f72b4e sm8250-common: Fix charger init trigger event after health AIDL move
Change-Id: I58e7c493d3b300b1efb1685fba637fee6b56bec3
2023-11-16 18:02:19 +01:00
Sebastiano Barezzi
0bb494e028 sm8250-common: Move to health AIDL services
Change-Id: Ibadf22d432791551c16d7f4e386b470574c390f8
2023-11-12 22:06:14 +01:00
Luofan Chen
731094c73c sm8250-common: Build lineage health HAL
Change-Id: I1ca5f25f3a2d8734647b9cc0ff4885b0b817c6ad
Signed-off-by: althafvly <althafvly@gmail.com>
2023-06-30 00:12:32 +05:30
Michael Bestas
6cf5d05278 sm8250-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-06-17 12:55:31 +05:30
Midas Chien
adc1ab6d57 Revert "sm8250-common: enable idle timer with kernel support"
* We don't have the necessary commits in kernel for this

This reverts commit 58bfb32995.

Change-Id: Ibfd1be54e2e4cf5052a6a28713729d88a6f4a806
2022-09-04 00:14:23 +02:00
Sebastiano Barezzi
4eb0031d73 sm8250-common: Update blobs from munch V13.0.5.0.SLMMIXM
Change-Id: Ia1945730e3efd9d019b3d4ce048f8aca247c6708
2022-09-04 00:14:08 +02:00
Sebastiano Barezzi
6f383a15e1 sm8250-common: rootdir: Move vendor.btmac-sh service to init.xiaomi.rc
* Easier to follow upstream

Change-Id: I65eb14771fea583168d9c7eca91f111028e9c8c0
2022-09-02 00:13:06 +02:00
xSylla
beca02befe sm8250-common: rootdir: Stop using hardcoded boot device
Change-Id: Ibe68a1585894a55db0599ef87c42395c60976329
2022-07-14 00:39:30 +02:00
Sebastiano Barezzi
20d466b56d sm8250-common: Decommonize popup camera service
Change-Id: I4d1ef2ba94c72cff7b80c0b9799813b5f47f34a8
2022-06-26 03:24:03 +02:00
Sebastiano Barezzi
d71068185b sm8250-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-05-31 14:57:38 +02:00
Sebastiano Barezzi
4a29e3bc51 sm8250-common: Move to common Xiaomi touch HIDL
Change-Id: I07fb0b9c1b2a39d8630fe197e723f4a90ce4c9a8
2022-05-31 14:36:52 +02:00
Sebastiano Barezzi
5380a877a0 sm8250-common: rootdir: Remove unused imports from init.qcom.rc
Change-Id: I1dfd8a957b6c2149a5d4ead0432960171dcb675d
2022-05-31 14:35:35 +02:00
Sebastiano Barezzi
c719e50502 sm8250-common: rootdir: Merge all our custom init rc into a single one
Change-Id: I9e4f9fbcc76986a02288a439706affecde25594f
2022-05-31 14:34:01 +02:00
althafvly
3c49f2f18b sm8250-common: rootdir: Delete non-existing ssr_[setup/debug/ramdump]
- Theres more where this came from.

Change-Id: I54574b4aa4d48a3c2881c5103f75a2eb2e132e4e
2022-05-20 13:39:05 +02:00
stic-server-open
4e898da0e4 sm8250-common: rootdir: Remove duplicate "start logd"
* It is started in the on init phase in /system/etc/init/hw/init.rc

Change-Id: Ie10e1d4c520329a76627a965ca139f9ad0f71875
2022-05-20 13:22:37 +02:00
stic-server-open
8b81c75ecb sm8250-common: rootdir: Clean up non-existing cpu_boost nodes
* Our sm8250 kernel tree is not importing powerkey_input_boost
  changes from Xiaomi "drivers/cpufreq/cpu-boost.c"
* remove it to fix the error prompted at startup.

Fixes: 22ffc8d6 ("sm8250-common: Update to Android 12 blobs")
Change-Id: I9f6ee938d7270071933fb6dce91c790695962da9
2022-05-20 13:22:11 +02:00
Sebastiano Barezzi
22ffc8d638 sm8250-common: Update to Android 12 blobs
* From alioth V13.0.2.0.SKHMIXM

Change-Id: I82e5ed03424e3c41a59a43c3324f4ff02a51949f
2022-04-30 17:43:48 +02:00
stic-server-open
9456707ef3 sm8250-common: rootdir: Delete the non-existing cnss_diag service
* cnss_diag doesn't exist in proprietary-files.txt,
  and it doesn't make sense to leave residual services in init.target.rc.

Co-authored-by: MB <mb150996@gmail.com>
Co-authored-by: Aquarius223 <2777968262@qq.com>
Change-Id: I0f9cef6beb8bd2c593a628a057b97cc4d82842d2
2022-04-28 17:05:29 +02:00