682 Commits

Author SHA1 Message Date
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
Bruno Martins
2c862f0643 stone: overlay: remove obsolete keyboardTapVibePattern 2024-05-10 18:40:23 +02:00
kamikaonashi
9326fe03c2 stone: properties: remove duplicate fm prop
defined in odm prop
2024-05-09 22:20:14 +02:00
kamikaonashi
7a3db79ddc stone: properties: fix bluetooth.soc name 2024-05-09 22:19:52 +02:00
kamikaonashi
47cf5c1cea stone: nuke thermal 2.0 service hals
Crash:
    - E android.hardware.thermal@2.0-service.qti: ThermalHAL not initialized properly.
    - E ThermalHalWrapper: Couldn't get temperatures because of HAL error: ThermalHAL not initialized properly.
2024-05-09 22:12:10 +02:00
John
61ced3eee4 stone: Build extphonelib 2024-05-09 22:06:15 +02:00
kamikaonashi
05456f0cf1 stone:sepolicy: fix hal_lineage_health missmerge 2024-05-09 21:54:02 +02:00
kamikaonashi
71b4d645e0 stone: sepolicy: allow power_supply/usb 2024-05-09 21:53:26 +02:00
kamikaonashi
a5e2c0a2a0 stone: update blobs to moonstone hyperos 1.0.3.0 2024-05-09 16:49:42 +02:00
kamikaonashi
71b5206a9e stone: properties: drop disable_backpressure
causes more harm than good
2024-05-09 14:40:46 +02:00
kamikaonashi
cb9bdce6e3 stone: properties: disable hwc_vds 2024-05-09 14:40:20 +02:00
kamikaonashi
09a254d358 stone: sepolicy: allow HBM to write brightness
this fixes crash of settings when turning on HBM
2024-05-09 12:22:59 +02:00
kamikaonashi
e8b3711321 stone: audio: drop FM tuner from voip_tx and primary input 2024-05-09 11:43:19 +02:00
Vedraj Gawas
4fc70bca1b stone: properties: Silence LSPosed log tags 2024-05-09 11:43:19 +02:00
kamikaonashi
bede765fbe stone: properties: set 20% margin 2024-05-09 11:43:19 +02:00
kamikaonashi
c6b297982d stone: properties: drop force triple frame buffers 2024-05-09 11:43:19 +02:00
Tommaso Fonda
71b5458996 stone: Silence spammy log tags 2024-05-09 11:43:19 +02:00
Tommaso Fonda
16bae52712 stone: gps: Use GrapheneOS's SUPL server 2024-05-09 11:43:19 +02:00