348 Commits

Author SHA1 Message Date
Sal Savage
5abdd4f352 sm7325-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1
2022-09-29 22:21:17 -04:00
Alexander Koskovich
e2f7d31417 sm7325-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2022-09-29 22:21:16 -04:00
Sal Savage
135f390e84 sm7325-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2022-09-29 22:21:15 -04:00
Sal Savage
b93a5b7ce5 sm7325-common: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2022-09-29 22:21:15 -04:00
Josh Wu
a36404f913 sm7325-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2022-09-29 22:21:14 -04:00
Jakub Pawlowski
19dbb0b0d2 sm7325-common: Use bluetooth.audio@2.1
bluetooth.audio@2.1 adds new functionalities required for Bluetooth LE
Audio development

Bug: 150670922
Change-Id: Iac2ece0c029a38fef82e81f5ba3ba491163818ef
2022-09-29 22:21:13 -04:00
SGCMarkus
e98449d472 sm7325-common: switch to developer_gsi_keys
Change-Id: Iad357bd7dc0b6ae15e381c23a7ddf7b86f50f14e
2022-09-29 22:21:13 -04:00
sb6596
b106d07256 sm7325-common: Decommonize hardware config keys
Signed-off-by: sb6596 <shubhamprince111@gmail.com>
Change-Id: Ie0e93de1817c69d214f8a2f0e99a22f24001c55b
2022-09-29 20:06:35 -06:00
Marc Bourgoin
e132be9416 sm7325-common: Drop dubai touch sepolicy
I don't currently see a way to modify high touch polling rate...
If in the future a way is found? We can always revert this anyways
but for now it's better to remove it instead of having a placebo
toggle that doesn't do anything.

Change-Id: I192857434edcea470601ab067eb1971c6a97874a
2022-09-29 20:05:44 -06:00
Marc Bourgoin
75dc802330 sm7325-common: Address dubai's DT2W denials
Change-Id: I0a0f892185eb98017aafa948d103155780954367
2022-09-25 14:58:33 -06:00
Marc Bourgoin
357641de5b sm7325-common: Address dubai's Egistec UDFPS selinux denials
Change-Id: Ibfd955256d95384bda17ad5404bc269d769ae347
2022-09-25 14:58:33 -06:00
AdarshGrewal
ff204c5db2 sm7325-common: decommonize sensor's hals.conf
dubai needs a customized one in order to implement DT2W

Change-Id: I4a3ea00a96606cac3caaaee734382482933ec51a
2022-09-25 14:58:33 -06:00
Nolen Johnson
0d42f55a28 sm7325-common: Opt-out of Lineage charger
* We have our own images/animation.

Change-Id: I8ebbe920c1923d47237e1c9bce7aa3959ae37801
2022-09-20 17:46:49 +02:00
Marc Bourgoin
032a78d43f sm7325-common: Import stock charge_only_mode
Change-Id: I3542bac25ac2a161a165c55cbabe93ec75c04ce8
2022-09-20 10:08:57 +02:00
Srinath Sridharan
6ad3cfa8ee sm7325-common: Set config_sustainedPerformanceModeSupported
This config will support the Sustained Performance Mode.

Change-Id: Ic992ea6fd910cf679a940b273c95968f4c60adbb
2022-09-13 15:36:39 -04:00
hpnightowl
d69dcab171 sm7325-common: drop audio.a2dp.default
- building from here
  https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/full_base.mk#L35

Change-Id: Ib71c1abd381468ec3621d60e5ca959f738f51168
2022-09-13 15:35:22 -04:00
Marc Bourgoin
42c80202bb sm7325-common: Add missing system prefix to aptX blobs
Change-Id: I56b032544b31d7343501bda8205b6fbecbef04fb
2022-09-06 07:35:29 -06:00
Marc Bourgoin
6c5b1baa76 sm7325-common: Drop liboemcrypto blob
Unfortunately even though both berlin and dubai show Widevine L1 status?
It doesn't work. Apps like Netflix fail to load.

logcat shows errors such as:
E WVCdm   : [device_files.cpp(1111):RetrieveHashedFile] File does not exist: path = /data/vendor/mediadrm/IDM1013/L1/cert.bin
W WVCdm   : [device_files.cpp(144):RetrieveCertificate] Unable to retrieve certificate file

So DRM keys probably got wiped upon bootloader unlock as even stock ROM
this same behavior happens.

