Commit graph

799 commits

Author SHA1 Message Date
LuK1337
d2493c7765 sm8350-common: Build PowerShare HAL for all targets
Entire OnePlus 9 series supports wireless charging.

Change-Id: I50782fda084e0de21b32a67ae2d7be72579f16a5
2021-06-02 01:15:32 +02:00
LuK1337
444f982c63 sm8350-common: powershare: Update TX enable node
Change-Id: I0c9b384b2debdb2f83016d7d51eff45122bb594e
2021-06-02 01:15:32 +02:00
LuK1337
62dffdd580 sm8350-common: sepolicy: Label all oplus chg nodes
Change-Id: I0f7b55e21dcf237e33e91717d4f750e88134268a
2021-06-02 01:15:32 +02:00
LuK1337
1d85651b3a sm8350-common: sepolicy: Remove procfs_oem_wireless type
SM8350 devices don't have /proc/wireless or /proc/skin_temp_thrd.

Change-Id: Ib3a67f7c508ab3aea0bee28866b7293c8a785739
2021-06-02 01:15:32 +02:00
LuK1337
deeda29fbf sm8350-common: sepolicy: Sync block device labels with stock
Change-Id: I39ff2f346297e4c90fb85e0dced69bec15c1503d
2021-06-02 01:15:32 +02:00
Bruno Martins
82593d3701 sm8350-common: Explicitly enable dm-default-key volume metadata encryption method
Change-Id: Iabfe4d15ac108fa594df391be728986274e3126e
2021-06-02 01:05:14 +02:00
Bruno Martins
4cd2c8b6e5 sm8350-common: Bring up camera with enforcing SELinux
SELinux is more and more annoying nowadays, we all know that...
After spending hours to figure out why camera wasn't working while
on enforcing mode, the audits finally showed up after booting
into permissive mode. :S

05-31 01:19:55.133   877   877 I provider@2.4-se: type=1400 audit(0.0:456): avc: denied { read write } for name="capture" dev="sysfs" ino=116259 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
05-31 01:19:55.133   877   877 I provider@2.4-se: type=1400 audit(0.0:457): avc: denied { open } for path="/sys/kernel/tof_control/app0/capture" dev="sysfs" ino=116259 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Change-Id: I1727b1a299a02f15b75dce9a4d5c72201f6632c3
2021-06-01 23:23:38 +01:00
Bruno Martins
dae9ae569e sm8350-common: Sync ODM features list with OnePlus framework
Change-Id: I5ee53189cb0783d7d2acec584aef6cecc7d612de
2021-06-01 23:23:38 +01:00
Alexander Koskovich
13f9f346a3 sm8350-common: init: Restrict SIM to SSSS on the NA variants
Change-Id: I39d324395f61c253ea1f6b0d192b1194f57961fb
2021-06-01 23:23:38 +01:00
LuK1337
0ff6496538 sm8350-common: Sync audio props with stock
Change-Id: Icf3bd214c67fa68ba113b55f374dad68a7a60850
2021-06-01 23:23:38 +01:00
Ajender Reddy
9847562161 sm8350-common: Enable vbat monitor feature by default
Change-Id: Ic5e8248bbd7c79553510d0094463607cc316a50e
2021-06-01 23:23:38 +01:00
Sudheer Papothi
14e5d46fab sm8350-common: Add speaker protection v4 configuration
Add speaker protection v4 configuration on lahaina.

Change-Id: I8d1e9e7055bc78ba4c14e395e0880c8ee8d20013
2021-06-01 23:23:38 +01:00
LuK1337
56e0ada962 sm8350-common: Enable display early wakeup
Change-Id: I43b9339763fefe732856db669687eeee4771c740
2021-06-01 23:23:38 +01:00
LuK1337
ad3e0f3fdb sm8350-common: Sync surfaceflinger props with stock
Change-Id: I30c310b7e2bd5c7a21f07b8d8ae7056d99f22c4d
2021-06-01 23:23:38 +01:00
Sushil Chauhan
e973da39e0 sm8350-common: Enable Content Fps Detection
Enable Content Fps Detection feature in SurfaceFlinger.

CRs-Fixed: 2641659
Change-Id: I3a74823612d89b6901dfb7395f1c8ef924875a30
2021-06-01 23:23:38 +01:00
LuK1337
fd985a1945 sm8350-common: Configure USB MTP over FFS
This is now required for targets using 5.4 kernel and above
because the legacy f_mtp is deprecated.

