Commit graph

3897 commits

Author SHA1 Message Date
OdSazib
213b55c528
sdm660-common: props: Simplify apex prop
This prop is enabled by default when we inherit https://github.com/OdSazib/device_xiaomi_sdm660-common/blob/11/sdm660.mk#L38
2021-05-18 05:04:04 +06:00
OdSazib
6f3b8beef8
sdm660-common: Drop incompatible soundtrigger hal for android 11
* Breaks voice match for Google Assistant
2021-05-18 05:04:04 +06:00
clarencelol
dd0af2ca06
sdm660-common: Update BT (aptX) from phoenix_sprout-11-RKQ1.201123.002
* Moved libaptX_encoder blobs to system_ext while at it
2021-05-18 05:04:04 +06:00
Omar Hamad
c455b70f97
sdm660-common: DeviceSettings: Nuke thermal settings
* Looks like there is too much thermal throttling even after selecting
   pefromance profile. Nuking it increases Geekbench score as well.
2021-05-18 05:04:04 +06:00
luk1337
fd31bb1a3c
sdm660-common: rootdir: Remove unsupported flags from fstab_A
* Fixes :
W [libfs_mgr]Warning: unknown flag: resize
W [libfs_mgr]Warning: unknown flag: crashcheck

Change-Id: I1ba5abb0850bed55ee4e1c496954272a1a7ccf14
2021-05-18 05:04:04 +06:00
Sunil Ravi
a299229253
sdm660-common: wifi: Disable TDLS offchannel
- TDLS off-channel feature is needed only for certification.
- Disable the feature in production builds.

Test: Basic wifi sanity test.
Change-Id: I4bef76edb8663835953e45274805c5e15dfea808
2021-05-18 05:04:04 +06:00
–Gareth Kitchen
7a54003bff
sdm660-common: gps: Localise NTP to improve GPS TTFF
Testing response times to time.android.com from around the globe reveals
in ms:-

Europe			 <30
Middle East		 <68
North America		<150
Johannesburg		 183
Buenos Aires		 220
Tokyo			 226
Sydney			 276
Hong Kong		 285
Brisbane		 295
Mumbai			 349
Beijing			4691
Shanghai		4906
Russia			 n/a

Whilst time.android.com is NOT used for GPS NTP, North American time servers
are, by specifying north-america.pool.ntp.org as default in the framework,
to align with pixel devices.  I am assuming similar response times to these
servers from around the world.

Great for North America and it appears Europe but it does not address the
global issue. Also, the pool.ntp.org project forbids both hardware and
software vendors from using these default zone names.
http://www.pool.ntp.org/en/vendors.html

It makes sense, therefore, to leverage the ntp.org's existing 'android' vendor
name to make the default ntp server for GPS purposes:
1.android.pool.ntp.org this will return a random but accurate NTP server in
close geopraphic proximity to the device.

Testing on my own build in the UK seems to improve hot and cold TTFF
considerably.

Change-Id: I144af45757efa35b32daf034eece6e046d2bde79
2021-05-18 05:04:04 +06:00
Omar Hamad
83706265c1
sdm660-common: props: Refactor all properties 2021-05-18 05:04:03 +06:00
Erfan Abdi
c90398c16f
sdm660-common: Don’t enforce RRO for all overlays
* Breaking /product/overlay
* Also this makes many platform specific overlays with current system API on vendor partition which breaks newer android version compatibilities (broken stuffs in gsis)

Change-Id: I45eb18b0754726fb4f779521a0245dfcb1259b17
2021-05-18 05:04:03 +06:00
OdSazib
996be98aad
sdm660-common: Use custom R hals for sdm660
* R hals and adapted for product config
 * If your rom uses boardconfig for hal and soc,
   place them to BoardConfig instead
2021-05-18 05:04:03 +06:00
OdSazib
4d2ff378d2
sdm660-common: gps: Remove duplicate build/copy rules 2021-05-18 05:04:03 +06:00
OdSazib
e9bec8a155
sdm660-common: rootdir: Clean up init stuffs 2021-05-18 05:04:03 +06:00
OdSazib
478a2b33b6
sdm660-common: sepolicy: Rework sepolicy (No more neverallow)
- Thanks to LineageOS and our sdm660 community

