1496 Commits

Author SHA1 Message Date
TheStrechh
02b0e83f1d redwood: Add missing packages for camera 2025-08-27 07:36:13 +05:30
thepriyanshujangid
cc8c9ded24 redwood: Include Miui camera if-exists 2025-08-27 07:36:13 +05:30
Michael Bestas
18a17aa9f1 redwood: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
Signed-off-by: thepriyanshujangid <priyanshujangid@yahoo.com>
2025-08-27 07:36:13 +05:30
thepriyanshujangid
4cc65cbeaf redwood: Build soundtrigger 2.3 impl 2025-08-27 07:36:13 +05:30
thepriyanshujangid
af73308ce8 redwood: Uprev Audio HAL to 7.0
reason: hwservicemanager: getTransport: Cannot find entry android.hardware.audio@7.0::IDevicesFactory/default in either framework or device VINTF manifest.
2025-08-27 07:36:13 +05:30
Revathi Uddaraju
32076bedfb redwood: Enable multi-stage SVA
Change-Id: I5bced49059bb5d98c647e7688899a1314ef1571d
2025-08-27 07:36:13 +05:30
Akash Srivastava
b51e5c15b6 redwood: overlay: Declare 6ghz wifi support
* Currently it was only enabled for hotspot. Lets enable it for all usecase
* Configs taken from: https://cs.android.com/android/platform/superproject/+/master:device/google/gs101/rro_overlays/WifiOverlay/res/values/config.xml;l=25?q=config_wifi6ghzSupport&sq=&ss=android%2Fplatform%2Fsuperproject, https://cs.android.com/android/platform/superproject/+/master:packages/modules/Wifi/service/ServiceWifiResources/res/values/config.xml;l=43?q=config_wifi11axSupportOverride&ss=android%2Fplatform%2Fsuperproject
2025-08-27 07:36:12 +05:30
Peng Xu
0733c12c72 redwood: Enable support for IEEE80211AX
* This is to allow supporting WiFi 6 mobile hotspots,
   to be noted this is only supported on SDM855+ platforms.

Change-Id: Iab61bd12499968e8823b3078acd1c7b8bce46136
[jjpprrrr: skipping CONFIG_IEEE80211AC because external/
wpa_supplicant_8/wpa_supplicant/defconfig has it enabled by default]
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2025-08-27 07:36:12 +05:30
Kumar Anand
0d695d04f4 redwood: Enable automatic channel selection
* Automatic Channel Selection algorithms and implementations
   are used to enable interfaces to automatically figure
   out which channel configuration to use for initiating
   communication, for any mode of operation which initiates
   radiation (AP, Mesh, IBSS, P2P).

   https://wireless.wiki.kernel.org/en/users/documentation/acs

Change-Id: I5c95994ea52495990cf9244c703bc88db170f7f6
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2025-08-27 07:36:12 +05:30
Adithya R
fed34b7fdb redwood: rootdir: Enable predicted load boosting for yupik
Why should only lahaina have all the fun ?;)
2025-08-27 07:36:12 +05:30
Andy Hung
97b87675ac redwood: rootdir: audio HAL: Enable RT priority inheritance 2025-08-27 07:36:12 +05:30
Zhou Song
0ed8851741 redwood: rootdir: audio Start audio rpc daemon early to improve performance
Audio HAL initialization relies on rpc daemon to load
dynamic libs, if daemon is not ready when HAL tries
to load libs, HAL has to wait until that finished.
Start this daemon early can smooth boot up of audio HAL
process, as this can save time for dynamic libs loading.

