Commit Graph

35 Commits

Author SHA1 Message Date
debdeep199x
b2469133d8 sm7125-common: init: Use schedutil governor for atoll 2024-05-24 13:46:00 +00:00
markakash
40bd8fa77e sm7125-common: : rootdir: Chown the cgroup.procs nodes
* Perf-hal tries to access the nodes but requires permissions as reflected in the logs
* 11-10 19:25:50.044  1055  1080 E ANDR-PERF-OPTSHANDLER: Cannot open/create foreground cgroup file
2024-05-23 15:23:52 +00:00
UtsavBalar1231
d7d9ad7657 sm7125-common: : rootdir: Add vendor prefix to rmt_storage
* As per the init.qcom.rc service defination has vendor prefix
* This Fixes:
I init    : Command 'start rmt_storage' action=boot (/vendor/etc/init/hw/init.target.rc:161) took 0ms and failed: service rmt_storage not found
2024-05-23 15:23:52 +00:00
Wei Wang
0627483da8 sm7125-common: rootdir: Boot time tuning 2024-05-23 15:23:52 +00:00
Jaegeuk Kim
e85c1f5aab sm7125-common: Get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.
2024-05-23 15:23:52 +00:00
Kyle Lin
f9076c8962 sm7125-common: rootdir: Setup runtime cpusets
Because the arch is similiar with SDM670, we aling the setting with
bonito.
2024-05-23 15:23:51 +00:00
Egor Pilipenko
22c662aee9 sm7125-common: RealmeParts: Remove OTG toggle
Always enabled since newer kernel changes

Signed-off-by: Egor Pilipenko <ctapchuk@gmail.com>
2024-05-22 19:00:54 +07:00
debdeep199x
21b639ef56 sm7125-common: switch to common libperf manager 2024-05-22 03:31:10 +00:00
SagarMakhar
77d0be00b5 sm7125-common: add service for logging 2023-10-29 14:03:24 +00:00
LuK1337
331761a346 sm7125-common: Changes for AOSP Recovery 2023-03-31 14:03:32 +00:00
debdeep199x
786c839377 sm7125-common: Revert"rootdir: Remove sdcard legacy support" 2023-03-31 14:03:32 +00:00
Adithya R
26d410a7e3 sm7125-common: rootdir: Override disable self-init GSI services
* this service runs from vendor in non-stock roms and enables gsi
   mode in order to pass cts/vts, but also has the side effect of
   breaking aux cams and more

 * since we are not running any cts or vts tests, disable these
   services to retain stock behavior of camera hal and other stuff

 * retain oppo_version and product mounts while we're at it

Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-18 15:19:35 +00:00
Wang Han
2652e6979d sm7125-common: rootdir: 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

Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-17 15:40:13 +00:00
Adam Shih
c9a35084ba sm7125-common: rootdir: Remove sdcard legacy support
[    1.667218] audit: type=1400 audit(1804301.953:5): avc:  denied  { write } for  pid=507 comm="init" name="/" dev="tmpfs" ino=17273 scontext=u:r:vendor_init:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=0
[    1.667362] init: Command 'symlink /sdcard /mnt/sdcard' action=vendor.skip.init=0 && init (/vendor/etc/init/hw/init.sm8150.rc:87) took 1ms and failed: symlink() failed: Permission denied
[    1.669181] init: Command 'symlink /sdcard /storage/sdcard0' action=vendor.skip.init=0 && init (/vendor/etc/init/hw/init.sm8150.rc:88) took 1ms and failed: symlink() failed: Read-only file system

Bug: 131295392
Test: modify rc file, push to device and find error log gone
Change-Id: I24b6f5ac58159a1172a286eb680ded326c7319f9
(cherry picked from commit b1a63f1a7a99fb6c5a526c73426cab0bbf29a352)
Signed-off-by: Jason(HeWei) Sung <jasonsung@google.com>
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-09 11:01:27 +00:00
Sultan Alsawaf
e4781bbe95 sm7125-common: Change userdata fsync mode to strict for f2fs
To help mitigate data loss potential in the event of an unclean
shutdown. The small performance hit is worth the trade-off for improved
data integrity, especially since custom builds are more susceptible to
unclean shutdowns during development.

Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-06 15:01:22 +00:00
Mingshu Pang
d028fc7d30 sm7125-common: add cpu set for audio app
Define cpu set for audio app. This is to optimize
audio scheduling against lpm exit latencies.

