Commit Graph

447 Commits

Author SHA1 Message Date
LuK1337
52b78707e3 sapphire: wifi: Enable DFS channel scanning in P2P search
* Fixes P2P when connected to 5GHz access point.

Change-Id: I31890645510931c7e7a65759c915a09fec77a1cf
2024-09-03 15:54:56 +06:00
Luk1337
7446da0e0b sapphire: wifi: Disable RX wakelock feature 2024-09-03 15:54:56 +06:00
Alan Chen
3e6682439b sapphire: wifi: Enable Optimized Power Management
- This config was renamed as of CLO commit [1] and [2].

[1]: 10989ba376
[2]: 9ef1447db3

Change-Id: Ie6ffbeebb45e5dd97b98592b7dfc195a4fb7045d
2024-09-03 15:54:56 +06:00
Alex Naidis
d0089d7f92 sapphire: wifi: Smarter decisions on whether to use a 2 or 5Ghz AP
Implement a smarter system on whether to connect
to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2024-09-03 15:54:56 +06:00
Sunil Ravi
f42007a553 sapphire: wifi: Disable TDLS offchannel
TDLS off-channel feature is needed only for
certification. Disable the feature in production
builds.

Bug: 161320896
Test: Basic wifi sanity test.
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-09-03 15:54:56 +06:00
Yaroslav Furman
e1420746d9 sapphire: wifi: Disable all logging 2024-09-03 15:54:56 +06:00
Jabiyeff
198a820573 sapphire: props: Force disable iorapd
* Its eating more RAM and slowdown device
* Thanks for CAFEBABE find this
2024-09-03 15:54:55 +06:00
romgharti
82e3d6a662 sapphire: Remove ro.vendor.perf.scroll_opt
- Fixes some scroll lags and system ui

Signed-off-by: romgharti <romgharti@gmail.com>
Signed-off-by: kssrao13882 <kssrao13882@gmail.com>
2024-09-03 10:54:50 +06:00
srfarias
56723b83c4 sapphire: overlay: Make the UI smoother
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-03 10:54:50 +06:00
Terminator-J
36f5c2f84b sapphire: overlay: Offload WM shell to another thread
Reduces jitter/jank when pulling down shade
2024-09-03 10:54:50 +06:00
Jyotiraditya
e13d27c68d sapphire: Enable config_avoidGfxAccel
- This flag turns off GPU/CPU intensive UI effects and
  reduces the RAM footprint.

- Using this is a better compromise than the 'low_ram' flag
  as this does not disable features in the rom but still
  reduces RAM usage and gives better smoothness in the UI.

Signed-off-by: Pascoato <viniciuspascoato@gmail.com>
2024-09-03 10:54:50 +06:00
PainKiller3
bdf1b76187 sapphire: props: Disable vsync for CPU rendered Apps
* Choreographer VSync has some performance impact for CPU rendered apps
as the app has to wait for VSync to start a new frame draw. When the
frame draw time exceeds one VSync, this has a direct impact on the FPS.
debug.cpurend.vsync property controls the VSync for CPU rendered apps.

Disable VSync for CPU rendered app, by setting this property to false.
2024-09-03 10:54:50 +06:00
Adithya R
10477a8bb8 sapphire: overlay: Disable alpha compositing in WM
* Completely eliminates occasional jank in few animations
2024-09-03 10:54:50 +06:00
Midas Chien
149f01b71c sapphire: Don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-02 21:01:49 +06:00
minaripenguin
85bfb334cb sapphire: properties: Add touch improvements props
[1]: https://github.com/RisingTechOSS/android_frameworks_native/blob/thirteen/services/inputflinger/reader/InputReader.cpp
[2]: https://github.com/RisingTechOSS/android_frameworks_native/blob/thirteen/services/inputflinger/reader/mapper/TouchInputMapper.cpp
[3]: https://forum.xda-developers.com/t/possible-fix-for-touchscreen-issues-misses-updated-08-29.3172100/
2024-09-02 21:00:03 +06:00
KARTHIK LAL
e9de88af95 sapphire: Add props to improve battery backup 2024-09-02 18:31:03 +06:00
Jeferson Oliveira
ab43925309 sapphire: rootdir: Restrict apps access to /proc/net/unix
* Banking apps read the file /proc/net/unix to
  check system modifications, (in our case, custom rom)
  Let's avoid this by chmod it 440.

Test: Install a banking app as of Brazilian Nubank or PicPay, login.
Observed no side effects on any other proccess or apps

