Commit Graph

433 Commits

Author SHA1 Message Date
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
mukesh22584
6e00b1dfb7 sapphire: Exclude recovery from rom zip 2024-08-31 16:41:11 +06:00
Mohammad Kibria
6dbf556de4 sapphire: sm6225-common -> sapphire 2024-08-31 16:41:11 +06:00
itsnouralawad
49a3228e81 sm6225-common : Update from V816.0.6.0.UMGIDXM 2024-08-31 16:41:11 +06:00
itsnouralawad
7ba4522d09 sm6225-common : SQUASH : Use common Dolby package , Unpin Dolby blobs , Re-Enable volume leveler 2024-08-31 16:41:11 +06:00
SamarV-121
92aba79263 sm6225-common: Disable continuous transaction tracing on all build types
Change-Id: I95657a00e38f1229675682e784b20cca12c119b0
2024-08-31 16:41:10 +06:00
Jens Reidel
2347f17fd2 sm6225-common: rootdir: Enable mgame mi_thermald mode
Out of all the modes that run the CPU at advertised speeds without
underclocking, mgame has the most conservative thermal limits.

Change-Id: I491f608a7be5c9497c70b3e49501d7abf58a980c
2024-08-31 16:41:10 +06:00
artemscine
93cfa1d655 sm6225-common: Set dynamic partitions values according to stock
Change-Id: I56d735d102fb618bb2263c926078c7a022e55278
2024-08-31 16:41:10 +06:00
itsnouralawad
c2e53b362b sm6225-common: Disable Audio compression 2024-08-31 16:41:10 +06:00
Fabian Leutenegger
9670945684 sm6225-common: Patch displayfeature.default.so to use v33 libstagefright_foundation
* this fixes a fatal crash within displayfeature that prevented it from starting

Change-Id: Ic102dc1fb5b27a849b55253d8b81828efd15c1fa
2024-08-31 16:41:10 +06:00
Ali Hasan
c20d5c471d sm6225-common: overlay: Update CarrierConfig from V14.0.14.0.TMTMIXM
Change-Id: I937a6e595b4c2ca250eca3316b366dd296748eb6
2024-08-31 16:41:10 +06:00
chandu078
12e63d1c6a sm6225-common: blobs: Update IMS system from T1TBS33.32-8-9-7-2
* Match with LA.QSSI.13.0.r1.11.00.00.913.072.01 QSSI tag.

Change-Id: I8b3a4a5bbeadeb9b36dc1e04f8ecdb08d3c231cf
2024-08-31 16:41:10 +06:00
itsnouralawad
f41565c3a1 sm6225-common : Remove blur 2024-08-31 16:41:10 +06:00
itsnouralawad
92a5b013d6 sm6225-common : Move deprecated blobs to prebuilt 2024-08-31 16:41:10 +06:00
kssrao13882
bc8369eea1 sm6225-common: overlay: Add CPU temperature divider
Change-Id: Iac249c840b81d5421d5484cfd4bc6b7f516ab68d
2024-08-31 16:41:10 +06:00