Commit Graph

59 Commits

Author SHA1 Message Date
Chris Goldsworthy
0047765da7 Spacewar: rootdir: Reduce mlock() limit to 64 KB
Reduce the per-process limit of the mlock() family of system calls to
64 KB on account of a new CTS requirement.

Change-Id: I211668956bb6098e87cb7ef68bb7f1510d93d76f
2025-09-01 16:11:34 +00:00
Chris Goldsworthy
dc5619e0d2 Spacewar: rootdir: Remove redundant mlock() limit setting
The per-process limit for the mlock() family of system calls only
needs to be set in one group of config files. Remove from here as it
is being set in init.qcom.rc .

Change-Id: Ia7d46800eabe2954e3e2618a38ff180c88fee348
2025-09-01 16:11:34 +00:00
feiyuchen
07c8ee1523 Spacewar: 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-09-01 16:11:34 +00:00
Andy Hung
00e40527f8 Spacewar: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread.
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of
android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of
android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Merged-In: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
2025-09-01 16:11:34 +00:00
Andy Hung
b4f96fdea2 Spacewar: rootdir: Enable RT priority inheritance
Test: instrumented
Bug: 181148259
Bug: 260918856
Merged-In: If56e449a9c6f1a49e372591893d8714534574e3a
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
2025-09-01 16:11:34 +00:00
emilchung
45ecfdac2c Spacewar: rootdir: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
2025-09-01 16:11:34 +00:00
Lorenzo Colitti
c3aef1f0f2 Spacewar: Delete dhcpcd init entries, since dhcpcd is no more.
Bug: 27192644
Change-Id: I1aa25190c07f027884421d91c1e93f214493382d
2025-09-01 16:11:34 +00:00
Ethan Chen
eb9ea9dd7a Spacewar: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2025-09-01 16:11:34 +00:00
Bruno Martins
802ced871c Spacewar: 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
2025-09-01 16:11:34 +00:00
DY3413
aadfe7950a Spacewar: ueventd: Remove permission from /dev/st21nfc
Spacewar uses NXP NFC

Change-Id: I620d4b9b8eecfec515b8395b3774f377f41d99b8
2025-09-01 16:11:34 +00:00
Michael Bestas
f16bd3ee11 Spacewar: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2025-01-20 13:13:17 +01:00
Paul Crowley
2b3e602d13 Spacewar: 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
2025-01-20 13:13:17 +01:00
dianlujitao
ce10b6f8bb Spacewar: Nuke ATFWD
It's normally not used at all.

Change-Id: Idb824b3b8c783b6ac962e604df05f9154beb4ed2
2025-01-20 13:13:17 +01:00
BrainKub
f71edf7372 Spacewar: rootdir: Import init.class_main.sh
This is necessary for correct initialization of the network when the device starts. Without this, starting the mobile network takes more than 2 minutes, which is unbearably long

Change-Id: Ic3e1e0b87b874fe34e2a4e83bd4cd1640234f456
Signed-off-by: BrainKub <fyhtjnt@gmail.com>
2025-01-20 13:13:17 +01:00
BrainKub
6a4d44ca6d Spacewar: Add permissions for led paths
Change-Id: I81ff5fbd214531360ee452d5a6de09afdc9050c4
Signed-off-by: BrainKub <fyhtjnt@gmail.com>
2025-01-20 13:13:17 +01:00
DarkJoker360
6b3b9d441f Spacewar: Update from NothingOS 3.0 OBT
Co-authored-by: Jake Weinstein <jake@aospa.co>
Co-authored-by: aswin7469 <aswinas@pixysos.com>
Co-authored-by: BrainKub <fyhtjnt@gmail.com>
Change-Id: Ief104e379cfdd9d2b46b4fb79d21a6e848e119ca
2025-01-20 13:13:17 +01:00
Alexander Koskovich
dd90f2d61f Spacewar: Switch to /vendor_dlkm for kernel modules
* This lets us flash /vendor regardless of the kernel situation.

Change-Id: Ie1c18354b26006e416d06474f5844ceef3cfbaf3
2023-09-20 23:28:10 +02:00
Tim Zimmermann
39c98903c9 Spacewar: Switch to EROFS for /vendor and /odm
* No more disabling encryption

