724 Commits

Author SHA1 Message Date
bengris32
5c64559029 S666LN: sepolicy: Allow vendor_init to set audio properties
Change-Id: Ibd81066c77c3c35ccd9e93efc01a0d687d0d26d2
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2026-01-16 11:25:02 +00:00
bengris32
98358e44a8 S666LN: sepolicy: Allow vendor_init to set camera properties
Change-Id: I169ad972dc474a4c2341d5f6ac99ea57cb9b64b1
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2026-01-16 11:25:02 +00:00
claxten10
3883f0909e S666LN: Drop MediaTek remote submix HAL
* MediaTek's r_submix has a few modifications over the AOSP one, mainly
  PCM dumping, which we already disabled with [1] and some misc changes
  which we don't really need, therefore move to the AOSP module.

[1]: afca579

[Shirayuki39]: We're also already building the AOSP module

Change-Id: Ie7ae303501d305dde5fe943187f45105be1e02b8
Signed-off-by: claxten10 <claxten10@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2026-01-16 11:25:02 +00:00
Mashopy
ec8d8eee87 S666LN: Update wifi hal interfaces combination
MediaTek switched from 2 independant AP interfaces to a single AP_BRIDGED interface, the exact reason why is unknown.

Change-Id: I41d210e0dfc11ba4f1ee007ab19aaf4f70745e76
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2026-01-16 11:25:02 +00:00
Kenaidi01
8e555e6baf S666LN: overlay: remove stuff that broke app drawer blur
Signed-off-by: ikwfahmi <mikhwanfahmi4@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2026-01-16 11:25:02 +00:00
Shirayuki39
c6aff52ca1 S666LN: rootdir: Stop overriding dirty_background_ratio
* Let our kernel decide for this as we're setting it to 20 and 50 for interactivity

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2026-01-16 11:25:02 +00:00
wshamroukh
ec50c227e2 S666LN: sepolicy: Dontaudit camera hal default_prop
avc: denied { read } for name=u:object_r:default_prop:s0 dev=tmpfs ino=2320 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0

Signed-off-by: RobertGarciaa <chae0218@naver.com>
Signed-off-by: zenin1504 <kayozzprojects@yandex.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2026-01-16 11:25:02 +00:00
KimelaZX
abee101be7 S666LN: Initialize for Evolution X 11.x
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-22 12:23:32 +07:00
KimelaZX
61e0c3afe1 S666LN: sepolicy: add primary_dvchg to file_contexts
12-21 04:34:44.772   889   889 W android.hardwar: type=1400 audit(0.0:374): avc:  denied  { open } for  path="/sys/devices/platform/soc/11eb3000.i2c/i2c-9/9-006a/power_supply/primary_dvchg/type" dev="sysfs" ino=50321 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

also reduce spams in log

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-22 12:12:31 +07:00
Shirayuki39
02469540a0 S666LN: aee: Add libaedv
Co-authored-by: Onelots <onelots@onelots.fr>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-22 12:12:31 +07:00
KimelaZX
8841cb7cd8 S666LN: BoardConfig: Change KERNEL_PATH
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-19 00:44:09 +07:00
KimelaZX
cab0c8b6b0 S666LN: rootdir: fix typo
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
KimelaZX
81c8ebd953 S666LN: Add proper Permissions to scripts
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
vannxavero
021933fd77 S666LN: patches: Add WPA3 Fix
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
0XCAFEBABE
e98f566884 S666LN: add some soong config variables to "bool"
this caused the error "module "android.hardware.audio.common@2.0-util" variant "android_arm64_armv8-2a-dotprod_cortex-a76_shared": cflags: Expected all branches of a select on condition soong_config_variable("android_hardware_audio", "skip_speaker_layout_channel_mask_field") to have type string, found bool"

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Shirayuki39
4ba81b7057 S666LN: Add hardware/mediatek/libaedv to SOONG_NAMESPACES
* Extension of 61385a01197893d4ddbb929ccbe08f49ff236455

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Sarthak Roy
340a83d69e S666LN: Switch to libperfmgr from hardware/google
* Also drop no-op imports

Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
Change-Id: I22dcf417b7feb2379ed77761bd851317e0c8a955
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
rio004
83cb1f4508 S666LN: init: Kang cpu.shares values from gs201
* Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 5% dex2oat ~2.5%)