Change-Id: I080a52895385e32c774c455c8cc17c3eb6d5b216
2022-09-06 07:35:21 -06:00
dianlujitao
3605aa48b1 sm7325-common: Ensure multisim property gets set at early stage
Change-Id: I8066dbd0a466f008ec1ce3144b76922fe1b7e750
2022-09-03 12:27:22 -06:00
Nolen Johnson
a614dab9d5 sm7325-common: Update to S1RGS32.53-18-22-2
Change-Id: I3f0e4f51e33073ba902c93981ed7e5c7bad75d38
2022-09-01 17:45:55 -04:00
SGCMarkus
3941b30240 sm7325-common: add back ipa_fws.rc
was lost in 22f71828454261019a59ce84b0df52646be01650

Change-Id: I2606c78223779d210dede036f7f5d45510e8fae6
2022-08-28 11:11:58 +02:00
Jimmy Chen
52791ba7c5 sm7325-common: Move WiFi supplicant service definition to dedicated RC
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2022-08-28 10:48:45 +02:00
SGCMarkus
22f7182845 sm7325-common: dont ship ipa firmware
A missmatch of ipa firmware and modem is known to have caused
bricked devices in the past. The modem partition itself already
provides the matching ipa firmware, and it will be loaded if
the copy in /venndor/firmware does not exist.

Change-Id: I30344dc7c6230d38d190dd46436451903a3a7582
2022-08-28 10:38:41 +02:00
Daniel Rosenberg
26c6ab6578 sm7325-common: Enable casefolding support on userdata
This enables casefolding, which is required for removal of sdcardfs.

Test: Wipe data and boot. lsattr /data/media, check for +F
Bug: 138322712
Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c
2022-08-27 23:42:32 -06:00
Marc Bourgoin
27a8c002ce sm7325-common: Address dubai's vibrator denials
Example:
I auditd  : type=1400 audit(0.0:18): avc: denied { open } for comm="vendor.qti.hard" path="/sys/devices/platform/soc/990000.i2c/i2c-1/1-005a/leds/vibrator/activate" dev="sysfs" ino=93558 scontext=u:r:hal_vibrator_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file

Change-Id: Iea46e718f4e2c1ed3b3037dcfecb4536fd47ef2d
2022-08-27 12:01:35 -06:00
Benergy Meenan Ravuri
c84960faef sm7325-common: gpt-utils: Do fsync after writing partition entries
Do fsync after writing partition entries to ensure data
is actually written before rebooting device.

Change-Id: I09659cab247fe280dc608e30a88d912034cbc01a
2022-08-26 04:02:24 -06:00
Marc Bourgoin
219c25e9e1 sm7325-common: Adapt to virtual A/B
dubai is virtual A/B where-as berlin is not

Based on the logic from
https://github.com/LineageOS/android_device_xiaomi_sm8250-common

Change-Id: Ibadfd452365c799b290d32fd5afabc046b9f9c41
2022-08-26 04:02:24 -06:00
Marc Bourgoin
1b8366b8c7 sm7325-common: Decommonize some some audio and blobs
These audio and blobs differ between what berlin and dubai each have

Change-Id: I30dbfdb8a0872bc439ae0f52d72ba84794b1ca26
2022-08-26 04:02:21 -06:00
SGCMarkus
b07ea4d7ae sm7325-common: sepolicy: allow init.oem.hw to log into kmsg
Change-Id: Ib7c73cd1ff18b800c791c322e4960dd94b9bc702
2022-08-13 19:42:43 +02:00
SGCMarkus
3fcf389bfc sm7325-common: go enforcing
Change-Id: I3f059c797eb9a0dcffa3dc7627c35a3622ecc342
2022-08-12 20:18:49 +02:00
SGCMarkus
ef3519be97 sm7325-common: sepolicy: label more wakeups
Change-Id: I932c550ed9771a82d6813d7018df2320b012b640
2022-08-11 21:26:16 +02:00
SGCMarkus
7ec57dede3 sm7325-common: sepolicy: allow thermal engine read access to vendor_sysfs_usb_supply
Change-Id: Ieaa0188f31ba9c37396a691165859ab0b0e195f0
2022-08-11 21:26:16 +02:00
SGCMarkus
0a33bd0595 sm7325-common: sepolicy: adapt dt2w path to new implementation
Change-Id: Ibedf5ec526dfea8353838e267fefd7e5ef3a18d5
2022-08-11 21:26:16 +02:00
SGCMarkus
163b60efb0 sm7325-common: sepolicy: label cam-sync/cam-req-mgr v4l name
and allow desktopcamera hal access to it

Change-Id: I518002f0ef620e708d72f7f53b94486913d8b974
2022-08-11 21:26:16 +02:00
SGCMarkus
c8748021a6 sm7325-common: sepolicy: allow init.qti.media to read sku_version
also label sku_version while we at it

Change-Id: Id826748274b96957f88b5e1abe11337778b20a8f
2022-08-11 21:26:16 +02:00
SGCMarkus
570636673b sm7325-common: sepolicy: allow fp hal to acess tzstorage data files
FP HAL needs read access to /data/vendor/tzstorage/goodix/gf_otp_info

