490 Commits

Author SHA1 Message Date
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
Marc Bourgoin
a0b19996f8 sm7325-common: Decommonize fingerprint HW ident entries from ramdisk
Only xpeng needs this

Change-Id: Iaac7d76f4cbdc32ef186fb7d327b2d3a8b195f9f
2023-04-23 00:45:15 -06:00
electimon
68e350c835 sm7325-common: Use one qcacld config for all chips
* ximi sm8350-common does this, and it works, so why not.

* Also cleanup some unused entries like wlan_mac and
  WCNSS_mot_cfg

Change-Id: Ifaf77ece24c229fce55f93079236a03282d5a891
Signed-off-by: electimon <electimon@gmail.com>
2023-04-23 00:45:15 -06:00
electimon
2120f3cd4a sm7325-common: Remove unneeded cmdline properties
* HAB properties are appended by the bootloader,
  as well as console. RTB filter is a debug property.

Change-Id: If5347a00492c6782f17355b5221c033987475b09
Signed-off-by: electimon <electimon@gmail.com>
2023-04-23 00:45:15 -06:00
electimon
8de4fbe8b1 sm7325-common: Rename manifest_yupik.xml to manifest.xml
* CAF only does this because they use one device tree
  for all 3 SoCs, vendor/qcom/lahaina. We use one -common
  tree with device trees inheriting it. There is no need
  to have manifest_yupik.xml.

Change-Id: I133f19725d523ce2e4acb17114b687f9e5757019
Signed-off-by: electimon <electimon@gmail.com>
2023-04-23 00:45:15 -06:00
Marc Bourgoin
bb40495639 sm7325-common: Initial xpeng support
Motorola Moto g200 5G (aka Motorola Edge S30)

Change-Id: Iea52112fefb54cc60c2c99f66ae848e54dc2be1c
2023-04-23 00:45:11 -06:00
Marc Bourgoin
bd2d3000b4 sm7325-common: Update blobs from DUBAI_RETAIL_12_S1RDS32.55-106-3_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC
Change-Id: If310308611b450e6646d581e1f2ce09eca46108a
2023-03-27 22:41:44 -06:00
Michael Bestas
93eca01bce sm7325-common: Remove no longer needed aptX blobs
As of Android 13 QPR2, AOSP Bluetooth APEX supports aptX/aptX HD

Change-Id: I03c210dd5a777f71becb691955c01f9caf0bd207
2023-03-19 14:13:33 -04:00
Marc Bourgoin
555896aae7 Revert "sm7325-common: Use bluetooth firmware from A52s"
This reverts commit bdbd9a4df48998b12acc836a802e5b744f00ec29.

Reason: Xiaomi Mi 11 Lite 5G NE (lisa) got A13 stock ROM so we can just
flash their bluetooth firmware partition onto ours and fix the issue
right at the source and drop the fix we have in our device tree.

Change-Id: I21f4918f8d0fc794db29b4aa2235c238c36a800e
2023-03-11 03:04:30 +01:00
Marc Bourgoin
28525eb0b4 sm7325-common: Update from DUBAI_G_S1RD32.55-106_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC.xml
Also update cvp section

Change-Id: I8068cfcbc84093ebd78e4b6899951978893eb36f
2023-03-05 08:39:56 -07:00
Bruno Martins
071491f492 sm7325-common: Drop custom APM flag
Custom audio policy manager is hard disabled by CAF
for 2 years now.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
2023-02-14 10:58:51 -05:00
dianlujitao
34c7a88992 sm7325-common: Fix non-ASCII character in gps.conf
:caf:

Change-Id: Iea9c44c0fbad574cbc077feea3d9f1de83d7d99a
2023-02-14 10:56:32 -05:00
Andrew Hexen
c42e6238fa sm7325-common: sepolicy: address berlna inclusion
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I7fe90b00a54e56abb977f6edfef2da7fbcf1509c
(cherry picked from commit e9023f971a09242e69ef14788c0c9af83291ac42)
2023-02-08 19:15:05 +01:00
Andrew Hexen
99f323a64e sm7325-common: sepolicy: address vendor_hal_imsfactory_hwservice
Fixes:
avc: denied  { find } for interface=vendor.qti.ims.factory::IImsFactory sid=u:r:vendor_dataservice_app:s0 pid=2653 scontext=u:r:vendor_dataservice_app:s0 tcontext=u:object_r:vendor_hal_imsfactory_hwservice:s0 tclass=hwservice_manager

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: Icda45278cd964f545be7f757deafb2a5a9cda0c1
(cherry picked from commit 7eb7df7e96a9a59b493b4346c6a3d62085b4ca68)
2023-02-08 19:14:41 +01:00
Andrew Hexen
4928d3c4bb sm7325-common: rootdir: import device specific recovery.rc
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: Ia7df40201ca7401576e738674a9fed64fed1d903
(cherry picked from commit 3151c775d14654da7bf14a3264fb49ae18e60875)
2023-02-08 19:14:29 +01:00
Cosmin Tanislav
f89ad28fcb sm7325-common: remove wlan module alias
Doesn't even work. Module is still wlan.ko.

Change-Id: I62d58dadfba1e2357b5106226f4435cc32a3058e
2023-01-28 18:44:38 +02:00
Andrew Hexen
133239452c sm7325-common: Add berlna to guards
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: Iac7b5aa9778ecb9d01c1dc54f18eccdbdfde48d7
2023-01-25 22:58:01 +01:00
Simon1511
0ace600baf sm7325-common: Add missing libjnihelper
* This is needed by CACertService.apk.

Change-Id: I80b0002b979a054d9bd464cdf174fc691c32e989
2023-01-25 21:45:55 +01:00
Andrew Hexen
6be8477996 fixup! sm7325-common: Update to S1RD32M.55-94
* appears to be a typo in the tag and while we are at it define VENDOR_SECURITY_PATCH

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I36ebf0895eb87dffa9254cd87d420e25d43b11c0
2023-01-25 15:23:14 -05:00
Michael Bestas
113654f8ed sm7325-common: sepolicy: Remove duplicate wakeup nodes
Needed after I026cd6930459262c31c401e57444cfe2b60357b7

Change-Id: I0522bafab2605b3d0ab5a147154b32fa9ee3ce37
2023-01-18 00:30:59 +01:00
AdarshGrewal
be665bac21 sm7325-common: Allow moto camera3 to skip stream size check
Change-Id: I0b42bc0029c068f677f8e52f3d69330e30936ba9
2023-01-04 05:41:02 +01:00
Kalpaj Chaudhari
b35d644b2d sm7325-common: Update ims.apk patches
Also includes these commits:

ImsConfigImpl: Remove call to syncWfcMDN()
ImsConfigImpl: Return 0 in getWfcMDN in any case
ImsServiceStub: force disable auto reject mode

Change-Id: Ib850197933c33e29697d57b97037de678c40546b
2023-01-04 05:38:07 +01:00
Kalpaj Chaudhari
c9c997e3b3 sm7325-common: Fixes related to system suspend sepolicies
Change-Id: I2d7bca3e7db32627eddc5699dfb4cd7db6ec8784
2023-01-04 05:32:53 +01:00
Marc Bourgoin
cbec2b57ed Partially Revert "sm7325-common: Use default refresh rate overlays"
This partially reverts commit 429d082485d206e551e09cf433abdcc1b47b116e.

Oddly, the Frameworks defaults values causes peak refresh rate to fail to
work for us... so let's just partially revert and set the default peak to
60 and then users can then chose their own peak refresh value if they want.

Change-Id: Ibf2e645e3508e28e3e7c092d05db0598adafcf44
2023-01-02 05:33:38 +01:00
Bruno Martins
c924241d93 sm7325-common: Deduplicate handheld_core_hardware.xml copy rule
Since Android 10 that this is already done while inheriting from
full_base_telephony.mk.

