481 Commits

Author SHA1 Message Date
Bruno Martins
4d12290948 sm7325-common: Undeclare duplicated Widevine DRM HAL interfaces
Already declared in Widevine DRM HAL fragment manifest.

Change-Id: Ie115f76f73bd4782dbb73d8533f5d1fb537f8f8b
2023-11-03 19:47:53 +00:00
Madhanraj Chelladurai
863b7b2a0d sm7325-common: gps: Add NULL check before object access
Correct the NULL check code block and add NULL check before
object access.

Change-Id: Ic41b781b41fb4e21bbff8801d500a41a6d7219d0
CRs-fixed: 3084543
2023-11-03 19:47:53 +00:00
me-cafebabe
15733abf50 sm7325-common: gps: Fix compilation on U
Change-Id: I7ca7e78addd6385289b8449edae8b682839ecc91
2023-11-03 17:31:59 +00:00
Nolen Johnson
c2e8af7507 Revert "sm7325-common: sepolicy: address schedtune*"
This reverts commit 55772d45005910e6764c0b457e840f1cc85f1f71.

Reason for revert: Brought to my attention that this is way too broad. Agree.

Change-Id: I3e2fec355960844d2af8af3212780245fc53d66b
(cherry picked from commit 5cd03a02dcc34e31fe40c15ec9c7217b66089234)
2023-11-03 17:31:12 +00:00
Adithya R
02fdd10375 sm7325-common: Rollback netmgrd to S1RDS32.55-106-3
Newer netmgrd breaks VoWiFi on Jio and possibly other carriers.

Change-Id: I9fe4798333387bfe5ac18183d3533ee44d267ce5
(cherry picked from commit 189c1e5729f67e3868cc5167a4a75e147c567dc3)
2023-11-03 16:52:14 +00:00
Andrew Hexen
efd7c01bac sm7325-common: sepolicy: address schedtune*
avc: denied { create } for name="schedtune.prefer_idle" scontext=u:r:vendor_init:s0 tcontext=u:object_r:device:s0 tclass=file permissive=0
init: Command 'write /dev/stune/camera-daemon/schedtune.prefer_idle 1' action=boot (/vendor/etc/init/hw/init.target.rc:109) took 2ms and failed: Unable to write to file '/dev/stune/camera-daemon/schedtune.prefer_idle': open() failed: Permission denied

avc: denied { create } for name="schedtune.boost" scontext=u:r:vendor_init:s0 tcontext=u:object_r:device:s0 tclass=file
init: Command 'write /dev/stune/camera-daemon/schedtune.boost 0' action=boot (/vendor/etc/init/hw/init.target.rc:110) took 3ms and failed: Unable to write to file '/dev/stune/camera-daemon/schedtune.boost': open() failed: Permission denied

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I4111e507598a18c246593f6a7a92769e8d7e7013
(cherry picked from commit 55772d45005910e6764c0b457e840f1cc85f1f71)
2023-11-03 16:50:15 +00:00
Bruno Martins
1f54f6d684 sm7325-common: Migrate to restructured sepolicy_vndr
The new folder structure now looks like this:

  device/qcom/sepolicy_vndr
  ├─ legacy-um (meant for sdm845 until sm8350)
  ├─ sm8450
  └─ sm8550

SEPolicy.mk placed in the root automatically redirects devices to the
proper subfolder.

Change-Id: I4ed1a06af779909d64172da294c4a99a3ae9ba0d
2023-11-01 10:58:30 -04:00
LuK1337
e5da7d63fb sm7325-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2023-11-01 10:57:05 -04:00
Gabriel Biren
a9a311c5fb sm7325-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2023-11-01 10:55:16 -04:00
Nolen Johnson
6d2fa52c6f sm7325-common: T1RD33M.116-33-12
Change-Id: I4717468cdef15c8b0bcba3f9eed6f47cb0e4d714
2023-10-31 18:39:14 -04:00
Andrew Hexen
56d93f30a0
sm7325-common: symlink vendor/fsg to system_root
* Seems to be an issue where if modemst1/2 (efs) is wiped modem only looks for fsg to rebuild efs in the root_directory.

