48 Commits

Author SHA1 Message Date
kamikaonashi
000a7e0d94 a71-common: Add charging bypass manual toggle [2/2] 2026-01-23 10:28:46 +07:00
swiitchOFF
b673018b71 a71-common: Include Sony Dolby Atmos
* Using dolby from: https://github.com/swiitch-OFF-Lab/hardware_dolby
[1]: sm8350-common: Add dolby volume listener effect
[2]: sm8350-common: audio: Bring all stream effects

Co-Authored-By: HELLBOY017 <abhaygill017@gmail.com>
Signed-off-by: swiitchOFF <120115258+swiitchOFF@users.noreply.github.com>
2026-01-23 10:28:44 +07:00
Haky86
bb97fe5993 a71-common: init: Drop duplicated afc_disable permission set
* Done in init.samsung.rc by default.

Change-Id: Ic9e75df4353f792f56d90edc2b531d952fec0a2c
2025-09-23 21:41:30 +02:00
LuK1337
71270c3e5d a71-common: Migrate to lineagehealth IFastCharge
Change-Id: Ia2f1f213de2f2e5afd913e5de38712fddc386b49
2025-09-02 18:51:48 +01:00
Haky86
48e5e36e0f a71-common: Restore original sensors.samsung HAL
* scrub_pos is not compatible with our kernel driver.
* Fixes screen off udfps again.

Change-Id: Ifef6d57c7f51f291630400b9028401147f3c63c9
2025-04-29 01:54:18 +02:00
Atakan
26c523cbcc a71-common: Switch to Samsung sensors
Change-Id: Ic6980dd74289fc9ab14bfe1d0fa531b669b5d6e4
2025-03-31 02:59:58 +02:00
Kyle Lin
bb4239fbe8 a71-common: init: Modify the cpuset setting
Because the arch is similiar with SDM670, we aling the setting with
bonito.

Bug: 142552311
Test: build , munaual check the settings
Change-Id: Ica44125c8ed71a85cfd6bde77c9107bceed7b094
2025-01-13 22:35:22 +01:00
Arian
6e6707517b a71-common: init: Kang scheduler settings from sunfish
Change-Id: I2fd16a6d94f4d306960429e88569b1abf1a4a58e
2025-01-13 22:35:17 +01:00
Arian
220a5e31db a71-common: init: Kang governor settings from sunfish
Change-Id: I91b54aee5020f7e43ce0d9a6637aea07a06c1259
2025-01-13 22:35:14 +01:00
Arian
0093b50287 a71-common: init: Remove CAF input boost
Change-Id: I4fd567962dac1e043139eb01ae756ad00a67c528
2025-01-13 22:35:10 +01:00
celtare21
ac22e2deb1 a71-common: init: Disable core control
Change-Id: If8a0eda3353a164f83409cb4785de93cb2cce971
2025-01-13 22:35:07 +01:00
Andres Oportus
f9cd5af09a a71-common: init: 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: Arian <arian.kulmer@web.de>
2025-01-13 22:25:10 +01:00
Arian
3f2b80d639 a71-common: init: Kang init.qcom.post_boot.sh from xiaomi_sm6150
* Squash from 506cf92d7a.

Change-Id: I80e2ccf5a3e5b15d9a527f9a7c4e3ee06b997ab6
2025-01-13 22:25:06 +01:00
Arian
3586546696 a71-common: init: Don't setup runtime cpusets for silver only first
Change-Id: I7f9fa116971bd437bfe2722882282a08fe59c006
2025-01-13 22:25:01 +01:00
Luk1337
74143cf50b a71-common: init: Drop ssr_setup service
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2025-01-13 20:43:21 +00:00
Tim Murray
f33e827f66 a71-common: init: Increase ZRAM to 2GB
Test: boots, works
bug 119988524

Change-Id: I09272e7c753569d16f2be0771835bfdbdc0bf270
2025-01-13 21:15:43 +01:00
Wei Wang
1b46c6c5ba a71-common: init: Tune zram performance
-Switch to LZ4 for better overall performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.
-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
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2025-01-13 21:01:56 +01:00
Jenhao Chen
2f030a413d a71-common: Enable zram writeback
Bug: 128889899
Test: Boot to home