CRs-Fixed: 2588130
Change-Id: If53c569febb0dbf3adf69c5cea2db6d505ba8471
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-06 15:01:22 +00:00
Prasanta Kumar Sahu
c209577534 sm7125-common: Add 'check' flag for metadata partition.
Change-Id: I68d58178c80e2ed12f67d95b74ab048908c5a5e7
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-06 15:01:21 +00:00
Neeraj Soni
60b49f4edc sm7125-common: Enable new file encryption flag and mount option
Enable mount option and encryption flags to use new file encryption
architecture.

Change-Id: I4a99068baf6830b9e0e86619420be6ab6809db3e
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-06 15:01:21 +00:00
daniml3
b18c6f6659 sm7125-common: mark wpa_supplicant as an aidl
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-10-06 14:15:10 +00:00
Sonal Singh
c13697605a sm7125-common: rootdir: Override AIDL Power HAL service
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-08-26 03:37:48 +00:00
Kyle Lin
664f3f671b sm7125-common:rootdir: Enable s2idle
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-08-26 03:34:05 +00:00
Danny Lin
17f59e393f sm7125-common: rootdir: Use Google's schedutil rate-limits
These are tuned for mobile/interactive systems, unlike CAF's equivalent
up and down rate-limits.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
Signed-off-by: Alex Winkowski <dereference23@outlook.com>
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-06-16 15:32:59 +00:00
SVB
3f5ac4b14f sm7125-common: rootdir: Allow all filesystems for USB-OTG
Signed-off-by: SVB <shef@intech-stv.ru>
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-04-30 15:48:08 +00:00
SagarMakhar
4b93b831cd sm7125-common: Update fastchg fw on init
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
2022-04-30 15:29:24 +00:00
SagarMakhar
6133c96e0f sm7125-common: rootdir: Import device specific init rc file
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-08-29 16:42:01 +00:00
SagarMakhar
48934a3165 sm7125-common: Restore cabc node permissions
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-08-28 04:47:05 +00:00
SagarMakhar
e2fb132623 sm7125-common: Import rootdir updates from RMX2061 C18
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-08-26 19:13:02 +00:00
SagarMakhar
f901d6f762 sm7125-common: Add NFC support for RU/EU variants
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-08-02 18:30:59 +00:00
SagarMakhar
9c9009c32e sm7125-common; RealmeParts: Add OTG toggle to realme parts
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-07-06 18:05:57 +00:00
SagarMakhar
7cb255ef7e sm7125-common: rootdir: Move our edits to seperate file
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-07-06 18:05:57 +00:00
darkobas
a82e9e47af sm7125-common: Add vibration slider
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-07-06 18:05:57 +00:00
SagarMakhar
823555d921 sm7125-common: init.qcom.rc: Enable OTG by default
Signed-off-by: Mayur <ultramayur123@gmail.com>
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-07-06 18:05:57 +00:00
Mayur
d40b3a16ba sm7125-common: init.qcom.rc: Fix AOD
* thanks to pascua28

Signed-off-by: Mayur <ultramayur123@gmail.com>
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-07-06 18:05:57 +00:00
Wang Han
cb85c162aa sm7125-common: rootdir: Override hwcomposer service definition
* CAF added a socket creation to hwcomposer service for post-processing
   blobs to work. As AOSP interface does not have this, some display
   features such as SVI configuration is broken and hwcomposer will crash
   after adding it on boot. Instead of relying on framework fixes, we can
   just override service definition and create the socket in this way.

 * Reference: 73a427f95e

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-07-06 18:05:57 +00:00
SagarMakhar
5e2eadfefd sm7125-common: Import rootdir
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2021-07-04 11:27:13 +00:00