Commit graph

79 commits

Author SHA1 Message Date
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
Subbaraman Narayanamurthy
1190b97d46 sdm710-common: Add CAP_SYS_BOOT for charger
Add CAP_SYS_BOOT capability for charger service so that it can
shutdown/reboot the system.

Change-Id: I17ccba74d5a3c38bd751c55bcf42fb3689d730a7
Signed-off-by: SamarV-121 <samarv121@pixelexperience.org>
2020-07-20 18:32:03 +02:00
SamarV-121
e0d6fd2533 sdm710-common: Import charger service definition
Signed-off-by: SamarV-121 <samarv121@pixelexperience.org>
2020-07-20 18:31:44 +02:00
Henrique Pereira
5d670a8d37 sdm710-common: Set schedtune boost to 5
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-28 20:18:23 +02:00
SamarV-121
a64a64897d kunlun2: Import power init scripts from bonito
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-22 11:29:25 +02:00
SamarV-121
2d90abaa7c sdm710-common: Disable IOP and PERF HAL
* also revert 56f6504f61, eb7a690439, d5cb550169
 * in the favour of power-libperfmgr
 * also nuke all sepolicies for now
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-22 11:27:40 +02:00
GiaSen
b6b7486d55 temp hax: move light init to init.qcom.rc 2020-05-07 13:42:41 +02:00
SamarV-121
9fb2f8e0b8 kunlun2: Update tap to wake node
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-04-11 18:58:44 +05:30
SamarV-121
d5cc7b6ce3 kunlun2: Remove all useless stuffs
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-04-11 18:58:43 +05:30
Diogo Ferreira
baac476693 sdm710-common: Disable tap to wake by default
Tap to wake introduces some additional power consumption, this patch
disables it by default.

Change-Id: Ic33c44d72a2d0efcbe3a7dca0206558cbe1f4d6a
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-04-10 12:38:18 +00:00
Danny Baumann
f369b61ff6 sdm710-common: Disable CVP HAL
This isn't used on SDM710 and spams logs as it continues to try
to start.

Change-Id: I16928663232d5b4e9d005c60dfe080f9cc596d32
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-04-06 06:17:09 +00:00
SamarV-121
ea54233e57 sdm710-common: rootdir: Disable edge limit control interface
* Enable oppo touchpanel direction too
 * Fixes multitouch on edge issue

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-03-30 18:37:36 +05:30