Change-Id: I48ae06e54a66a7d6965afbe8db3d2f157cf8a1f4
2025-01-13 21:01:48 +01:00
Arvind Kumar
1f462c78b5 a71-common: init: Set soc properties
Set soc model and manufacturer properties

Change-Id: Ieee34b7bfab87b241abc5ed3318b46a5c6f93456
2025-01-13 21:01:41 +01:00
Rajeshwar Kurapaty
5d3e1d8f6f a71-common: init: Set Netflix property based on target
Add support to set "ro.netflix.bsp_rev" property at run time
depending on the target. This is needed when 2 or targets are
binary compatible, but have different Netflix proprty for
device whitelisting.

Change-Id: Ieccd17128f1b73c819a3f33816eb8c402cfa17e2
2025-01-13 21:01:38 +01:00
Hoss Zhou
a5c3f59ec0 a71-common: init: Add edgnss socket directory
Change-Id: Ia8d89cb1e03c31fdb8fb7564441386f56c9563e1
2025-01-13 21:01:34 +01:00
Prabhanjan Kandula
deab5c194e a71-common: init: Avoid delay for vblank disable from DRM
Set drm_vblank_offdelay parameter to -1, to make DRM
issue the vblank disable immediately with out delay.
By defailt  the DRM framework has a delay of 5 secs
timeout before issuing the vblank disable.

Change-Id: Idc1dfe6a6994f2ac2d3c60ae8fd5a4e883b675d9
2025-01-13 20:56:38 +01:00
basamaryan
d3d79c4a9a a71-common: init: Add missing 'vendor.' prefix to cnss-daemon
Change-Id: I0a47df69637674379ef5e3bd4a95b228e200e269
2025-01-13 20:56:36 +01:00
Bruno Martins
edc0302c27 a71-common: init: Remove legacy persist path entries from init script
Change-Id: Ifcb1ef1fc3967c7bf635537a5e05109235905c1e
2025-01-13 20:56:34 +01:00
Ethan Chen
dd0baf6530 a71-common: init: Remove bogus tombstone directory directives
* /data/tombstones and /data/vendor/tombstones are both created by
  the system's init.rc.
* Creating /tombstones at the root isn't allowed since the root is
  a ramdisk and mounted read-only.

Change-Id: I6c3a287056a2264d9e9ffe4557ecca8c6e03c0bb
2025-01-13 20:56:31 +01:00
Sean Tranchetti
0cb1ab03c3 a71-common: init: remove unused property
Removes the unused large_tcp_window_size property.

Change-Id: If7dcede6089b71a3fc18572cf7e5f7571448787d
2025-01-13 20:56:28 +01:00
Sayali Lokhande
865b49ea93 a71-common: init: limit discard size to 128MB
This change limits discard size for UFS(sda)
to 128MB in order to avoid long IO latency.

Change-Id: Iccf6f7561abaac13bc8c35b03f696cdf56c184ee
2025-01-13 20:24:44 +01:00
Raghavendra Rao Ananta
26190e05e4 a71-common: init: Decrease the console log level
Decrease the log level to '3', which would only log KERN_ERR
and lower, onto the console. This is to avoid false-positives
in the test cases that may emit excessive logs, ultimately
leading to a watchdog bark.

Change-Id: I7967272de8e425e93035cd937982bfb3aee19597
2025-01-13 20:24:42 +01:00
Wilson Sung
3209c0d2d4 a71-common: init: ueventd: Set permissions for KGSL sysfs node
Bug: 193434313
Change-Id: I4f2f1774735303ef16f2d625d1b8015c9f69ab0f
2025-01-13 20:24:38 +01:00
Jaegeuk Kim
68f0c0334c a71-common: init: 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.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
2025-01-13 20:24:35 +01:00
Jaegeuk Kim
fa4d69c287 a71-common: init: set readahead_size_kb=128 to system and data
This can avoid memory pressure.

