559 Commits

Author SHA1 Message Date
Alex Winkowski
d3b3b3c6f4 miatoll: rootdir: Clean up init.target.rc 2021-05-12 17:10:16 +00:00
Alex Winkowski
006cd7f1c0 miatoll: rootdir: Use default capacity margin
Google does the same in sunfish.
2021-05-12 17:10:16 +00:00
Alex Winkowski
e521dd4040 miatoll: rootdir: Introduce init.qcom.power.rc
I hate init.qcom.post_boot.sh so replace it with init.qcom.power.rc
based on init.qcom.post_boot.sh and init.qti.dcvs.sh (CAF branch
"LA.UM.9.1.r1-09200-SMxxx0.0").

WALT, corectl and input boost tunings were removed.
2021-05-12 17:10:16 +00:00
Alex Winkowski
352db2a059 miatoll: rootdir: Import USB init scripts from stock
* qssi-user-11-RKQ1.200826.002-V12.0.1.7.RJWMIXM-release-keys

To fix Mass Storage mode.
Basically, this reverts commit 6bb87160375c4affbec396d2cf2be3d6a0e877f8.
2021-05-12 17:10:16 +00:00
Alex Winkowski
e3e424e8b2 miatoll: rootdir: Set swappiness to 100
Both CAF and Google do that.

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-05-12 17:10:16 +00:00
Adithya R
bacc9f5dfa miatoll: overlay: Advertise fingerprint on power button 2021-05-12 17:10:16 +00:00
Nick C
57b625fbf0 miatoll: audio: set default value for 'TX_DEC{0...4} Volume'
102 is ear rape
2021-05-12 17:10:16 +00:00
Sonal Singh
81b9fc4d71 fixup!: miatoll: Disable COMPRESS_VOIP in boardconfig 2021-05-12 17:10:16 +00:00
Christine Franks
6a6f940649 miatoll: Add config value for a11y color mode
Accessibility transforms require a specific color mode that is not
always available for the user to select.

Bug: 130376719
Test: atest com.google.android.config.pts
Change-Id: Ia3211d5aa6e117c5361dea44d944064b23260a81
2021-05-12 17:10:16 +00:00
Chia-I Wu
258b541c14 miatoll: Remove COLOR_MODE_SATURATED
It is replaced by COLOR_MODE_AUTOMATIC.

Bug: 110524699
Test: Settings > Display > Advanced > Colors
Change-Id: I116b50fde456a24c90fd83969cd2fc30f84947ee
2021-05-12 17:10:16 +00:00
Gil
139dd4a289 miatoll: Enable adaptive color mode
Enable Adaptive color mode setting.

Bug: 143513730
Test: Boot test and measure the adaptive color value

Change-Id: I969ec6c3cb1d092a33c0e3a028ff38ad7115dfe2
2021-05-12 17:10:16 +00:00
Chia-I Wu
78444e7863 miatoll: Override config_availableColorModes
List NATURAL, BOOSTED, and SATURATED.

Bug: 73824924
Test: atest PtsConfigTestCases
Change-Id: I5e57c4940b5fc32dc43684bb6e58b7af1097a4df
2021-05-12 17:10:16 +00:00
Aryan Gupta
540e9c9abd miatoll: change target kernel path
don't specify kernel clang version

also nuke additional clang warning flags
2021-05-12 17:10:16 +00:00
Aryan Gupta
f002d0c84f miatoll: decommonize vendor blobs 2021-05-12 17:10:16 +00:00
darkbeast69
a1bbe9324d miatoll: remove redundant lineage overlays
also adapt notch overlays for pe
Signed-off-by: Aryan Gupta <guptaaryan189@gmail.com>
2021-05-12 17:09:47 +00:00
Ramii Ahmed
98aaa1c40c miatoll: Enforcing bring up for R
Co-authored-by: Aryan Gupta <guptaaryan189@gmail.com>
Co-authored-by: Erfan Abdi  <erfangplus@gmail.com>
Co-authored-by: Volodymyr Zhdanov <wight554@gmail.com>
Co-authored-by: Cosmin Tanislav <demonsingur@gmail.com>
2021-05-12 17:09:28 +00:00
Ramii Ahmed
76c08d115f miatoll: dynamically load widevine blobs for curtana
due to some miatoll devices not having a11 fw which leads to them being L3, this should load a11 blobs for a11 devices (currently only curtana) while the default is a10 blobs, temporary
2021-04-23 07:16:16 +00:00
Brock5555
5191fd4cfd miatoll: Register and enable qcrild & data services on boot
Fixes lag on getting network service after boot
2021-04-23 07:16:16 +00:00
Adithya R
c9cd74999a miatoll: rootdir: Import boot/runtime fs tuning from coral
https://android.googlesource.com/device/google/coral/+/refs/tags/android-11.0.0_r29/init.hardware.rc
2021-04-23 07:15:21 +00:00
Gopal Iyer
18a3ebde61 miatoll: rootdir: Tune UFS clock scaling during bootup
Disabling UFS clock scaling during boot time helps in reducing
IO delays, which helps in reducing the total boot time.
This change will disable UFS clock scaling during early-init and
enable it back after boot completion.

