Commit Graph

611 Commits

Author SHA1 Message Date
Bart Van Assche
127b4bc623 stone: rootdir: Restore I/O performance
As one can see in cfq_arm_slice_timer(), the CFQ I/O scheduler supports
two parameters that can make it delay I/O: group_idle and slice_idle.
Restore I/O performance by setting both the group_idle and slice_idle
parameters to zero.

Bug: 213617178
Bug: 313578691
Change-Id: I02429876790a6456ca957ff7c38f0c8bf88127f9
Signed-off-by: Bart Van Assche <bvanassche@google.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:50:08 +00:00
kamikaonashi
10bd2ae8df stone: overlay: kang statusbarpadding from alioth
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:49:48 +00:00
Arijit Saha
87f24c86ff stone: Remove typo 2024-05-26 20:08:31 +06:00
Arijit78
2b27db6359 stone: Build FrameworksResTargetOverlayStone 2024-05-26 14:00:12 +00:00
Arijit78
da6334aa46 stone: Drop remove package 2024-05-26 13:58:16 +00:00
kamikaonashi
53ebaeb028 stone: configs: tune powerhint.xml
adjust sustained performance mode for Snapdragon 4 Gen 1 to 2.0Ghz CPU and 825Mhz GPU and Snapdragon 695 2.2GHz CPU and 825Mhz GPU max frequencies
2024-05-26 12:42:21 +00:00
Michael Bestas
8e6b089741 stone: gps: Reduce LOWI debug level
Kill logcat spam
2024-05-26 12:42:21 +00:00
ghostride-reborn
0414cbb1cd stone: properties: Relax refresh rate timers 2024-05-26 12:42:21 +00:00
ralph950412
b795cbe07e stone: remove libtinyxml
It's deprecated and not being built.
2024-05-26 12:42:21 +00:00
minaripenguin
46b1c2d34d stone: properties: Set frame rate multiple threshold to 60
If the device only have 60 and 120 Hz in the config group, 60 Hz won't be
used when watching a 24 fps video and instead 120 Hz will be used because
it is perfectly divisible by 24.

This is a publicly documented AOSP behavior [1], but it simply does not
make any practical sense and trades off significant amount of power for a
very-hard-to-notice jitter-free experience.

Set debug.sf.frame_rate_multiple_threshold to 60 by default to limit this
behavior to 60 or lower fps.
2024-05-26 12:42:21 +00:00
kamikaonashi
77dfeff42a stone: properties: silence battery logspam
-we cant fix for now, so silence them has no impact in user experience, just cleaner logs.
2024-05-26 12:41:39 +00:00
kamikaonashi
6ce7538692 stone: overlays: soften autobrightness adjustement 2024-05-26 12:38:31 +00:00
Edwin Moquete
5fc3e29f1a stone: properties: Disable display refresh rate override
This got enabled by default on U, and it causes apps like
Chrome and Youtube to set the refresh rate to 30FPS when
playing some videos.
2024-05-26 12:38:31 +00:00
zmafnan
f381484181 stone: properties: Better RAM Management
useful for 4GB users
2024-05-26 12:38:09 +00:00
kamikaonashi
adef196db8 stone: overlays: add back refresh rate overlays 2024-05-26 12:37:17 +00:00
Bruno Martins
fe35e24ed5 stone: Remove deprecated trust HAL
Change-Id: Ic5ac79b4ca60b87a97622877b97f806c07cab907
2024-05-26 12:34:35 +00:00
ROMSG
753c3ae1a0 stone: rootdir: switch to LMKD 2024-05-26 12:34:35 +00:00
kamikaonashi
d6907e8e60 stone: rootdir: increase swappiness 2024-05-26 12:34:35 +00:00
Cassie
70d24deced stone: overlay-lineage: Use the new auto network selection UI
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 08:21:28 +00:00
Alan Chen
83754d38e2 stone: wifi: Enable Optimized Power Management
gEnablePowerSaveOffload was renamed to gOptimizedPowerManagement

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

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 08:11:12 +00:00
me-cafebabe
72ac12a592 stone: rro_overlays: Enable all available vibration intensity
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 08:00:30 +00:00
justinweng
6d09aa327f stone: Extend audio offload buffer size to 256kb
Extend buffer size for offload playback to reduce the frequency of CPU
wake up.
It makes ADSP to process more data one time and reduce the number of
times to wake up CPU.

Bug: 137973303
Test: MP3 playback

Change-Id: Ib0b2a8827647ed780bb20bd9dfa2a383153eb282
Signed-off-by: justinweng <justinweng@google.com>
Signed-off-by: xNombre <kartapolska@gmail.com>
Signed-off-by: Pascoato <viniciuspascoato@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 07:55:42 +00:00
theangelofdead01
df1e376e6f stone: rootdir: Remove some data cache
fix some string issues on dirty flash update ROM zips

Signed-off-by: saikiran2001 <bjsaikiran@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 07:51:54 +00:00
Dan Pasanen
c831a2fcb4 stone: overlay-lineage: Enable config_vibrateOnIconAnimation
* Need those sexy vibes.

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 07:42:54 +00:00
0mar99
d4a680d418 stone: audio: Enable 24-bit support for wired headphones
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 07:37:16 +00:00
HDzungx
b7d4f3cd13 stone: rro_overlays: Init FrameworksResTargetOverlayStone
- also enable config_supportSmartPixels

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-26 07:23:06 +00:00
Vedraj Gawas
2a41f3bed3 stone: rro: update status bar padding
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-20 15:36:27 +00:00
Arijit78
fc561bd513 Revert "stone: rro: update status bar padding"
This reverts commit 10eb0afcdc.
2024-05-20 15:32:42 +00:00
Vedraj Gawas
10eb0afcdc stone: rro: update status bar padding
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-17 12:09:32 +00:00
Vedraj Gawas
a5dcd1729a stone: drop unnecessary values related to soc
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-17 12:06:57 +00:00
Vedraj Gawas
a775cc6bc5 stone: libinit: spoof build keys to release-keys
ROMs like LOS use test-keys by default if compiled unofficially. It needs edit in source to always use release-keys. We use libinit to spoof these keys at init stage.

