Commit Graph

543 Commits

Author SHA1 Message Date
Mashopy
dfd7dbf9fd fleur: Remove 32bit arch from android.hardware.graphics.mapper
We don't ship 32bit blobs and our mapper is 64bo anyway

Change-Id: Ieaabf597bb69fcb3b3ae0c67b2e16926d70c6c22
2025-10-20 02:12:22 +02:00
Hridya Valsaraju
61dcc209f5 fleur: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2025-10-20 02:12:22 +02:00
Roopesh Nataraja
0721fe5c15 fleur: Remove schedulerservice from device compatibility matrix
android.frameworks.schedulerservice is deprecated and limited to
max-level=5 in framework manifest. Hence, remove it from device
compatibility matrix to allow super image generation.

Change-Id: Icbeeeb07c9ba8c094a1c531e0a67bd1dbac8b926
2025-10-20 02:12:22 +02:00
0313b2cc43 fleur: vintf: add AIDL HAL instances to device compatibility matrix
The following HALs in device manifest are not declared in FCM <= level 6:
   android.hardware.biometrics.fingerprint.IFingerprint/default (@4)
   android.hardware.bluetooth.IBluetoothHci/default (@1)
   android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default (@4)
   android.hardware.drm.IDrmFactory/widevine (@1)
   android.hardware.health.IHealth/default (@3)
   android.hardware.ir.IConsumerIr/default (@1)
   android.hardware.light.ILights/default (@2)
   android.hardware.media.c2.IComponentStore/default (@1)
   android.hardware.neuralnetworks.IDevice/mtk-neuron_shim (@4)
   android.hardware.nfc.INfc/default (@1)
   android.hardware.power.IPower/default (@5)
   android.hardware.sensors.ISensors/default (@2)
   android.hardware.tetheroffload.IOffload/default (@1)
   android.hardware.thermal.IThermal/default (@2)
   android.hardware.usb.IUsb/default (@3)
   android.hardware.usb.gadget.IUsbGadget/default (@1)
   android.hardware.wifi.IWifi/default (@2)
   android.hardware.wifi.hostapd.IHostapd/default (@2)
   android.hardware.wifi.supplicant.ISupplicant/default (@3)

Change-Id: Ifc30c65c2895303a6d0585bdecf00da531839e25
Signed-off-by: Onelots <onelots@onelots.fr>
2025-10-20 02:12:22 +02:00
Michael Bestas
6079150300 fleur: Enable UFFD GC
Kernel has support for it now.

Change-Id: I3863ee71477f321fe47646571b857fdc39a1902b
2025-10-20 02:12:22 +02:00
Yumi Yukimura
c774cf8394 malachite: Build AOSP Radio HIDL->AIDL Wrapper
Change-Id: Iaeb8d37f4a7f02e6e812bc4da1b413c9a6493f8f
2025-10-20 02:12:22 +02:00
Yumi Yukimura
39792427ad fleur: vintf: Bump target-level to 6
Change-Id: I8d419d248f29b7d316a87d55e19ae7ff141e19a5
Signed-off-by: HeroBuxx <me@herobuxx.me>
2025-10-20 02:12:22 +02:00
Roman Kiryanov
90308e26ec fleur: Set PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS to false
We support OTA - suppress the build warning.

Bug: 295259752
Test: presubmit
Change-Id: I580703b8cb87578d644d10690c52561090fdabd2
Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: HeroBuxx <me@herobuxx.me>
2025-10-20 02:12:22 +02:00
claxten10
3bcaa0ed4a fleur: init: Enable ZRAM after boot is completed
* According to Google, ZRAM should be enabled after boot_complete.

* https://source.android.com/docs/core/perf/boot-times#defer-non-critical-initialization

Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-20 02:12:22 +02:00
claxten10
2927cf5d54 fleur: {init, powerhint}: Kang utilization clamping from malachite
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:53:43 +00:00
EmanuelCN
44e9b7c0cb fleur: powerhint: set INTERACTION duration to 58ms
* GPU goes idle after about 58ms, no point going any longer

Change-Id: I2913cf07ea32fd89c747e274984749e6efbb5b69
2025-10-17 22:51:42 +00:00
claxten10
933349ac3f fleur: Configure GAME hint
* Supported since Android 14, so let's take use of it.

