Commit Graph

72 Commits

Author SHA1 Message Date
Ziauddin Sameer
10ad5b35cd sm8250-common: Wipe resource cache on boot
Fixes resource derp issue

Signed-off-by: manikantaraavi <raavimanikanta6595@gmail.com>
2023-01-05 22:47:11 +05:30
Gabriel Biren
413ca1aa8b sm7250-common: roodir: Update init script to use Supplicant AIDL interface.
Bug: 196235436
Bug: 213271543
Test: m
Change-Id: I35ffd5390ba835e3b35e55ea38b27f1ab924b291
2023-01-05 22:45:41 +05:30
Chandu Dyavanapelli
60b91c0696 sm7250-common: rootdir: Update scripts from LA.UM.9.12.r1-14200-SMxx50.QSSI13.0
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:36:17 +05:30
Subash Abhinov Kasiviswanathan
ef19130635 sm7250-common: init: Remove unused tcp property change actions
Remove the events triggered on the setting of
ro.data.large_tcp_window_size and sys.sysctl.tcp_adv_win_scale.

These events are no longer used and are also resulting in
unneccessary selinux denials.

CRs-Fixed: 2947333
Change-Id: I92bc474b7168729eebb56cab0868dbd1cbbebf04
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:31:05 +05:30
Chandu Dyavanapelli
e8c44e34b4 sm7250-common: rootdir: Update scripts from LA.UM.9.12.r1-13300-SMxx50.QSSI12.0
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:30:26 +05:30
aswin7469
0bc8972eea sm7250-common: rootdir: cleanup unused oneplus stuffs
* im sorry custom kernels

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:30:20 +05:30
Ziqi Chen
3caf4a5a8b sm7250-common: init: Tuning UFS clkgate and ah8 during boot time
Disabling UFS clkgate and ah8 during boot time helps in reducing
IO delays, which helps in reducing the total boot time. This change
will disable UFS clkgate and ah8 during early-init and then enable
it back after boot completion.

Change-Id: I6a10cd57a30fe3bdc4fba72a0d84cdfa3b1fd513

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:25:22 +05:30
Wei Wang
71f489e89a sm7250-common: Remove zram cold page writeback file
Bug: 140879284
Test: boot
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:17:48 +05:30
Wei Wang
84cab334a0 sm7250-common: rootdir: tune zram performance
-Set zram disksize so it can successfully initialize
-Set max_comp_streams to num of cores since upstream also moves this to percpu.
-Switch to LZ4 for better overall performance
-Set page-cluster to 0 as the incremental cost of reading 1 page at a time is negligible for zram

Bug: 38249616
Test: boot and run zram-perf showing better performance
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:17:35 +05:30
Pranav Vashi
38fcb7fc6d sm7250-common: Use proper device name for USB mount
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ib555205b589e017fbca3119b11495280e72536a8
Signed-off-by: firebird11 <hbgassel@gmail.com>
2023-01-05 22:03:00 +05:30
Ethan Chen
3c4a667f46 sm7250-common: rootdir: Remove unnecessary QTI logkit directories
* We do not use logkit
2023-01-05 22:01:18 +05:30
Adithya R
40d78cd290 sm7250-common: rootdir: Disable cnss_diag service
* useless for production builds, runs in background and
   sometimes spams logcat

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 21:58:04 +05:30
srfarias
241e47a986 sm7250-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>
2023-01-05 20:37:55 +05:30
Midas Chien
78fe83ac2b sm7250-common: enable idle timer with kernel support
Enable display kernel driver idle timer, which allows dropping to lower
refresh rate earlier and without additional overhead.

Bug: 160682800
Test: track idle timer through systrace
Test: zone test, scrolling
Change-Id: I6e82b58026d7b31cf0cabc0db7bb6277f6731d12
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:53:09 +00:00
xdevs23
cc422f3fab sm7250-common: rootdir: Hide Magisk Better
* 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: Manikantaraavi <raavimanikanta6595@gmail.com>
2022-04-08 19:30:51 +00:00
Jake Weinstein
19b73df61d sm7250-common: Set display calibration on color mode settings
* sRGB on Natural and Boosted
   Unmanaged on Saturated
   P3 on Automatic