Change-Id: I2930a32e6edc270fffe0f0547c577226dccd30dc
Signed-off-by: rio004 <riyon336@gmail.com>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
ChrisCatto
a4f1c2d346 S666LN: init: Reconfigure utilization clamping for all groups
* Based on power tunings of [1].

[1]: https://github.com/mt6878-devs/android_device_xiaomi_malachite

Change-Id: I53e5cc5841714cb2c2375d3522e1eb788467987e
Signed-off-by: ChrisCatto <chriscatto@proton.me>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Shirayuki39
b1488407c6 S666LN: powerhint: Drop BGUclampMin
* We don't do anything with it on the powerhint
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
0XCAFEBABE
949d55580e S666LN: Use the proper way to disable console service
Change-Id: Ie5d1c7c9b4937eaeb0c279b2427ddae23bc9f4a7
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
LuK1337
84954eed1b S666LN: Opt out of speaker_layout_channel_mask field
Required for ABI compatibility with audio HAL compiled before 15 QPR2.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/9426
Change-Id: I0bf7eafbeb19957326de04ecf7b903580315dc59
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
claxten10
768549deda S666LN: init: Configure foreground_window group
* In V, there is a multi-window foreground group.

* Let's just kang our already-configured values for
  foreground and set them here. We may tune it later.

* https://github.com/LineageOS/android_system_core/commit/673e6bb

Change-Id: Ie95bd7ab27740e2f290e2dac8a1141fc6d0aaf81
Signed-off-by: claxten10 <claxten10@gmail.com>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
minaripenguin
8487da900e S666LN: init: Tune F2FS and dirty writeout policy for modern devices
In a previous commit bb0838b5114419b4f8ecff67c0b6fb728399c7b7, the gc_urgent_sleep_time for F2FS was aggressively set to 50ms to optimize GC.
This change, however, led to performance regressions on most devices, particularly of those running in 4.19+ kernels.
From our tests, the heightened CPU and I/O activity from this aggressive garbage collection setting is the likely cause.
To address this, we're revising the gc_urgent_sleep_time parameter to strike a balance between aggressive GC and device performance, taking
bb0838b5114419b4f8ecff67c0b6fb728399c7b7 goal into consideration.
Furthermore, the dirty writeout policy has been aligned with the latest configurations used in Pixel devices,
and cp_interval has been adjusted to surpass dirty_expire_centisecs for improved power efficiency during idle times.

[ChrisCatto]: Do not set dirty_background_ratio to 10 because that is the default value for us anyways.

Test: booted partner device, monitor performance
Change-Id: Ie4d0c870d734e915aaebcc53e64acdabac47b6dc
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
ChrisCatto
99e0e2160c S666LN: init: Reconfigure scheduler tunables
* Based on init.mt6878.power.rc of [1].
[1]: https://github.com/mt6878-devs/android_device_xiaomi_malachite

Change-Id: I22d5a3b934c1cc4e8a62c845b3ecaa7e0a53def2
Signed-off-by: ChrisCatto <chriscatto@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Shirayuki39
3feee55907 S666LN: sepolicy: Drop lineage touch SEPolicy file_context
* We don't even use this as our panels does not support high touch polling rate, fck you transsion
* Also breaks pure AOSP builds

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
0XCAFEBABE
b547161ab4 S666LN: Change some soong variable to bool
this caused the error: "module "vendor.lineage.health-service.default" variant "android_vendor_arm64_armv8-2a-dotprod_cortex-a76": cflags: Expected all branches of a select on condition soong_config_variable("lineage_health", "charging_control_supports_bypass") to have type string, found bool"

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
KimelaZX
97257180e5 S666LN: Removed Duplicate files
23a56cab7a

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
LuK1337
d5991e9b7d S666LN: Dropped vendor/lineage and switch to in device
in latest changes of Lineage-23.1 this has been dropped, so switching to prebuilt. also add NFC NXP AIDL fixed!

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Shirayuki39
a164798156 S666LN: rootdir: Drop tranfs actions
* This partition is never used in AOSP ROMs, and does not even get mounted at all