Co-authored-by: Richard Raya <rdxzv.dev@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-17 12:06:42 +00:00
kamikaonashi
b88999e6c4 stone: sepolicy: fix fastcharge path denial
05-13 23:40:11.415  1395  1395 W binder:1395_1C: type=1400 audit(0.0:295): avc:  denied  { open } for  path="/sys/devices/platform/soc/4c84000.i2c/i2c-1/1-006a/power_supply/usb/quick_charge_type" dev="sysfs" ino=61529 scontext=u:r:system_server:s0 tcontext=u:object_r:vendor_sysfs_usb_supply:s0 tclass=file permissive=0
05-13 23:40:11.417  1395  8245 E BatteryService: Failed to read oem fast charger status path: /sys/class/power_supply/usb/quick_charge_type

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-17 12:06:09 +00:00
kamikaonashi
480e88c7b3 stone: properties: drop soc model
not needed after detection

d661cca81a8e2898a08f1add97f65cdd52218c2e

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-13 15:54:06 +00:00
Arijit78
1ca0b58eb9 stone: device.mk: Remove if-exists
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:52:19 +00:00
Arijit78
6c3c66ea60 stone: Official ProjectMatrixx BringUp 2024-05-12 17:50:40 +00:00
kamikaonashi
93014690de stone: overlay: increase vibration intensity
20 is a little too low for my liking, increase to 25

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:46:05 +00:00
kamikaonashi
9677e9803a stone: dont let manifest be overwritten
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:45:51 +00:00
Vedraj Gawas
5ffb05bb15 stone: rro: update status bar padding
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:45:40 +00:00
Vedraj Gawas
11d81098a3 stone: libinit: properly detect SoC
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:45:27 +00:00
kamikaonashi
422c71f91d stone: properties: enable fastcharging logs
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:44:48 +00:00
kamikaonashi
f81a8cbdd1 stone: rro_overlays: rename to *Stone
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:44:06 +00:00
Pranav Vashi
2a95bfb8a8 stone: overlay: fix mA and W reading
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:43:50 +00:00
kamikaonashi
df8ffa36ab stone: sepolicy: fix fastcharge denial warning
W fastcharge@1.0-: type=1400 audit(0.0:74): avc:  denied  { execute_no_trans } for  path="/vendor/bin/sh" dev="dm-3" ino=269 scontext=u:r:hal_lineage_fastcharge_default:s0 tcontext=u:object_r:vendor_shell_exec:s0 tclass=file permissive=0

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:37:16 +00:00
kamikaonashi
9895916d6b stone: overlay: adjust Fingerprint indicator
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:37:03 +00:00
Pranav Vashi
815072f2e2 stone: overlay: use appropriate charging thresholds
* Our device directly measures in mA and not uA.
* This fixes "Charging Rapidly" info on lockscreen.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:35:35 +00:00
kamikaonashi
5cea314444 stone: overlay: fix lockscreen statusbar padding
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:35:20 +00:00
xNombre
c3320df59e stone: props: Enable HWUI render ahead
Render ahead takes a little more memory but makes UI much smoother.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:35:07 +00:00
kamikaonashi
2303ff6917 stone: fastcharge: add IRestrictedCurrent
add IRestrictedCurrent to stop log spam

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:34:50 +00:00
kamikaonashi
2d0db29629 stone: fastcharge: adapt for stone
since our device doesnt have a fastcharge path (due to broken kernel source), we just adapt and stop and start batteryservice. rewritten to do exactly that

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:34:29 +00:00
kamikaonashi
60e7152649 [SQUASH] stone: fastcharge implementation
this commit contains following commits to introduce the fastcharge toggle for stone device that use this tree

they were renamed from sm8250-common to stone

 sm8250-common: 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>

6510782439

 sm8250-common: fastcharge: Make user setting persistent

Change-Id: I4ff051d6f9685e94022eab32035bfe86a65264b8
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>

e050f0dab0

 sm8250-common: fastcharge: Use pragma once

Change-Id: I9a9e193a6f66f045f41394d059af8b71778e8d72

ff8e5f6173

 sm8250-common: fastcharge: Migrate to blueprint

Change-Id: I200fd6c685183c98f0815b207adae5aa75a37238

4e0d22f486

sm8250-common: Build fastcharge implementation
Change-Id: I3e6994d2c2f419dc8ce98a060204fda3dd16df81

136d369c4e

sm8250-common: Sepolicy: Label FastCharge more general

7a619945ca

sm8250-common: Sepolicy: Fastcharge: Provide needed permissions

https: //github.com/kamikaonashi/device_xiaomi_sm8250-common/commit/298ff28a2ab9c04f953780958de6a8971a947c51

batterysecret hack
51ebc8de81

Co-Authored-By: Ivan Martynov <johnivan19999@gmail.com>
Co-Authored-By: Bruno Martins <1696148+bgcngm@users.noreply.github.com>
Co-Authored-By: Francescodario Cuzzocrea <bosconovic@gmail.com>
Co-Authored-By: Davide Garberi <dade.garberi@gmail.com>
Co-Authored-By: Mohammed Althaf Thayyil <me@althafvly.com>
Co-Authored-By: blazerpaul15 <107421375+blazerpaul15@users.noreply.github.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:34:11 +00:00