Commit graph

3650 commits

Author SHA1 Message Date
Nolen Johnson
deb9ccb9c3
sdm660-common: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
2021-03-02 23:47:29 +06:00
Bruno Martins
14d1074a44
sdm660-common: bluetooth: Undef BLUETOOTH_QTI_SW
This was long used to enable QC extended features. Right now,
with a pure AOSP BT stack, this is completely unused. Moreover,
it's enabled by default if devices opt-in for the QTI BT stack.

Change-Id: I0ad604d7a7a502df647676b1afc77d770fa50710
2021-03-02 23:47:29 +06:00
Michael Bestas
b3e57baf6e
sdm660-common: Don't build tinymix
* This tool can be built manually for debugging cases,
  there is no need to ship it in production

Change-Id: I9ab8b076b4bede70c368c198960ceabc68dad65b
2021-03-02 23:47:29 +06:00
Ethan Chen
ce8a29230c
sdm660-common: Remove unnecessary usage of TOPDIR
Change-Id: Iafaa21f49c9ddb1fed21e83948d549f5a74dcfee
2021-03-02 23:47:29 +06:00
Jesse Chan
57f5e4d450
sdm660-common: power-libperfmgr: initialize powerHAL when boot is completed
Change-Id: I801b3aba05ef0be14c7af1969ddf9318c05ef64c
2021-03-02 23:43:22 +06:00
nullbytepl
1e82d9734b
sdm660-common: rootdir: start themed_bootanimation before bootanim 2021-03-02 23:43:22 +06:00
etahamad
e923bda27e
sdm660-common: Move IPA flag to sdm660 make file
to fix error: build/make/core/base_rules.mk:329: error: device/xiaomi/sdm660-common/data-ipa-cfg-mgr/hal: MODULE.TARGET.SHARED_LIBRARIES.liboffloadhal already defined by vendor/qcom/opensource/data-ipa-cfg-mgr/hal.

Signed-off-by: etahamad <220190166@fa-hists.edu.eg>
2021-03-02 23:43:22 +06:00
Dybios
f6b044c52e
sdm660-common: Reduce screenshot delay to 0 2021-03-02 23:43:22 +06:00
PIPIPIG233666
206f51bad0
sm660-common: Create socket for /dev/socket/audio_hw_socket
Change-Id: If4c5b944efb8dde3093ccb7b8f1dca746a02e043
2021-03-02 23:43:22 +06:00
Surabhi Vishnoi
e865b037e8
sdm660-common: Add wowlan_triggers to wpa_supplicant conf
Add 'wowlan_triggers=magic_pkt' to wpa_supplicant_overlay.conf. With
this, wpa_supplicant will tell the linux kernel that the wifi driver
is wowlan capable, and will wakeup the host when a magic packet is
received. Most importantly, the kernel will no longer disconnect wifi
connections before suspending wifi.

CRs-Fixed: 2615975
Change-Id: I3226943940046ad98e4ab410897d4fdcb457ee5a
2021-03-02 23:43:22 +06:00
Martin
1939009ca9
sdm660-common: Decommonize screen density
* Not a good idea when we support multiple devices with different screen densities
2021-03-02 23:43:03 +06:00
Utsav Balar
993f200e32
sdm660-common: init: Remove deprecated property 2021-03-02 23:42:37 +06:00
Martin
a03bdea1fe
sdm660-common: init: Handle fingerprint overrides through init 2021-03-02 23:42:37 +06:00
OdSazib
2228811ec0
sdm660-common: Add wfd dependency blobs
* From LA.UM.9.6.2.r1-03300-89xx.0

