Commit graph

90 commits

Author SHA1 Message Date
ManshuTyagi
d9a4ac54df
sdm710-common: init: Fix trace error * E cutils-trace: Error opening trace file: No such file or directory 2023-11-21 23:41:07 +02:00
minaripenguin
d59925262e
sdm710-common: rootdir: Pin msm_irqbalance to system-background
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
2023-06-28 20:23:22 +03:00
Suren Baghdasaryan
48171eb52c sdm710-common: rootdir: Replace writepid with task_profiles
- 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.

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Karan Parashar <whyredfire@gmail.com>
Change-Id: I0cdf63daa4eb043488a6d0eceb492af36df8882d
2023-06-24 15:13:20 +03:00
Ultra119
baa19dc45f sdm710-common: rootdir: Try vendor.hwcomposer 2.3 too
[    4.526015] init: Command 'start vendor.hwcomposer-2-1' action=post-fs (/vendor/etc/init/hw/init.qcom.rc:85) took 0ms and failed: service vendor.hwcomposer-2-1 not found
2023-06-24 15:13:20 +03:00
Ultra119
bc4a87e62a sdm710-common: rootdir: Cleanup 2023-06-24 15:13:20 +03:00
boedhack99
a54676415e sdm710-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
2023-06-24 15:13:20 +03:00
lupesoltec
7171800754 sdm710-common: rootdir: Remove command 'rm /data/vendor/perfd/default_values'
We don't have this file on the device

* init: Command 'rm /data/vendor/perfd/default_values'
action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:303) took 1ms and
failed: unlink() failed: No such file or directory

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
2023-06-24 15:13:20 +03:00
Arturo
83d7e13934 sdm710-common: rootdir: Remove non-existant shmbus
Fixes:
init: Command 'rm /data/vendor/radio/shmbus' action=post-fs-data
(/vendor/etc/init/hw/init.qcom.rc:278) took 0ms and failed: unlink()
failed: No such file or directory

Signed-off-by: Arturo <rtsanonynousperson@gmail.com>
2023-06-24 15:13:20 +03:00
Dede Dindin Qudsy
3e9f3507ee sdm710-common: rootdir: Rename /persist to /mnt/vendor/persist
* Since /persist is just link to /mnt/vendor/persist

* It fixes:
init: Command 'chown root system /persist' action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:285) took 0ms and failed: lchown() failed: Read-only file system
init: Command 'chmod 0771 /persist' action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:286) took 0ms and failed: fchmodat() failed: Read-only file system

Signed-off-by: Dede Dindin Qudsy <xtrymind@gmail.com>
2023-06-24 15:13:20 +03:00
pbteja100
9dab9da13d sdm710-common: rootdir: Mount cgroup
init: Command 'mkdir /acct/uid' action=early-init (/system/etc/init/hw/init.rc:30) took 1ms and failed: mkdir() failed on /acct/uid: Read-only file system
2023-06-24 15:13:20 +03:00
Ultra119
74e35f760a sdm710-common: Rootdir: Remove unexported property triggers
[    1.807676] init: /vendor/etc/init/hw/init.qcom.rc: 562: ParseTriggers() failed: unexported property trigger found: init.svc.wpa_supplicant
[    1.807736] init: /vendor/etc/init/hw/init.qcom.rc: 571: ParseTriggers() failed: unexported property trigger found: ro.bluetooth.ftm_enabled
[    1.807826] init: /vendor/etc/init/hw/init.qcom.rc: 598: ParseTriggers() failed: unexported property trigger found: persist.env.fastdorm.enabled
[    1.807940] init: /vendor/etc/init/hw/init.qcom.rc: 663: ParseTriggers() failed: unexported property trigger found: ro.data.large_tcp_window_size
[    1.808160] init: /vendor/etc/init/hw/init.qcom.rc: 809: ParseTriggers() failed: unexported property trigger found: crypto.driver.load
[    1.808191] init: /vendor/etc/init/hw/init.qcom.rc: 819: ParseTriggers() failed: unexported property trigger found: drmdiag.load
[    1.808209] init: /vendor/etc/init/hw/init.qcom.rc: 822: ParseTriggers() failed: unexported property trigger found: drmdiag.load
[    1.808357] init: /vendor/etc/init/hw/init.qcom.rc: 906: ParseTriggers() failed: unexported property trigger found: persist.ims.regmanager.mode
[    1.808381] init: /vendor/etc/init/hw/init.qcom.rc: 909: ParseTriggers() failed: unexported property trigger found: ro.data.large_tcp_window_size
[    1.808484] init: /vendor/etc/init/hw/init.qcom.rc: 956: ParseTriggers() failed: unexported property trigger found: persist.usb.hvdcp.detect
[    1.808504] init: /vendor/etc/init/hw/init.qcom.rc: 959: ParseTriggers() failed: unexported property trigger found: persist.usb.hvdcp.detect
[    1.808693] init: /vendor/etc/init/hw/init.qcom.rc: 1072: ParseTriggers() failed: unexported property trigger found: ro.logdumpd.enabled
2023-06-24 15:13:20 +03:00
Ultra119
5491ffacd3 sdm710-common: init: Reset default schedtune boost value on boot 2023-06-24 15:13:20 +03:00
Ultra119
ebdfcc0f22 sdm710-common: rootdir: Boost performance during bootup
* inspired from google pixels
 * speeds up boot by ~1-2s