Change-Id: Id0bdda24542625875f24419b3b248b1a67879398
2023-09-20 23:27:59 +02:00
x0x00044
cf59a7f76e Spacewar: Update from NothingOS 2.0.2 Hotfix build
- Update rootdir chowns
- Uppercase the device name again

Co-authored-by: aswin7469 <aswinas@pixysos.com>
Change-Id: I96d837889cdbd4cd9652a7f5d5e716c3767c8aca
2023-09-20 23:24:11 +02:00
Abhiprayah Tiwari
2bcb4fec91 Spacewar: init: Move testscripts file from main rc to test rc
Moving init.qcom.testscripts.sh service start from
init.qcom.rc to init.test.rc to prevent it from having
any signature in user builds.

Change-Id: Ifa69537f8394e0919d26d6db300910620278ed76
2023-09-11 21:34:03 +02:00
Ethan Chen
65f9d3ddfe Spacewar: Remove unused LKCore service entries
Change-Id: I000d7a467d1313c7b0dadb4ec8272560ba363ea7
2023-09-11 21:34:03 +02:00
Ethan Chen
787f89fb0f Spacewar: Do not override GLES version
Change-Id: I32513c3cf5e8d3b70bb0d674e13d785d1d03541a
2023-09-11 21:34:03 +02:00
Arian
2ad17a3815 Spacewar: rootdir: Don't start/import removed scripts
Change-Id: Iab1ce460122775fa885a0a484b1203757fe48a1e
2023-09-11 21:34:03 +02:00
Ethan Chen
61ffda7d93 Spacewar: Remove unnecessary QTI logkit directories
* We do not use logkit

Change-Id: I7719bbcebbd053addd16684926eff30d46b945d8
2023-09-11 21:34:03 +02:00
Arian
d57adb74e1 Spacewar: rootdir: Remove conditional starting of msm_irqbalance and don't disable it
Change-Id: I80965f5659bacbd8e373d572396712e41fbe2b73
2023-09-11 21:34:03 +02:00
Bruno Martins
4abebe1911 Spacewar: Delete class_main init shell script
Apart from useless battery capacity faking, all this does is to
start/stop data and radio services based upon the baseband type
of several QCOM targets. Since all the supported targets in this
common tree are of the same type, simply start all relevant services
unconditionally and get rid of one more shell script.

Change-Id: I1297b2537fcbea31d514bab5e248691cabdf523c
2023-09-11 21:34:03 +02:00
Wei Wang
54f61e8807 Spacewar: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2023-09-11 21:34:03 +02:00
Melody Olvera
2f8a676ed7 Spacewar: rootdir: Remove debugfs
Change-Id: I210ce48935c6f56278b01b5b7cfba91baceb4c1e
2023-09-11 21:34:03 +02:00
Fabian Leutenegger
a698a8478e Spacewar: Add permissions for more led paths
Change-Id: Ife039818545cd47bc80e9482d4f5e5b2d73dffee
2023-09-11 21:34:03 +02:00
Mohit Aggarwal
5afa8c62fc Spacewar: time-services: Remove time_daemon rc definition
time_daemon starts from its own init rc
init: processing action (ro.crypto.state=encrypted && ro.crypto.type=file && post-fs-data) from (/vendor/etc/init/init.time_daemon.rc:7)
init: starting service 'time_daemon'...

Fixes:
ignored duplicate definition of service 'time_daemon'

Change-Id: Ia92d88eb2ec9696bc8ce075e74833cde572cb1e1
2023-09-11 19:54:36 +02:00
aswin7469
b8e38e9a0a Spacewar: rootdir: kill some useless debug
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-09-11 19:54:36 +02:00
Alexander Koskovich
765c29c56e Spacewar: init: Use task_profiles for vendor.audio-hal
Change-Id: I76ff226b7fe1b301b3492a924a39b7b2ff91d4b1
2023-09-11 19:54:36 +02:00
Arian
035f199ef6 Spacewar: Drop perf learning module
This depends on caf BoostFramework

