1189 Commits

Author SHA1 Message Date
Jake Weinstein
d5d937e05b sm8550-common: Optimize dex2oat for cortex-a76 on cortex-a510
A510 is not supported in mainline ART. Kryo785 is supported,
but does not enable DotProd. Currently, A76 is the target
that enables all the features we want.

dex2oatd E 12-27 23:35:27 3642344 3642344 dex2oat.cc:222] Unexpected CPU variant for Arm64: cortex-a510.
dex2oatd E 12-27 23:35:27 3642344 3642344 dex2oat.cc:222] Known variants that need a fix for a53 erratum 835769: default, generic, cortex-a53, cortex-a53.a57, cortex-a53.a72, cortex-a57, cortex-a72, cortex-a73.
dex2oatd E 12-27 23:35:27 3642344 3642344 dex2oat.cc:222] Known variants that do not need a fix for a53 erratum 835769: cortex-a35, cortex-a55, cortex-a75, cortex-a76, exynos-m1, exynos-m2, exynos-m3, kryo, kryo300, kryo385, kryo785

Change-Id: I496143af83179896136b78802a3f7d7bd99ad3b4
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>

Signed-off-by: inferno0230 <mail@inferno0230.in>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:22:19 +00:00
officialputuid
72196a9f0a sm8550-common: props: Remove Force triple frame buffers
* Causing some apps laggy & UI performance regression

Co-authored-by: Reinazhard <reinazhard@gmail.com>
Co-authored-by: Ratoriku <a1063021545@gmail.com>
Change-Id: I6e96e0e186a112fb492b002b208932d5278b7877
Signed-off-by: onettboots <blackcocopet@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: Master <mhmdeveloperofficial@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:55 +00:00
johnmart19
65f30915c1 sm8550-common: LMK Props: Force disable low ram config
- sm8550 series having 12+ GB ram, so it's not low ram conditions

Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:55 +00:00
baalajimaestro
97b6b3ba4a sm8250-common: Optimise dex flags
This is a squash of the following commits:
1. Optimise dex flags for a faster boot

* Used multiple threads and speed profile to hasten the first boot

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Change-Id: I2cce5ddf7d50308511e81436fcac613b2c6537bf

2. Rework dex flags again

When I went through https://source.android.com/devices/tech/dalvik/configure my previous configs felt wrong, this one should be perfect (I hope).
Even though there is a slight trade-off for boot time by using the speed profile, we do make up for it by using 8 threads.
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER attempts to compile all prebuilts fully optimised to speed level, thus the phone doesnt need to deal with it.
I also do know that this might be a trade-off on size, but I do see the first boot time is more worthy to trade-off.
The speed level mentioned here runs dex verification and compiles all AOT methods.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ic0156ff8956a7c5f53820be6db438f6f6399d3c0

3. Switch certain dexopt profiles to verify

Prebuilt apps like Gmail/Google App, will be updated by google play, and there is no need spend time and space optimising what is going to be replaced.
Switch to Google's recommendation of using verify for an OTA package.
Applications still stay on speed.
Instead, replace the install profile with speed-profile making apps perform better.

Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:55 +00:00
Omkar Chandorkar
cd201c540c sm8550-common: Optimize package manager dexopt properties
* first-boot is set to quicken to reduce first boot times
* we are installing with speed-profile to have balance
  between time taken to optimise and runtime performance
* once device is in idle+charging, bg dexopt will compile
  for maximum runtime performance

[ghostrider-reborn]
- Stripped from https://gerrit.aospa.co/c/AOSPA/android_vendor_aospa/+/20637

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:55 +00:00
ghostrider-reborn
93f5c8dd1d sm8550-common: Speed preopt Google dialer, Settings & SystemUI
- Add Google dialer, Settings & SystemUI

The default ART setting is quicken: run DEX code verification and
optimize some DEX instructions to get better interpreter performance.

This commit switches performance critical applications to speed:
run DEX code verification and AOT-compile all methods.

