Commit Graph

49 Commits

Author SHA1 Message Date
Sugakesshaa
28ccfda792 stone: switch with oos libperfmgr
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:42:45 +00:00
bgcngm
689e6af2a2 stone: Convert WiFi firmware symlinks to install_symlink targets
The last bit that was preventing building hermetic images.

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:42:31 +00:00
bgcngm
9c4da389cf stone: move to new RFS install_symlink targets
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:42:16 +00:00
kamikaonashi
674ae59c00 stone: build FM again
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-08-03 02:41:46 +00:00
Arijit78
2421d6ce33 stone: Official EvolutionX BringUp 2024-07-16 11:30:10 +00:00
Michael Bestas
77befcb086 stone: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:51:07 +00:00
AnaadiAnanta
530c5ec6ef stone: Drop duplicate libjson
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:50:50 +00:00
althafvly
666717ef79 stone: Add libpiex_shim for com.mi.node.mialgocontrol.so
Change-Id: I9e8b125ab5dfaa325db63b02a7fcf51577ee7b0d
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:50:11 +00:00
Chirayu Desai
c27b05070d stone: Disable UFFD GC
Unable to determine UFFD GC flag for kernel version "5.4.268-qgki".
You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true" or
"false" based on the kernel version.
1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports userfaultfd(2)
   and MREMAP_DONTUNMAP.
2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise.

Change-Id: Ie77d9a86a7fe94e4cade1868ffea27194f724e03
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-07-06 06:48:33 +00:00
AnaadiAnanta
396e945c9c stone: configs: Import display config
from moonstone V816.0.5.0.UMPMIXM

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-06-15 18:50:54 +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
ralph950412
b795cbe07e stone: remove libtinyxml
It's deprecated and not being built.
2024-05-26 12:42:21 +00:00
Bruno Martins
fe35e24ed5 stone: Remove deprecated trust HAL
Change-Id: Ic5ac79b4ca60b87a97622877b97f806c07cab907
2024-05-26 12:34:35 +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
kamikaonashi
f81a8cbdd1 stone: rro_overlays: rename to *Stone
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-12 17:44:06 +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
Arijit78
ab473838ad stone: Add support for dolby
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-10 17:59:56 +00:00
kamikaonashi
78902c8026 stone: inherit Viper4FX if package exists 2024-05-10 18:47:41 +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
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
a35b04a79f stone: overlay: Switch to RRO Overlay 2024-05-09 07:50:57 +02:00
Arijit78
28d0f8e5aa stone: Include Leica Miui Camera 2024-05-08 15:54:58 +02:00
TheStrechh
8fc8b47092 stone: Add missing packages for camera
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-08 15:54:44 +02:00
kamikaonashi
bceafcd0eb stone: uprev Audio Hal to 7.0 2/2
part 1 2bd0ed7
2024-05-08 15:34:47 +05:30
kamikaonashi
e97af5a728 stone: link to prebuilt kernel-headers 2024-05-08 15:34:46 +05:30
Giovanni Ricca
451f3b0921 stone: Build goodix lib from source
Change-Id: Ibaf1b9489b509318032c720c9c83e315cfe6ab3e
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:12:55 +02:00
basamaryan
a76e77cb19 stone: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
Signed-off-by: mukesh22584 <mks22584@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2024-05-07 23:11:58 +02:00
kamikaonashi
f50d736549 [SQUASH] stone: configs: add media_codecs from stock holi config and build codecs
enables secure streaming on some streaming apps.
2024-05-07 23:04:59 +02:00
Bruno Martins
f18c331af6 stone: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.
2024-05-07 22:57:51 +02:00
Flower sea
7109ac5201 stone: rootdir: move init.xiaomi.rc to rootdir
since we dropped init and switch to libinit implementation, lets push init.xiaomi.rc to rootdir
2024-05-07 22:57:05 +02:00
kamikaonashi
a5b3ae5923 sm6375-common: audio: import mixer_paths.xml from stock
extracted from moonstone 14.0.6.0
2024-05-07 22:52:00 +02:00
kamikaonashi
1f9df34613 sm6375-common: set ART debug to release mode 2024-05-07 22:51:53 +02:00
kamikaonashi
1eb9cedb9a stone: switch to AOSP Wifi Display 2024-05-07 22:50:25 +02:00
kamikaonashi
d3eeac4cd2 sm6375-common: add remove_packages and make it optional
set new flag TARGET_DEBLOAT for optional remove_packages
this may be useful to debloat updater for unofficial roms. you can expand the list for any package, just write them in the Android.mk of remove_packages folder