Change-Id: I12a356b7fe827ee005848108e2075534c7ec91bc
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2024-09-02 18:31:03 +06:00
Matthew Bouyack
10f5e380e3 sapphire: props: Disable SF backpressure
* Dropping debug.sf.enable_gl_backpressure

Signed-off-by: Charsi-Tejas <tejas@m.ms.evolution-x.org>
2024-09-02 18:31:03 +06:00
Vishalcj17
2e364e81f2 sapphire: Do not use phase offsets as duration.
- SurfaceFlinger Durations work fine in some scenarios like during
fling, browsing on chrome and etc. But it breaks HWUI graph during
activities like scrolling or JankBench tests, even when the the
governor is set to performance.

Test- Open UIBench.apk and look for jitter
Fixes- Total duration in UIBench. Major reduction from 11ms to 6ms on sm6150
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>

Change-Id: Ic1bf9d6ffbf57a2132a2dc6bedd0bcc136768502
2024-09-02 18:31:03 +06:00
kibria5
c426eaa8f8 sapphire: Remove Smooth display toggle 2024-09-02 16:33:06 +06:00
Michael Bestas
4342e30260 sapphire: Enable peak refresh rate toggle in Settings
Devices supports switching between 60 and 120 Hz refresh rates,
so let's expose it in Settings -> Display -> Peak refresh rate for users to save
battery if necessary.

Test: visual confirmation after toggling several times
Change-Id: Ia206c495e3f40f583f8cd35e7753c30a5e917656
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
2024-09-02 16:33:06 +06:00
Ali Hasan
0e75d4142c sapphire: Reduce corner paddings
Signed-off-by: Ali Hasan <ahb7671@gmail.com>
2024-09-02 16:31:13 +06:00
kibria5
7fada8e15e sapphire: Welcome to Evolution X 9.x
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-02 16:31:13 +06:00
Mohammad Kibria
8c51f39187 sapphire: overlay: Pin SystemUIGoogle 2024-09-02 16:31:00 +06:00
Nem1xx
39122be53d sapphire: Add config_wallpaperMaxScale overlay
* This should fix QS lag when pulling it down
2024-09-01 14:13:40 +06:00
kibria5
7dca0307c6 sapphire: Explicitly disable "Enable GL comp backpressure"
When blur is enabled,
There is severe lag in; Launcher3 while scrolling apps in App drawer, Scrolling through recents and occasionally on QS pull down.

Enabling or completely removing the prop here d6233e0e7c doesn't seem to make an effect.
Explicitly disabling the "Enable GL comp backpressure" prop seems to slove the issue.

Lag & janks are gone now, even with blur.

Signed-off-by: helliscloser <mrumais@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Coptan99 <omarcoptan9@gmail.com>
2024-09-01 14:13:40 +06:00
Alex Sarraf
b0a9c296d6 sapphire: display: 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.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
2024-09-01 14:13:40 +06:00
yoriscape
1a852d1d67 sapphire: Sepolicy: Define sysfs_battery_supply
device/xiaomi/munch/sepolicy/vendor/hal_health_default.te:4:ERROR 'unknown type sysfs_battery_supply' at token ';' on line 144639:
allow hal_health_default sysfs_battery_supply:dir { open getattr read search ioctl lock watch watch_reads };
allow hal_health_default sysfs_wakeup:file { getattr open read ioctl lock map watch watch_reads };
checkpolicy:  error(s) encountered while parsing configuration
2024-09-01 14:13:16 +06:00
kamikaonashi
fba0be0b08 sapphire: rootdir: Give permission to restricht_chg
Co-Authored-By: Tofu <ralph950412@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:16 +06:00
johnmart19
50e5c5b5a3 sapphire: sepolicy: Provide fastcharge needed permissions
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:16 +06:00
johnmart19
84ffff805c sapphire: sepolicy: Label fastcharge more general
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:16 +06:00
althafvly
5759b5e1b7 sapphire: Build fastcharge implementation
Change-Id: I3e6994d2c2f419dc8ce98a060204fda3dd16df81
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:16 +06:00
Davide Garberi
c0aa443540 sapphire: fastcharge: Migrate to blueprint
Change-Id: I200fd6c685183c98f0815b207adae5aa75a37238
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:15 +06:00
Bruno Martins
1e26aab05f sapphire: fastcharge: Use pragma once
Change-Id: I9a9e193a6f66f045f41394d059af8b71778e8d72
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:15 +06:00
Bruno Martins
aa1b7fbe84 sapphire: fastcharge: Make user setting persistent
Change-Id: I4ff051d6f9685e94022eab32035bfe86a65264b8
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:15 +06:00
Francescodario Cuzzocrea
c5b608a66d sapphire: Add fastcharge implementation
* Disabling fast charge may be useful for reducing the heat produced by the device while charging, or for extending the lifespan of the battery

 * This commit introduces the fastcharge HIDL, which writes in the node

              /sys/class/qcom-battery/restrict_chg

   0 or 1 depeding on user selection.
   0 means that fastcharge is enabled, while 1 means that fastcharge is
     disabled