PRODUCT_DEXPREOPT_SPEED_APPS (New in Android O)
List of applications that have been identified as core to the products
and which are desirable to compile with the speed compiler filter.  For
example, persistent apps such as SystemUI get a chance to use
profile-guided compilation only at the next reboot, so it may be better
for the product to have these apps always AOT-compiled.

Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:55 +00:00
Venkat Yadlapati
ad7ca7bd14 sm8550-common: Switch to EROFS
Signed-off-by: inferno0230 <mail@inferno0230.in>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:46 +00:00
Shashank Sivakumar
061844ce30 sm8550-common: Enable Virtualization service
Change-Id: Iaa373c0676219a724e2033d9a7863dfdd7b7504b
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:46 +00:00
Anthony Adamo
0ed46c464e sm8550-common: Inherit vabc_features.mk and update compression to lz4
inherit vabc_features.mk instead of android_t_baseline.mk which
has correct configuration for android_u. Update the
PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD from gz to lz4. Also, enable
virtual_ab.compression.threads to improve OTA performance.

Change-Id: I3b17e236701cefab4f424c8babb2fc59d2b9df09
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:21:46 +00:00
Pranav Vashi
c57fd0061c sm8550-common: Add dolby blobs from Moto G52
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:20:15 +00:00
pjgowtham
47e0956d3e sm8550-common: overlay: Set fixed refresh rate on keyguard
oplus restricts refresh rate to 30hz on AOD
setting fixed refresh rate on AOD seems to fix the issue with FOD HBM on turning off screen as well as issues with brightness bumps on AOD mode

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:46 +00:00
Pranav Vashi
863829bea3 sm8550-common: init: Set marketname for proper device info
* crdroid feature

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:46 +00:00
chandu078
73763b645a sm8550-common: init: Set more OPLUS property based on HW region ID
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:46 +00:00
Chandu Dyavanapelli
1bc46c7389 sm8550-common: init: Set partition device, model and name based on HW region ID
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:46 +00:00
chandu078
780b9a46e0 sm8550-common: init: Override Pixelworks feature property based on HW region ID
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:46 +00:00
Pranav Vashi
09a28a22a2 sm8550-common: init: Bind fastrpc_shell_3 on post-fs-data
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:46 +00:00
Pranav Vashi
bbcfa62a67 sm8550-common: Allow gcam/snapcam to skip HFR checks
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:46 +00:00
Pranav Vashi
95b9751537 sm8550-common: overlay: Mock LinearmotorVibratorService
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:45 +00:00
Pranav Vashi
c4be6f20e4 sm8550-common: Allow camera to skip high frame rate checks
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:21 +00:00
Michael Bestas
a819083879 sm8550-common: overlay: Enable battery cycle count
Change-Id: I92bc8363e1c9e2ad54c29a0a30dce992e25f697d
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:19:19 +00:00
Pranav Vashi
89f4f83ea0 sm8550-common: overlay: Add system ui restart option
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:55 +00:00
Pranav Vashi
9d9e5e92ed sm8550-common: Enable UDFPS animations
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:55 +00:00
Edwin Moquete
1c9f544fca sm8550-common: Disable frame rate override feature
This is enabled by default on U, and it causes apps like
Chrome and YouTube to render the frame rate at 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:55 +00:00
Glen Kuhne
670d803086 sm8550-common: overlay: Wifi: Set default hotspot SSID prefix
Added a device specific overlay that changes the default name
from "AndroidAp" to customized name

Test: Builds, manually verified name change
Bug: 36368950
Change-Id: I38a5f6fb950d6a45342080bae186a8ed276d94bf
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:54 +00:00
Pranav Vashi
48c207d810 sm8550-common: init: Retrict cpuset for non-critical groups
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:54 +00:00
Jake Weinstein
05b5373679 sm8550-common: init: Disable multiple kswapd threads
https://lore.kernel.org/lkml/20180403133115.GA5501@dhcp22.suse.cz/

Change-Id: Ifc72726ad3c44bc0838d78031f70971f0677cd0e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:54 +00:00
Pranav Vashi
e5d1bd76ea sm8550-common: init: Reset readahead values for 128 always
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:54 +00:00
Pranav Vashi
af07e90986 sm8550-common: overlay: Enable screen-off UDFPS support
* crdroid feature

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-11-01 18:18:53 +00:00
Randall Huang
9cea177a19 sm8550-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
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
8cb673bb0e sm8550-common: Enable blur effect
* crdroid feature
* Changes QS transparency into blur effect.

Change-Id: Ib2d7c7b893d0f12e2c52f47ae68f7ab28dda63e2
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
940b71f785 sm8550-common: overlay: Update pinner files for SystemUIGoogle
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
John Galt
26292d770d sm8550-common: overlay: Update pinner list
Based on
c33cdcb75d