Co-Authored-By: Michael Bestas <mikeNG@users.noreply.github.com>
2024-05-07 22:46:51 +02:00
kamikaonashi
594ff27184 sm6375-common: build libstdc++_vendor 2024-05-07 22:40:32 +02:00
Shinjo Akane
fd87f8ba11 sm6375-common: Build libprotobuf from source 2024-05-07 22:40:25 +02:00
kamikaonashi
17e30d6474 sm6375-common: import XiaomiParts and adapt for stone
imported and adapted xiaomiparts from https://github.com/AlphaDroid-devices/device_xiaomi_sm8350-common/tree/alpha-13/parts

with thermal profiles, per app refresh rate, speaker cleaner
2024-05-07 22:40:18 +02:00
kamikaonashi
94d0958333 stone: call audio_effects.xml 2024-05-07 22:37:28 +02:00
kamikaonashi
1106931b5e stone: call audio_io_policy.conf 2024-05-07 22:19:09 +02:00
Sarthak Roy
84b7cbb2fb sm6375-common: Switch to Wifi service AIDL
Signed-off-by: JaswalAshish <ashish@m.ms.evolution-x.org>
2024-05-07 22:15:19 +02:00
Pascoato
669ff0ae98 sm6375-common: Build android.hardware.power@1.2
- Fixes: I hwservicemanager: getTransport: Cannot find entry android.hardware.power@1.2::IPower/default in either framework or device VINTF manifest.

Signed-off-by: anandhan07 <anandhasayanan007jb@gmail.com>
Signed-off-by: JaswalAshish <ashish@m.ms.evolution-x.org>
2024-05-07 22:12:58 +02:00
rdx420
9601361f5f sm6375-common: Build vendor.xiaomi.hardware.mlipay@1.0
* CANNOT LINK EXECUTABLE /vendor/bin/mlipayd@1.1: library vendor.xiaomi.hardware.mlipay@1.0.so not found: needed by main executable

Signed-off-by: rdx420 <padraramesh420@gmail.com>
2024-05-07 22:03:58 +02:00
kamikaonashi
1ce489997a stone: change to "virtual_ab_ota" 2024-05-07 22:01:37 +02:00
kamikaonashi
4f65ed16fe stone: fix ZRAM
set 4GB for all users and set swappiness to 80
2024-05-07 21:49:25 +02:00
aalajimaestro
0f3b87eff6 sm6375-common: Optimise dex flags
This is a squash of the following commits:
1. Optimise dex flags for a faster boot

* Used multiple threads and speed profile to hasten the first boot

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Change-Id: I2cce5ddf7d50308511e81436fcac613b2c6537bf

2. Rework dex flags again

When I went through https://source.android.com/devices/tech/dalvik/configure my previous configs felt wrong, this one should be perfect (I hope).
Even though there is a slight trade-off for boot time by using the speed profile, we do make up for it by using 8 threads.
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER attempts to compile all prebuilts fully optimised to speed level, thus the phone doesnt need to deal with it.
I also do know that this might be a trade-off on size, but I do see the first boot time is more worthy to trade-off.
The speed level mentioned here runs dex verification and compiles all AOT methods.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ic0156ff8956a7c5f53820be6db438f6f6399d3c0

3. Switch certain dexopt profiles to verify

Prebuilt apps like Gmail/Google App, will be updated by google play, and there is no need spend time and space optimising what is going to be replaced.
Switch to Google's recommendation of using verify for an OTA package.
Applications still stay on speed.
Instead, replace the install profile with speed-profile making apps perform better.
 13.0
2024-05-07 21:26:05 +02:00
kamikaonashi
2ffcba68c8 stone: unify common and device tree to stone tree
also drop veu/peux related stuff while we're at it
2024-05-07 20:57:13 +02:00