374 Commits

Author SHA1 Message Date
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
Alexander Koskovich
2b1d39afc4 sm7325-common: Remove virtual framebuffer
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
2022-12-11 17:49:01 +01:00
Lisa Liu
c9984ff4ff sm7325-common: Enable LZ4 compression for ramdisks
* This shortens the time to unpack initramfs.

Change-Id: Id23daba43ae7a6003cbde29480d2f433f344df73
2022-12-11 17:49:01 +01:00
Mohammad Asaad Akram
8000001417 sm7325-common: Enable asynchronous library events in WPA supplicant
Change-Id: I3b028afa54605bd57d9fb5700d792cb9e5e0e76f
2022-12-11 17:49:01 +01:00
Alexander Koskovich
1fae7ae657 sm7325-common: rootdir: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2022-12-11 17:49:01 +01:00
Santiago Seifert
6ccf211672 sm7325-common: Unpin updatable-media from memory
Bug: 214499288
Test: Presubmit
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
2022-12-11 17:49:01 +01:00
Shubham Bhise
edb4b8507a sm7325-common: Fix WiFi symlink
Change-Id: Ic840dfcfa4d02b47e579981ff4e02da8f7b1feaa
Signed-off-by: Shubham Bhise <shubhamprince111@gmail.com>
2022-12-07 18:11:39 +01:00
Nolen Johnson
ce952d1a2d sm7325-common: Move system/qcom dependency to hardware/motorola
Change-Id: Id015dc72b079d4a0b1418e0d53316d92287ad44f
2022-11-08 11:16:58 -05:00
dianlujitao
e096e41a54 sm7325-common: Build moto common overlay
Change-Id: I2547000945e816a5b6cc9876bef4a8430cf38754
2022-11-07 14:25:41 -05:00
sb6596
122be7cc93 sm7325-common: Address motsettings denials
Signed-off-by: sb6596 <shubhamprince111@gmail.com>
Change-Id: I76cd3eabe887c6a03504f44161d10d90ea291f40
2022-10-11 23:54:08 +02:00
Alexander Koskovich
3b8e073903 sm7325-common: Drop debug.sf.latch_unsignaled from system.prop
* Already exists in vendor.prop

Change-Id: I4b98724aadf261e5b06c0135e305ffce455c14ae
2022-10-11 15:28:36 -04:00
Jun Wang
2d7530dd3a sm7325-common: Disable Skia tracing by default
If the prop "debug.hwui.skia_atrace_enabled" is enabled, too many
skia tracing calls will be printed in every frame. This has obvious
overhead on performance/power, and can cause many janks. So disable
it by default, and user can set it manually if necessary.

Change-Id: I5d470b22a643634bdd7db9f307c29deae6ff176f
2022-10-11 15:28:29 -04:00
dianlujitao
ac012e6dea sm7325-common: Mark 5G SA as available for Chinese carriers
Change-Id: I73272d313605e9347c157add9b096452c4c1ea7f
2022-10-11 15:28:23 -04:00
Alexander Koskovich
87b5b34a54 sm7325-common: Drop updatable GPU drivers
* Moto never wrote their own app so QCOM's is just
   a stub and this does nothing.

Change-Id: I0ec61c3b9abfa86368e6c23481d7edf5d8f6a036
2022-10-11 15:28:16 -04:00
Andrew Hexen
86fbf4f8be sm7325-common: sepolicy: fix property_contexts for MotCamera
* Move the props to private and redefine vendor_camera_prop

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I77a99969311b98739198cbaa2543e150167787d4
2022-10-11 15:28:08 -04:00
sb6596
9140dc75a1 sm7325-common: Address additional vendor_qti_init_shell denials
Signed-off-by: sb6596 <shubhamprince111@gmail.com>
Change-Id: I527a4d43e88183a4b608aac860f71452c7ed93b8
2022-10-11 15:28:02 -04:00
SamarV-121
71f89622fd sm7325-common: sepolicy: Allow hal_fingerprint_default to make self binder calls
`avc: denied { call } for comm="android.hardwar" scontext=u:r:hal_fingerprint_default:s0 tcontext=u:r:hal_fingerprint_default:s0 tclass=binder permissive=0`

Signed-off-by: sb6596 <shubhamprince111@gmail.com>
Change-Id: I7bdac61d9705f24ae068c522cf73af9c094ad97f
2022-10-11 15:27:56 -04:00