Commit Graph

555 Commits

Author SHA1 Message Date
1a91f9cee3 miatoll: overlay: Pin surfaceflinger
PA Notes:
- Not merged to master, but merged to internal master.
- Original commit removes libsurfaceflinger but I do not
  because we have enough memory.

Test: Builds as expected after this change, and flashes successfully.
Bug: 176197656

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
a6c07829d9 miatoll: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save precious RAM on this
device.

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
d068e65338 miatoll: overlay: Set fast charging indicator threshold to 10.8W
We no longer call 7.5W charging "fast charging" nowadays

Change-Id: I3a11f50f89933bd44b70d9f30a6e74a3d77abb25
2021-04-23 07:15:21 +00:00
98a5e51cb7 miatoll: Force disable wide color display
Xiaomi has built this device with TARGET_HAS_WIDE_COLOR_DISPLAY=true (possibly because it is the default in caf), but
the hardware doesn't properly support DISPLAY_P3 profilem causing weird yellowish tint in some scenarios. Force
disable the feature to fix it.

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
2021-04-23 07:15:21 +00:00
b3eea6a3b1 miatoll: Update TetheringOverlay & WifiOverlay
* taken from sm6150-common

Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>
2021-04-23 07:15:21 +00:00
1316e16ad0 miatoll: 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.

Signed-off-by: Jesse Chan <jc@lineageos.org>
Change-Id: Ic775c3fa735a32653d8e7f4c15cac26c6ebc262c
2021-04-23 07:15:21 +00:00
51c2de8f3d miatoll: Add kpti=off to boot command line
This will OFF kernel page table isolation.

Notes from Kuba Wojciechowski <nullbytepl@gmail.com> in 86bb20a832:
As per qualcomm - "SM8150/SM8250/SM8350/SM7250/SM7150/SM6150 - KPTI Not required".
It can also help increase performance by a lot in some scenarios.

Change-Id: Idd36c359d4955701e9ee3ee27a58177a8d622c86
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2021-04-23 07:15:21 +00:00
0f26ea0137 miatoll: Guard tree with soong namespace
* prevent module conflicts with other device trees
2021-04-23 07:15:21 +00:00
35cd7fa0ea miatoll: Disable COMPRESS_VOIP in boardconfig
To make VOIP work properly the following has to be set:

AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false in BoardConfig.mk
vendor.audio.feature.compr_voip.enable=true in vendor.prop

I have no idea why this is but setting either one of them differently results in the mic not working as it should.

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
dd4e444355 Revert "sm6250-common: remove unused audio configs"
This reverts commit d332175021.
2021-04-23 07:15:21 +00:00
e3bd3aec6f Revert "sm6250-common: audio: update configs from curtana RKQ1.200826.002"
This reverts commit 18b8ed51a0.
2021-04-23 07:15:21 +00:00
78d2d0c2e2 miatoll: Switch to standalone extract utils 2021-04-23 07:15:21 +00:00
4f83b493f6 miatoll: Pack libwfdaac_vendor for WFD
Change-Id: I828918c42e1eb2963829d62a9dbeee83e2f0e600
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
0cc06d0db3 miatoll: build soundtrigger from source
Signed-off-by: SonalSingh18 <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
42ab8a3cd0 miatoll: import Hotword Enrollment blobs [2/2]
Change-Id: I4ca4475ac82d6755c4a6b708c1317ab02e42887a
2021-04-23 07:15:21 +00:00
ce56afb7a0 miatoll: Stop enforcing AAC on SBC headphones
These props seemed to enforce a higher codec on lower end headphones leading to them not working and not being able to reproduce sound
2021-04-23 07:15:21 +00:00
9396d9f067 miatoll: Add Missing BT & Audio Props
These are needed for the AAC Bluetooth Audio Codec
2021-04-23 07:15:21 +00:00
b86a80e7e1 miatoll: Switch Skia rendering backend to Vulkan
This results in slightly lower frame times in most UiBench tests:

Skia + Adreno OpenGL:
                            Score   Jank Frames Bad Frames  Avg Frame Time (ms)
Overdraw Test               1       0.01%       0.06%       3.16
Edit Text Input             5       0.13%       4.99%       7.79
High-hitrate text render    1       0.01%       0.51%       6.81
Image List View Fling       1       0.01%       0.32%       6.73
Bitmap Upload Test          0       0.01%       0.99%       9.38
Low-hitrate text render     1       0.01%       0.49%       7.08
List View Fling             23      0.12%       0.78%       6.61
Shadow Grid Fling           16      0.10%       0.94%       7.32

Skia + Adreno Vulkan:
                            Score   Jank Frames Bad Frames  Avg Frame Time (ms)
Overdraw Test               1       0.01%       0.06%       2.94
Edit Text Input             6       0.13%       4.60%       8.00
High-hitrate text render    1       0.01%       0.28%       6.29
Image List View Fling       1       0.01%       0.36%       5.96
Bitmap Upload Test          1       0.01%       0.15%       9.25
Low-hitrate text render     1       0.01%       0.33%       6.71
List View Fling             16      0.09%       2.70%       6.62
Shadow Grid Fling           11      0.07%       0.49%       6.98

Change-Id: Idb23fca4d801746588a7ba63231705a7f9621b35
2021-04-23 07:15:21 +00:00
9dd95a5c00 miatoll: increase ZRAM to 2GB
Test: TH
bug: 119988524
Change-Id: I086be89346e8dae32b06188861a6f0c9fe1d768f
2021-04-23 07:15:21 +00:00
b0daca0e93 miatoll: Import Keyhandler from Davinci
https://github.com/ArianK16a/android_device_xiaomi_davinci