* Judging by the contents, this only contains logs when booted to Transsion's Trash OS like tranlog.txt

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Shirayuki39
368c816ab6 S666LN: rootdir: Stop setting watermark_scale_factor to 200
944507d1bb - Fuck You Transsion.
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
KimelaZX
087b17b238 S666LN: Added DSPVolumeSynchronizer
idk

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Citlali-Itztli
a2b4766b52 S666LN: Disable NL80211_REG_CHANGED event
* This is caused crash Wificond service as per logcat said "wificond: Failed to get NL80211_ATTR_MAX_NUM_AKM_SUITES"
2025-12-18 19:18:45 +07:00
=Bowgo Tsai
7d03d4c90c S666LN: Use sha256 to build the hashtree in avb image
which enables
sha256 for Pixel devices, we should do the same thing for CuttleFish.

Bug: 178983355
Test: ,
      and checks sha256 is used for dm-verity partitions.
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:45 +07:00
Shirayuki39
8bbda2ce34 fixup! S666LN: Build lib_driver_cmd_mt66xx
* Also set it as HOSTAPD_PRIVATE_LIB

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-18 19:18:31 +07:00
shirayuki39
d015be805b S666LN: BoardConfig: Drop --set-hashtree-disabled vbmeta flag
* We can boot fine without this, and also prevents tampering with our
  dynamic partitions

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 22:48:54 +07:00
KimelaZX
15976d3294 S666LN: Added Sepol for viper4fx
in old builds since version 8.0 processing no longer work, it come down to this sepol

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 22:48:48 +07:00
KimelaZX
bec998aef5 S666LN: Import missing libthha
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 22:48:26 +07:00
mikeNG
e66baeeb0c S666LN: Libraries are now automatically added to PRODUCT_PACKAGES
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 22:47:46 +07:00
fjrXTR
964d794067 S666LN: Rearrange Properties
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 22:45:49 +07:00
Jesse Hall
3444f9a70e S666LN: use hwui vulkan backend
The Vulkan backend is the intended production configuration and what we
shipped gs101 with.

Also checked remaining gpu configuration and minimized textual
differences from the gs101 device.mk for easier comparison.

Bug: 223406172
Test: Launcher, YouTube video playback, Pixel Camera preview & shot
Change-Id: I85e3c34ef424f7cef97bcfb6f5a10746fc0b9804
Signed-off-by: Ido <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2025-12-17 21:55:47 +07:00
fjrXTR
7912e4323c Revert "S666LN: powerhint: Kang powerhint from KJ7"
This reverts commit 6078edee3c.

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2025-12-17 21:55:31 +07:00
fjrXTR
3e1ebad4ab S666LN: init: power: Sync with LH7N trees
* i'm lazy to cherry-pick

Change-Id: I91b75a4dbee5d978d347c276a7c77f6ef0771308
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2025-12-17 21:55:14 +07:00
claxten10
7469bfddad S666LN: powerhint: End INTERACTION hint on EXPENSIVE_RENDERING
* When blur is being rendered, there's a possibility we tapped the screen
  while the blur is still shown, which overrides our EXPENSIVE_RENDERING
  CPU freq boosts with the values from interaction, which are lower.

* Ensure CPU freq. remain high during blur (or other expensive renders)
  by ending the INTERACTION hint.

test:
 - open qs (or other actions that produce blur)
 - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
 - should output 2000000
Change-Id: If0094c5e1013c092a057d66faa2d1280450523f4
Signed-off-by: claxten10 <claxten10@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 21:54:16 +07:00
Shirayuki39
56cd925097 S666LN: vendorsetup: Refactor vendorsetup.sh
* So if a patch fails, it won't leave source trees in a broken state

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 21:51:32 +07:00
KimelaZX
d9240de96c S666LN: Remove Product.prop
it is no longer used besides adding more bugs than it should.

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 21:49:57 +07:00
Shirayuki39
aebf004b15 S666LN: Remove deprecated config_mobile_tcp_buffers/networkAttributes
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 21:46:37 +07:00
Shirayuki39
41b3c5dc92 S666LN: Switch to stub libaedv
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 21:44:31 +07:00
Shirayuki39
b605d29b2b S666LN: Add 1080p60 for Aperture
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 21:41:03 +07:00
dns24
29852124ff S666LN: Added Fingerprint From Stock
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
2025-12-17 21:27:36 +07:00