2023-06-24 15:13:20 +03:00
srfarias
a82e5132bb
sdm710-common: add nodes to hide Magisk in banking apps
Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: Master <mhmdeveloperofficial@gmail.com>
Change-Id: I8f4c3ce55fe206786018ffba5e3301c52158a844
2023-06-17 17:03:59 +03:00
theangelofdead01
12a4b9a046
sdm710-common: init: Remove some data cache
fix some string issues on dirty flash update ROM zips

Signed-off-by: saikiran2001 <bjsaikiran@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: onettboots <blackcocopet@gmail.com>
Signed-off-by: SageOfD6Path <mail2anirban95@gmail.com>
2023-06-17 17:03:46 +03:00
DarkJoker360
8519ba629a
sdm710-common: rootdir: Stop bootanimation service after boot
* Some users reported bootanimation lags and freezes
  after a while. Looking from logs it fails to exit
  once boot is completed. Stopping bootanimation
  service, as workaround, is preventing this issue.

Signed-off-by: improbir <ghosh_probir@yahoo.com>
Signed-off-by: kssrao13882 <kssrao13882@gmail.com>
2023-06-17 17:03:44 +03:00
Nolen Johnson
2c8e7fc2b0
sdm710-common: Remove usage of ro.data.large_tcp_window_size
* Not needed for us.

Change-Id: Ieee6bbbb858c0ee86769cded081fd82f3b9744ef
2023-06-17 17:03:43 +03:00
Murthy Nidadavolu
2c01dc7390
sdm710-common: init.qcom.rc: Removed deprecated drmdiag entry
Eliminate drmdiagapp entries in init scripts. This app was deprecated
hence these entries were causing boot time degradation.

Change-Id: Ia8b14ef200a17b37c393f3e62c7be8849d575c71
2023-06-17 17:03:43 +03:00
Ayishwarya Narasimhan
39aee1a675
sdm710-common: init.qcom.rc: Remove unused property
Remove persist.ims.regmanager.mode
property along with the service
which is unused

Change-Id: I6875dadffa2770d2f4ce19f44ec9b24b08523cc6
2023-06-17 17:03:43 +03:00
9e18e17685
sdm710-common: rootdir: Fixes for power_supply/input_suspend 2023-06-17 17:03:41 +03:00
49e1379986
sdm710-common:init: Add vendor prefix for shell 2023-06-17 17:03:41 +03:00
Pasha
93aa72e64a
sdm710-common: rootdir: Remove ssgtzd
Could not start service 'ssgtzd' as part of class 'late_start': Cannot find '/vendor/bin/ssgtzd': No such file or directory
2023-06-17 17:03:35 +03:00
Pasha
7e605bed68
sdm710-common: rootdir: Remove qcom-c_core-sh
Could not start service 'qcom-c_core-sh' as part of class 'core': Cannot find '/vendor/bin/init.qcom.class_core.sh': No such file or directory
2023-06-17 17:03:35 +03:00
Dhina17
885697f5c9
sdm710-common: rootdir: Remove vendor.sensors
- Our device doesn't have sscrpcd, so remove it from init.qcom.rc

fixes:
init: Could not start service 'vendor.sensors' as part of class 'early_hal': Cannot find '/vendor/bin/sscrpcd': No such file or directory

Change-Id: I54e93aaa5e76c168d515d626fb7f4f5e88d30f9f
2023-06-17 17:03:35 +03:00
Chenyang Zhong
699b06ae9f sdm710-common: override pixel thermal HAL service with HAL interfaces
Google removed the HAL interfaces in Pixel thermal HAL service after
QPR1 [1]. As a result, the pixel thermal HAL on Xiaomi sdm845 devices
cannot be started correct at boot. Override it in sdm845-common, and
restore the interface definitions.

[1] be6336211e

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-01-27 22:53:22 +01:00
LuK1337
1aaa277c78
sdm710-common: Drop mkdir /data/{fota, hostapd}
* vendor_init isn't allowed to create files under system_data_file
  context, leading to early init panic.