Change-Id: Ib3490a8155610aea399ac2f63aa4a71bee299c6e
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Alex Naidis
a2f3d3c358 miatoll: Override readahead to 128KiB after post-boot
* Qualcomm decided to increase the read-ahead value to 512KiB [1].

 * This value resulted in frequent cases where read-ahead
   would be waiting for new I/O requests and thus ending
   up being synchronous rather than asynchronous.

 * As result, the main goal of Qualcomm's patch [1] which
   is to increase throughput ends up in a regression where
   read throughput is significantly lower than it ever
   would be with the recommended [2] read-ahead value.

 * This patch uses our existing loop in ramdisk to set
   the read-ahead value to 128KiB.

[1] https://source.codeaurora.org/quic/la/kernel/msm-4.19/commit/include/linux/mm.h?h=LA.UM.9.12.r1-09000-SMxx50.0&id=25d04e4ceb7c067907901842c223d62973d73a75
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/mm.h?h=v4.19.160#n2397

Change-Id: I1980d904568fe4f1ce7b676452bcc44e4689f02f
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Wei Wang
361812104b miatoll: rootdir: Tune zram performance
-Switch to LZ4 for better overall performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.
-Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Adithya R
2fef095e36 miatoll: rootdir: Configure CPU input boost properly 2021-04-23 07:15:21 +00:00
Adithya R
33f5b156a5 miatoll: rootdir: Lower CPU input boost duration
* 120ms is overkill and unnecessary
2021-04-23 07:15:21 +00:00
Adithya R
7099704da6 miatoll: rootdir: Bump CPU min freq by a level 2021-04-23 07:15:21 +00:00
weivincewang
53abb30f60 miatoll: rootdir: Launch bootanimation early
Also includes:

commit 82dcb788c9c2ee5d50e75e050550cc841262d3df
Author: Kuba Wojciechowski <nullbytepl@gmail.com>
Date:   Mon Jun 15 21:01:20 2020 +0200

    ginkgo: rootdir: Move boot animation early start to late-init

     * "on init" is triggered in offline charge mode too causing
       boot animation to launch in that mode.

     * Ref: https://github.com/aosp-mirror/platform_system_core/blob/150687b/init/init.cpp#L854-L866

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Kuba Wojciechowski
903fd43681 miatoll: Kang EAS configuration from sunfish
Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
2021-04-23 07:15:21 +00:00
celtare21
102ee7c2ad miatoll: rootdir: Configure dynamic schedtune boost
Change-Id: Id05a4f149c3bc6da9e1962e1c48e049c59d30031
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Karthik Gopalan
0cb2021e49 miatoll: Set lmkd.reinit property from vendor init
Set lmkd.reinit property to 1. This will trigger
reinit of lmkd service after boot complete.

CRs-Fixed: 2692843

Change-Id: Ib946b01ca1dc013f0148ca702e4d550cde32b6c2
2021-04-23 07:15:21 +00:00
Adithya R
57e572c8e0 miatoll: rootdir: Bump top-app stune boost to 10 2021-04-23 07:15:21 +00:00
Adithya R
240a8e9660 miatoll: Improve post_boot tuning for performance
* kang cpusets and schedutil ratelimits from sunfish
 * enable predicted load boosting (WALT feature)
 * enable schedtune boost and prefer_idle
2021-04-23 07:15:21 +00:00
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