Commit graph

580 commits

Author SHA1 Message Date
LuK1337
58cb8ab963 sm8350-common: Install charger_fw_fstab.qti to /vendor/etc
We are loading it for offline charging mode, see init.target.rc.

Change-Id: Ie6f1a1f7cdf8fed740766cbfe3d59ce815e90b2f
2021-06-06 23:01:55 +02:00
P.Adarsh Reddy
3ce0b4aae7 sm8350-common: Enable incremental FS feature.
Change-Id: I23e19b4fd6f65d9abeabb50b7b417db966717ccd
2021-06-06 22:25:22 +02:00
Han Wang
7f18ac549a sm8350-common: Unset PRODUCT_USE_PRODUCT_VNDK_OVERRIDE
* This is not needed if PRODUCT_SHIPPING_API_LEVEL is greater
   than 29, which is true for sm8350 series.

Change-Id: I5b3fa65dfaae20c788a96a6a22d4016ddfb19983
2021-06-05 10:55:56 +02:00
LuK1337
64e3eb01f1 sm8350-common: Hardcode common path in Android.mk
Declaring it that way interferes with other
device tree using same var name.

Change-Id: Ib8b3e3c1e772e357dcbce53a123889e66f2cb129
2021-06-04 23:01:13 +02:00
LuK1337
b249320d97 sm8350-common: Enable DPM Connection Tracking (CT)
Change-Id: I25991ee34c87ce1de4fb234518238f3fc906b54b
2021-06-04 13:30:56 +02:00
Rheygine Medel
f4510723e1 sm8350-common: Removed TARGET_USES_GRALLOC1 flag.
Change-Id: I73e74d9a19d38c07f9ddc820484142dd3cd0a576
2021-06-03 22:24:58 +02:00
Bruno Martins
e6a911503a sm8350-common: Update blobs from OOS 11.2.6.6
Change-Id: Ie0c233dd4a79a8a32e6e23106eca233f0469cdfa
2021-06-03 21:31:22 +02:00
Bruno Martins
051af641b8 sm8350-common: sepolicy: Fix labelling of project_info
There seems to be a race condition somewhere that prevents
it to be properly labelled, so move to genfs.

Change-Id: Ie2d1deeb19a871eb0b9f5120a92432fda658d725
2021-06-03 17:36:59 +01:00
LuK1337
d202951a85 sm8350-common: Sync sensors related props with stock
Change-Id: I9995281b9e61f1dada7dc3369e060bec5ba9f3d5
2021-06-03 18:26:14 +02:00
Bruno Martins
2d93bae4ca sm8350-common: sepolicy: Label all modem efs partitions
Change-Id: Ia6f16134ff359b69bf4375765853c5f91d8609f6
2021-06-03 17:06:46 +01:00
LuK1337
21eda37050 sm8350-common: Enable NR by default for SIM2 slot
Change-Id: I9fbe74cfed75754b950931ce712d278421327d13
2021-06-03 12:14:59 +02:00
LuK1337
059459f160 sm8350-common: Remove wlchgd
wlchgd is unused on this platform.

Change-Id: Ifdc76ca918c2e67affa54c3ce61558b65f98558c
2021-06-03 10:47:55 +02:00
LuK1337
ed5afee9e5 sm8350-common: sepolicy: Drop labels for all socket devices
These don't exist anymore.

Change-Id: I25e15cc3d2f68d00e4ab85ed955b014da727294b
2021-06-03 10:47:55 +02:00
LuK1337
0e91c2f57e sm8350-common: sepolicy: Remove u:object_r:memplus_device:s0 type
/dev/memplus doesn't exist anymore.

Change-Id: Ib0cf673039769465b50901db9a6575ab322d1095
2021-06-03 10:32:32 +02:00
LuK1337
511731bbf5 sm8350-common: sepolicy: Update labels for mmw thermal devices
Change-Id: I8dc2dc17fea9ab624b24b2ca610cfd96df202a2e
2021-06-03 10:27:40 +02:00
Bruno Martins
cfd5c2bf5b sm8350-common: Unset config_vendorPlatformSignatures
There's no need to respect OnePlus's platform key anymore as we are
building our own vendor image and thus we are resigning all apps.