To eliminate these errors:
--------------------------
CANNOT LINK EXECUTABLE "/vendor/bin/wifidisplayhalservice": library "libdisplayconfig.qti.so" not found: needed by /vendor/lib/libwfddisplayconfig_proprietary.so in namespace (default)
CANNOT LINK EXECUTABLE "/vendor/bin/wifidisplayhalservice": library "vendor.display.config@2.0.so" not found: needed by /vendor/lib/libwfddisplayconfig_proprietary.so in namespace (default)
2021-03-02 23:42:26 +06:00
OdSazib
7f9b9a7598
sdm660-common: Update wfd blobs from LA.UM.9.6.2.r1-03300-89xx.0 2021-02-24 01:49:27 +06:00
etahamad
5cc1fbddac
sdm660-common: Move props from system to product
Test: using su shell: ex: getprop persist.timed.enable and check if the value exist or not.
Fix: Moving prop into his right path
2021-02-22 18:17:59 +06:00
etahamad
6c1d0626ea
sdm660-common: Move some QCOM props to system_ext
Test: using su shell: getprop persist.vendor.dpm.feature and check if the value exist or not.
Fix: Moving prop into his right path
2021-02-22 18:17:59 +06:00
etahamad
37f9426479
sdm660-common: Remove Duplicated props 2021-02-22 18:17:59 +06:00
OdSazib
ac194c785a
sdm660-common: rootdir: sysfs node permission for smart-charging 2021-02-20 11:55:48 +06:00
haran
73dd74a16f
sdm660-common: rootdir: Set permission for spidev7.1 IR node 2021-02-20 11:55:48 +06:00
etahamad
1c6b82775f
sdm660-common: apex: Generate APEX image 2021-02-20 11:55:48 +06:00
SakilMondal
feeeb37c82
sdm660-common: add QTI health implementation
Ref: https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/healthd-ext/commit/?h=android-core.lnx.6.0.r7-rel&id=995c63a75db6366c28b3a4c1dcb00a77cba090d4
Change-Id: Ib4406e22626f7c0a85a3c9a70d5bea3fc917f9c1
2021-02-20 11:55:48 +06:00
Bruno Martins
a5de89d28b
sdm660-common: sepolicy: Add rules for older IMS blobs
Since Android 10 blobs are being used, org.codeaurora.ims still runs
as phone UID as seen by these denials:

  m.android.phone: type=1400 audit(0.0:2914): avc: denied { read } for name="u:object_r:qcom_ims_prop:s0" dev="tmpfs" ino=13660 scontext=u:r:radio:s0 tcontext=u:object_r:qcom_ims_prop:s0 tclass=file permissive=0
  m.android.phone: type=1400 audit(0.0:473): avc: denied { call } for scontext=u:r:radio:s0 tcontext=u:r:hal_imsrtp:s0 tclass=binder permissive=0

Change-Id: Ic8c1b7996b9e0e7b63ba2a153441c9e8467a8a31
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-02-20 11:55:48 +06:00
orges
6a1986932a
sdm660-common: update Telephony overlays from LA.UM.9.2.1.r1-05500-sdm660.0 2021-02-20 11:55:48 +06:00
OdSazib
2ed5f806a1
Revert "sdm660-common: props: enable vsync and disable backpressure"
This reverts commit adfe7cf0e4.
2021-02-20 11:55:48 +06:00
Subhajeet Muhuri
c2aa44b49b
sdm660-common: Add more pixel powerhal nodes 2021-02-20 11:55:48 +06:00
Subhajeet Muhuri
7d8fc30985
sdm660-common: Kang more pixel power HAL sepolicy
* Kanged from mata (with all available nodes on msm4.4)
2021-02-20 11:55:25 +06:00
Subhajeet Muhuri
9bcab6d776
sdm660-common: loosen up charging thermal throttling thresholds
* Taken from lavender

Change-Id: I9edc3bda9b1892f77158d01e13d1fa114355088a
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-02-19 17:17:09 +06:00
Subhajeet Muhuri
86fd0cbdb2
sdm660-common: Commonize thermal-engine-config from device (2/1) 2021-02-19 17:17:09 +06:00
OdSazib
1edf16f04c
sdm660-common: apex: Symlink metadata to existing sessions
* Better we do this instead of creating extra dir
2021-02-16 18:50:35 +06:00
etahamad
0814ebe94f
sdm660-common: Stop inheriting depricated gapps makefile 2021-02-16 17:08:21 +06:00
etahamad
09b642feff
sdm660-common: Handle vendor.audio.adm.buffering.ms for lavender 2021-02-16 17:08:16 +06:00
etahamad
54b3390822
sdm660-common: Move some props to system/build.prop
* +Adding some props also

When device is in Enforce mode, this happens:
---------------------------------------------
E init: Do not have permissions to set 'persist.radio.VT_CAM_INTERFACE' to '2' in property file '/vendor/build.prop': SELinux permission check failed
As example, so, moving those props to system/build.prop (from vendor/build.prop) fixes the issue.

Test: adb logcat -b all -d *:E > logcat-err.log and check for any init props related errors
Fix: Enforcing the Device Tree
2021-02-16 17:08:16 +06:00
pix106
dbebd8057c
sdm660-common: add external sdcard to fstab.qcom 2021-02-16 17:08:16 +06:00
OdSazib
9fd4659d67
sdm660-common: Add back zRam block in fstab 2021-02-16 17:08:16 +06:00
Mohammad Asaad Akram
48a8e97d3e
sdm660-common: ueventd: Allow system permission for RPS sysfs node
Allow system permission for RPS sysfs nodes, so that cnss-daemon,
user space daemon can enable RPS(Receive packet steering) feature.