Change-Id: Ief9d955d6e4159263864bc82beae6dcf6c858ce1
2021-06-01 23:23:38 +01:00
Jack Pham
b5aa70b18d sm8350-common: Configure USB Diag over FFS
On targets where diag-router is used, override the
vendor.usb.diag.func.name property to 'ffs' to
instantiate the Diag function instances to use
F_FS instead of the legacy f_diag driver.

Change-Id: I529a081a0d6988628944a9020b61c061baa877a4
2021-06-01 23:23:38 +01:00
Jaideep Sharma
3590daee0a sm8350-common: Add property for timecheck timeout duration.
Timecheck timeout set to 20sec based on the property
vendor.audio.hal.boot.timeout.ms before system is ready.
It updates to default timeout of 5sec, once the system
is ready.

Change-Id: I651fea37fc7093e196fc2f5e540e6d9447f88b71
2021-06-01 23:23:38 +01:00
Kunlei Zhang
d47fe32f67 sm8350-common: Add feature support to set power mode for voice call
Add support to set power mode for voice call

Change-Id: I052f094c62a25cd75da3c7cca172b85a4f46ced4
2021-06-01 23:23:38 +01:00
dianlujitao
a3a36f3a02 sm8350-common: Switch to QTI bt stack
Change-Id: I47016b066ae800d0071dbad6a1235cbc9db3cf80
2021-06-01 23:23:38 +01:00
Lokesh Gidra
c0ab297b6f sm8350-common: Use 6GB dalvik-heap config
We are currently using 2GB dalvik-heap config.

Bug: 145823510
Test: MPTS
Change-Id: I086d4a5c09634c3c7bd51ec5d08dcaa1551511b4
2021-06-01 23:23:38 +01:00
LuK1337
aade89e9d0 sm8350-common: Switch MDM remote fs symlinks to MSM
Apparently 8350 has MSM baseband rather than MDM, who'd have thought?

Change-Id: Ie70a0c5dce177f293ccc0ff1b46a642527f85549
2021-06-01 23:23:38 +01:00
LuK1337
1be5e11fdb sm8350-common: Don't pass OEM_TARGET_PRODUCT to kernel build cmdline
Not needed on this platform.

Change-Id: I6cbb2772b8a79a7d50be113e493ae9743238cc8e
2021-06-01 23:23:38 +01:00
Aaron Kling
4c99525ebc sm8350-common: Copy selected modules to recovery
Change-Id: Ic85408521bb5a2d40d9bfadff849c7b266b6f10d
2021-06-01 23:23:38 +01:00
Bruno Martins
1c1195097b sm8350-common: Bring up DSDS radio
Change-Id: I290532f7a9f3477b0a13f73d6818a16134df1caa
2021-06-01 23:23:38 +01:00
Bruno Martins
f49155a32c sm8350-common: sepolicy: Fix haptics nodes path
Change-Id: I54cb741b145ff144162c82f84aad46628b408004
2021-06-01 23:23:38 +01:00
Bruno Martins
f4e7375e13 sm8350-common: sepolicy: Re-label health sysfs nodes
Change-Id: I648046582f54a254d61c6c76ec5747357bdeca59
2021-06-01 23:23:38 +01:00
LuK1337
b6e726035c sm8350-common: Update wlan symlinks
Change-Id: I4f0ae4ee4a9b5e39325405c9388466438b5b8535
2021-06-01 23:23:38 +01:00
LuK1337
32f0124324 sm8350-common: Regenerate config.fs
Change-Id: I6eb871c6a13593a8f3684b7af95f2c41eadd3bd5
2021-06-01 23:23:38 +01:00
LuK1337
4773fa9758 sm8350-common: Duplicate all audio configs to vendor/etc/audio/sku_lahaina
Change-Id: Ie14049e44c0f97729b96a171f29c25470ae162fa
2021-06-01 23:23:38 +01:00
LuK1337
2deb022492 sm8350-common: Use correct FRP block device
Change-Id: I54495530fa383b81efc70e94f4bb46a56a07ef6d
2021-06-01 23:23:38 +01:00
LuK1337
892d7c1b59 sm8350-common: Build libhidltransport.vendor
Needed for composer HAL.