Change-Id: If533fbf95a9cf9798ddba24955a624d26f550d62
2023-01-02 00:08:05 +00:00
Marc Bourgoin
5755271e9f sm7325-common: Update from dubai 12-S1RDS32M.55-94-2
Change-Id: I976d77ff5f309d5728f8e2717412b2b8eaf2545b
2022-12-27 19:12:54 -07:00
Marc Bourgoin
429d082485 sm7325-common: Use default refresh rate overlays
In the berlin/dubai trees we have overriding values that use the same as
the default values, so let's just revert to that.

Change-Id: Ie79456b0cf4c319b84bca0153ba2bdd91a87960e
2022-12-27 19:12:28 -07:00
Marc Bourgoin
90cb8dbf7a sm7325-common: Modify doze overlay
Change-Id: I2fe104c7fd2fe66a39ff1f842d0b7b71acaddfd8
2022-12-27 19:12:00 -07:00
Marc Bourgoin
7a6114fa5e sm7325-common: Modify the available color modes
Change-Id: I02458afa9e6606670054719b71ab9135547077bc
2022-12-27 19:11:37 -07:00
Marc Bourgoin
59435f6e00 Revert "sm8250-common: Don't call configureRpcThreadpool for camera postproc impl"
This reverts commit 7dffcc1c5846c1284337a37ac34b33c3b14d2fa4.

Reason: We don't need this on sm73250-common as we have A12 stock ROMs
Change-Id: I772856a78a70314f4390e19b5c68da706f0d76a6
2022-12-27 19:11:16 -07:00
dianlujitao
e2d929f309 sm7325-common: update-sha1sums: Handle line with opts
Change-Id: Ia41000b36f3535a3cf0ef8d7650d0d540de728de
2022-12-27 09:05:47 -07:00
dianlujitao
12f6226870 sm7325-common: update-sha1sums: Better handle line breaks
Change-Id: I15cfda82a5bc6f05c0d7b9db209064ba498dac11
2022-12-27 09:05:47 -07:00
dianlujitao
1628f1fb05 sm7325-common: Format update-sha1sums.py with yapf
Change-Id: I396ad6d79ea6e47ba8b9a56da317123c7579aa67
2022-12-27 09:05:47 -07:00
Bruno Martins
3a1f496e12 sm7325-common: Add unpinning support to update-sha1sums.py script
Change-Id: I9035b449cea6d78927a459dc247075b3d4512e46
2022-12-27 09:05:47 -07:00
LuK1337
4561d6172a sm7325-common: Handle moved blobs in update-sha1sums.py script
Change-Id: Iccab8c8620c7ff680768aac2d9cbf5b5067af8d7
2022-12-27 09:05:47 -07:00
LuK1337
326b621c7d sm7325-common: Add script to update sha1sums of kanged blobs
Change-Id: Id2e8cfb8d3b6f65f69c91a89bacd615fdcc45753
2022-12-27 09:05:47 -07:00
SGCMarkus
bdbd9a4df4 sm7325-common: Use bluetooth firmware from A52s
This fixes the bluetooth module crashing due to firmware that should support
BT LE as yupik is BT 5.2 but instead it fails.

Change-Id: If744eff8ceb7f665b0304fb4a506efd23926bbe1
2022-12-24 00:27:59 -07:00
sb6596
d7a8253ae0 sm7325-common: Update to S1RD32M.55-94
Change-Id: I468ccdc15ee948bf3601948f740e5904892003e8
Signed-off-by: sb6596 <shubhamprince111@gmail.com>
2022-12-11 09:51:02 -07:00
Alexander Koskovich
9f21d436de sm7325-common: Enable concurrent restricted connectivity
Change-Id: I4258a337503e9dc9dea8e35b326a78fbec86bb88
2022-12-11 17:50:05 +01:00
Wang Han
16751d26f6 sm7325-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2022-12-11 17:49:01 +01:00
Rick Yiu
0c6409907d sm7325-common: rootdir: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e
2022-12-11 17:49:01 +01:00
Kujou Yuko
a076a47e9b sm7325-common: Remove duplicate loop.max_part=7 from kernel cmdline
Change-Id: Ib4632febb5a3bb4c88f5235172f298b2f13f31c6
2022-12-11 17:49:01 +01:00