282 Commits

Author SHA1 Message Date
galadriel1402
322d479725 sweet: libinit: Drop NfcHandler from libinit
Change-Id: I2a3f67ae2b07e1594d7ac6d38d630b1833441094
Signed-off-by: galadriel1402 <galadriel1402@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
spkal01
bec5c3db94 sweet: libinit: Add support of .mod_device hides
Change-Id: I615bb3017f1f7757251ceed7312122b94fdb0641
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
galadriel1402
03020b1274 sweet: libinit: Set ro.product.name and ro.product.vendor.name
Change-Id: Ie5830e40e9721a9c98b9c55f8e88bbfab6a1cdbc
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
Sebastiano Barezzi
f1a3425044 sweet: Initial variant handler libinit
Change-Id: If7aceb3fd962eeeeb9fa6f13167b41dd875a0aa7
Co-authored-by: galadriel1402 <galadriel1402@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
Alcatraz323
c86d19e751 sweet: Build DSPVolumeSynchronizer
Change-Id: I46f37b21fc9f0dd7cfb7f1d72ebd07ae5375bb2f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
basamaryan
f0aadfa60b sweet: Inherit device/oneplus/dolby
Change-Id: I26fae5c3f0ab62445e628257943d7b6a48a2a478
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
therealmharc
ba508fb9b1 Revert "sweet: Add Dolby Atmos support [1/2]"
This reverts commit 94a2d2d549.

Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
Arian
f4b9b7ec70 sweet: Patch com.vidhance.node.eis.so to allocate GraphicBuffer with new size
Commit [1] ("Introduce a dependency monitor for fences") has added new
members to the GraphicBuffer struct, increasing the size from 0x100 to
0xd30. camera.xiaomi.so creates GraphicBuffer in its constructors using
"new GraphicBuffer(..)" which encodes the size to allocate at compile
time. Then, on destruction of the object, the implicit destructor will
try to destruct the new members, but, since this memory was not
allocated for the object, this leads to memory access of unallocated
storage.

F DEBUG   : backtrace:
F DEBUG   :       #00 pc 000000000003ba00  /vendor/lib64/libui.so (__aarch64_ldadd8_acq_rel+16) (BuildId: b577faa139eb3404c7d3a674b147634c)
F DEBUG   :       #01 pc 0000000000051364  /vendor/lib64/libui.so (android::GraphicBuffer::~GraphicBuffer()+248) (BuildId: b577faa139eb3404c7d3a674b147634c)
F DEBUG   :       #02 pc 0000000000051698  /vendor/lib64/libui.so (android::GraphicBuffer::~GraphicBuffer()+20) (BuildId: b577faa139eb3404c7d3a674b147634c)
F DEBUG   :       #03 pc 0000000000011064  /vendor/lib64/libutils.so (android::RefBase::decStrong(void const*) const+164) (BuildId: 99d1ab745e7b73420d8d2b397483ef54)
F DEBUG   :       #04 pc 00000000000cd538  /vendor/lib64/hw/camera.xiaomi.so (mihal::GraBuffer::~GraBuffer()+236) (BuildId: a4c59705588bd26d407f0ab181902baf)

[1]: df868baf2a

Change-Id: I239c31b6ea5a7813abc3e9cfbefb6d2bdcc1a9e0
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
zenzer0s
62c94dd951 sweet: Update surface flinger timers and disable content detection for refresh rate
- this prevents screen flicker causing due to rapid change in adaptive refresh rate

Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
therealmharc
07c435fcef Revert "sweet: properties: Disable content detection for refresh rate"
This reverts commit c04728fe8d7b9f5c82e9c8ec37aff94e970aab1c.

Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
rmp22
7ee3bb7a27 sweet: add target_ims_override flag
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
Sebastiano Barezzi
fc00311470 sweet: Drop 64-bit soundtrigger blobs
Change-Id: I85590f7ae7629e2088df951b55651b0fa9c1f90c
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
Sebastiano Barezzi
aa778f553e sweet: Remove unused libswvdec blob
libswvdec.so is no longer needed with the Codec2 media stack + this is a
OMX library which we already drop long ago.