This includes critical graphics libraries and framework ext.

Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
abc7abd03a sm8550-common: overlay: Turn on screen on unplug
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
149ab08748 sm8550-common: overlay: Decouple auto-suspend and interactive state from display
* Maximizes power saving.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
801f82a33a sm8550-common: overlay: Configure VOOC charging display on lockscreen
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
323cfcdf60 sm8550-common: overlay: Fix lockscreen charging info
* Custom feature.
* Requires: 90f5534929

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
ad68e0ab21 sm8550-common: overlay: Use appropriate charging thresholds
* Our device directly measures in mA and not uA.
* This fixes "Charging Rapidly" info on lockscreen.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
9525f3e86b sm8550-common: Remove memory debug module
* Disabled in kernel config.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
17972f9dcd sm8550-common: init: Always use lz4 for zram
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Pranav Vashi
f8f24c5d4e sm8550-common: Use cortex-a510 as runtime variant
cortex-a510 is newer compared to kryo300

Ref: https://www.androidauthority.com/qualcomm-snapdragon-kryo-cpu-numbers-1080105/

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2024-10-31 08:42:53 +00:00
Bruno Martins
206e57d462 sm8550-common: Update from OOS 11.C.59
Change-Id: Iba0706828de7f23420f8c437aefde4a7cbc1b9fa
2024-10-29 08:48:07 +00:00
LuK1337
359d9888f6 sm8550-common: Unmount /firmware after fastbootd starts
Fixes `fastboot flash modem modem.img`.

Change-Id: I17e2183f666979c94c3f5b1affd660bfd60df15d
2024-10-29 08:48:07 +00:00
ghostrider-reborn
fe13efd1be sm8550-common: Fix battery and USB OTG detection
* In kalama (msm-5.15) pmic driver now lies in adsp [1], so
   adsp firmware must to be loaded along with qti battery/
   charger kernel module, in order to get battery and usb
   power_supply up & running

 * The GKI kernel for 5.15 explicitly disabled
   FW_LOADER_USER_HELPER_FALLBACK, and the right way to enable it is to
   echo 1 to the /proc/sys/kernel/firmware_config/force_sysfs_fallback,
   so do this before writing to adsp sysfs node.

[1]: 4e2b0f663a

Depends-On: Id0e64302dbbdc53620cbc1825c36e13bb9e58aef
Change-Id: I835fa5daaa53eb704cc6c0777d7069d47ecbe10c
2024-10-20 10:00:19 +01:00
pjgowtham
cb2c3889d2 sm8550-common: Load adsp_loader_dlkm for battery status in recovery
Change-Id: Ia9b62249176dc6b86fd7ab40697940cb83c45cc2
2024-10-20 10:00:19 +01:00
Bruno Martins
3ee6e2faee sm8550-common: Remove duplicates from bloblist
Change-Id: I68d15f1800e4029741fa60637700f008ec359250
2024-10-18 21:14:09 +01:00
Aaron Kling
cd0a6dee54 sm8550-common: Re-enable broken dup rules check
All failures of this have been resolved

Change-Id: I56a923ac90b98e63c093c8cb65cb1059dde57c49
2024-10-01 09:57:47 +01:00
Michael Bestas
f90f18437b sm8550-common: Libraries are now automatically added to PRODUCT_PACKAGES
Change-Id: Ie92fe02b7e6279195bf28944942c815db773b798
2024-10-01 09:57:47 +01:00
Cosmin Tanislav
c084db3791 sm8550-common: Do not manually build dependencies
Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b
2024-10-01 09:57:47 +01:00
Aaron Kling
3aeb16326a sm8550-common: Remove elf files in copy files check
New extract files uses packages instead of copy files

Change-Id: I337c07d13bd350958d4808e1693cc6e03753a96c
2024-10-01 09:57:47 +01:00
Bruno Martins
ed3fd47261 sm8550-common: Work around using prebuilt audio primary HAL
Since audio.primary.kalama is no longer present in PRODUCT_PACKAGES,
the vintf files are not copied anymore, so account for that and merge
to the manifest instead.

Change-Id: I71b091950e5ecc810779d3ab51e99807d6648d0b
2024-10-01 09:57:47 +01:00