Change-Id: Ida1a64ff2ea99973f2e2a0fa7ca062c75b7c4831
2022-04-01 16:51:29 +05:30
KakatkarAkshay
f8329112dc Revert "sm7250-common: Enable color mode & set display calibration on color mode settings"
This reverts commit 84e9206b3a.
2022-03-28 23:51:39 +05:30
Daniel Jacob Chittoor
7525d5841a sm7250-common: disable cnss-diag 2022-03-07 13:13:47 +00:00
Daniel Jacob Chittoor
4ff4462ed7 sm7250-common: rootdir: Remove unused FTM init scripts
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2022-03-07 13:13:47 +00:00
KakatkarAkshay
c39d21ce33 sm7250-common: Remove op1 and op2 partitions 2022-03-07 13:13:47 +00:00
KakatkarAkshay
4afb835916 sm7250-common: Commonize fstab and encryption props 2022-03-07 13:13:47 +00:00
Alexander Koskovich
21d8a5fa11 sm7250-common: init: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2022-02-12 13:21:42 +05:30
Jake Weinstein
84e9206b3a sm7250-common: Enable color mode & set display calibration on color mode settings
* sRGB on Natural and Boosted
   Unmanaged on Saturated
   P3 on Automatic

 * Set color mode to Natural by default

 * Adjust display composition color spaces

Change-Id: If73eafa82395e80acf84445fcab2f1ce25a33e23
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2021-10-10 15:55:40 +02:00
LuK1337
a8cdb505a2 sm7250-common: Set vendor.boot.rf_version=${ro.boot.rf_version} too
liboemnvbk_img_helper uses it, no clue what for but it doesn't hurt.

Change-Id: Ic2869ae3deb81bf35ca873e4ddebb89810e5c9b8
2021-10-10 15:55:40 +02:00
LuK1337
6fa63e1690 sm7250-common: Set vendor props for RF and PRJ version
These props are used by cnss-daemon in order to load
proper bdwlan firmware. Apparently these should be
set automatically via some QMI/RIL binary but I don't
really care enough to figure out as to how that works.

Change-Id: I06effa06321e9e00994ce7918c14bbc929d3d1cd
2021-10-10 15:55:40 +02:00
Wang Han
e1f4ee1aed sm7250-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
2021-10-10 15:55:38 +02:00
KakatkarAkshay
fc45f13046 sm7250-common: Load QCACLD module during boot event trigger
Signed-off-by: KakatkarAkshay <akshayakakatkaraa@gmail.com>
2021-09-26 09:21:30 +02:00
LuK1337
da0be68686 sm7250-common: Fix host_init_verifier errors
Change-Id: I6d6ca2bd57ef36916e17cc91fea13839d03d02a8
2021-09-26 09:20:40 +02:00
KakatkarAkshay
981ad16ac0 sm7250-common: Update init scripts from OnePlusNordCE OxygenOS 11.0.4.4 2021-09-26 09:20:40 +02:00
Bruno Martins
70e9d3f059 sm7250-common: Remove useless or unused init scripts
Change-Id: I579319d620b14aab0decd49587d58a20262576ae
2021-09-26 09:20:40 +02:00
LuK1337
a866a168f7 sm8250-common: rootdir: Strip out unnecessary SKU customization
I'd rather never wake up to wake_up_samurai.ogg.