Change-Id: I54c7d76260041b7c383428449e149aa35d51de9b3c
2021-05-18 05:03:51 +06:00
OdSazib
53c3064ba1
sdm660-common: audio: Update audio configs and enable soundtrigger 2021-05-15 07:20:19 +06:00
OdSazib
5d50c6cf07
sdm660-common: Update some blobs from jasmine V11.0.23.0.QDIMIXM
- Dirac
 - DRM (Widevine)
 - Listen
2021-05-15 07:20:19 +06:00
dianlujitao
4cfd18a6ad
sdm660-common: Switch to Audio HAL v5
All devices use pre-R audio.bluetooth_qti.default.so and platina uses
pre-R audio hal, in which the new set_event_callback API is not
implemented and the audio service will crash due to mismatched struct.

Change-Id: Ia330ac05d84d3dfb3a639458d66a3dc29689e67c
2021-05-15 06:03:01 +06:00
Randall Huang
8a1ef1a3b9
sdm660-common: 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
2021-05-15 06:03:01 +06:00
Nick C
0d5cde00b2
sdm660-common: rootdir: zRAM tuning 2021-05-15 06:03:01 +06:00
Ivan Vecera
5d95e4db79
sdm660-common: rootdir: do not use absolute value for ZRAM size
Redmi Note 7 has variants with 3GB as well as for 4GB RAM.
So use 50% for ZRAM size instead of current 3GB for both.
Parameter 'max_comp_streams' is obsolete and should not be set.
Kernel currently uses always num of online CPUs.

Change-Id: Ib0157c7b4ba686a9597fd33d268dace4e0171da7
2021-05-15 06:03:01 +06:00
Avinash Nalluri
6ef4460f7f
sdm660-common: Add Device Info hal vendor.qti.hardware.radio.deviceinfo@1.0
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-05-15 06:03:01 +06:00
Martin
ba969f035b
sdm660-common: overlay: Add proper support for 5GHz hotspot 2021-05-15 06:03:01 +06:00
OdSazib
a4f0adc11d
sdm660-common: Remove duplicate wowlan_triggers config 2021-05-15 06:03:01 +06:00
sbwml
8a59a8ca83
sdm660-common: Update Time services blobs from LA.UM.9.2.r1-01800-SDMxx0.0 2021-05-15 06:03:01 +06:00
sbwml
b79e69464f
sdm660-common: Update WFD blobs from LA.UM.9.2.r1-01800-SDMxx0.0 2021-05-15 06:03:01 +06:00
Jabiyeff
1607e1fe49
sdm660-common: Import AdaptLaunch and some other perf
* From LA.UM.8.6.2.r1-08600-89xx.0

Test: Better app launching time

Signed-off-by: Jabiyeff <cebiyevanar@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-18 21:59:36 +06:00
dianlujitao
3f8f243eda
sdm660-common: Decommonize touch HAL node permissions
Change-Id: Ic8caabd4a5cf458dfc2c91971247168de28a27ce
2021-04-11 09:29:14 +06:00
dianlujitao
40e44120d9
sdm660-common: Chown light nodes earlier
The hal class is essentially triggered from the boot class, so it's
possible that the HAL starts before the permissions are set, and manual
intervention was added to deal with the issue. However, we can simply
move chown to an earlier stage to avoid playing with the workflow.

Change-Id: I189b247576151f76efaf26b2d266564dc7768fba
2021-04-11 09:29:14 +06:00
Jesse Chan
f39019a41c
sdm660-common: overlay: Set fast charging indicator threshold to 10.8W
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
clarencelol
e2ef86d463
sdm660-common: power-libperfmgr: Add AUDIO_LAUNCH to powerhint
* Eliminate logs spamming "Hint type not present in action: AUDIO_LAUNCH"

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
klozz
18da3fed81
sdm660-common: Configure dext2oat for pre-optimization
As per Android 11 Dalvik configurations

    * dalvik.vm.boot-dex2oat-cpu-set: CPUs running dex2oat threads during boot time
      Use both Silver and GOLD cluster for that
    * dalvik.vm.image-dex2oat-cpu-set to build bootimage use only GOLD cluster
    * dalvik.vm.dex2oat-cpu-set CPUs running dex2oat threads after boot time,this needs to have the same threads as the  boot image compilation

Signed-off-by: klozz <klozz@vivaldi.net>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
Harshit Jain
b34509982f
sdm660-common: Update dex2oat config 2021-04-10 14:29:00 +06:00
Adarsh-MR
04dd705288
sdm660-common: configs: wifi: Update hostapd configs path
* softap now expects hostapd configs in /data/vendor/wifi/hostapd
  during hotspot turn on, qsap_sdk copies these configs to
  /data/vendor/wifi/hostapd/