Change-Id: I1d3e6750ecb88db83f265cc06b175cbc0cfb9726
2023-09-11 19:54:36 +02:00
Arian
31283ca607 Spacewar: Drop IO Prefetcher
This depends on caf BoostFramework

Change-Id: Ie3ea41f7be323472124a395b8fee52aa7333c2fc
2023-09-11 19:54:36 +02:00
x0x00044
b4e2c6c944 Spacewar: Update to NothingOS 1.5.6
Co-authored-by: hiper25 <2243168976@qq.com>
Co-authored-by: aswin7469 <aswinas@pixysos.com>
Change-Id: I87c4254383459007aca00107d14f86f01fd16760
Signed-off-by: x0x00044 <zlewchan@outlook.com>
2023-09-11 19:54:36 +02:00
a-huk
20867c4e11 Spacewar: init: Disable adsprpcd
It is crashing and spamming logcat:

09-06 16:49:05.988   787 18832 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:407: file_watcher_thread exiting for domain 0
09-06 16:49:05.998   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:191: rpcmem_deinit_internal: closed ION fd 5
09-06 16:49:05.998   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2787: fastrpc_apps_user_deinit done
09-06 16:49:06.000   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/adsprpcd.c:48:adsp daemon will restart after 25ms...
09-06 16:49:06.039   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:158: rpcmem_init_internal: opened ION device fd 5, configured heap IDs: system (0x2000000), contig (0x400000), secure (0x200), secure flags (0x80080000)
09-06 16:49:06.039   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2847: fastrpc_apps_user_init done
09-06 16:49:06.039   787   787 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1237: remote_handle_open: Successfully opened handle 0x0 for '":;./\attachguestos on domain 0
09-06 16:49:06.041   787 18833 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
09-06 16:49:06.041   787 18834 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 0
09-06 16:49:06.041   787 18834 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/adsprpcd.farf. (No such file or directory)
09-06 16:49:06.041   787 18834 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/adsprpcd.farf. (No such file or directory)
09-06 16:49:06.041   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1125: Error 0x4e: remote_handle64_invoke failed for handle 0xbbab82d0, method 4 on domain 0 (sc 0x4010100) (errno Success)
09-06 16:49:06.041   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/adspmsgd.c:112:Error 0x4e: adspmsgd_init failed for handle 0xbbab82d0 filter 16 with errno Success
09-06 16:49:06.041   787   787 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1125: Error 0x4e: remote_handle64_invoke failed for handle 0xbbab82d0, method 3 on domain 0 (sc 0x3000000) (errno Operation not permitted)

04-05 08:35:52.265   941 14909 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1191: Error 0x8000040d: remote_handle_invoke failed for handle 0x3, method 4 on domain 3 (sc 0x4020200) (errno Success)
04-05 08:35:52.266   941 14909 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1191: Error 0x8000040d: remote_handle_invoke failed for handle 0x3, method 4 on domain 3 (sc 0x4020200) (errno Success)
04-05 08:35:52.266   941 14909 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/listener_android.c:221:Error 0x8000040d: listener response with result 0x0 for ctx 0x2566, handle 0x183279e8, sc 0xffffffff failed : listener thread exited (errno Success)
04-05 08:35:52.266   941 14909 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1213: Error 0x8000040d: remote_handle64_invoke failed for handle 0x7b22cb30, method 3 on domain 3 (sc 0x3000000) (errno Success)
04-05 08:35:50.739   941 14911 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/android.hardware.camera.provider@2.5-service_64.farf. (No such file or directory)
04-05 08:35:50.739   941 14911 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/cdsp/android.hardware.camera.provider@2.5-service_64.farf. (No such file or directory)
04-05 08:35:50.739   941 14911 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/android.hardware.camera.provider@2.5-service_64.farf. (No such file or directory)
04-05 08:35:50.645   941 14779 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1191: Error 0x8000040d: remote_handle_invoke failed for handle 0x3, method 4 on domain 3 (sc 0x4020200) (errno Success)
04-05 08:35:50.646   941 14779 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1191: Error 0x8000040d: remote_handle_invoke failed for handle 0x3, method 4 on domain 3 (sc 0x4020200) (errno Success)
04-05 08:35:50.646   941 14779 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/listener_android.c:221:Error 0x8000040d: listener response with result 0x0 for ctx 0x2170, handle 0x183279e8, sc 0xffffffff failed : listener thread exited (errno Success)
04-05 08:35:50.646   941 14779 E android.hardware.camera.provider@2.5-service_64: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1213: Error 0x8000040d: remote_handle64_invoke failed for handle 0x7b22cef0, method 3 on domain 3 (sc 0x3000000) (errno Success)