* https://source.android.com/docs/core/perf/boost#game-power-mode

Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
claxten10
fdc5da1299 fleur: powerhint: Stop setting max freq on interaction
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
claxten10
afcbe71361 fleur: powerhint: Add min/max gpu freq nodes
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
claxten10
92f231ccae fleur: powerhint: Raise min frequency on interaction for both clusters
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
Wei Wang
9428f7e8d2 fleur: powerhint: Change restricted cpuset dynamically
Currently framework put tasks into restricted cpuset group when display
is off. However, when unlocking screen, SystemUI still runs in
restricted cpuset group leading to jank and delayed UDFPS action. This
CL mitigates problem by dynamically changing restricted cpuset group to
all cpus when display is back on.

Bug: 217481359
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I2155a81e68745df6a86d405eccb4952a432b6906
2025-10-17 22:51:42 +00:00
claxten10
79ac178913 fleur: Tune SF work durations
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
claxten10
9497c27a68 malachite: Set minimum HWC SF duration to 11.1ms
1/90 = ~11.1ms

Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
nisel
94b8cca077 fleur: Disable background blur support
* App closing animation struggles with blur.

Signed-off-by: nisel <nisel11good@gmail.com>
2025-10-17 22:51:42 +00:00
claxten10
4616a4f503 Revert "fleur: Disable SF client composition cache"
This reverts commit a8b6282ca8b1d6a24253d40bf9ce9e70e61e2f64.
2025-10-17 22:51:42 +00:00
Mashopy
24811c2f69 fleur: Switch to AIDL bluetooth service
Change-Id: I40550f0f2033e35ea609401f38f7646cb79abe14
2025-10-17 22:51:42 +00:00
Mashopy
7c219ad66e fleur: Set bluetooth vendor ID as MediaTek, Inc.
https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml
2025-10-17 22:51:42 +00:00
Jooyung Han
29a3b4be75 fleur: Install apex for clearkey service
Bug: 329737888
Test: local build
Change-Id: Ibf5574ce7da0b927ef8179663bb03a039955bcd3
2025-10-17 22:51:42 +00:00
Mashopy
ccd0e5f573 fleur: init: Remove noflush_merge option from userdata
Our UFS storage isn't that cheap.
2025-10-17 22:51:42 +00:00
Randall Huang
b36a5de2a8 fleur: init: add the noatime for read-only ext4 partitions
This is to avoid unnecessary ext4 behavior

Bug: 289631992
Test: boot to home
Change-Id: I06e2a4042f483075acf030f7c3a257c27d0f8b29
Signed-off-by: Randall Huang <huangrandall@google.com>
2025-10-17 22:51:42 +00:00
Mashopy
d85546814a fleur: Remove checkpoint_gc
Google stopped using it since gs101, the exact reason why is unknown since it was done during early development.
2025-10-17 22:51:42 +00:00
Mashopy
f99c8d57ec fleur: init: Remove usbotg actions from init.project.rc
These come from Android 4.4 and are been deprecated for a long time.
2025-10-17 22:51:42 +00:00
Cyber Knight
09d033bf9b fleur: init: usb: Use standardized instance name for mass_storage function
- usb0 is a legacy artifact from the stock USB HAL.
- We have long since migrated OSS USB HAL, making the non-standard instance name redundant.
- Switching to `mass_storage.0` aligns with the standard nomenclature and restores DriveDroid compatibility without requiring the custom Magisk module.

Change-Id: I53e19ff1ed7ffc64fa9cb7eb71e8b6d71aa233d3
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-10-17 22:51:42 +00:00
claxten10
34873977f6 fleur: init: usb: Configure mass_storage function
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
Will Song
9ded025583 fleur: thermal: Change "NAN" to "NaN"
For schema parsing, protobuf parses "NaN" as float but not "NAN."

Test: Flash and check sensor values.
Bug: 127794899
Change-Id: I01549ecdabf4fe6af1cff685b97f8f18b0dd3003
2025-10-17 22:51:42 +00:00
Suren Baghdasaryan
e10c26aaf4 fluer: Add defaults for downgrade_pressure
Explicitly define ro.lmk.downgrade_pressure value so that defaults
can be safely changed if needed.

Change-Id: I86d9c7aa52c213c43a25b02844e054dc28a6e512
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2025-10-17 22:51:42 +00:00
Mathieu Chartier
bc6c1a97bd fleur: Add PRODUCT_MINIMIZE_JAVA_DEBUG_INFO
Strip the local variable table and the local variable type table to
reduce the size of the system image. This has no bearing on stack
traces, but will leave less information available via JDWP