Change-Id: I632a29483cb7b2f5e8d768680afb911fa5f4f357
Signed-off-by: Adarsh-MR <adarshmr1998@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
OdSazib
ef00e5f20b
sdm660-common: DeviceSettings: Import in-app Dirac
- Improve code with reference and split gain category

This reverts commits
- 471da74
- de7135d
- f6c011d

All credit goes to Stylog, this is just revert commits with few improvement

Co-authored-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 02:24:09 +06:00
Sebastiano Barezzi
973fa8d111
sdm660-common: Fix some camera denials
Change-Id: I172349433946883aa1035e91ab3ab703a96e7912
2021-04-04 12:35:05 +06:00
OdSazib
2c04fe6bde
sdm660-common: Decommmonize cnss-daemon (WiFi) 1/2 2021-04-04 12:35:05 +06:00
StyloGey
69d63ec16d
sdm660-common: Update blobs from LA.UM.8.2.r1-07500-sdm660.0
Change-Id: Ib4a8ce5c3de0fd608b49b138138a027f57009aa3
2021-04-04 12:34:54 +06:00
OdSazib
c7d2cbca99
Revert "sdm660-common: import Hotword Enrollment blobs"
- Useless stuffs which don't work at all

This reverts commit f77adb24dd.
2021-04-03 18:22:51 +06:00
OdSazib
b42fb05f29
rootdir: Disable fbe encryption except A-target/lavender 2021-04-03 18:18:38 +06:00
OdSazib
de7135d040
sdm660-common: DeviceSettings: Access dirac from device-settings
- Split preferences from audio category to avoid removing whole category upon nonexsting single preference
- Previously there were only headphone and microphone gain which were from same kernel driver and it was logical
  to remove the category when one of the preferences does not exist.
2021-04-02 02:42:13 +06:00
etahamad
f6c011d64d
sdm660-common: audio: Add standalone Dirac support 2021-04-02 01:16:05 +06:00
Alex Naidis
5d3d10b559
sdm660-common: wlan: Smarter decisions on whether to use a 2Ghz or 5Ghz AP.
- Implement a smarter system on whether to connect to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
2021-03-31 19:32:40 +06:00
Sultanxda
1de18d5fec
sm660-common: wlan: Relax WiFi re-association RSSI thresholds.
Change-Id: I72bc937d1b9863d61dc96d2ad2ee81f365a3c903
2021-03-31 19:32:40 +06:00
LuK1337
e063a9201c
sm660-common: wlan: Enable DFS channel scanning in P2P search.
- Fixes P2P when connected to 5GHz access point.

Change-Id: Ie94aa06e9b6be9345688a1e10caa9a62b180eb30
2021-03-31 19:32:40 +06:00
Rahul Krishna
9e6a31ceb0
sdm660-common: Disable GPU protected composition
* Causes reboot while trying to play videos on Netflix, HOOQ etc.
2021-03-31 19:32:40 +06:00
Akash
a8fc4e3fd4
sdm660-common: audio: Fix mic issues in apps like WhatsApp 2021-03-31 07:32:26 +06:00
OdSazib
24bb52ba53
sdm660-common: Switch to sdfat driver for exfat
* Switched to latest sdfat 2.4.5 in kernel
2021-03-25 05:59:26 +06:00
nazunamoe
953661eb64
sdm660-common: Update korean translations 2021-03-24 13:14:24 +06:00
OdSazib
507ebf3890
sdm660-common: Switch to wayne thermal blobs
* Required for thermal config
* Compatible with device settings
2021-03-23 01:15:59 +06:00
raiyanbinmohsin
a57bcb17d2
sdm660-common: Update libsdmcolor and libsdmextension
* from LA.UM.8.2.r1-07500-sdm660.0

Fixes night-light when using R display hal
2021-03-22 20:50:53 +06:00
Henrique Silva
79be95ced6
sdm660-common: overlay: Set Google autofill service as default
This service must be trusted, as it can be activated without
explicit consent of the user. If no autofill service with the
specified name exists on the device, autofill will be disabled
by default.

Change-Id: Ib9a8620327dfbafa41063a96f84c3aaaf4ae4899
2021-03-22 18:30:00 +06:00