Change-Id: I01a801148e4db65ff8e4357668c08abac8c9c7b2
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
therealmharc
f2f4b2efeb Revert "sweet: Import perf boost configs from vendor"
This reverts commit c2fd183d7ca1c1e6e201c1e3e07a67758269b896.

Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:44 +08:00
therealmharc
97ad4295ad sweet: setup dependencies
Signed-off-by: therealmharc <therealmharc@gmail.com>
2026-01-09 02:30:38 +08:00
therealmharc
31347a73ae sweet: Setup DeviceAsWebcam [1/2]
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
therealmharc
3f09ced1c3 sweet: Add Torch Strength support [1/2]
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
therealmharc
57bd82fae0 sweet: Add ViPER4AndroidFX support [1/2]
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
romiyusnandar
734f657643 sweet: Add Bypass Charging support [1/2]
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
therealmharc
54110ba528 sweet: initialize Evolution-X 11.x
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
Yahya Wessam
2b590106d8 sweet: switch to Spiteful kernel [1/2]
- defconfig: https://github.com/tbyool/android_kernel_xiaomi_sm6150/blob/16.0/arch/arm64/configs/sweet_defconfig

Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
eidawon
4cc2bb90a5 sweet: Add KProfiles support [1/2]
Signed-off-by: eidawon <projecteidawon@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
therealmharc
94a2d2d549 sweet: Add Dolby Atmos support [1/2]
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
kamleshhv
53235bff5d sweet: Add min and peak refresh rate option
- drop smooth display

Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
Adithya R
dcc5969fcf sweet: Drop soundtrigger HIDL impl
* breaks google voice match with pixelpropsutils as
   we don't have hotword enrollment support

Change-Id: I213626f9729e5ff47ce7e6c990d605ed669b97e3
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
AdarshGrewal
3f7b24dcc4 sweet: properties: Disable content detection for refresh rate
* Having this enabled makes vili fast switch randomly on loops from 120-60Hz, being so fast that our display doesn't have enough time to react, making garbage content to be shown, like a CRT on static...
So, for avoiding the "CRT bug", we disabled it for good:

Test: After disabling that, see if 120Hz seems stable and no glitches on display appeared
Results: 120Hz locked refresh rate when smooth display enabled, no CRT bug at all
To-do: Adjust idle timing, display in inactive likes to switch back and forth, not so fastly, but noticeable

Change-Id: I24641e8e3b6e9b80328cdf1c0fa65d9a16085acd
Signed-off-by: AdarshGrewal <adarshgrewal@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
anky894
a0aa628a70 sweet: Import perf boost configs from vendor
Change-Id: I53a2f94833924a04fd34101919e781b4c8dead0b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
Kyle Lin
6f5c8ec0b9 sweet: powerhint: add FIXED_PERFORMANCE
Bug: 153084443
Test: build and boot
Change-Id: Ib8a6244b85404841424ac7e8d6ff77523376778d
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
galadriel1402
c593366c84 sweet: powerhint: Disable high-cap boost when screen is off
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
Andrzej Perczak
fdeab87c41 sweet: powerhint: Disable prefer_idle when screen goes off
Stune prefer_idle minimizes wakeup latency and helps spreading all tasks
evenly across cores, however, it may increase energy consumption. To
minimize effect on battery disable it when screen goes off, this will
optimize task placement for energy.

Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Change-Id: I57c9820a8a3d8bff8efe6815bb9c053d1c3ff7d5
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
xNombre
876a6995c0 sweet: powerhint: Don't boost top-app when screen is off
When screen is off top-app cpuset is needlessly boosted
and can increase power usage. Add a power hint to zero
boost value when display is turned-off.

Reference: 772801bf8a/power/aidl/android/hardware/power/Mode.aidl (134)

