Commit graph

478 commits

Author SHA1 Message Date
Nick Kralevich
5bdce0a4c3 sdm660-common: rootdir: Remove useless attempt to chmod /system/bin/ip
/system is mounted read-only. It's impossible for init to modify
the permissions on /system/bin/ip.

Change-Id: Ie5cb20bc45f9769969b71ffd747b1ed34fc27187
2024-08-03 09:07:26 +03:00
Nauval Rizky
eaab2ad176
sdm660-common: rootdir: Optimize sched_lib_name
* Register more game libraries to sched_lib_name
* Remove UnityMain from sched_lib_name
2024-05-10 14:03:17 +03:00
Brock5555
7256610eb8
sdm660-common: rootdir: Register and enable qcrild & data services on boot
* Fixes delay on getting network service after boot

Change-Id: Ibed5c5addb307d89f26cbf51420e37f1b04c42e5
2024-05-10 14:03:17 +03:00
LuK1337
17c7be59b6
sdm660-common: rootdir: Drop SSR services and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2024-05-10 14:03:16 +03:00
Ratoriku
4da36f4e55
sdm660-common: rootdir: Make memlat no-op
* Since we have libperfmgr to boost devfreq, there is no need to use it.
* Followed wahoo's set

Change-Id: Ic9a63aac98f315c83335d36f6fdfc1bffc6bf7da
Signed-off-by: Ratoriku <a1063021545@gmail.com>
2024-05-10 14:03:16 +03:00
1582130940
d69a4aefea
sdm660-common: rootdir: Clean up init scripts
* Remove unnecessary configurations
* Don't modify ownership of ondemand cpufreq nodes
* Remove qcom input boost
Arian <arian.kulmer@web.de>

Co-authored-by: Arian <arian.kulmer@web.de>
2024-05-10 14:03:15 +03:00
Marco Zanin
6d646a2ddf
sdm660-common: rootdir: Stop trying to set ro.sf.lcd_density prop
It's wrong because we have devices with different screen densities,
and does not work:

W libc    : Unable to set property "ro.sf.lcd_density" to "480": error code: 0xb

Signed-off-by: Marco Zanin <mrczn.bb@gmail.com>
2024-05-10 14:03:15 +03:00
Sebastiano Barezzi
7455bc4d3b
sdm660-common: rootdir: Fix "/sys/ lines must have 5 or 6 entries"
Change-Id: I08acd4642f7459d9d2628f6c0853c47f13c2848a
2024-05-10 14:03:14 +03:00
Martin Liu
3408b8155d
sdm660-common: rootdir: Set readahead_size_kb=128 to partitions
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
2024-05-10 13:56:18 +03:00
Duc Le
d86b0b7e89
sdm660-common: rootdir: Bump zram size to 75%
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-02-09 09:55:27 +02:00
pix106
8c0db09a36
Revert "sdm660-common: Use stock poweroff charging animation"
This reverts commit 9492d1fa58.
2024-02-09 09:55:12 +02:00
clarencelol
6048a9b491 sdm660-common: rootdir: Disable zram dedup
* Done via the kernel, forgot the line exists in DT as well

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:30:38 +01:00
LuK1337
3e6db0abc2 sdm660-common: rootdir: set swappiness to 60 2024-01-14 17:19:23 +01:00
pix106
f5a6784000 sdm660-common: fstab_A.qcom: mount system as /system 2024-01-14 17:18:54 +01:00
Prateek Sood
4ce96ccaa9 sdm660-common: init.qcom.rc: Add support for tracefs when !CONFIG_DEBUG_FS
Mount of tracefs in /sys/kernel/debug/tracing will fail when DEBUG_FS
is disabled. So, mount tracefs in /sys/kernel/tracing to still use all the
tracing abilities when CONFIG_DEBUG_FS is disabled

Change-Id: Ib37332c3f1108d7c4798717f0f009c891db72850
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
03087d82fc Revert "sdm660-common: Use garbage collector"
This reverts commit c3a7a64be5.
2024-01-14 17:18:17 +01:00
Alcatraz323
0726c25be8 sdm660-common: correct fs inlinecrypt & label metadata context
* As https://source.android.com/docs/security/features/encryption/file-based said emmc_optimized is a inlinecrypt flavor and can only be applied on emmc 5.2 device which has not been released yet
* Apparently Xiaomi 660 is launched with emmc 5.1 5 years ago and never met the 5.2 spec
* Now really enables inlinecrypt hardware by adding it in mnt_flags
* Use AOSP recommended inlinecrypt_optimized
* Use lazytime for reducing meaningless io
* Label metadata partition

(pix106) i use logdump partition for metadata, not cust

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
7011aa62a9 sdm660-common: fstab: add formattable flag for userdata f2fs entry
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Edwin Moquete
5c094cad89 sdm660-common: Switch to FBEv2 emmc optimised encryption
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
8132ae3f7c Revert "sdm660-common: Disable zram writeback"
This reverts commit f13ea08789.
2024-01-14 17:18:17 +01:00
YumeMichi
152cafd63b sdm660-common: Remove redundant CHRE daemon
* We don't have the chre binary and MIUI also disabled it.