Change-Id: I3cf443297bc558b29c3033fce403394c412461b9
2021-06-01 23:23:38 +01:00
LuK1337
448b981fac sm8350-common: Use correct kernel linker
Change-Id: I1d1064a5176182acce7921e94485a1090d931660
2021-06-01 23:23:38 +01:00
LuK1337
81398e09df sm8350-common: Set correct userdata size
Change-Id: I9d06a1d089fa8da2b024e0d0fbd85424a8c9c7b5
2021-06-01 23:23:38 +01:00
Christian Oder
c7065c61ee sm8350-common: Add reserved partition sizes for product, system and system_ext
Change-Id: Ib856284f6b6c9ed3511ef691c72f58f7e6f5a901
2021-06-01 23:23:38 +01:00
LuK1337
ad5b0c461d sm8350-common: Declare super and its partitions size
Partitions size is calculated using this formula: (super / 2 - 4M).

Change-Id: I8d211f9885f3bbebfc221ae320f83b9478677034
2021-06-01 23:23:38 +01:00
LuK1337
c85c37e576 sm8350-common: Fix host_init_verifier errors
Change-Id: I6d6ca2bd57ef36916e17cc91fea13839d03d02a8
2021-06-01 23:23:38 +01:00
LuK1337
044ba4df05 sm8350-common: rootdir: Strip out unnecessary SKU customization
I'd rather never wake up to wake_up_samurai.ogg.

Change-Id: Id52e643546b2e3e0a3eab8690188004c7a2386df
2021-06-01 23:23:38 +01:00
LuK1337
9f55e268e1 sm8350-common: Enable AUDIO_FEATURE_ENABLED_GKI
Change-Id: I4f909077d75bf188e57767614486e9ca1021707e
2021-06-01 23:23:38 +01:00
Smita Ghosh
efd421db40 sm8350-common: gpt-utils: Add OTA support for below partition
1. shrm
2. cpucp

Change-Id: I14e8c4b3399f403fbec857bcbb073f54ced24339
2021-06-01 23:23:38 +01:00
David Ng
e0dcecf95c sm8350-common: gpt-utils: Add vm-bootsys OTA handling
Add vm-bootsys to list of partitions needed for A/B update handling.

Change-Id: Ifa1e94df5dd19b1c09088c4b1c435a2aaa84cc62
2021-06-01 23:23:38 +01:00
LuK1337
0607afb434 sm8350-common: Steal kernel modules setup from device/google/redbull
Change-Id: Iaf73f9492b3003d5f73ab7aeaf80084bc2c5a4f8
2021-06-01 23:23:38 +01:00
LuK1337
fc371392fe sm8350-common: Set sys.usb.controller while in recovery
Change-Id: I019236408bb481cfac51f089aaeccd49b609e8b2
2021-06-01 23:23:38 +01:00
Jack Pham
1cdeaf4f5e sm8350-common: init.recovery.qcom.rc: Force USB to peripheral mode
On some newer platforms USB relies on PMIC to notify it of
cable connection status, but the PMIC driver has relocated
to ADSP FW. Since ADSP is not expected to be loaded in
recovery or fastbootd mode, USB may not get notified and
hence won't start up. Force the USB to start in peripheral
mode since the whole purpose of recovery/fastbootd is to
interact with a USB connection anyhow.

Currently the command assumes that there is a sysfs "mode"
param located at /sys/class/udc/${ro.boot.usbcontroller}/device/..
which is true for dwc3-msm based driver on most QC SoCs.

Change-Id: I5f7a01defdf987dbf4bd48f77bc70344c212a623
2021-06-01 23:23:38 +01:00
LuK1337
ad131f888d sm8350-common: sepolicy: Fix build errors
Change-Id: I41717ff4b31f8abe1abc17bcb9ff5392991a351d
2021-06-01 23:23:38 +01:00
LuK1337
e4018d2d38 sm8350-common: No recovery partition for us :(
Change-Id: I437d711fead0245146b64a9fefca4453d714c236
2021-06-01 23:23:38 +01:00
LuK1337
57fdd7ddaa sm8350-common: gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2021-06-01 23:23:38 +01:00
Nirmal Kumar
36a609b71f sm8350-common: gpt-utils: Add UFS BSG IOCTL for slot switch
- Use Opensource UFS BSG framework by replacing existing UFS IOCTL implementation.

Change-Id: Idc5ef9658dc93f2d7b351361b59f87cb21c7f7d9
2021-06-01 23:23:38 +01:00
Bruno Martins
002ca5194d sm8350-common: Update wifi configs from OOS 11.2.5.5
Change-Id: Ie0fb31f5bfe4781319544d76ea5b0de085d2bed8
2021-06-01 23:23:38 +01:00
Bruno Martins
bd25594773 sm8350-common: Update gps configs from OOS 11.2.5.5
Change-Id: I041079a26ccfe243343854ae0bb8c9184c656d1b
2021-06-01 23:23:31 +01:00