441 Commits

Author SHA1 Message Date
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
Jasmine Cha
bff9489c0e sm7325-common: sepolicy: add permission to request health/sensor data
- Add audio hal into hal_health clients
- Allow audio hal to find fwk_sensor_hwservice
SELinux : avc:  denied  { find } for interface=android.frameworks.sensorservice::ISensorManager sid=u:r:hal_audio_default:s0 pid=5907 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:fwk_sensor_hwservice:s0 tclass=hwservice_manager permissive=1
SELinux : avc:  denied  { find } for interface=android.hardware.health::IHealth sid=u:r:hal_audio_default:s0 pid=9875 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:hal_health_hwservice:s0 tclass=hwservice_manager permissive=1
audio.service: type=1400 audit(0.0:14): avc: denied { call } for scontext=u:r:hal_audio_default:s0 tcontext=u:r:hal_health_default:s0 tclass=binder permissive=1
audio.service: type=1400 audit(0.0:15): avc: denied { transfer } for scontext=u:r:hal_audio_default:s0 tcontext=u:r:hal_health_default:s0 tclass=binder permissive=1

Bug: 199382564
Bug: 199801586
Test: build pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I8e8a512cfbd6be814c98bac75ff6c0e5db028db2
2022-10-11 15:27:50 -04:00
Jeferson
d188362b07 sm7325-common: sepolicy: Label vendor.net.qmi.rev_ip_info as radio prop
* `avc: denied { set } for property=vendor.net.qmi.rev_ip_info pid=1301 uid=1001 gid=1001 scontext=u:r:netmgrd:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0`
  `init: Unable to set property 'vendor.net.qmi.rev_ip_info' from uid:1001 gid:1001 pid:1301: SELinux permission check failed`

Change-Id: Ie6047f7ed4180212836eaa38b3472a1a99f991b8
2022-10-11 15:18:25 -04:00
AdarshGrewal
72de88d1bf sm7325-common: Move surface_flinger props to vendor.prop
Change-Id: I33e8a1bb0b5c175bd3ef2febe9febcc5e4c31dd5
2022-10-11 15:18:19 -04:00
dianlujitao
79e7fafbc0 sm7325-common: Enable moto specific VT APIs for ims.apk
Change-Id: I9be06efcb8130efe543099a1d3a147c3c5148f1c
2022-10-11 15:18:13 -04:00
AdarshGrewal
23139744bc sm7325-common: Update blobs from Dubai 12-S1RD32M.55-67-4
Plus repatched ims.apk here
https://github.com/SGCMarkus/moto-ims/tree/S1RDS32.55-67-4

Also unpinned ImsRcsService and WFD

Co-authored-by: SGCMarkus <markusornik@gmail.com>
Co-authored-by: Marc Bourgoin <themard85@gmail.com>
Change-Id: I61d64a3d1493a5be8e1f48587ccc52814ab0588d
2022-10-11 15:18:07 -04:00
AdarshGrewal
edad8ae1cf sm7325-common: Drop support for AdaptiveBacklight from livedisplay
* Neither berlin nor dubai supports it.

Change-Id: I22842a489b1cfcb3f32ea3464338597473df912e
2022-10-11 15:18:00 -04:00
Cosmin Tanislav
4f164b2fd2 sm7325-common: manifest: do not declare secure element support
Change-Id: I81b5302cd2afe5dd31923684c0f8eda3b98109f2
2022-10-08 00:09:40 +02:00
Cosmin Tanislav
f65f648212 sm7325-common: remove light hal
Change-Id: I5307764a5a04b5a28f940b31759a4552cc75a0a2
2022-10-08 00:09:40 +02:00
Paul Keith
68fa5d283a sm7325-common: livedisplay: Fix racy init
* It turns out moving this to class main doesn't work as well
  as some had thought it would, so restore the previous logic
  to use class hal, and restart if the backend isn't up yet

Change-Id: Ib8b417d89108dcf80d0d159e8d84e5327944b2a1
2022-10-07 19:38:08 +02:00
Georg Veichtlbauer
855329fc9c sm7325-common: Drop config_setColorTransformAccelerated
It's now enabled by default