This tells Inputdispatcher to ignore inputs from our Fingerprint scanner, as that seems to be causing ANRs
2021-04-23 07:15:21 +00:00
39e358f4e3 miatoll: Add Channel Bonding for 2.4GHz 2021-04-23 07:15:21 +00:00
95e6d60ff6 miatoll: Enable SAE
It is supported by our device and There is no Reason to not to
2021-04-23 07:15:21 +00:00
5d262734a5 miatoll: add sensorservice in manifest 2021-04-23 07:15:21 +00:00
eae57b91d0 miatoll: manifest: uprev vendor.qti.hardware.perf to 2.2 2021-04-23 07:15:21 +00:00
9075fefc2e miatoll: don't configure zram parameters with init.qcom.post_boot.sh
* let it use whatever is set in fstab
2021-04-23 07:15:21 +00:00
45ad99d9bd miatoll: Import MIUI power-off charging daemon 2021-04-23 07:15:21 +00:00
Pig
1caf63ccd9 miatoll: Drop no longer existed BluetoothQti
Change-Id: I6bf3e1dda6fe5dc66f6fafdb32a1daecb9616c84
2021-04-23 07:15:21 +00:00
b52764ee1d miatoll: audio: Add hotword input for hotword mic concurrency
Bug: 126595113
Bug: 129733664
Bug: 133123985
Bug: 130316160

Test:
 (ST: sound trigger, VO: VoIP, PH: phone call,
  NR: media recording, PL: playback music)
 ST->VO (MO/MT),  ST->PH (MO/MT)
 ST->NR->PH (MO/MT), ST->NR->VO (MO/MT)
 ST->PL->PH (MO/MT), ST->PL->VO (MO/MT)
 ST->NR->PL->PH (MO/MT),  ST->NR->PL->VO (MO/MT)

Change-Id: I11513994c7a34364de38e00fc8ff999efe3dbb6c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2021-04-23 07:15:21 +00:00
d11b5d4caf miatoll: Enable real time lockscreen charging current values 2021-04-23 07:15:21 +00:00
d4a9965018 miatoll: releasetools: Fix incrementals generation 2021-04-23 07:15:21 +00:00
1a2455e6b6 miatoll: Add more defaults
overlay: Disable UI touch sounds by default
 Set brightness & screen timeout default
  Disable bluetooth by default
2021-04-23 07:15:21 +00:00
f35aa93de1 miatoll: Don't conditionally reserve space for GMS build
This reverts commit f253f20e39.
2021-04-23 07:15:21 +00:00
d0980488b6 miatoll: increase statusbar height a bit
* I want punch hole to be centered on statubar
2021-04-23 07:15:21 +00:00
83ec70c420 miatoll: overlays: Import Vibration Patterns from gram 2021-04-23 07:15:21 +00:00
6823cb90ce miatoll: Set TARGET_KERNEL_CLANG_VERSION 2021-04-23 07:15:21 +00:00
dd386feca7 miatoll: Decommonized Tree check-in
there is no no need for common tree if all device is this much identical
clean overlays
2021-04-23 07:15:10 +00:00
554eb8b0ac sm6250-common: remove manifest entries specified in fragments 2020-12-06 22:48:36 +02:00
f15f33ab00 [BLOBS] sm6250-common: add missing misys manifests 2020-12-06 22:48:36 +02:00
af65648bf9 sm6250-common: remove qcom.fmradio boot jar
This package is not allowed to be a boot jar and it breaks m dist.
2020-12-06 22:48:36 +02:00
c11fbf1ae8 sm6250-common: Drop sepolicy version from manifest
Change-Id: I815cab44071c1f74d1c6174b591c3fb0bd152a1e
2020-12-06 22:48:36 +02:00
f253f20e39 sm6250-common: reserve less system/product space for gapps builds
* we just want to have a bit to flash some basic stuffs and do some replacements
2020-12-06 22:48:36 +02:00
0080dbd0ea sm6250-common: reserve some sapce for system_ext 2020-12-06 22:48:36 +02:00
Pig
dca3045056 sm6250-common: light: Remove backlight support in case of hwcomposer
Change-Id: I3005c11f57797372b45e1c0f81caa4ddcac9cc36
2020-12-06 22:48:36 +02:00
a24f819646 sm6250-common: rootdir: update configs from curtana RKQ1.200826.00 2020-12-06 22:48:36 +02:00
d5665da9e6 sm6250-common: update props from curtana RKQ1.200826.002 2020-12-06 22:48:36 +02:00
e8efc4849d sm6250-common: wifi: update wcnss config from curtana RKQ1.200826.002 2020-12-06 22:48:36 +02:00
5ba1d540bd sm6250-common: configs: update ueventd.rc from curtana RKQ1.200826.002 2020-12-06 22:48:36 +02:00
ff373ea771 sm6250-common: wifi: don't enable use_p2p_group_interface=1 driver param
* matches stock 11
2020-12-06 22:48:36 +02:00
a7d8ba3094 sm6250-common: rootdir: update fstab from curtana RKQ1.200826.002 2020-12-06 22:48:36 +02:00
9282fe7019 sm6250-common: media: update configs from curtana RKQ1.200826.002 2020-12-06 22:48:36 +02:00