Change-Id: I49d97df08c448cad95b2ce1356a30aac49774148
2021-06-03 10:16:50 +02:00
LuK1337
ed059de982 sm8350-common: wifi-mac-generator: Fix byte order
Change-Id: I42b39015b518ad4b707e2023d7a3fef01dc8d825
2021-06-02 22:50:00 +02:00
LuK1337
72da964f9a sm8350-common: Add wifi mac generator shell script
Change-Id: I95593db840dc4a668f899d248b2c8e03d4ebbc3e
2021-06-02 22:50:00 +02:00
LuK1337
83d0538609 sm8350-common: wifi: Enable read_mac_addr_from_mac_file
This is needed to make WiFi driver load wlan_mac.bin file.

Change-Id: Ifdffd86cc412de1338996055cafa08d753fe0426
2021-06-02 22:49:42 +02:00
LuK1337
c56b1c9a6f sm8350-common: Use local WCNSS_qcom_cfg.ini
Change-Id: Iecca4f981fdf838020d74cbabc57088b1ac1a18c
2021-06-02 20:27:21 +02:00
Manisha Agarwal
13a9ce2716 sm8350-common: a2dp: Support lc3 codec playback
Add support for lc3 codec playback.

Change-Id: I11df956272068b6b7fe0911ce091225dccc4fd18
2021-06-02 18:02:47 +02:00
LuK1337
5e59b3a379 sm8350-common: sepolicy: Label oplusstanvbk partition
Change-Id: I01f6c33c2328935cbddca6e40c3d9fdb0e4fbc01
2021-06-02 13:27:38 +02:00
Bruno Martins
eeea085285 sm8350-common: sepolicy: Allow vendor_sensors to read engineermode data
Change-Id: I90a4f912fc277094faf9150866eae50d8f171e2a
2021-06-02 13:18:12 +02:00
Bruno Martins
05e5792452 sm8350-common: sepolicy: Address vendor_qti_init_shell denials
Change-Id: I60d638881bde90ba2627150a17a45689314c74b0
2021-06-02 13:18:12 +02:00
Bruno Martins
2596fae414 sm8350-common: sepolicy: Allow camera to set vendor.sys.op.disable_ufstw
Change-Id: Iafd461fed468a91f3c5637a6ecb61616acbcb225
2021-06-02 13:18:06 +02:00
Bruno Martins
d822e326fb sm8350-common: sepolicy: Label tri-state key calibration data file
Change-Id: I072c2aaf5c9aae231c68bc9e55806eb59fa7f665
2021-06-02 11:37:29 +02:00
LuK1337
965826e23b sm8350-common: sepolicy: Add rules for OnePlus charger
Change-Id: Ic4685fca5d631bce8b87492bc3c956e3dc567054
2021-06-02 09:35:21 +01:00
LuK1337
cfa0bbf545 sm8350-common: Don't write to /dev/stune/foreground/tasks
This platform does not have a schedtune thus it
spams logcat with SELinux denials.

Change-Id: Iefefa2f383aef3e4d730e0b0568afd2affd2f3da
2021-06-02 02:15:50 +02:00
Bruno Martins
186093efa0 sm8350-common: sepolicy: Trash leftover rules
Change-Id: Ia4e454598230bb5f78812494c2c3d45933c71250
2021-06-02 01:00:04 +01:00
Bruno Martins
79d93b6625 sm8350-common: Revise feature permission sets
Change-Id: I79396b6836f4ee45a7019c170ae6f647d06a8569
2021-06-02 00:59:17 +01:00
LuK1337
aed215cbbf sm8350-common: sepolicy: Regenerate labels for wakeup dirs
The list of folders for genfscon was generated using following script:
  for f in `adb shell "find /sys/devices -name wakeup -type d"`; do
      adb shell "ls -Z '$f' | grep -qv u:object_r:sysfs:s0 || echo '$f'"
  done

While list for regular file_contexts was just a simple grep "wakeup[0-9]".

Change-Id: I66abd501ce53b84e7268948d01d7b6c6c42cfbd1
2021-06-02 01:55:41 +02:00
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