Change-Id: I57f059c872fc2ad2fd15e788b1391eeebaff9bde
2022-10-03 14:05:07 -04:00
Edwin Moquete
af62bb3f25 sm7325-common: Switch to legacy sepolicy_vndr
Change-Id: I13229c3057bf32c81b0fdace075f0791cb8ad380
2022-09-29 22:21:31 -04:00
SGCMarkus
ca570d271c sm7325-common: gps: fix logical or in GnssAPIClient
Change-Id: I24b76c34e72ffde298c3117361e4aff7d715deb2
2022-09-29 22:21:30 -04:00
SGCMarkus
a0fc1b687c sm7325-common: update gps to LA.UM.9.14.r1-20000-LAHAINA.QSSI13.0
Change-Id: I100b0807cce37b9f3724c74d2f0979a955d1ddd2
2022-09-29 22:21:29 -04:00
SGCMarkus
e7a9456ecd sm7325-common: update location to LA.UM.9.14.r1-20000-LAHAINA.QSSI13.0
Change-Id: I1a8efd6c0bd3649de877a08b193914ba6d3d4304
2022-09-29 22:21:28 -04:00
Michael Bestas
9f3feb2522 sm7325-common: Remove persist.sys.fflag.override.settings_bluetooth_hearing_aid
This has been replaced by `bluetooth.profile.asha.central.enabled`

Change-Id: I0bb72ec01a77f790ebeb594e45c695e9a087dc43
2022-09-29 22:21:27 -04:00
Mohammed Mirza Mandayappurath Manzoor
ca42ad08c8 sm7325-common: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2022-09-29 22:21:26 -04:00
Nate Jiang
6f1cd98b9f sm7325-common: wifi: Enable set channel on NDP setup
Bug: 190354626
Test: build, CtsVerifier
Change-Id: Ieff18b96ec0f24c1c20c40add4e47a532ece8922
2022-09-29 22:21:25 -04:00
Les Lee
1feb54b4ae sm7325-common: wifi: Configure correct overlay configuration.
ag/16564596 will change default value to false.
Configure correct overlay configuration.

Bug: 212488775
Test: manual test & build
Change-Id: Iaf1a0a23dae69fde5995e591a757a8ef5374d5b5
2022-09-29 22:21:24 -04:00
Woody Lin
d757d6a1ad sm7325-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2022-09-29 22:21:23 -04:00
Bruno Martins
095c667e44 sm7325-common: Migrate to AIDL ClearKey DRM HAL
Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2
2022-09-29 22:21:22 -04:00
LuK1337
2bd764b4b7 sm7325-common: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2022-09-29 22:21:21 -04:00
Bruno Martins
3fc54cfaf5 sm7325-common: Drop component overrides
This is no longer needed as of Android 13.

Change-Id: I38435c47c8781678f82014decbbae40dcab0a07b
2022-09-29 22:21:20 -04:00
eorg Veichtlbauer
b9e60887c6 sm7325-common: Move Bluetooth power config away from overlay
Same values go to:
- power profile xml for power calculation
- vendor props for the A13 BT stack

Change-Id: I04dbb8736a599c4798223f7e3e317b2fcc873ded
2022-09-29 22:21:19 -04:00
Bruno Martins
c798dca198 sm7325-common: overlay: Remove BT related configs
These have been migrated to sysprops in Android 13.

Change-Id: I34c1f6b882a61df6db95523997002512354d875e
2022-09-29 22:21:19 -04:00
Alice Kuo
a5e08a9072 sm7325-common: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)
2022-09-29 22:21:18 -04:00
Sal Savage
dc88b6d933 sm7325-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c
2022-09-29 22:21:17 -04:00
Sal Savage
5abdd4f352 sm7325-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1
2022-09-29 22:21:17 -04:00
Alexander Koskovich
e2f7d31417 sm7325-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2022-09-29 22:21:16 -04:00
Sal Savage
135f390e84 sm7325-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2022-09-29 22:21:15 -04:00
Sal Savage
b93a5b7ce5 sm7325-common: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2022-09-29 22:21:15 -04:00
Josh Wu
a36404f913 sm7325-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2022-09-29 22:21:14 -04:00
Jakub Pawlowski
19dbb0b0d2 sm7325-common: Use bluetooth.audio@2.1
bluetooth.audio@2.1 adds new functionalities required for Bluetooth LE
Audio development

Bug: 150670922
Change-Id: Iac2ece0c029a38fef82e81f5ba3ba491163818ef
2022-09-29 22:21:13 -04:00
SGCMarkus
e98449d472 sm7325-common: switch to developer_gsi_keys
Change-Id: Iad357bd7dc0b6ae15e381c23a7ddf7b86f50f14e
2022-09-29 22:21:13 -04:00