Change-Id: I0f62bd33fc17640f170b21cd847ac8bdca415e13
2023-09-11 19:54:36 +02:00
aswin7469
5a83ea4b1a Spacewar: Remove unused fastcharge hax
* NOS 1.5 doesnt have slow charge mode

Change-Id: Iad56438e9e8f80aed4deb2427c90a86736e2e3c7
2023-09-11 19:54:36 +02:00
Melody Olvera
6e3cc186e5 Spacewar: init: Remove racey printk setups
Configure printk from init.qcom.sh only.

Change-Id: I4eff77fd5cd121f31156c2fbdac1208dec6c9ac5
2023-09-11 19:54:36 +02:00
Siddharth Gupta
c69c8c9f0a Spacewar: init: qcom: Move auto PIL for CVP to post boot_completed
During early-boot the CVP driver is not guaranteed to have been probed.
Move auto PIL to a later stage to ensure that CVP is probed by the time
we attempt PIL.

Change-Id: I26f3794d7146af3ca5c2aa3bc89920a8259e9d49
2023-09-11 19:54:36 +02:00
Randall Huang
6782027e8f Spacewar: rootdir: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
2023-09-11 19:54:36 +02:00
P.Adarsh Reddy
0ac104692c Spacewar: rootdir: Enforce android-S new launch debugfs restrictions.
This removes the default mounting of debugfs, as
it is no longer allowed from android-S new-launch.

Change-Id: Ifeda709613c68234093947f7a92638b4069b089a
2023-09-11 19:54:36 +02:00
Nagireddy Annem
0ab5d3efc3 Spacewar: rootdir: ueventd: set permissions to rawdump node
move permission setting logic from init rc file to ueventd rc file.

Change-Id: I4b94e0e188f8b420a608cc2e0d97e4b960381c31
2023-09-11 19:54:36 +02:00
Kujou Yuko
fc89141acd Spacewar: Switch to QTI health HAL implementation
* Fixed the battery meter not working properly.

Change-Id: Ie17b01135fdd311ca512da6997dc875894ea5458
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-09-11 19:54:36 +02:00
Alexander Koskovich
fa19eb6e92 Spacewar: rootdir: 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
2023-09-11 19:54:36 +02:00
Kujou Yuko
ac2e2b5ac8 Spacewar: Enable fast charging by default
Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: Ic1744bc5c41222a0776e2ba362311722189d4d13
2023-09-11 19:54:36 +02:00
Kujou Yuko
51ffd3f0e9 Spacewar: Simplify restart health HAL logic
Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: I70332279028f754483528b86818805767f833a44
2023-09-11 19:54:36 +02:00
Kujou Yuko
3dbd4fe5f4 Spacewar: rootdir: Update from Nothing OS 1.1.4
Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: I80ea480e18fae60a27626ea045a2051ef644fe9e
2023-09-11 19:54:36 +02:00
Kujou Yuko
a6a10c4477 Spacewar: rootdir: Specify fstab file for mount_all
* We have only one fstab file, which is a good way to avoid the time
   overhead of scanning.
 * Ref: https://android.googlesource.com/platform/system/core/+/master/init/README.md.

Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: Ib595655753d1be51d495a5bbc5c69612affd9817
2023-09-11 19:54:36 +02:00
Kujou Yuko
688f6fdea1 Spacewar: rootdir: Use QTI common USB init scripts
Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: Ifab84d0efd0795b109ff6cfa8a0c0bcf78ade124
2023-09-09 23:35:03 +02:00
stic-server-open
7f29f3b21a Spacewar: rootdir: Remove duplicate "start logd"
* It is started in the on init phase in /system/etc/init/hw/init.rc

Change-Id: Ie10e1d4c520329a76627a965ca139f9ad0f71875
2023-09-09 23:35:03 +02:00