429 Commits

Author SHA1 Message Date
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
Nolen Johnson
9896d6196a sm7325-common: Enforce vendor board configuration presence
* We already do so for blobs, so why not here.

Change-Id: Ia6ed0475b1f5360c027b9bcbbd2d6f4330add11c
2022-08-07 19:13:31 -04:00
Nolen Johnson
c4c6e293ab sm7325-common: At least berlin doesn't have a battery/notification light 2022-08-07 19:08:48 -04:00
SGCMarkus
094c887e12 sm7325-common: update blobs to S1RG32.53-18-11-7
Change-Id: I1fd5f5d662268ae3dff95c8bff1f08dc6b9a65cb
2022-08-07 22:50:10 +02:00
SGCMarkus
1008a7e64b sm7325-common: build more blobs from source
includes:
*) com.dsi.ant@1.0
*) vendor.qti.hardware.btconfigstore@1.0
*) vendor.qti.hardware.btconfigstore@2.0
*) vendor.qti.hardware.display.composer-service
*) libdisplayconfig.qti
*) libsdmcore
*) libsdmutils
*) libsdedrm
*) libqsap_sdk
*) vendor.qti.hardware.systemhelper@1.0

Change-Id: Ica20d37094b0528f0b3984f0500f17f6f253b14f
2022-08-07 15:28:00 +02:00
SGCMarkus
5d74aa1df4 sm7325-common: add missing blob for wfd
Change-Id: I491adc3078b4494a5f5334ddf05951a005d78c33
2022-08-07 14:03:35 +02:00
SGCMarkus
0b1356480e sm7325-common: add back qccsyshal and uprev to 1.1
Change-Id: I681bf3964c697c16a3b9d8fd1d9d720c3331b720
2022-08-07 14:03:09 +02:00
Michael Bestas
3f2fa585cb sm7325-common: Enable peak refresh rate toggle in Settings
Nio supports switching between 60 and 90 Hz refresh rates, pstar between
48, 60, 90, 120 and 144 Hz, so let's expose it in
Settings -> Display -> Peak refresh rate for users to save battery
if necessary.

Smooth display only changes between 48 and 144 Hz, which can cause
flickering on certain brightness levels, so let the user chose
which range he prefers.

Test: visual confirmation after toggling several times
Change-Id: Ia206c495e3f40f583f8cd35e7753c30a5e917656
2022-08-06 22:08:29 +02:00
SGCMarkus
af0009e996 Revert "sm7325-common: show smooth display settings instead of min refresh rate"
This reverts commit 0a4e913d635efb03f901605396fda7401bc38923.

Change-Id: Id22747471ac809f1245ec7985d5756453aa94f78
2022-08-06 22:08:09 +02:00
SGCMarkus
f2a8de29f1 sm7325-common: update to S1RG32.53-18-11
Change-Id: I4bea9b6ebe78c4fc87c89405b43bb51467575be5
2022-08-06 21:51:07 +02:00
Marc Bourgoin
782cc6aa56 sm7325-common: Add support for dubai (Edge 30)
Also decommonize a kernel cmdline

Change-Id: Id5aa4a5b2b893bd43531fa7bd0c1b9391705b430
2022-08-04 10:14:51 +02:00
SGCMarkus
bd19a02fbd sm7325-common: manifest: add back qspmhal entry
was accidentally nuked in 5ea51e95460be6f5602ad641c0a0b0ee767f9f7c

Change-Id: I98dd0253e2ffc5a5db8ceecd0733ea12e6fe34de
2022-08-04 08:53:23 +02:00
Marc Bourgoin
c75f08dd0f sm7325-common: Fix setup makefiles for berlin
Change-Id: I7c983f470594025cd6e90c217641fb4e70fa4d93
2022-08-04 08:14:25 +02:00
SGCMarkus
5ea51e9546 sm7325-common: manifest: remove non-existing services
also add entries for esepowermanager and qteeconnector

Change-Id: I8fd402f96816edfb93a2f0250f063adaba5ce8b1
2022-07-30 14:10:52 +02:00
SGCMarkus
a34f68d835 sm7325-common: enable opensource st hal
Change-Id: I0173f8dd0e2bdca208e97dbe828041fca0a2cad2
2022-07-30 14:00:59 +02:00
SGCMarkus
e4707038de sm7325-common: proprietary files: add missing libmmosal.so
Change-Id: I56776f83afe41f59d22c8761e138cd0c30e010aa
2022-07-29 21:04:47 +02:00
SGCMarkus
fa03a06bc4 sm7325-common: yupik: add missing service entries
Change-Id: I433f835b4cb645b497ed6e1a8a6061f0a093c5fd
2022-07-29 21:04:20 +02:00
SGCMarkus
f5802549a3 sm7325-common: create wpss symlinks
Change-Id: Ia35bce3be6951401137d96a77ba11e6290524b64
2022-07-29 19:31:00 +02:00
SGCMarkus
d023bd34ae sm7325-common: rename qca6750.ko to qca_cld3_qca6750.ko during build
Change-Id: I39ffbec91342edec871665653961425c9d78a5b9
2022-07-29 15:16:07 +02:00
SGCMarkus
f216a1fc2e sm7325-common: rootdir: add missing qti display_boot and qcv rc files
Change-Id: I10a47aa3d4bfeb8b99f20e55659318ec43931832
2022-07-29 15:14:46 +02:00