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>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Support to communicate with other service with AIDL interface.
Bug: 215463744
Test: build pass
Change-Id: I236f4098170fa02daff69873e5b8896b8fa621f3
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
[Woomymy]: Make it 64 bits for yunluo
Change-Id: Ia55929f56d2aef62dcea28487584c3c0afb7dab1
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Changed “ro.ril.disable.power.collapse” value to zero.
Seems to be a debate on what value is more effective but after more reading and testing found that a value of “0” shows more improvement.
Have also added “ro.mot.eri.losalert.delay=1000 “ that helps smooth out disconnects and reconnects, saving battery.
Co-authored by: KARTHIK LAL <karthik.lal558@gmail.com>
Change-Id: Iaad44323cc6aa11332a6d818cc2402929b7b15ae
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
Signed-off-by: ramshell688 <ramonzost68@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
[xyzuniverse] Add HoYoVerse too as the it's the same (Honkai Star Rail game)
Change-Id: I07b171edab40e49bd734c19d8f1729cc31f2f47c
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Unity app incorrectly sets cpu affinity to max capacity cores. Setup the library name and mask to always report the same max cpu freq to the tasks.
Change-Id: I1705f79249d1aa393d184caa3cccfec1563bdec7
Signed-off-by: 01soni247 <01soni247@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
* The MTK Neural Networks service is started via a property trigger.
This HAL starts a lot earlier than other HALs since it is started
with start instead of enable, the difference between them being
that start will immediately cause the service to try and start, while
enable effectively removes the disabled attribute from the service
(so in the case of a HAL, it will be started with all the other services
in class hal instead of immediately).
* This initially didn't have any side effects until I noticed the Neural Networks
service constantly crashing in offline charger mode. To fix this, simply
convert the start command to an enable to ensure that this service is not
only started at the right time (in class hal), but also only started when
needed (and not in offline charger mode).
Change-Id: Iacf310fb2211117aaf028ad6bf0814a7d447cf53
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
* The libavservices_minijail_vendor library was substituted for
the vendor variant of libavservices_minijail in Android 13.
* Patchelf the C2 service to link against libavservices_minijail
instead of libavservices_minijail_vendor.
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This is done in preparation for uclamp migration and FAIR_GROUP_SCHED
enablement in kernel.
Change-Id: Ib486c9bcdfa18d7362461e1a8f66d6fb288af709
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
F linker : CANNOT LINK EXECUTABLE /vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service: cannot locate symbol _ZN7android8String16aSEOS0_ referenced by /apex/com.android.vndk.v34/lib64/libhidlbase.so...
MTK has 15 volume steps, we have whatever is set in vc_call_vol_steps.
Mapping our range to theirs allows reaching higher volume levels.
A log curve is used to make gain transitions less abrupt at higher volumes.
Change-Id: I5f0e6467ba9fd0779d7e4abbf9f258b0b42224e4
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
* Refactor and cleanup code
* Use proper way of getting audioDevice with getPort().type()
* Stop mixing up values between AudioSystem and AudioManager,
as values between AudioManager (java) and AudioSystem (native)
could change and become different from eachother.
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I2311ed02b88148b71b374b19aaaf458f82f23824
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
* My attempt at fixing in call gain control on MediaTek devices.
* It attempts to replicate what the stock MediaTek framework does
when controlling the volume of the earpiece speaker, since MTK's
audio HAL is not able to set the gain of the speaker from the
values sent by AOSP framework.
[LinkBoi00] Rebrand to Mediatek In-Call Service
Change-Id: I43f727f6fb73a0d38457a41a8361653d1d00e220
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
* fsverity flag in fstab is needed to make init run tune2fs -O verity on it
Change-Id: Iebc34457f8d92bf8e09cf1981a47e597aa7ab7c3
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>