Commit graph

377 commits

Author SHA1 Message Date
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
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
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
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
Alcatraz323
901ff5c8a1 sdm660-common: rootdir: set task_profiles for common background tasks
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Co-authored-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Suren Baghdasaryan
0348e50c0a sdm660-common: rootdir: 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
Merged-In: Ide373c283359cf4b73af4cb0813d8c0306942595
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Randall Huang
5c11cadd03 sdm660-common: 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
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Alcatraz323
0e8661dea0 sdm660-common: Partially revert "Nuke msm_irqbalance"
* replace with 660 stock irq conf(miui/s62pro are same)
* remove not needed service define in init.qcom.rc

This reverts commit fe0aeb3704.

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 09:48:58 +02:00
Stylogey
5182be1445 sdm660-common: DeviceSettings: Add USB fastcharge toggle
Co-authored-by: ronaxdevil <pratabidya.007@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-23 19:32:12 +01:00
pix106
bc4950e9be sdm660-common: rootdir: drop schedtune 2023-03-20 07:18:06 +01:00
Alcatraz323
2c7ab4d8e3 sdm660-common: rootdir: correct missing echo to usb configuration
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alcatraz323
7379fa4f67 sdm660-common: rootdir: fix usb mtp/ptp/accessory/audio_source/midi unrecognized by windows
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alcatraz323
2d4da6b804 sdm660-common: rootdir: correct xiaomi usb vendor/product id
* before Bus 001 Device 010: ID 18d1:4ee2 Google Inc. Nexus/Pixel Device (MTP + debug)
* after Bus 001 Device 015: ID 2717:ff48 Xiaomi Inc. Mi/Redmi series (MTP + ADB)

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Vladimir Mikhailov
6eaa16c9e8 sdm660-common: rootdir: Restore CAF cpuset settings
Change-Id: I80b4ead18bf4f485e9183c55fb2030a7f3b381d4
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alex T
5175cbf5a9 sdm660-common: rootdir: Put tftp in a group
Fixes following spamfest:

09-09 06:49:00.304   823   823 I tftp_server: pid=823 tid=823
tftp-server : INF :[tftp_server.c, 667] rcvd >
09-09 06:49:00.304   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server_utils.c, 11>
09-09 06:49:00.304   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 1222] OA>
09-09 06:49:00.304   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_os_la.c, 191] unli>
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 893] Usi>
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_os_la.c, 63] open >
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_os_la.c, 70] open >
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 927] ope>
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_server.c, 1718] op>
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_protocol.c, 1229] >

Change-Id: I60fcc9530a69326bb3fc92beed1cdb4221d6ddd9
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
boedhack99
6c5b6a61e3 sdm660-common: rootdir: Remove useless nqnfcinfo service
- non-existing

- init: Could not start service 'nqnfcinfo' as part of class
'late_start': Cannot find '/system/vendor/bin/nqnfcinfo': No such file
or directory

Change-Id: I2ded3327ba721f629b7f5ea31d6861fed0e7c6c4
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Ethan Chen
8a6b121b1b sdm660-common: rootdir: Remove unnecessary QTI logkit directories
* We do not use logkit

Change-Id: I7719bbcebbd053addd16684926eff30d46b945d8
Signed-off-by: ImSpiDy <spidy2713@gmail.com>
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
pix106
318fc92825 Revert "sdm660-common: fstab: Drop 'quota' Flag"
This reverts commit daf11032ed.
2023-02-10 06:57:55 +01:00
Immanuel Raj
b37e47c9d1 sdm660-common: Add fsverity flag to userdata
After many comments and logs and research this was found to be missing and causing error

Ref https://forum.xda-developers.com/t/rom-12-xiaomi-mi-a2-pixelexperience-aosp-25-07-2022.4406351/post-87199577

Meanwhile adding this line in the fstab fixes this stuff

Ref https://android-review.googlesource.com/c/device/google/cuttlefish/+/1458807

first Api level>=30 doesnt need that flag but sadly we are 27 so yeah lets add it

Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-01-12 07:50:37 +01:00
pix106
0fcf8ea137 Revert "sdm660-common: Migrate to Xiaomi power AIDL HAL"
Revert "sdm660-common: rootdir: Clean part of Unexported properties"
Revert "sdm660-common: power-libperfmgr: Reduce GPU idle timer to 64ms"
2023-01-04 06:23:14 +01:00
johnmart19
b40ca5227c sdm660-common: rootdir: Clean part of Unexported properties
This properties are unused for our purposes, so let's remove it to do not trigger Selinux spam

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-27 07:34:56 +01:00