455 Commits

Author SHA1 Message Date
Cole Faust
189b622ad1 sm7325-common: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-03-10 23:26:03 +00:00
Tomasz Wasilczyk
a4905bd936 sm7325-common: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8
2024-03-10 19:24:42 -04:00
Marc Bourgoin
532bda2446 sm7325-common: Update blobs from from dubai_g-user 13 T1RDS33.116-33-15-1 06f6d-c0e7b release-keys - RETAIL variant
Change-Id: I23b046da6cf8744f9d3b9379668cc8d18b551365
2024-03-07 03:19:20 +00:00
Nolen Johnson
d40cb2d754 sm7325-common: Rename chargeonly_data_file to chargeonly_vendor_data_file
* For some magical reason, the naming (and not just associations)
  matter as of a few days ago - no clue why.

Change-Id: I6cf12b455dbf460a9be607d796af3536093e8427
2024-03-05 22:20:15 -05:00
Marc Bourgoin
81963a246e sm7325-common: Update PowerOffAlarm from spacewar
Change-Id: I32275f18c2544227922f32f840ef0e0f31afdf5f
2024-02-04 23:16:24 -07:00
Marc Bourgoin
14efdf9009 sm7325-common: Update QCC from spacewar
Change-Id: Id86a6d0e97d04889bf0cc4c3d244bef2fa554064
2024-02-04 23:14:17 -07:00
Demon Singur
b205eedb59 sm7325-common: do not build useless packages
Change-Id: I72076113083308e26573289923f5d3c00a8a6b44
2024-02-04 22:22:12 -07:00
Sebastiano Barezzi
6ff6a11fd4 sm7325-common: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2024-02-04 22:22:12 -07:00
Marc Bourgoin
8d398dc589 sm7325-common: Drop vAB move recovery to vendor_boot
Checking stock dubai boot image it has recovery there and not vendor_boot,
so to keep things similar let's do the same here

Change-Id: I86e89ec97a8ce9b4f71705ed526093f37f4331e6
2024-01-31 00:48:37 +00:00
Marc Bourgoin
25fab8c6ca sm7325-common: Update blobs from motorola/dubai_g/dubai:13/T1RD33.116-33-15/f0bc9-36fb4
Change-Id: I175c4b388079cbca7d5633de8b0eb1160639b2e5
2024-01-27 04:09:07 +00:00
LuK1337
ad376dd873 sm7325-common: overlay: Configure aux camera for Aperture
Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
2024-01-24 02:02:54 +00:00
Nolen Johnson
3c3de6b813 sm7325-common: sepolicy: Allow some processes to kill themselves
Change-Id: I6b51f99d76ba82aca9498d8218373958b8df938d
2024-01-24 01:54:45 +00:00
SGCMarkus
d0806c2ca5 sm7325-common: proprietary-files: remove qccsyshal
* requires old libprotobuf in system_ext, which doesnt exist anymore
causing this linker missing symbol:
_ZN6google8protobuf8internal14AddDescriptorsEPKNS1_15DescriptorTableE

also: what does qccsyshal do anyway?
Change-Id: Ibb7c8983ae243e67fdd8a8714a79d7b5766aef4f
2024-01-24 01:08:55 +00:00
Michael Bestas
7c62934d8a sm7325-common: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2024-01-06 22:21:54 -05:00
Marc Bourgoin
ffa600517f sm7325-common: Add Motorola info dump script
Change-Id: Ifc211b844bc5866dad87b9968c64a99558f6bb24
2023-12-26 22:15:44 -07:00
Bruno Martins
4ede8b4849 sm7325-common: Allow extracting only firmware images
Change-Id: Icab3f013661304e3a9ec89b0816a8139f6b8e8e5
2023-12-26 20:20:35 -07:00
Michael Bestas
62652b756a sm7325-common: Add firmware extraction support
Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
2023-12-26 20:20:34 -07:00
Marc Bourgoin
f87820258d sm7325-common: Update from T1RD33.116-33-13 441420-2d5de8
Nothing changed on common tree, just device... but before
the "Hey, Marc you didn't update common tree" comments start?
this is why.

Change-Id: Ic69284cc69118c52d0c0cc77550055d46db8a526
2023-12-26 20:11:08 -07:00
LuK1337
4794929ab7 sm7325-common: Sync extractors with templates
This applies the following tools/extract-utils changes:
* Allow overriding VENDOR with VENDOR_COMMON

Change-Id: Ib78643a3e6a648e21362b6a1fdc3581d41954700
2023-12-25 21:06:25 -07:00
Alexander Koskovich
39187e22c2 sm7325-common: Disable unspecialized app process pool
* Does not appear to work anymore, denials all over.

Change-Id: I16e4c5bbad3a443e7b69b669f173d5869b29c633
2023-12-25 17:42:11 -07:00
LuK1337
029151f194 sm7325-common: Build android.frameworks.sensorservice@1.0.vendor
Required by libdpps.

Change-Id: Iaf821dcbb07d7820f2fc3ff5ca9cca5e973360f2
2023-12-18 23:27:38 -05:00
LuK1337
ff112a5676 sm7325-common: Build android.hardware.bluetooth@1.0{,vendor}
Required by libantradio.

Change-Id: I5e26a4154cf54e64f424cb6cf20db87b7023f1cd
2023-12-18 23:27:23 -05:00
basamaryan
4c989ad8a8 sm7325-common: Build libprotobuf-cpp-full-3.9.1-vendorcompat
For now this is implicitly built by lineage specific
libprotobuf-cpp-lite-3.9.1-vendorcompat lib, but in the future this
might not be the case.

Change-Id: I724e933e046cbf631c078321d55550b96ca998da
2023-12-18 23:26:54 -05:00
DillerOFire
45b24bc3d8 sm7325-common: Nuke obsolete BOARD_BUILD_SYSTEM_ROOT_IMAGE
Change-Id: I8fafc8952e2b3bd535309a6aad035f02f1e00b14
2023-11-20 08:21:33 -07:00
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