Change-Id: Id05ffc46fab812a718b6cb601e0610974b123679
Signed-off-by: JaswalAshish <ashish@m.ms.evolution-x.org>
2025-08-27 07:36:12 +05:30
swiitchOFF
7b11c94dcb redwood: hidl: add missing FCM entries
The following HALs in device manifest are not declared in FCM <= level 5:
  android.hardware.biometrics.fingerprint@2.3::IBiometricsFingerprint/default
  android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default (@3)
  android.hardware.boot@1.2::IBootControl/default
  android.hardware.cas.IMediaCasService/default (@1)
  android.hardware.drm.IDrmFactory/clearkey (@1)
  android.hardware.nfc.INfc/default (@1)
  android.hardware.power.IPower/default (@3)
  android.hardware.usb@1.3::IUsb/default
  android.hardware.vibrator.IVibrator/default (@2)
  android.hardware.wifi.IWifi/default (@1)
  android.hardware.wifi.hostapd.IHostapd/default (@1)
  android.hardware.wifi.supplicant.ISupplicant/default (@2)
  android.hardware.audio.sounddose.ISoundDoseFactory/default (@1)
COMPATIBLE

Co-Authored-By: raystef66 <raystef66@gmail.com>
Co-Authored-By: Murat Kozan <muratkozan350@gmail.com>
Co-Authored-By: Rom Bdr. Gharti <21030085+romgharti@users.noreply.github.com>
Signed-off-by: swiitchOFF <120115258+swiitchOFF@users.noreply.github.com>
Signed-off-by: thepriyanshujangid <priyanshujangid@yahoo.com>
2025-08-27 07:36:12 +05:30
johnmart19
4595160207 redwood: props: Enable VoNR Calls support
Reference: LineageOS/android_frameworks_opt_telephony@b3a73d7

Change-Id: 9d2ad237f36396c5bf7e543eaee30a34d1ece1a0
2025-08-27 07:36:12 +05:30
Alec Mouri
537e337f8c redwood: props: Force device to treat 170M as sRGB in SF
Bug: 229442032
Test: builds, boots
2025-08-27 07:36:12 +05:30
Alessio Balsini
120cb39699 redwood: props: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
2025-08-27 07:36:12 +05:30
Jun Wang
9dd594b834 redwood: props: Enable the pre-rendering feature
* Pre-rendering feature can improve FPS and reduce the janks
   in scrolling cases.

Change-Id: I2152d0a1a8f9e337cb0355c8874e72f0f3c2cb46
Signed-off-by: NotHarshhaa <reddyharshhaa12@gmail.com>
Signed-off-by: chemusqui1 <61394758+chemusqui1@users.noreply.github.com>
2025-08-27 07:36:12 +05:30
Alex Sarraf
2d4751f1e9 redwood: props: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.
2025-08-27 07:36:12 +05:30
Vinay Verma
d2e2259c6a redwood: props: Disable async MTE on system_server
Async mode MTE is enabled by default on System Server process.
Add property arm64.memtag.process.system_server=off
This property is read during system server forking process and
accordingly Heap Tagging level is set.
2025-08-27 07:36:12 +05:30
Pullakavi Srinivas
cda11d49bd redwood: props: Disable SF composition prediction model
CRs-Fixed: 3243885
Change-Id: I64f82a25768b561bb343fdb7686b7d6c020d024a
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: chemusqui1 <61394758+chemusqui1@users.noreply.github.com>
2025-08-27 07:36:12 +05:30
SamarV-121
db03b5f9c9 redwood: props: Disable continuous transaction tracing on all build types
Signed-off-by: chemusqui1 <61394758+chemusqui1@users.noreply.github.com>
2025-08-27 07:36:12 +05:30
SamarV-121
9bc89cdbc4 redwood: props: Remove obsolete debug.sf.disable_backpressure
* It has been removed in Android S
 * 2ec5391acf