Change-Id: Iccebc347d959fc8ca35f28cb64e7bcf6b05f341a
CRs-Fixed: 2768237
2021-02-10 09:05:29 +06:00
Isaac J. Manjarres
07798a5cc5
sdm660-common: ueventd.qcom.rc: Add permissions to /dev/membuf
The Trusted UI HAL will need to access /dev/membuf, so allow
system access to /dev/membuf.

Change-Id: I906b856e153f44b11a8b8aa8456080e803495fec
2021-02-10 09:05:29 +06:00
Chris Lew
e34fffe157
sdm660-common: ueventd.qcom.rc: Add mhi diag pipe device rules
Add rule to set permissions for the mhi_*_pipe_4 pipe that sends and
receives diag traffic to external chipsets. These nodes should have rw
access for the system group so the diag-router appplication can access
it.

Change-Id: Ia83ea035d248482790f70cbce7d42b86238ebd11
2021-02-10 09:05:29 +06:00
Jesse Chan
e22ae338d5
sdm660-common: 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>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I50d9b3d9f019772fedc7066675249116d5e441e4
2021-02-10 09:05:29 +06:00
Akash
faa87a2764
sdm660-common: Enable fluence voice recording
This fixes google voice recorder
2021-02-10 09:05:29 +06:00
Dyneteve
c0ae317e6f
sdm660-common: Add 2 instance support for record_24
Change-Id: I365ccae65cdf74aaa176b19de23ecd4400efa16e
2021-02-10 09:05:28 +06:00
etahamad
15f8321151
sdm660-common: Add required GPU props
These tell the ROM to use the correct Adreno drivers which fixes graphical artifacts.

Credit to Sultan for the triple buffers prop.

Credit to kdrag0n for noticing vulkan prop was missing.

Change-Id: I3481092f3aea2be2091c8c64ca04c426a244a696

Co-authored-by: Lunarixus <Nathan@lunarixus.party>
2021-02-10 09:05:28 +06:00
etahamad
a96e454c5c
sdm660-common: Drop blur for lavender only
* Adding to lavender device make it working
* when we enforce, it won't include from makefile
2021-02-10 09:05:28 +06:00
sohamxda7
53a8793b1d
sdm660-common: drop sched_enable_hmp/power_aware boot argument
* As we are using EAS, this is useless
2021-02-10 09:05:14 +06:00
Chenyang Zhong
851d88070e
sdm660-common: create and symlink a dummy /metadata/apex
Google moved apex sessions directory from /data/apex/sessions to
/metadata/apex/sessions after commit:

"Move apex sessions directory to /metadata"
36cf4bbac6

Devices with a mounted metadata partition will have the needed
directories set up by system/core/rootdir/init.rc. Xiaomi devices
on sm6125 do not have a metadata partition out of the box, so things
like "Google Play system update" will fail to install the update.

Therefore, create a dummy directory under /data/vendor/metadata_apex
and symlink it to /metadata/apex.

The reason why the old /data/apex/sessions directory is not used
for the symlink is that apexd will call migrateSessionsDirIfNeeded()
to recursively copy things from the old directory to the new one.
Creating the symlink from /data/apex/sessions may result in
unintended behaviors.

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-09 20:53:35 +06:00
Michael Lenskiy
00956a4e88
sdm660-common: audio: Add fast input profile for the record concurrency
If two recording apps both select the primary input with
fast flag, second app will fail to start because the hal
doesn't support two inputs with the same use case if input
can't be reused since of the limit of primary input's max
open count.

Add the dedicated profile for “low-latency-record” to make
the first input can be reused if possible.

CRs-Fixed: 2550228
Change-Id: I233bd3eaf614b195df0a41402747f496d3a56b44
2021-02-09 20:53:35 +06:00
Michael Lenskiy
673245c359
sdm660-common: audio:Add hotword input for hotword mic concurrency 2021-02-09 20:53:35 +06:00
Chenyang Zhong
f77adb24dd
sdm660-common: import Hotword Enrollment blobs
Co-authored-by: IMMANUEL44 <immanuelr44@gmail.com>
2021-02-09 20:53:35 +06:00
SakilMondal
e5222049af
sdm660-common: Drop non-functional soundtrigger
* Fixes google assistant voice match in android 11
2021-02-09 20:53:21 +06:00
Michael Bestas
72424be3b9
sdm660-common: Cleanup dead targets
Change-Id: Ib1e2965a5e9f16929f1dc11c719d917cd85604d1
2021-02-08 14:06:47 +06:00