528 Commits

Author SHA1 Message Date
Kyle Lin
18e3b79b40 miatoll: Adjust dex2oat thread count after setup wizard
Test: Forrest appinstall test
Bug: 149395059
Change-Id: I9c5db865c616480b0f00629aba54e02b97bc4674
2021-04-23 07:15:21 +00:00
Rahul Krishna
3ab99f01c5 miatoll: Enable full vndk support
Change-Id: I1e50e8d66d79200410c19cca7ecd6248c89bd9d3
2021-04-23 07:15:21 +00:00
SonalSingh
f585afc2ac miatoll: prebuilts: Add GCamGOPrebuilt 2021-04-23 07:15:21 +00:00
Sonal Singh
2703a890cf miatoll: Switch to source built vendor.qti.hardware.perf@2.2.so
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Sonal Singh
a822ba4c49 miatoll: Build libminijail and system variant of libavservices_minijail from source
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Sonal Singh
5a5637b3d3 miatoll: don't configure read ahead parameters with init.qcom.post_boot.sh
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Park Ju Hyung
a3e9e0c57b miatoll: Optimize everything on preopt
We have plenty of space left at /system

Change-Id: I39d552259b66ec329c56cd4f4a7fc46fb2c07457
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Randall Huang
a3abaacfe5 miatoll: Enable zram-writeback job
This patch enables zram-writeback job. It will run idle marking
at 60m since the device is boot. After that, it will do first
writeback after 3hour to sweep initiallized cold pages out.
After that, it periodically write out every 24hour.

Bug: 117682284
Bug: 127185055
Test: confirm with manual testing
Change-Id: I6857c79ca3ce6a3619f4b7e200d7f17a8decd659
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Michael Wright
fd9678234e miatoll: Enable haptic text cursor
Support has landed in WebView, so time to turn it on in framework!

Bug: 111461797
Test: manual
Change-Id: I064cf3512928637895932b3405adaec74b1ceed2
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Alexey Kuzmin
4d537dc4e3 miatoll: Turn on support of multiple vibration intensities
Bug: 121202530
Test: manual
Change-Id: Id8ce35089b520fe73e9d18f9778a72bdb52b4015
2021-04-23 07:15:21 +00:00
David Su
e3acfea10b miatoll: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>
2021-04-23 07:15:21 +00:00
arco
3b950542ab miatoll: Silence clang warnings during kernel compile
clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]
2021-04-23 07:15:21 +00:00
Michael Bestas
55146455d0 miatoll: rootdir: Import init.qcom.early_boot.sh
* We used to have an init extension, which breaks treble
  and since P it requires custom SELinux rules to allow
  init reading /proc/sys/kernel/boot_reason
* Remove the init extension and set the property like
  QCOM does through init.qcom.early_boot.sh
* Update the property with vendor prefix while we are at it

Change-Id: I238f754a17c9a548c6c90503bfa4b21763d1b4c4
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Sonal Singh
1776cd623a [BLOBS] miatoll: Import missing blobs needed for WFD functionality
Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Alex Naidis
f9b10f5c5d miatoll: wlan: Smarter decisions on whether to use a 2- or 5Ghz AP.
- Implement a smarter system on whether to connect to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
2021-04-23 07:15:21 +00:00
Yaroslav Furman
fa2583a503 miatoll: wlan: Disable logging.
Change-Id: Ib9d2e325dc64d068a08412f12c792ec0e5a0c1be
2021-04-23 07:15:21 +00:00
Sultanxda
49cf3aedc2 miatoll: wlan: Relax WiFi re-association RSSI thresholds.
Change-Id: I72bc937d1b9863d61dc96d2ad2ee81f365a3c903
2021-04-23 07:15:21 +00:00
LuK1337
f943d9306e miatoll: wlan: Enable DFS channel scanning in P2P search.
- Fixes P2P when connected to 5GHz access point.

Change-Id: Ie94aa06e9b6be9345688a1e10caa9a62b180eb30
2021-04-23 07:15:21 +00:00
Nick C
6ac453199e miatoll: rootdir: zram tuning 2021-04-23 07:15:21 +00:00
justinweng
b7e6a888cd miatoll: audio: enforce 24-bit audio for offload playback
Test: Audio Playback

Change-Id: Ia581e65a0e5e8dcbfae188fe36ca9d07bd9eb4e2
Signed-off-by: justinweng <justinweng@google.com>
2021-04-23 07:15:21 +00:00
Alex Naidis
2b12b4200e miatoll: wifi: enable QPower and Deep Sleep at the same time
* This enables Deep Sleep mode, additionally to QPower
* With this configuration, QPower manages the new Deep sleep mode
 -> Leads to amazing power savings

Change-Id: I32dbaee6406fbe01594176ba14c9f3f0c6d16714
2021-04-23 07:15:21 +00:00
Akash
1df715ec01 miatoll: Fix mic issues in apps like WhatsApp
Change-Id: I64d34f95386c14a2003228f6a5ed9a61602b81ae
2021-04-23 07:15:21 +00:00
Adithya R
5b94c8f707 miatoll: Remove dexpreopt flags that are default 2021-04-23 07:15:21 +00:00
Sonal Singh
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
kdrag0n
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
Jesse Chan
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
Kuba Wojciechowski
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
Tushar Mahajan
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
Jesse Chan
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
Rahul Shahare
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
Sonal Singh
0f26ea0137 miatoll: Guard tree with soong namespace
* prevent module conflicts with other device trees
2021-04-23 07:15:21 +00:00
Adithya R
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
SonalSingh18
dd4e444355 Revert "sm6250-common: remove unused audio configs"
This reverts commit d332175021c8fe3db4b434ea22414bfa90d385f8.
2021-04-23 07:15:21 +00:00
SonalSingh18
e3bd3aec6f Revert "sm6250-common: audio: update configs from curtana RKQ1.200826.002"
This reverts commit 18b8ed51a0305b695ff29725d3afcb2206995852.
2021-04-23 07:15:21 +00:00
Michael Bestas
78d2d0c2e2 miatoll: Switch to standalone extract utils 2021-04-23 07:15:21 +00:00
Indranil Chakraborty
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
SonalSingh18
0cc06d0db3 miatoll: build soundtrigger from source
Signed-off-by: SonalSingh18 <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Luca Stefani
42ab8a3cd0 miatoll: import Hotword Enrollment blobs [2/2]
Change-Id: I4ca4475ac82d6755c4a6b708c1317ab02e42887a
2021-04-23 07:15:21 +00:00
Ramii Ahmed
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
Ramii Ahmed
9396d9f067 miatoll: Add Missing BT & Audio Props
These are needed for the AAC Bluetooth Audio Codec
2021-04-23 07:15:21 +00:00
Danny Lin
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
Jenhao Chen
9dd95a5c00 miatoll: increase ZRAM to 2GB
Test: TH
bug: 119988524
Change-Id: I086be89346e8dae32b06188861a6f0c9fe1d768f
2021-04-23 07:15:21 +00:00
Ramii ahmed
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
Ramii Ahmed
39e358f4e3 miatoll: Add Channel Bonding for 2.4GHz 2021-04-23 07:15:21 +00:00
Ramii Ahmed
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
SonalSingh18
5d262734a5 miatoll: add sensorservice in manifest 2021-04-23 07:15:21 +00:00
SonalSingh18
eae57b91d0 miatoll: manifest: uprev vendor.qti.hardware.perf to 2.2 2021-04-23 07:15:21 +00:00
Volodymyr Zhdanov
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
SonalSingh18
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