Commit Graph

599 Commits

Author SHA1 Message Date
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
zeelog
b312920175 stone: overlay: enable config_ui_enableFadingMarquee
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:33:57 +00:00
kamikaonashi
46ee13c7aa stone: sepolicy: label fastcharge node
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:33:34 +00:00
Arijit78
ab473838ad stone: Add support for dolby
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-10 17:59:56 +00:00
Arijit78
d118a461e6 stone: vendorsetup.sh: Track v4a 2024-05-10 17:56:17 +00:00
Arijit78
b6245f24ee stone: init vendorsetup.sh
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-10 17:54:39 +00:00
TogoFire
5b6379c879 stone: sepolicy: add audioserver.te
to fix audio mods like dolby or viper4fx
2024-05-10 18:49:04 +02:00
kamikaonashi
78902c8026 stone: inherit Viper4FX if package exists 2024-05-10 18:47:41 +02:00
kamikaonashi
6180b366b5 stone: rootdir: give permissions to read fastcharge node
Co-Authored-By: Vedraj Gawas <82878564+gawasvedraj@users.noreply.github.com>
2024-05-10 18:46:47 +02:00
kamikaonashi
c206fe4117 stone: overlay: set correct fastcharge path
Co-Authored-By: Vedraj Gawas <82878564+gawasvedraj@users.noreply.github.com>
2024-05-10 18:45:32 +02:00
kamikaonashi
c94fb9cd8e stone: drop FM Radio temporarily
QPR2 made me big sad
it broke Fm Radio, so drop for now by kamikaonashi
2024-05-10 18:43:28 +02:00
jesec
eb0d435484 stone: overlay: Configure SQLite to operate in MEMORY mode 2024-05-10 18:42:39 +02:00
kamikaonashi
794a0e2904 stone: overlay: lower vibration strength 2024-05-10 18:40:58 +02:00