Change-Id: I23a210a37ad257f0c8b7a3c5e1d59b2ac20cde9a
Signed-off-by: chemusqui1 <61394758+chemusqui1@users.noreply.github.com>
2025-08-27 07:36:12 +05:30
Danny Trunk
708c013b51 redwood: props: Do not block binder thread on incoming calls
Change-Id: I6a2c41e35cc3514e60e104d8eb967f331176594e
Signed-off-by: chemusqui1 <61394758+chemusqui1@users.noreply.github.com>
2025-08-27 07:36:12 +05:30
Astridxx
9263b3934d redwood: props: Remove keyguard.no_require_sim properties 2025-08-27 07:36:12 +05:30
theangelofdead01
01b7f93b5b redwood: rootdir: 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>
2025-08-27 07:36:12 +05:30
Mao Jinlong
23a218793d redwood: rootdir: Add vendor prefix to batterysecret and mi_thermald 2025-08-27 07:36:12 +05:30
Randall Huang
b8c7409e03 redwood: rootdir: fstab: Set data=journal,commit=1 for /metadata
Since Ext4 doesn't implement "-o sync", it commits metadata at every 5 secs.
This may cause /metadata corruption.

Bug: 162883014
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Randall Huang <huangrandall@google.com>
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Signed-off-by: ralph950412 <ralph950412@gmail.com>
Change-Id: Icd38754bad1b1529d01165ea8c703c214d20bb4b
2025-08-27 07:36:12 +05:30
Pranav Vashi
694041f782 redwood: rootdir: Reset readahead values for 128 always 2025-08-27 07:36:12 +05:30
Jake Weinstein
2c7fe4fdc8 redwood: rootdir: Disable multiple kswapd threads
https://lore.kernel.org/lkml/20180403133115.GA5501@dhcp22.suse.cz/
2025-08-27 07:36:12 +05:30
Astridxx
20c9529d29 redwood: rootdir: Use /vendor/bin/ where possible 2025-08-27 07:36:12 +05:30
Jake Weinstein
f8f37e0e2c redwood: rootdir: Use foreground uclamp for hwcomposer
Matches SF, makes sure rendering always
has enough capacity.

Also switches to task_profiles.
2025-08-27 07:36:12 +05:30
Vishalcj17
d51bba5dd8 redwood: rootdir: Switch hwcomposer to foreground CPU set
* Greatly affects the performance/latency of the display
   considering you have foreground set to 0-6 cores on <SM7350
   whilst being power efficient.

 * This shows an improvement on HWUI graph and even jankbench.
2025-08-27 07:36:12 +05:30
Jake Weinstein
08eb30d1bf redwood: rootdir: Disable multiple kswapd threads
https://lore.kernel.org/lkml/20180403133115.GA5501@dhcp22.suse.cz/
2025-08-27 07:36:12 +05:30
Vivekachooz
af3ef441eb redwood: rootdir: Set swappiness to a lower value of 60
* Setting swappiness to 100 cause aggressive swap writing which
  further leads to unusual lags
2025-08-27 07:36:12 +05:30
Jake Weinstein
559ac48e8d redwood: rootdir: Move background cpuset to CPU0-1
Background tasks are not UX-critical.
Free up cores to work on more important
UX tasks.
2025-08-27 07:36:12 +05:30
Adithya R
3d548deaef redwood: rootdir: Move citsensorservice to background cpuset
This service hogs a considerable amount of CPU all the time as its
busy calculating compensation for our under-display light sensor
(and also spamming logcat, which we can take care of later).

  PID USER         PR  NI VIRT  RES  SHR S[%CPU] %MEM     TIME+ ARGS
 1969 system       20   0  12G 9.2M 9.0M S  4.6   0.1   1:13.15 vendor.xiaomi.sensor.citsensorservice@1.1-service

Move it to background CPU set like the sensors multihal to lower
power consumption from big cores.
2025-08-27 07:36:12 +05:30
Jake Weinstein
1eb570f4b3 redwood: rootdir: Make less cores available for background tasks
With SurfaceFlinger and HWC on the foreground cpuset,
important rendering tasks are moved off of the background
cpusets, so let's reserve one little core for foreground
and top-app.