* Even though this isn't correct it should allow radio to be easily flashed during future firmware upgrades as the stock radio.img is a container which flashes fsg/modem then passes the command to wipe modemst*

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: Ic7acabbe16d66740b3aee414be60c24d3a0de43d
2023-10-26 06:09:48 -07:00
Andrew Hexen
d1f45b867a
sm7325-common: add fsg symlink to RFS_MSM_MPSS
* Seen observing the stock structure in rfs

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I479d44d0b7e47f09c592625413655056988712fd
2023-10-26 06:08:17 -07:00
Marc Bourgoin
d882b7f673 sm7325-common: Update blobs from DUBAI_RETAIL_13_T1RD33.116-33-5_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC
Change-Id: I12374c2e426f2d29321164c090373a2da67ea3ad
2023-10-03 00:34:00 -06:00
Andrew Hexen
d547418d5e
sm7325-common: wifi: Support Wifi6
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I32ecb3dad590cb6ab76aef70f5bab26e80d29321
2023-09-06 11:16:27 -07:00
Cassie
ee13fe00b4
sm7325-common: overlay: Use the new auto network selection UI
Change-Id: I76698911103601d5f3ad67e1099790af8c2fdc18
2023-09-06 10:58:39 -07:00
Andrew Hexen
cb11d4250f
sm7325-common: sepolicy: fix init.oem.fingerprint2.sh
* For dynamic fingerprint.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I3f3b4904b8ca3d0e3fb7d8eae235a65996df2434
2023-08-31 03:24:56 -07:00
Andrew Hexen
7bbe2cd97f
sm7325-common: vendor.prop: remove media.settings.xml
* Already set dynamically via init and the property here is blocked by sepolicy anyways, but if one were to boot permissive this would point to a non-exist file crashing media.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I1951084243b7fa0f697210c353abedbae2ec86a1
2023-08-31 03:24:56 -07:00
Andrew Hexen
d2f6ea07a5
sm7325-common: lights: remove non-existant node
* original bringup on 19.1 this did exist but no longer seems to be the case.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I09998c24652faab76ce0cb58b74e65d3a87295a8
2023-08-10 10:48:50 -07:00
dianlujitao
b7db219e92
sm7325-common: Set timer trigger for charging LED
Required after recent kernel update. Based on QCOM commits:
  liblight: set "timer" trigger before setting delay for blinking
  display: light: set timer trigger before updating delay_on/off values
  display: light: clear timer trigger before setting brightness

Change-Id: Iaa4d78fe7411f299ba866de174782c269c068c23
2023-08-09 08:04:52 -07:00
kleidione
37fd5434fc sm7325-common: overlay: Disable doze display state supported
* Fixes dt2w on aod

Change-Id: Ibea7338843e3c98a485c4f8038bb64e95e2cb479
Signed-off-by: kleidione <kleidione@gmail.com>
2023-06-29 14:57:44 -03:00
Erik Drozina
497a7b1b61 sm7325-common: sepolicy: Label some RIL property
W/libc: Access denied finding property "{ro.vendor.ril.svlte1x,ro.vendor.ril.svdo,ro.fota.oem,ro.product.marketname}"

Signed-off-by: Erik Drozina <erikdro41@gmail.com>
Change-Id: I7272823540980a927cfb8243122de941e16a97c2
2023-06-22 02:33:27 +02:00
LuckYViii
f6745648c0 sm7325-common: rootdir: Remove legacy ril-daemon and vendor.ril-daemon rules
* W libc : Unable to set property "ctl.stop" to "ril-daemon": error code: 0x20
* W libc : Unable to set property "ctl.stop" to "vendor.ril-daemon": error code: 0x20