Change-Id: Id52e643546b2e3e0a3eab8690188004c7a2386df
2021-06-21 09:25:54 +02:00
Anish Pratheepan
f5b4164b68 sm8250-common: Pull init.oem.rc changes from OOS 11.0.6.6
Change-Id: Ib091133baaebc703fc4905255a12b6694304edb2
2021-06-04 21:38:32 +02:00
LuK1337
2ed8019dd4 sm8250-common: Import config/script changes from OOS 11.0.4.4
Change-Id: I90d3f654f18d90d25f7b2321dbfebfecc79ee958
2021-02-08 20:12:21 +01:00
Alexander Koskovich
dba70894ea sm8250-common: Set gain of vibrator to 0x55 on boot
* Seems better than the default of 0x80, vibrator is
   a bit too strong by default.

Change-Id: I676b74aac3cbc1900c73b3236879479e8ecfca00
2021-01-22 15:45:53 +01:00
LuK1337
122c9902a1 sm8250-common: Include device specific init recovery rc script
Change-Id: I7750ff22585a7b760d8b4d6f771fd7fe22db1e2e
2021-01-11 18:38:02 +01:00
LuK1337
5df4fcc558 sm8250-common: Set SSR level to RELATED
Change-Id: I15871af43e62936ffde5e86aa1c0630bff909237
2021-01-08 14:31:38 +01:00
LuK1337
08b67c59e8 sm8250-common: Restrict DSDS to intl variants
Change-Id: I8858ca1ce05a3354acea8f322bb34cc2192d81f5
2021-01-08 14:31:38 +01:00
Jimmy Chen
b7b61bb523 sm8250-common: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2021-01-08 14:31:38 +01:00
LuK1337
c28ecd7875 sm8250-common: Decommonize fstab
* 8T uses different metadata/userdata encryption algo.

Change-Id: Ie19487d4b4efe17540dd8c018537d7e222f64abd
2021-01-08 14:31:38 +01:00
LuK1337
1cb8d81976 sm8250-common: Import vendor scripts from stock
* And discard our old ones while at it.

Change-Id: Ibe6d792d0c881b984d5ab0cfeb84473726d3303a
2021-01-06 11:18:27 +01:00
LuK1337
5f2520dda6 sm8250-common: Pull fstab from OOS 11
Change-Id: I883ed1451329e5e2254aab19d2499fac04d4a82e
2020-11-27 12:35:42 +01:00
LuK1337
5d377ba4d6 sm8250-common: Update blobs from OOS11 2020-11-23 15:10:40 +01:00
LuK1337
a0d9c9cb9d sm8250-common: Disable /odm overlays
* We don't want OnePlus overlays, instead we'll just
  modify required modules manually.
2020-11-23 15:10:40 +01:00
LuK1337
5dbfcf2f2b sm8250-common: Update disabled services list 2020-06-27 00:17:13 +02:00
LuK1337
98a0defd38 sdm845-common -> sm8250-common 2020-06-27 00:17:12 +02:00
LuK1337
4d3629f4a2 sdm845-common: Switch to common usb-in-recovery configuration
Change-Id: I6e281e0a76dbf6f02c9cab9b0dcf2293e0352c0a
2020-05-26 17:52:07 +02:00
LuK1337
98fbd09d7d sdm845-common: Relocate dashd to /system/bin
Change-Id: Ief585959ebef9461bd62b26039997ae3c438c1d5
2020-04-03 00:38:29 +02:00
LuK1337
c18bdcef2d sdm845-common: Drop qcacld bind mounts
* WiFi driver is now built-in.

Change-Id: If8d0489e851064838249f26e68f4bf5c58b1a97e
2019-12-20 17:47:47 +01:00
Marko Man
6ed3939611 sdm845-common: Disable oneplus_brain_service
Change-Id: Ia617de3cfabbfec7e7cf83c502c15eb10053076d
2019-12-20 16:05:35 +01:00
Danny Baumann
f403d143e7 sdm845-common: Disable CVP HAL
This isn't used on SDM845 and spams logs as it continues to try
to start.

Change-Id: I16928663232d5b4e9d005c60dfe080f9cc596d32
2019-12-20 16:05:35 +01:00