Change-Id: I4f0982f3ff4dce756095667df0d08f18817b896a
2025-08-27 07:36:12 +05:30
Jake Weinstein
f18c481210 redwood: rootdir: Do not allow restricted tasks to run on big cores
The restricted cpuset is for system tasks that are
throttled because the screen is off. Google only
runs these tasks on the little cluster
to save power and we will follow suit.
2025-08-27 07:36:12 +05:30
Chenyang Zhong
a19e24caac redwood: rootdir: avoid migrating foreground tasks to X1
The Cortex-X1 core is quite power hungary. Let's only use it for
top-app tasks. Avoid migrating foreground tasks to X1 to reduce
unnecessary bumps of X1's frequency and save some battery.
2025-08-27 07:36:12 +05:30
Rick Yiu
7fa32de90d redwood: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2025-08-27 07:36:12 +05:30
Dyneteve
0f7654d527 redwood: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html
2025-08-27 07:36:12 +05:30
Arian
d2cc9f48d3 redwood: Enable camera override format from reserved
This enables qcom additions for high framerate videos.

Change-Id: I572d35c6454711e838b2d0dba31551627d10f6e6
2025-08-27 07:36:12 +05:30
LuK1337
922e700eba redwood: Fix BOARD_FLASH_BLOCK_SIZE
BOARD_KERNEL_PAGESIZE * 64 != 131072
2025-08-27 07:36:12 +05:30
Peter Cai
ca7f27c44e redwood: Panic to recovery, not bootloader 2025-08-27 07:36:12 +05:30
Martin Liu
90130cc071 redwood: Set swiotlb as noforce
As dma devices are 36bit bounded, we don't need SWIOTLB
bounce buffers. Set swiotlb=noforce to disable this and
make the minimum amount of memory allocation.

Bug: 205246642
Test: check total memory and io_tlb_nslabs
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: If9f68b269f326f0f4b8e165593ec5dd4787fbb52
2025-08-27 07:36:12 +05:30
Kuba Wojciechowski
b0e8827d13 redwood: Disable kpti
* As per qualcomm - "SM8150/SM8250/SM8350/SM7250/SM7150/SM6150 - KPTI Not
required".
* It can also help increase performance by a lot in some scenarios.
2025-08-27 07:36:12 +05:30
Tengfei Fan
e15aa2578e redwood: Make ramdisk compressed by lz4
There is big benefit if use lz4 compress ramdisk for
kernel boot KPI.

Change-Id: Ifa97b18fd199621896ae30a96741a946613d5387
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2025-08-27 07:36:12 +05:30
Adithya R
7fda8863b7 redwood: Switch to dot product CPU variant
* lisa:/ $ cat /proc/cpuinfo | grep -m 1 Features
   Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
   atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp

 * From this, it's evident that our CPU (Snapdragon 778)
   supports all the features of ARMv8.2-DotProd [1].
   Moreover AOSP sets this arch variant in their generic
   cortex-a55 ART target as well [2]. This should unlock
   some optimizations in different code paths.

[1]: https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
[2]: https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23

Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8
2025-08-27 07:36:12 +05:30
Danny Lin
7992b6d096 redwood: Optimize native executables for Cortex-A76 CPU
* Allow the compiler to take advantage of ARMv8.2 extensions
   to improve performance in native executables, not
   just Java code compiled by ART.

Change-Id: Idd3414de107f47a18c2769dc930e6c4bceacdc62
2025-08-27 07:36:12 +05:30
Master
0f2ee7c0c7 redwood: Disable sparse for ext/f2fs images
* Sparse images cause kPostInstallMountError

Co-authored-by: yairpatch <yair.zarfati@gmail.com>
Change-Id: Ifdb2fc87d88c9c2139b3e73b6ccad36f09888b75
Signed-off-by: ralph950412 <ralph950412@gmail.com>
Signed-off-by: thepriyanshujangid <priyanshujangid@yahoo.com>
2025-08-27 07:36:12 +05:30