Bug: 67374015
Test: make and flash
Change-Id: Ie592221b893f7fa7433fe10e8c08ff70b5de4e47
2025-10-17 22:51:42 +00:00
claxten10
6b4d48c67e fleur: Pull missing IMS blobs
* Also enable VoWiFi as it seems to work after moving to common IMS.

Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
Nisel
a040f76427 fleur: Note Neural Network AIDL blobs from OS2.0.1.0.VHZMIXM 2025-10-17 22:51:42 +00:00
claxten10
ab2443e0fe fleur: Move to common MediaTek IMS
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
dataoutputstream
0a9f2db40c fleur: Build audio.primary.default
- Without these modules, logcat gets spammed with:
        AudioSystem-JNI: AudioSystem::listAudioPorts error -19

Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
2025-10-17 22:51:42 +00:00
=Bowgo Tsai
50e4326494 fleur: Removing GSI keys
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.

Bug: 149806769
Test: build and checks those keys are removed from
      $OUT/recovery/root/first_stage_ramdisk/avb/
Change-Id: I8a002ba6f1421fb460056ccae6572050bdb0ce3c
2025-10-17 22:51:42 +00:00
Cyber Knight
61edf51570 fleur: Apply dex2oat optimizations
- Set only 4 threads to be utilized for dex2oat as dex2oat supports concurrent jobs since [1].
- Moreover, set only 4 threads to be utilized for boot image dex2oat as well.

[1]: 93c605c0d6

Change-Id: I8cf2544efeb4cd0c9befbaa2c208eed68c4204ac
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-10-17 22:51:42 +00:00
bengris32
dcff0f97ad fleur: Remove CDMA support
* CDMA never worked properly since *some* change in U QPR1, so disable it
  entirely. There are barely any CDMA networks left in the world and the
  ones that are still active will shut down in due time.

Change-Id: I70175c4c88bd926cbf4232132bcef32184c14c94
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2025-10-17 22:51:42 +00:00
claxten10
4a2811c981 fleur: init: power: Use only the little cores for dex2oat
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
Yan Yan
1ffc43354a fleur: Add feature flag for IPSEC_TUNNEL_MIGRATION
This commit adds the IPSEC_TUNNEL_MIGRATION feature flag,
with XFRM_MIGRATE used as the implementation

Bug: 273379472
Test: build, flash and verify with "adb shell pm list features"
Test: atest IpSecManagerTunnelTest
Change-Id: Id2ee3e65183e32ea63f6251ba921e1e4c6b09ed0
2025-10-17 22:51:42 +00:00
claxten10
e66f9e7673 fleur: overlays: Drop list of regexs for USB tethering
* Already defined by NcmTetheringOverlay

Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
Ivan Vecera
ed1830a755 fleur: overlays: Enable WPA3-SAE for SoftAP
Test: Create WPA3 enabled wifi hotspot and connect to it using another device
Change-Id: I081e3b6cb7e3ed019dab70f2b9736cf7546392c3
2025-10-17 22:51:42 +00:00
Michael Bestas
12b4ce449f fleur: overlays: Drop custom dhcp range
Qcom extends default range to add wigig support,
which we don't support.

Change-Id: I17324e41b8345de508e8d2627ea282c65ab1262b
2025-10-17 22:51:42 +00:00
Giovanni Ricca
d5affa3db2 fleur: Build Mediatek bluetooth audio interface from source
Change-Id: I18ff8da00399ad226ffd73adcd74faae975faf79
2025-10-17 22:51:42 +00:00
Yumi Yukimura
ce5ad918f9 fleur: overlays: WifiOverlay: Move to vendor
Change-Id: I190951d6c5619870a938e61d81def3aa36352939
2025-10-17 22:51:42 +00:00
claxten10
3ee34be55d fleur: init: usb: Correctly configure RNDIS
Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00
Albert Wang
0150c5edba fleur: init: usb: support both rndis and ncm, but not rndis + ncm
A cherry pick from 49a13bf for gs101

Bug: 199252036
Test: Boot to home and usb hal bring up normally
Change-Id: Ia4e344aa9cf7762b71cbfe35ff9cbcccb4474b11
2025-10-17 22:51:42 +00:00
Uttkarsh Aggarwal
f79ccbc2f9 fleur: init: usb: Add NCM OS descriptor
This change sets the OS descriptor for NCM to pass "WINNCM"
as the compatible ID. This allows Windows hosts to automatically
load the UsbNcm interface driver without the need for a custom INF.

Change-Id: Ic82024baadd835ef542ff14bed0b0d32fca0ac05
2025-10-17 22:51:42 +00:00
claxten10
8d59c5b4dc fleur: init: usb: Configure NCM functions
* from gs201

Signed-off-by: claxten10 <claxten10@gmail.com>
2025-10-17 22:51:42 +00:00