Change-Id: I80784cb3d6ee3cf539b3a8b5dbcada2e8b850641
2023-06-21 13:27:23 -03:00
Michael Bestas
17da50dfc4 sm7325-common: sepolicy: Resolve vendor_init_touch denials
Change-Id: Ia71c46662f12f3939e1a4d51b4ab06101f8cc9b7
2023-06-21 13:26:42 -03:00
Michael Bestas
f958dbb553 sm7325-common: sepolicy: Allow rild read mnt_vendor_file dir
Change-Id: I099d1ea9e0c690af7e96764852b2122ac8bf6ae9
2023-06-21 13:26:30 -03:00
Nolen Johnson
383ae94428 [TMP] Revert "sm7325-common: Build Lineage Health HAL"
This reverts commit e63d405d36b99660806ef278dd4909373b031a7b.

Reason for revert: Need to rework kernel side.

Change-Id: I5edfb82b02a63ab068dfe87878bc2be7edb197b1
2023-06-21 05:15:57 +02:00
Adithya R
dec61d442b sm7325-common: rootdir: Set ro.boot.hardware.revision
Bootloader sets ro.boot.revision, we can use this to show
"Hardware version" in model information in Settings.

Change-Id: Id2d825f60f792e6d05c0b34cfee811a0ac3b5604
2023-06-14 17:58:35 -06:00
Andrew Hexen
3dd594656e sm7325-common: media: revert yupik configs to A12 versions
Slow motion video recording is broken on all common devices with A13 media profiles.

Change-Id: Ifdefc3cdee911182315229a53ec0aba3ea0bc9a9
2023-06-09 22:41:54 -06:00
Andrew Hexen
94b37d4420 sm7325-common: Build missing telephony packages
* New dependencies needed for the A13 radio stack.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I0813f5b4c6bab7fc384413b65c66ffb416d450b3
2023-06-09 22:41:50 -06:00
Marc Bourgoin
4f2a172773 sm7325-common: Update blobs from DUBAI_RETAIL_13_T1RD33.116-33-3_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC
Co-authored-by: sb6596 <shubhamprince111@gmail.com>
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I3e12f16adcb353d22f758eab4a281785d16212b2
2023-06-09 22:41:45 -06:00
Michael Bestas
e63d405d36 sm7325-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-09 13:59:05 -04:00
Michael Bestas
8cbf817fce sm7325-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-06-09 13:59:05 -04:00
Michael Bestas
104d9a6b48 sm7325-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-06-09 12:38:57 -04:00
Adithya R
33ddc4f499 sm7325-common: ramdisk: Nuke non-modified qti media script
We have want to ensure the one in the media folder gets copied

Change-Id: I2d85bb5c4989611139997b03c2b7e2e61fd4e19e
2023-06-09 08:17:34 +02:00
Andrew Hexen
0ae52b2bd5
sm7325-common: Decommon hotword blobs
* Eventually these are going to desync as only certain devices are getting the A13 firmware, more information here: Icf71851c3c6f4a211edc435a6a577ac4bdbea310

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: Iaa064e193a62d40c7d3e1cb5c856c9ed9b9876f3
2023-06-01 07:17:13 -07:00
sb6596
35e0aee3f8 sm7325-common: Update Power-off alarm from phone 1 TKQ1.220915.002
Change-Id: I945a33f3638b934620408cd5a3895cf498a645eb
Signed-off-by: sb6596 <shubhamprince111@gmail.com>
2023-05-22 21:54:38 -06:00
Adithya R
b049a68dd8 sm7325-common: Nuke yupik_v0 media configs
no shipped yupik device is v0

Change-Id: I177661c1532ab0b3549e565552eac564cd10754f
2023-05-19 16:13:35 -06:00
Michael Bestas
89c6af24a0 sm7325-common: Lower gps debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2023-05-15 12:43:57 -04:00
Marc Bourgoin
b3c1df5215 sm7325-common: Update blobs from DUBAI_RETAIL_12_S1RDS32.55-106-4_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC
Change-Id: Icbd488e54568f3bf37acfb4cd464667eb89f7b94
2023-05-11 10:27:40 -06:00
Marc Bourgoin
2668db752f sm7325-common: Rerun sort blobs
https: //github.com/LineageOS/android_tools_extract-utils/commit/21026226be626720a1bde394c519ba2543ac439e