Change-Id: If7460e792df04dfc1a1efdb8a2d72d56f1801a62
2022-08-11 21:26:16 +02:00
Peng Xu
4b72c1f28e sm7325-common: wifi: Enable support for IEEE80211AX
* This is to allow supporting WiFi 6 mobile hotspots,
   to be noted this is only supported on SDM855+ platforms.

[jjpprrrr: skipping CONFIG_IEEE80211AC because external/wpa_supplicant_8/wpa_supplicant/defconfig has it enabled by default]

Change-Id: Iab61bd12499968e8823b3078acd1c7b8bce46136
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2022-08-11 14:20:40 +02:00
SGCMarkus
c159f4a887 sm7325-common: use media_codecs_yupik_v0.xml also for v1
both ro.media.xml_variant.codecs and ro.media.xml_variant.codecs_performance are
set to _yupik_v1, but media_codecs_yupik_v1.xml, but it does not contain any
video codecs.
This causes video playback (e.g. Youtube) to only support up to 1080p60 (stuttering)
without HDR. Trying to record videos in >1080p will also result in the camera HAL
crashing.

Using the v0 config for v1 too fixes both issues. Youtube now supports up
to 4K60 with HDR, and camera recording in >1080p works.

Change-Id: I498c2fca380618dea4768e9d3fcda77585b1de97
2022-08-11 14:01:34 +02:00
SGCMarkus
9396fb121e sm7325-common: Switch to AOSP BT HAL
Change-Id: I9a733ff3edd6b1841096c86998007c51724ce309
2022-08-09 16:07:12 -04:00
Nolen Johnson
887dd57b09 sm7325-common: Swap to QTI USB init scripts
Change-Id: Ibb01a6a8b9817b01a8db397cdf82a89659562d62
2022-08-09 11:01:48 -04:00
Nolen Johnson
e438ed51d8 sm7325-common: Switch to commom QSAP
Change-Id: Ia57042a4fb9afe4c5b3e70c29d80c4f652901096
2022-08-08 16:58:29 -04:00
Nolen Johnson
8bb6ded719 sm7325-common: Import lineage.dependencies
Change-Id: I64020ee18c9054c7d209746a3fd7211d718d1296
2022-08-08 11:39:45 -04:00
SGCMarkus
b10f491df2 sm7325-common: build audioadsprpcd
this fixes audio recording/incall audio

Change-Id: Iedd83baf0c9e59689cbda5f027eaad76072782a2
2022-08-08 16:40:07 +02:00
Nolen Johnson
21be1e6bc5 sm7325-common: Cleanup dead targets
build/make/core/main.mk:1136: warning:  device/motorola/berlin/lineage_berlin.mk includes non-existent modules in PRODUCT_PACKAGES

Offending entries:
libOmxVdec
libOmxVenc
libOmxVidcCommon
libc2dcolorconvert
libqcreverb

build/make/core/main.mk:1136: error: Build failed.
15:35:26 ckati failed with: exit status 1

To do this yourself, put the following line into
lineage_$TARGET.mk:

`$(call enforce-product-packages-exist,)`

Note that the above flag must be in the product
makefile to work.

Change-Id: I0e4d93f4c3be077d49befa1f547d11d623ca74d5 |
2022-08-07 22:04:29 -04:00
Nolen Johnson
6db14c7ddc sm7325-common: Correctly declare device recovery directory
Change-Id: Iebf2df406c526df25df74252d5b11e8eb4a32528
2022-08-07 22:04:29 -04:00
Nolen Johnson
08d1e2c466 sm7325-common: Simplify AVB flag logic
* AVB's `--flags 3` argument builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838
2022-08-07 22:04:29 -04:00
Nolen Johnson
33c7540b74 sm7325-common: Remove BSP specific flags
Change-Id: Ie2673f2a9cbb0dc4626653e367a6c2d2ca3d9635
2022-08-07 22:04:29 -04:00
Elektroschmock
f16f2c5d7b sm7325-common: Drop USE_DEVICE_SPECIFIC_CAMERA
* Old, dead, not something we use.

Change-Id: I254a85b85380f53b105f01b33ff49a35d56214aa
2022-08-07 20:14:35 -04:00
Nolen Johnson
9b36511027 sm7325-common: Remove deprecated TARGET_USES_QTI_CAMERA_DEVICE
* Dead as of https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/331507.
* We never needed this.

Change-Id: I8ec420d6264fee70a1602eecdbb4f34f2e5db3dc
2022-08-07 19:24:23 -04:00
Georg Veichtlbauer
fd22d9fc17 sm7325-common: Remove CLANG compile flag
Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a
2022-08-07 19:21:06 -04:00