Change-Id: Ie344cc4ece2783bb7d372f64c2c23b4d5ea2cda0
2021-08-11 13:59:58 +02:00
Giammarco Senatore
f6f497c743
sdm710-common: Initial commonized tree
* minor cleanup in overlay and init rc
* drop dolby
2021-07-25 21:56:17 +02:00
Giammarco Senatore
f63ead3994
kunlun2: Remove unnened lenovo init scripts
and some cleanup
2021-07-17 18:14:46 +02:00
Giammarco Senatore
c119216557
kunlun2: Address some initial denials
- Nuke folder creation that breaks encryption
- Nuke permissivers and other creepy things
- Properly label light and fp HALs
- Address initial fingerprint denials
- Label camera zui prop
2021-07-17 18:11:00 +02:00
George Chang
c78d20bfcd
rootdir: Default enable uicc se
It should be true in new versions.
uicc_se_enabled is true by default, but persist property
may remain false after ota

Bug: 149075883
Test: enable uicc_se
Change-Id: I78f8d51cb9ffb92f4eb7dea232920c2b69ce359d
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
Marty E. Plummer
c32862f441
Set SSR9-10 restart_level in init.qcom.rc
Change-Id: Ic0da5fec9734be8b92e8a2868f0bc1b16ff34acf
Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 17:54:58 +02:00
LuK1337
68d09ebf7f
Drop SSR blobs and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 17:54:58 +02:00
Bruno Martins
0f5c6d1630
rootdir: Remove vendor-ril lib path property trigger
No longer used with QC RIL services.

Change-Id: Ib660b20f2a3cca222a10a1919f0f81ee174bf6dc
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 17:54:58 +02:00
Jimmy Chen
00a3574cef
Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-12 02:24:04 +02:00
Dhananjay Kumar
799b8745bb
init: update audio hal service override as per latest base service definition
Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-12 02:23:58 +02:00
Dan Pasanen
923fbb3963
rootdir: Turn down debugging on wpa_supplicant
Change-Id: I15f8aff12ebcccbc97263b1d82b7ec0d3baea263
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-12 02:23:57 +02:00
Hai Shalom
2222a23732
rootdir: Add supplicant 1.2 to init.qcom.rc
Add missing supplicant 1.2

Change-Id: I34577cac4892563774f035d3a68ed17cc1edeeb9
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-12 02:23:57 +02:00
Sachin Mohan Gadag
1f1f7eeea2
rootdir: Update rc files
- Add fileownership as root:system with 0660
  permission for cpu_dma_latency dev node.
- Register audio service to system group to
  access cpu_dma_latency node.

Change-Id: Ib832634d74f488ece0879fb05781646b1f4ee7a1
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-12 02:23:57 +02:00
Veerubhotla Hari
50d7c3e65e
rootdir: Change ownership of /data/vendor/tombstones to system
Change ownershiip of /data/vendor/tombstones to system

Change-Id: Ia8583c48c80fc97d68df912f0672ff0cd2cb6510
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-12 02:23:56 +02:00
Hari Veerubhotla
3762cdea9b
rootdir: Clean-up tombstone related commands in rc
Accessing /data/vendor/tombstones causing sepolicy denials.

Change-Id: I0230025822e681bd1402893725d83e2b2d2742b0
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-12 02:23:56 +02:00
Giammarco Senatore
08e188d663
kunlun2: Import stock init scripts 2021-07-12 02:23:52 +02:00
Giammarco Senatore
38b77bd32e
kunlun2: Drop vendor_overlay and its hax 2021-07-11 17:06:19 +02:00
Giammarco Senatore
60633c1215 kunlun2: Update and cleanup init qcom rc
* we don't have some paths
 * we have emmc
2021-01-21 18:31:18 +01:00
SamarV-121
4416341c21 kunlun2: Hack to override empty power hidl 2021-01-01 17:52:21 +01:00
Robb Glasser
5ec60c1e74 kunlun2: Enable idle_state mechanism
Allows us to check the idle state of the display in order to use perf
hints to improve system performance.

Bug: 69270928
Bug: 69915886

Test: Booted and cat-ed the affected files
Change-Id: I8717093e9b8ed9ed35b6ca51a20225abbf71f775
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 17:52:21 +01:00
Andres Oportus
37bb69e906 kunlun2: Add SchedTune configuration
Bug: 36367381
Test: Boot and check stune configuration effect on sysfs

Change-Id: I838c31d164684a5d88550c92284b65bb50f2ed56
Signed-off-by: Andres Oportus <andresoportus@google.com>
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 17:52:21 +01:00
GiaSen
2f07f5abc0 kunlun2: Go enforcing
Bind mount etc files because vendor_overlay/29/etc makes device to reboot to recovery

from pstore
vdc: Command: cryptfs enablefilecrypto Failed: Status(-8, EX_SERVICE_SPECIFIC): '0: '
2021-01-01 13:33:47 +01:00
jesec
a568f64847 kunlun2: Bind mount /vendor/overlay to empty folder
* Instead of removing it directly from vendor
2020-11-28 21:45:41 +01:00
GiaSen
6e374c1939 kunlun2: Remove non-working and useless light rc
This reverts commit b6b7486d55.
2020-11-13 00:01:27 +01:00
GiaSen
6f69e21cbf kunlun2: Import and bind mount stock audio policy configuration 2020-11-13 00:01:13 +01:00