Change-Id: I03238e3107d4e110b61463986dc3adb2a7cdaca8
2023-05-11 10:27:36 -06:00
Emerson Honorato
e8076610dd sm7325-common: media: Switch to lahaina_vendor variants
Change-Id: Ibe86bca87905e9c8cc202f957590e9d25a5d50f2
2023-05-06 08:33:42 -06:00
Marc Bourgoin
c233285c22 sm7325-common: Commonize sepolicy
Change-Id: Idbc4e5f655fd19cc4754aab99d8bb236a73f9a12
2023-04-28 08:46:40 -06:00
Marc Bourgoin
fcbf39be75 sm7325-common: Add init.oem.fingerprint2.sh
It turns out berlna still needs this to initialize FP sensor
even though in the real world only one is used, so we might
as well leave this in common for berlna and xpeng

Change-Id: I094d12dc7581099c611dc1ffedf63d065af04081
2023-04-28 08:09:37 -06:00
Marc Bourgoin
f3b85fa1a0 sm7325-common: Update SDM from Sony XQ-BC72_Customized HK_61.2.A.0.410
Their blobs match the LA.UM.9.14.r1-20000.01-LAHAINA.QSSI13.0 display HAL tag

Change-Id: I0e54756e88af8b42e308efa7cbec2c8592934ae0
2023-04-27 20:11:55 +02:00
Marc Bourgoin
1d092241cd sm7325-common: Update display/graphics blobs from tundra
From TUNDRA_RETAIL_12_S3SJS32.1-86-1-4_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC

dubai blobs aren't on a new enough CLO tag to be compatible with the display
stack CLO tag LA.UM.9.14.r1-20000.01-LAHAINA.QSSI13.0
https://review.lineageos.org/c/LineageOS/android_hardware_qcom_display/+/349384

Change-Id: If276861699519604d74ef083f122bec792ea831c
2023-04-27 20:11:40 +02:00
Marc Bourgoin
8b97b422df sm7325-common: media: Update from tundra 12_S3SJS32.1-86-1-4
Change-Id: Id10be491caee5ec690b15ea722a8ae15b83a120d
2023-04-23 00:45:15 -06:00
Arian
01ac85ebb0 sm7325-common: Set ro.media.xml_variant.profiles to choose media profiles
This was introduced with [1] and allows to choose target specific media
profiles without caf changes to frameworks/av. Unset media.settings.xml
so that the new property gets respected and drop copying the lahaina
config as media_profiles_vendor since we don't need a fallback anymore.

[1]: eaac82f33f#

Change-Id: I7ec306bf3dd595c09308ed26c9d3a6db8490c7f0
2023-04-23 00:45:15 -06:00
Arian
618ef72efa sm7325-common: media: Cleanup init script
Drop unsupported platforms, simplify target_variant setup and drop qssi
and build codename checks.

Change-Id: I392c09587bfbf15c0bd3af84cc12d1bdb8e269d6
2023-04-23 00:45:15 -06:00
Arian
e8ed2d7b70 sm7325-common: Import qti media init script from tundra 12_S3SJS32.1-86-1-4
Change-Id: Iab9a821bb7135b76205ce1a28ddc950ce852a42b
2023-04-23 00:45:15 -06:00
Marc Bourgoin
49d77cfc9e sm7325-common: sm7325.mk -> common.mk
Since we support both sm8350 and sm7325 it makes sense to just rename this

Change-Id: I508b31e2f645b3eafd37c353c92b2a515b2da425
2023-04-23 00:45:15 -06:00
Marc Bourgoin
a149d5bf76 sm7325-common: Address some xpeng fingerprint denials
Change-Id: Ie49d70441f5440c92b8dea3d086bda5502b95be6
2023-04-23 00:45:15 -06:00