Bug: 181567573
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I654c4d3bf24fa741c3fb0255431a26d8dcf5f153
2025-01-13 20:24:23 +01:00
Martin Liu
780cd2e425 a71-common: init: Set readahead_size_kb=128 to vendor, product and system_ext
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
2025-01-13 20:16:53 +01:00
Randall Huang
7328b5a24b a71-common: init: 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
2025-01-13 20:16:50 +01:00
Rick Yiu
8cb137e9d4 a71-common: init: boost performance by skipping EAS
Previously we found that the effect of using sched_boost is very
similar to skipping EAS. Since sched_boost is not used because of
CONFIG_SCHED_WALT not enabled, we can boost performance this way.

Bug: 119932121
Test: launch time and app launch time are better than EAS
Change-Id: Idf8026c258b6c36417c9be9b5c87f7b4bfa3f50d
2025-01-13 20:16:48 +01:00
Alexander Koskovich
394b478dfd a71-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
2025-01-13 20:16:45 +01:00
Roberto Sartori
308d941efd a71-common: init: Set default Wi-Fi country code to '00'
* By default, AOSP uses the 'US' country code for wifi.
* When a SIM is present, Android can check the correct country
(using information from the SIM itself) and it can set the correct
country code.
* However, if no SIM is present or if the phone is in airplane mode,
Android will just use 'US' as country code and it will disable access to
a lot of frequencies.

To bypass this issue, set the default country code to '00': this
is the "world regulatory domain" and it contains generic settings.
When a SIM is inserted, Android will overwrite the default setting with
the correct country code.

Copy from Google:
12b500667e/init.hardware.rc (524)

Change-Id: If7537357f282c51549f754cd385bc1ab9a9a109c
Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Signed-off-by: dogpoopy <dogpoopy.dev@proton.me>
Signed-off-by: bagaskara815 <bagaskara815@gmail.com>
2025-01-13 20:16:39 +01:00
Michael Bestas
73920be3be a71-common: Do not override ro.opengles.version
Change-Id: I84fb4d3f09a519384e005af7bc9085b17c26b7f7
2024-12-30 00:21:13 +01:00
Wei Wang
215e699033 a71-common: Move PowerHAL into Pixel common
Bug: 129495482
Bug: 111098032
Test: Boot and check PowerHAL
Change-Id: I79b7276ff0c28885877af8b0533fe1f9d81b3b0c
2024-12-30 00:11:38 +01:00
Bruno Martins
e68942a108 a71-common: Merge fstab and make it a prebuilt_etc module
Change-Id: Id064ab9f31a26f127299a3560cfb105ca2eceb26
2024-12-30 00:10:08 +01:00
Bruno Martins
ccdaed24f0 a71-common: Rename rootdir to init and migrate to blueprints
Change-Id: If86021cd709b3d053e87f3a2a8b8640d3b82fb01
2024-12-30 00:09:14 +01:00
Haky86
6b464b874b a71-common: Correct libinit path
Change-Id: Idcd30013225bde8713e94b73171fe0b972c7635b
2024-12-30 00:08:48 +01:00
Simon1511
02d4995dcb a71-common: init: Also set product and odm props
Change-Id: Idc39709e71d3102d3567aee4e4531d95da913c70
2024-07-29 11:43:45 +02:00
Haky86
b794efd50e a71-common: Import edited libinit from sm7125
* Squash from 3074635364.

Change-Id: I253479d14e0bec967d6336795e0620f621288071
2024-07-29 11:43:27 +02:00
Haky86
6361651ae7 a71-common: Get rid of old libinit_sm7150
Change-Id: I5df0c0852f5f00575b012ca5034cea430b8b3df3
2024-07-29 11:41:15 +02:00
dmd79
a164ddde8a a71-common: init: Adapt libinit to Android 12
Change-Id: I1b697392c9a2b794359e26c0290bf253691d93fc
2024-07-29 11:40:06 +02:00
Bruno Martins
c483b3079d a71-common: init: Adapt libinit to Android 11
Change-Id: I6c0ec784f7aff894013e2e0e404e34826eabec1c
2024-07-29 11:40:06 +02:00
dianlujitao
53099ca44b a71-common: init: Convert libinit_sm7150 to blueprint
Change-Id: I27dd311a555c9917ccc533157b6a1113beae8693
2024-07-29 11:40:06 +02:00
Willi Ye
881abc3957 a71-common: init: Set correct model
Change-Id: I1fc096040ab51d33af9a63f31d1ed6219e219c67
2024-07-29 11:40:06 +02:00