Commit Graph

21 Commits

Author SHA1 Message Date
Bruno Martins
be65d0a523 sdm845-common: Prepare for compatibility with system-as-root targets
* All new devices launching with Android 9 must use system-as-root,
   which is the case of MIX 3 (perseus). Move stuff that goes against
   such setup to the individual device trees.

Change-Id: I1178d0ac197634547e5771b3ae4e9cf6e15db3c8
2019-01-12 00:50:01 +01:00
Luca Stefani
6c35f3ce28 sdm845-common: Build only 64bit power hal
Change-Id: I3dd347b6fa66bbb82224adf9081d1512920263da
2018-12-23 14:16:31 +00:00
Bruno Martins
d5c3181329 sdm845-common: Switch qcacld-3.0 to built-in
This partially reverts commit 9f26a0e25d.

Change-Id: I1ed157847e5526c525f78156d1aa0768f0f8841f
2018-12-14 19:12:55 +00:00
Miguel de Dios
7b382ef6db sdm845-common: Change readahead to 128KiB on post-boot.
Reduce readahead from 512KiB to 128KiB to reduce thrashing when we
have a lot of apps running.

Bug: 110908295
Bug:  80426378
Test: manual - device boots
Test: manual - check app launch does not take long
Test: cts-tradefed.sh run cts -m CtsCameraTestCases
Change-Id: I59c1f2f8a6fbb5e0d956ba07a40a2bfac3b61481
2018-12-10 17:21:06 +00:00
Tim Murray
6623c7aa3c sdm845-common: Don't use deadline
deadline scheduler performs poorly under load, so don't use it.

Test: boots
Bug: 63630139
Change-Id: I7c3189f2f19d17b859b69d2b63a894802dd72a61
2018-12-10 17:19:32 +00:00
Wei Wang
9f0b0b820d sdm845-common: Runtime/boottime readahead tuning
Bug: 79422469
Test: Boot and see correct readahead tuning
Change-Id: Icc29d1a6007bd045341226683ef009ecd76db9fb
2018-12-10 17:18:23 +00:00
Wei Wang
cd62e7847c sdm845-common: I/O tuning
Bug: 63630139
Bug: 70220853
Test: Boot
Change-Id: Ia924ac7b929e89d580c8fd0a69f760f26d7bfc6b
2018-12-10 17:15:35 +00:00
TheScarastic
15015937bc sdm845-common: Disable diag services
These services are pretty useless for production builds. Moreover,
cnss_diag was running in the background and continuously writing logs
to sdcard/wlan_logs, so disable them.

Change-Id: I4a9dea38179f39ca939174b60a132f1cbbc1fa44
2018-10-30 17:14:57 +01:00
Bruno Martins
c96e6315e6 sdm845-common: Update fstab to reflect P changes
* Several mount points got updated for treble compliance,
   so keep fstab up-to-date and also remove contexts accordingly.

Change-Id: I3dc7e08e9b64b759b03f1a93c85f161a5c1a554f
2018-10-06 10:26:56 +08:00
Bruno Martins
e218c4568c sdm845-common: Ship proper postprocessing soundfx libs
* The lib responsible for audio postprocessing (libvolumelistener)
   from Xiaomi causes stuttering distorted audio. Replace with a working
   copy from enchilada.

Change-Id: I27d631e5fea0dbd338c18a529b26d1ef700affd7
2018-10-03 00:15:03 +02:00
Bruno Martins
622aea6627 sdm845-common: Import and bind mount stock custom audio policy config
* The purpose is to apply the same BT A2DP fix that used to be
   applied in the individual device trees.

Change-Id: I500948b5e1e11ee11097ee2e115b0c23dd808a12
2018-10-02 12:48:07 +02:00
Bruno Martins
1c3597e4e3 sdm845-common: Move offmode charging daemon away
* Follow-up change for commit ea5882d that simply moves the
   prebuilt to its proper place.

Change-Id: I40d37ea6ae53fe8fe919dda758db22df3c1c4229
2018-09-29 01:10:15 +02:00
Bruno Martins
4117a9f89f sdm845-common: Really disable vendor.ss_ramdump service
* Apparently relying on property persist.vendor.sys.ssr.enable_ramdumps=0
   to be set results in trying to stop the service too early. Forcebly
   stop it after boot is completed.

Change-Id: I00ee60039c52c0656a29ee16c4f006718b3b5f9a
2018-09-26 02:12:03 +02:00
TheScarastic
2d10e5df06 sdm845-common: Redefine ss_ramdump
* For some reason Xiaomi decided to start the service unconditionally
   with an unknown arg, thus causing it to crash everytime.
 * Match it with CAF and start it if persist.sys.ssr.enable_ramdumps is set.

Change-Id: I27496f7b65f9d7217a97f3738140056fcbf0e149
2018-09-24 11:18:01 +02:00
Bruno Martins
ea5882dda2 sdm845-common: Use MIUI poweroff charging animation
* It's cool, and more importantly... it actually works!
   Oh look, it even displays battery level. Wow. :-P

Change-Id: I6351e2eac6df89aa1b6b98e4e6b2815fa5c37794
2018-09-24 11:06:20 +02:00
Bruno Martins
c434f510a4 sdm845-common: Enable double tap to wake support
Change-Id: I5e2eca2b2bfb843c2c6601bea53b141d3519e402
2018-09-09 01:01:01 +01:00
Bruno Martins
d09238f8a2 sdm845-common: Import QCOM power HAL
* Plain QCOM power HAL based on tag LA.UM.6.3.r4-05000-sdm845.0.

Change-Id: Ia4fe5dd8e0240955b7d2199e3e1d6743138b511d
2018-09-09 01:01:01 +01:00
Luca Stefani
9f26a0e25d sdm845-common: Load qcacld from system
* This will implicitly add every kernel module to system

Change-Id: I1fb827536a7cd6cb0d46c9dbb78da4f19e80492b
2018-07-31 00:30:31 +01:00
Bruno Martins
1b8f18d001 sdm845-common: Fix up OTA building
* These entries are needed for build to complete successfuly.

Change-Id: I589a75d8348cc4f29f3413217fcbece6076ed315
2018-07-10 15:54:22 +02:00
LuK1337
a02e48fd7e sdm845-common: Remove unsupported fstab flag
* fs_mgr: Warning: unknown flag reservedsize=128M

Change-Id: I39a8b2e4e1e3ff6d9c2258fd259298d08714e4e3
2018-07-10 15:53:56 +02:00
Bruno Martins
0b9dedb438 sdm845-common: Add initial common device tree files
* Initial approach for using prebuilt vendor images.

Change-Id: Ic9e562fae446cb287d7495d6b6bfae816b1b7b47
2018-07-09 18:20:47 +02:00