Change-Id: I57a95643c366f8b1ce1a8af5ff2ebbf9b29e316d
Signed-off-by: YumeMichi <do4suki@gmail.com>
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Alcatraz323
cd42dff553 sdm660-common: rootdir: remove redundant swapon_all command
* this won't cause zram not to work, but will cause dmesg spit a
"denied" warning
* removing swapon in "fs" scope following aosp instruction
* ref -> https://source.android.com/docs/core/perf/boot-times

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Volodymyr Zhdanov
49b6570b78 sdm660-common: rootdir: Don't configure zram in init.qcom.post_boot.sh
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Alcatraz323
9995d34211 sdm660-common: rootdir: tune background cgroup uclamp values
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-09-15 20:52:46 +02:00
Tashfin Shakeer Rhythm
0e79a7bd21 sdm660-common: rootdir: Do not load non-existent wlan module
Wlan driver is compiled from kernel. Not only the module is non-existent
but also it's unnecessary and causes insmod failure. So, don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
d41f3d2a88 sdm660-common: rootdir: Do not exec init.qti.can.sh
init.qti.can.sh doesn't exist. So, executing the non-existent bash
scripts only results in failure. Don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
0a5ca4c00c sdm660-common: rootdir: Do not try to remove shmbus
shmbus doesn't exist for us. Removing a non-existent file/folder only
causes the command to fail and spam the dmesg.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
609d3d6c14 sdm660-common: rootdir: Trim and fix some blkio node paths
"bg" seems to be "background" after examining the path using a root
explorer. "blkio.weight" is non-existent. So, remove it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
e80c22e5dd sdm660-common: rootdir: Enable RT priority inheritance for audio HAL
Test: instrumented
Bug: 181148259
Bug: 260918856
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
emilchung
e5d0f0c0bd sdm660-common: 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
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
dc669fe301 sdm660-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread. - done in hardware/interface/audio
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
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Georg Veichtlbauer
f102767534 sdm660-common: Fix PowerOffAlarm
* Adjust /persist/alarm/data permissions accordingly

Change-Id: Ie24ccb3749d1dda2deb670cdb531e35d153034ed
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
pix106
176ed77e92 sdm660-common: rootdir: rollback time options for cache and persist partitions
This partially reverts commit 6f9fe01554.

From 43128a7896
2023-08-22 08:44:53 +02:00
Michael Bestas
54c2ca5cce sdm660-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
5e4faf510c sdm660-common: proprietary: update CNE, DPM, IMS, QMI, RIL blobs
* LA.QSSI.13.0.r1-09700-qssi.0
* Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys
* sync Hidl manifest version with Hon660 and S62 Pro
* build hostapd_cli(though Android GUI interface does not need this to manage the ap client, we may want to control them from the shell, maybe)
* remove rmt_storage, tftp_server from rootdir script, they are self contained now
* the vendor.qti.tftp.rc is patched with 782ab1966f
* fix cnd denial

Co-authored-by: 1582130940 <1582130940@qq.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Melody Olvera
6a417ef057 sdm660-common: rootdir: init: Remove debugfs
Signed-off-by: HeroBuxx <me@herobuxx.me>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-25 09:45:54 +02:00
minaripenguin
31be07de4e sdm660-common: rootdir: Pin msm_irqbalance to system-background
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:40:47 +02:00
Tashfin Shakeer Rhythm
2de583c358 sdm660-common: rootdir: Do not set permissions for unused block paths
Our device only uses c0c4000.sdhci.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
f21f68411b sdm660-common: Enforce read-ahead to be 128 KB after boot
Google has mentioned that 512 KB performs worse under heavy memory pressure.
Therefore, hardcode 128 KB read-ahead for all which is optimal.
Also, remove the unused block paths.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
c81cf71b38 sdm660-common: rootdir: Do not pointlessly configure cpu boost
CAF's CPU boost has been disabled in kernel. So, this is useless.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
1ae8e9ac22 sdm660-common: rootdir: Do not pointlessly configure rtg boost and pl
rtg boost and pl have been removed from schedutil in kernel. So, this is useless.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Immanuel Raj
c3a7a64be5 sdm660-common: Use garbage collector
Good with F2FS

Based on 6a82382659

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Mohamed Moussa
342d3ebe97 sdm660-common: rootdir: Move init.recovery.qcom.rc out of root
The file init.recovery.qcom.rc flagged as offending file in root/,
because it violates the pathing req. (system/ & root/). Place the file
in $(TARGET_RECOVERY_ROOT_OUT)

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Arian
fe308799a1 sdm660-common: rootdir: Remove printk loglevel setup from init.qcom.sh
Change-Id: I3bba49505efd42e2276116c5cdd31a921acf30a8
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
ZeeLog
3f261b11a0 sdm660-common: rootdir: Append vendor prefix to irsc_util
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
UtsavBalar1231
a76505d70a sdm660-common: rootdir: Remove obsolete rfs_access service
init: Command 'start rfs_access' action=boot
(/vendor/etc/init/hw/init.target.rc:88) took 0ms and failed: service
rfs_access not found

Change-Id: I1549a36f0663bfe8de381ccb493b757cd5375cbc
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Arian
8c7b7a78c2 sdm660-common: rootdir: Don't install test apps
Change-Id: I642691c52afa777eeed50a280574dcfba0eae155
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
pix106
6f9fe01554 sdm660-common: rootdir: clean fstab time options
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
ManshuTyagi
796762d620 sdm660-common: init: Fix trace error * E cutils-trace: Error opening trace file: No such file or directory
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Alcatraz323
796f450b3a sdm660-common: rootdir: time_daemon: self contained module
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00