Change-Id: I369ba9c437b3a83a88c2ce74d603b7d7ddd9cfbb
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: althafvly <althafvly@gmail.com>
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:15 +06:00
Michael Bestas
025a397d2f sapphire: overlay: Enable battery cycle count
Change-Id: I1653751cb98659ad32708d0c7487b9b2b66c51e8
Signed-off-by: artemscine <artempemine@gmail.com>
2024-09-01 14:13:15 +06:00
onettboots
441685f775 sapphire: Limit max refresh rate on lockscreen
Signed-off-by: Omar Mohamed <omarcoptan9@gmail.com>
2024-09-01 14:13:15 +06:00
Elias Dimopoulos
24fbbd97e1 sapphire: overlay: Lower UDPFS enroll bar radius
It used to overlap with the gesture pill

Change-Id: Ief5d9a122a8b07b6c602c9a84ed516b7ad0c569c
Signed-off-by: Elias Dimopoulos <linkdevel@protonmail.com>
Signed-off-by: Omar Mohamed <omarcoptan9@gmail.com>
2024-08-31 16:41:11 +06:00
Omkar Chandorkar
c7a323613a sapphire: overlay: Move UDFPS enroll radius to settings
- required after LineageOS/android_packages_apps_Settings@af35c7c

Change-Id: I79ecd91513df0d195e1d15d20b4438d1b283743f | AOSP
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: Omar Mohamed <omarcoptan9@gmail.com>
2024-08-31 16:41:11 +06:00
AdarshGrewal
184a97491f sapphire: Include MiuiCamera if exists
Signed-off-by: artemscine <artempemine@gmail.com>
2024-08-31 16:41:11 +06:00
Pranav Vashi
7d3450063c sapphire: Switch to jemalloc for libc
* Benchmark shows improvement.

Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-08-31 16:41:11 +06:00
Pranav Vashi
e0193ac529 sapphire: Use jemalloc to fix camera
[Kondros1995] We dont have this issue with MIUI camera port but lets have it just to be safe

Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-08-31 16:41:11 +06:00
Arian
15ca4284f7 sapphire: Enable camera override format from reserved
This enables qcom additions for high framerate videos.

Change-Id: I572d35c6454711e838b2d0dba31551627d10f6e6
2024-08-31 16:41:11 +06:00
Jesse Chan
e2e1bd7f6d sapphire: overlay: configure SQLite to operate in MEMORY mode
This change yields considerable SQLite performance gains. It
should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.

Change-Id: I541709fc771d4b501b56b8555e5e8a04486d0293
2024-08-31 16:41:11 +06:00
Jake Weinstein
d937d65ae7 sapphire: props: Rename property to disable MTE in system_server
Matches Android 14 D1

commit 6d9f5fc6ee46136163be16ec53cc70b4cba02c83
Author: Evgenii Stepanov <eugenis@google.com>
Date:   Fri Jun 16 16:47:21 2023 -0700

    Rename sysprop for MTE mode in system_server.

    Move the system property that controls MTE mode in system_server out of
    arm64.memtag.process namespace. Process sysprops affect the MTE mode of
    any process with the given name; using such property in a product means
    that any process or test unfortunately named "system_server" would be
    affected.

    Bug: 280343521
    Test: debuggerd `pidof system_server` | head -30 | grep tagged_addr
          affected by the new property
          not affected by the old property

Signed-off-by: angelomds42 <angelomds42@gmail.com>
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2024-08-31 16:41:11 +06:00
Michael Bestas
a6791f4d37 sapphire: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2024-08-31 16:41:11 +06:00
Rheygine Medel
3412be9506 sapphire: Disable blur on app launch
This change adds the system property that disables blur during app
launch.
2024-08-31 16:41:11 +06:00
pkm774
ee5c1c1ce1 sapphire: Disable slow blur effect to avoid laggish blur effect 2024-08-31 16:41:11 +06:00
saikiran2001
bb5e7b80b9 sapphire: Guard vendor_subsystem_ramdump in user builds 2024-08-31 16:41:11 +06:00