Signed-off-by: xNombre <kartapolska@gmail.com>
Change-Id: I68f2fde8bdd2738e5da2b2af6fa9fb7a06604e3f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
galadriel1402
9c289210e7 sweet: Checkout with kiev powerhints
* Reference: https://github.com/LineageOS/android_device_motorola_kiev/blob/lineage-23.0/configs/power/powerhint.json

Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-12-14 22:49:08 +08:00
Pranav Vashi
c2e6f2c3fa sweet: overlay: Mark display cutout as not translatable
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 15:57:33 +00:00
Pranav Vashi
b9ae99763f sweet: Define AAPT config
Change-Id: I53efa96939b0fa0cbba065ed79d964cac9c1ad07
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 15:57:33 +00:00
Pranav Vashi
13f0771051 sweet: overlay: Reduce statusbar end paddings
Change-Id: I40b191d5490e6b9a00043be9a5a144e89e16c2c8
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 15:57:33 +00:00
raghavt20
d4604d0118 sweet: Set target display density to 410
Change-Id: I11cd2699e105148a8fd381ca8bc91840a53db66b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 15:57:33 +00:00
Arian
e15d64f9ce sweet: Bring back face detection libs
Change-Id: I50af944e9398eef352f72f4729999f8d0c556837
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 15:57:33 +00:00
Pranav Vashi
92420c6671 sweet: Update libarcsoft_super_night_raw compatible with camera package
Change-Id: I489f181c609a2cdf45fd766bc1e0b0f5eec1cfc5
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 15:57:33 +00:00
Arian
8e246fa93d sweet: Add MIUICamera support [1/2]
Change-Id: Ibb8e46c05c4e22e931337e08489677e14ebd72f0
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 15:57:07 +00:00
trpsl
429276cfc3 sweet: audio: add ACDB IDs for voice recording
Change-Id: I911491d186c85416ce6236ef5a253edc4badcc0b
Signed-off-by: trpsl <trpsl@pixelexperience.org>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-05 14:54:29 +00:00
Sourajit Karmakar
c2022b22aa sweet: power: Boost GPU when EXPENSIVE_RENDERING hints are parsed
* The powerhint configuration is really weird here. As it turns out,
  in commit [1], Google was probably testing the sm7150-aa and sm7150-ab
  for sunfish and for them, they couldn't find any common frequenices.
  Hence, they decided to use the pwr_levels of respective SoCs for boosting
  the GPU which in this case was very conviniently set to 0 which basically
  does no boosting. (Although that shouldn't actually be the case.) (Source:
  watch -n 0.5 the node in question)

* To get the frequencies available to userspace we cat the node:

  sweetin:/ # cat /sys/class/kgsl/kgsl-3d0/devfreq/available_frequencies
  180000000 267000000 355000000 430000000 565000000 650000000 800000000

* Snapdragon 732G at minimum frequencies can't handle blur very well. This
  should help a lot.

[1]: d564c5b2c3

Change-Id: I015c609b63d1eabe30e9774e23ea1796e6000fc4
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 15:02:18 +00:00
Alexander Winkowski
ab84d06a1e sweet: powerhint: Remove EnergyAware node
* Google removed this node in redbull.

Change-Id: Iaba137fdb02dddfad7815b7cb3a0701962a06832
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 15:02:18 +00:00
Subhajeet Muhuri
515b2f56a9 sweet: powerhint: Let CPUBW idle to 2288
Change-Id: I92b499fb492115317e40d904f781bc59481a0103
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 15:02:18 +00:00
Alexander Winkowski
2944336369 sweet: powerhint: Don't restrict CPU idle levels
The difference in wakeup latencies isn't so significant, let CPU cores enter
deeper idle states to save some power.

Change-Id: I9b24adc356bf35bbdc0bda6e0eee982b4daf1350
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 15:02:18 +00:00
Subhajeet Muhuri
0a644f80f7 sweet: powerhint: Remove unused nodes & hints
Change-Id: I976c877d0260ebce66a7a815f83c6513563dd34d
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 15:02:18 +00:00
Subhajeet Muhuri
6400ddd42c sweet: power: Remove audio hints
Change-Id: Ifb0e93f6856d9b3301c19a3f5321c933714f9b64
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 15:02:18 +00:00
Arian
70872e0ab5 Revert "sweet: power: Decrease launch boost to 3sec"
This reverts commit a0cc5fb715.

Change-Id: Ie6bf98c518a898fbde09a9aef7857da41ffeff04
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 15:02:18 +00:00
Bin
08b0e35987 sweet: Patch audio to load libaudioroute-v34.so
Change-Id: Idad20512982b8753820fffa6d956df137e462638
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 14:58:09 +00:00
basamaryan
5e67a4196c sweet: Run sort-blobs-list.py --dir-first
Change-Id: I41df550b7c7486623a25c8440a6a1428c2bf82f3
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 14:58:09 +00:00
shoya0x00
ee195f20f4 sweet: manifest: Commonize target-level
Change-Id: I14129505f78def5e0a305479c5436e8654462359
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-11-04 14:58:09 +00:00