GitHub/LineageOS/android_device_motorola_exynos9610-common.git
16 months agoexynos9610: Configure Lineage Health HAL
Nolen Johnson [Tue, 27 Jun 2023 19:44:47 +0000 (15:44 -0400)]
exynos9610: Configure Lineage Health HAL

Change-Id: I14b6e4393e9cc55e68b3a7f6bb3b7fb623960ee8

17 months agoexynos9610: Build Lineage Health HAL
Michael Bestas [Fri, 3 Mar 2023 21:43:42 +0000 (23:43 +0200)]
exynos9610: Build Lineage Health HAL

Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf

19 months agoexynos9610: Use minimal GMS if building with it
Bruno Martins [Thu, 9 Jun 2022 13:34:59 +0000 (14:34 +0100)]
exynos9610: Use minimal GMS if building with it

Only minimal GMS fits.

Change-Id: If9ce99880bcd6949354f80882176aaaded9aad85

19 months agoexynos9610: sepolicy: Drop vendor_hwc_prop label
roynatech2544 [Thu, 6 Apr 2023 13:31:52 +0000 (22:31 +0900)]
exynos9610: sepolicy: Drop vendor_hwc_prop label

 - https://github.com/LineageOS/android_device_samsung_slsi_sepolicy/commit/d76e0586dc8562c879cc6a2ded48408c75c75f44

Change-Id: Ieef04d60a2154ce02fd35b668416426653d93674

19 months agoexynos9610: Uncomment FMRadio
Nolen Johnson [Sat, 18 Mar 2023 22:46:37 +0000 (18:46 -0400)]
exynos9610: Uncomment FMRadio

Change-Id: I882eb7ab2ce757bd4791b19b6b1c2fc13ed41b76

19 months agoexynos9610: Remove unneeded NFC packages
Georg Veichtlbauer [Thu, 9 Mar 2023 14:34:20 +0000 (15:34 +0100)]
exynos9610: Remove unneeded NFC packages

* NfcNci and SecureElement are built by handheld_system.mk

Change-Id: I83f686b67778634b584a58d8bae95d237e6dbad1

20 months agoexynos9610: Remove no longer needed aptX blobs
Michael Bestas [Tue, 14 Mar 2023 00:06:52 +0000 (02:06 +0200)]
exynos9610: Remove no longer needed aptX blobs

As of Android 13 QPR2, AOSP Bluetooth APEX supports aptX/aptX HD

Change-Id: I03c210dd5a777f71becb691955c01f9caf0bd207

22 months agoRevert "exynos9610: These devices doesn't support SIM hot-swap"
Nolen Johnson [Thu, 19 Jan 2023 00:37:36 +0000 (01:37 +0100)]
Revert "exynos9610: These devices doesn't support SIM hot-swap"

This reverts commit 42f5882fa4600858c4c75459c0225cc43cb516ff.

Reason for revert: Weirdly they do, but it didn't work before.

Change-Id: I2b1b510d94ca434ab42f3be7b7c7cbc16980e081
(cherry picked from commit 3d0154f2c5848eca5d299a1ec2264931566fd223)
(cherry picked from commit 5e1645478f6ffff741cf038686be44f79f36eef8)

22 months agoexynos9610: Enable AOSP bluetooth audio HAL v2
dianlujitao [Sat, 12 Oct 2019 02:12:37 +0000 (10:12 +0800)]
exynos9610: Enable AOSP bluetooth audio HAL v2

Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434

23 months agoexynos9610: overlay: Enable option for full screen aspect ratio
Jesse Chan [Tue, 1 May 2018 06:02:55 +0000 (23:02 -0700)]
exynos9610: overlay: Enable option for full screen aspect ratio

Change-Id: I2a1b2acc5ed97ccb6795dc371c2b3ac9cb4f9d03

2 years agoexynos9610: Update vendor patch level to match fingerprint
Nolen Johnson [Sat, 19 Nov 2022 05:55:23 +0000 (00:55 -0500)]
exynos9610: Update vendor patch level to match fingerprint

Change-Id: I3574800d1b30a9996b587efabc045a7cf780d6e2

2 years agoexynos9610: Remove no-op TARGET_KERNEL_ARCH flag
Zhao Wei Liew [Thu, 10 Nov 2016 12:27:36 +0000 (20:27 +0800)]
exynos9610: Remove no-op TARGET_KERNEL_ARCH flag

TARGET_KERNEL_ARCH is a no-op unless it is different from TARGET_ARCH.

Change-Id: If36d5adc3296b76d5efb21da0e196f0b005ae784

2 years agoexynos9610: Fix clock padding after lowering DPI
krazey [Sat, 27 Aug 2022 12:35:17 +0000 (14:35 +0200)]
exynos9610: Fix clock padding after lowering DPI

82bd1bcfcc18ee5f40d2a1bf98e2ddc8ccf4c5d8: exynos9610: Lower DPI to account for Android 12 UI

Signed-off-by: krazey <admin@krazey.de>
Change-Id: I427b0ed4db8ab9251494a0230c21fc299bc8e470

2 years agoexynos9610: TetheringOverlay: Change wifi tether regex
Roshan Pius [Fri, 27 Jul 2018 16:53:51 +0000 (09:53 -0700)]
exynos9610: TetheringOverlay: Change wifi tether regex

The wifi interface names for wifi can either be wlan0 or wlan1.
Change the "config_tether_wifi_regexs" appropriately.

Bug: 80375412
Test: Ensured we display "Hotspot on" in settings when softap is started
on either wlan0 or wlan1.

Change-Id: I0c456412f9b71ef2ee784f3bfa58b01b9287ca73

2 years agoexynos9610: props: Update winupdate property
Ivan Meler [Sun, 19 Jun 2022 16:41:20 +0000 (17:41 +0100)]
exynos9610: props: Update winupdate property

* winupdate needs vendor perfix to be set

Change-Id: If8febd8bc5e0195d53596f87540196e741459dff

2 years agoexynos9610: Remove TARGET_USES_64_BIT_BINDER
Kilian von Pflugk [Mon, 10 Dec 2018 11:31:27 +0000 (12:31 +0100)]
exynos9610: Remove TARGET_USES_64_BIT_BINDER

The TARGET_USES_64_BIT_BINDER option is deprecated and can be removed

Change-Id: Ieab43c6baf17eff134a11312d8f8ee7d1b310d55

2 years agoexynos9610: Drop snap from aux camera package list
Marc Bourgoin [Fri, 3 Jun 2022 00:35:20 +0000 (18:35 -0600)]
exynos9610: Drop snap from aux camera package list

Change-Id: Ia5880e618bcb9a249b537ebcc62c4d34b9348b99

2 years agoexynos9610: Speed profile services and wifi-service to reduce RAM and storage
Mathieu Chartier [Tue, 2 Nov 2021 16:04:43 +0000 (21:34 +0530)]
exynos9610: Speed profile services and wifi-service to reduce RAM and storage

Change-Id: I1d907b24cb2760ddd9cc65ac4335730c8e61a0a3

2 years agoexynos9610: Drop wifi_tether_configure_ssid_default
zlewchan [Fri, 24 Jun 2022 14:07:03 +0000 (16:07 +0200)]
exynos9610: Drop wifi_tether_configure_ssid_default

- We shouldn't set it in common tree as we have 2 devices using it, set this up via overlay directly in the device trees

Signed-off-by: zlewchan <wiktorusyt@protonmail.ch>
Change-Id: I277d9b6f2631f4f7c02fa96eccafeb53a216921c

2 years agoexynos9610: Move /vendor/ueventd.rc to /vendor/etc/ueventd.rc
Steven Moreland [Wed, 26 May 2021 00:41:38 +0000 (00:41 +0000)]
exynos9610: Move /vendor/ueventd.rc to /vendor/etc/ueventd.rc

The root location of this file is deprecated for Android T.

Bug: 189268918
Bug: 178221726
Test: device reaches boot complete after raising API level to 32
Change-Id: I97a6d2e5cacd0ac5eeb81daafeb8b1a0ad5c119b

2 years agoexynos9610: overlay: Update deprecated screen power items
Georg Veichtlbauer [Wed, 30 Mar 2022 10:18:29 +0000 (12:18 +0200)]
exynos9610: overlay: Update deprecated screen power items

* screen.on -> screen.on.display0
* screen.full -> screen.full.display0

AOSP frameworks/base: 8ac63071a4e6da7e0740f5eb6c6753218efcfd3a

Change-Id: Iad50e6cb63368e2d71e6fa1dbb6997c0f95d321e

2 years agoexynos9610: properties: Remove obsolete debug.sf.disable_backpressure
SamarV-121 [Sun, 13 Feb 2022 15:16:01 +0000 (23:16 +0800)]
exynos9610: properties: Remove obsolete debug.sf.disable_backpressure

 * It has been removed in Android S
 * https://android.googlesource.com/platform/frameworks/native/+/2ec5391acfc340c2e195d573cf5a078ff0f280d2

Change-Id: I23a210a37ad257f0c8b7a3c5e1d59b2ac20cde9a

2 years agoexynos9610: Sort proprietary-files listing
Nolen Johnson [Fri, 11 Nov 2022 21:38:04 +0000 (16:38 -0500)]
exynos9610: Sort proprietary-files listing

Change-Id: I939b44b4c89464e90c6ed4374b7c9bc8c5dd6a3a

2 years agoexynos9610: aidl: light: Use pragma once
Bruno Martins [Thu, 13 Jan 2022 20:04:02 +0000 (20:04 +0000)]
exynos9610: aidl: light: Use pragma once

Change-Id: I517d22da79659803c1271f79cb089710efbeba2f

2 years agoexynos9610: Patch wfc-pkt-router to load libip_checksum_shim
Nolen Johnson [Sat, 5 Nov 2022 05:10:43 +0000 (01:10 -0400)]
exynos9610: Patch wfc-pkt-router to load libip_checksum_shim

* In Android T, AOSP moved `libnetutils` to an APEX that is inaccessible
  to the vendor namespace - and it can't be built to vendor in any
  treble-compliant way.

* Our `wfc-pkt-router` blob lives on vendor, and relies on `libnetutils.so`.

* Upon further analysis, we only reply on a few checksum related functions,
  such as the symbol `ipv4_pseudo_header_checksum`, which lives in the (now)
  staticly included dependency of `libnetutils.so`, `libip_checksum`.

* To work around this, we enabled building `libip_checksum` as a stand-alone
  vendor_available library called `libip_checksum_shim.so`, and `patchelf`
  `wfc-pkt-router` to depend on `lib_up_checksum.so`.

Depends-on: I7dff9ec6c8ff146f6090e9519ece7844b4a057eb
Change-Id: Ibaae5435c20f36469bf3417069a3fa3cfeb3aa9a

2 years agoexynos9610: init: Update init script to use Supplicant AIDL interface.
Gabriel Biren [Wed, 5 Jan 2022 17:21:24 +0000 (17:21 +0000)]
exynos9610: init: Update init script to use Supplicant AIDL interface.

Bug: 196235436
Bug: 213271543
Test: m
Change-Id: I35ffd5390ba835e3b35e55ea38b27f1ab924b291

2 years agoexynos9610: Fix default DRM service drop
krazey [Sun, 6 Nov 2022 14:02:03 +0000 (15:02 +0100)]
exynos9610: Fix default DRM service drop

I hwservicemanager: Since android.hardware.drm@1.0::IDrmFactory/clearkey is not registered, trying to start it as a lazy HAL.
E [   39.845091,6] init: Control message: Could not find 'android.hardware.drm@1.0::IDrmFactory/clearkey' for ctl.interface_start from pid: 265 (/system/bin/hwservicemanager)
W libc    : Unable to set property "ctl.interface_start" to "android.hardware.drm@1.0::IDrmFactory/clearkey": error code: 0x20
I hwservicemanager: Tried to start android.hardware.drm@1.0::IDrmFactory/clearkey as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.

Change-Id: I9a2c62ff242652015cbe967be08a7cfbb1cd9950

2 years agoexynos9610: Build moto common overlay
dianlujitao [Fri, 4 Nov 2022 07:21:34 +0000 (15:21 +0800)]
exynos9610: Build moto common overlay

Change-Id: I2547000945e816a5b6cc9876bef4a8430cf38754

2 years agoexynos9610: Add hardware/samsung to soong namespaces
LuK1337 [Thu, 3 Nov 2022 19:57:11 +0000 (20:57 +0100)]
exynos9610: Add hardware/samsung to soong namespaces

See I78b1b9930a57bc01afda722b9f8a196c372f9d8b.

Change-Id: I634b562e12b70a0c060d449d3ba1d4e87204cf5d

2 years agoexynos9610: Include local soong namespace
Nolen Johnson [Sat, 5 Nov 2022 05:03:59 +0000 (01:03 -0400)]
exynos9610: Include local soong namespace

Change-Id: Ibf9779e92d181dae2d4aa729622c784afdef317a

2 years agoexynos9610: Sort blobs list
Nolen Johnson [Thu, 3 Nov 2022 15:42:19 +0000 (11:42 -0400)]
exynos9610: Sort blobs list

Change-Id: I67e8c3b35c6a62b19c3d5d5108a9f285bfeb2e9f

2 years agoexynos9610: Patch sensors libs in the correct location
Nolen Johnson [Thu, 3 Nov 2022 06:02:31 +0000 (02:02 -0400)]
exynos9610: Patch sensors libs in the correct location

Change-Id: I789f71f8222e6a8df2d1fba1a4440efa8b8e2c8e

2 years agoexynos9610: Use libutils from VNDK32 for HWC and sensors
Tim Zimmermann [Wed, 17 Aug 2022 16:08:25 +0000 (18:08 +0200)]
exynos9610: Use libutils from VNDK32 for HWC and sensors

* For hwcomposer, sensors, and libexynosdisplay.so
* Abort message: 'incStrongRequireStrong() called on 0x7586a3a1c0 which isn't already owned'

Change-Id: Ibca93bc356b81e205c77df5992b2ae1ded9bb83b

2 years agoexynos9610: Set block_binder_thread_on_incoming_calls in product.prop
Bruno Martins [Mon, 31 Oct 2022 16:24:31 +0000 (16:24 +0000)]
exynos9610: Set block_binder_thread_on_incoming_calls in product.prop

Fails to be set from vendor otherwise:

  init: Do not have permissions to set 'ro.telephony.block_binder_thread_on_incoming_calls' to 'false' in property file '/vendor/build.prop': SELinux permission check failed

Change-Id: I3c3ea61af240557f3b1053497c3ed1403f7ae318

2 years agoRevert "exynos9610: Add tethering usb props"
Nolen Johnson [Wed, 2 Nov 2022 20:34:04 +0000 (16:34 -0400)]
Revert "exynos9610: Add tethering usb props"

* This is QCOM only, and even then QTI scripts only.

This reverts commit 918341ce10a30a2bc1c4c4d493a1236d77f00222.

Change-Id: I062da6eb4ae83a5cf72777ac7030d174ceabdeb4

2 years agoexynos9610: Set TARGET_KERNEL_CLANG_VERSION to r416183b
Michael Bestas [Mon, 31 Oct 2022 18:39:59 +0000 (20:39 +0200)]
exynos9610: Set TARGET_KERNEL_CLANG_VERSION to r416183b

Change-Id: Ic1eb6f7e3cb54bdb67da2fb963426a240f2edda3

2 years agoexynos9610: Opt-out for LLVM binutils
Bruno Martins [Thu, 8 Sep 2022 11:03:17 +0000 (12:03 +0100)]
exynos9610: Opt-out for LLVM binutils

Change-Id: I353dfb264191e587620b4a88f1f6783e54395d6e

2 years agoexynos9610: Enforce EPPE
Nolen Johnson [Mon, 24 Oct 2022 04:40:31 +0000 (00:40 -0400)]
exynos9610: Enforce EPPE

* FMRadio app isn't brought up yet, so comment it so it
  doesn't get forgotten.

Change-Id: I27aa6895a38b649cb5231ffddd640a9e33fa8c77

2 years agoexynos9610: Correct camera overrides
Nolen Johnson [Thu, 20 Oct 2022 15:34:33 +0000 (11:34 -0400)]
exynos9610: Correct camera overrides

Change-Id: I572a67ad0ab914e3aeaac20af3a3876306f62767

2 years agoexynos9610: Add tethering usb props
jro1979oliver [Thu, 1 Sep 2022 11:48:34 +0000 (11:48 +0000)]
exynos9610: Add tethering usb props

Change-Id: I841feaa53db18b3e765a0a864ca062b6ff4ee27e

2 years agoexynos9610: wifi: Enable set channel on NDP setup
Nate Jiang [Fri, 14 Jan 2022 23:53:46 +0000 (15:53 -0800)]
exynos9610: wifi: Enable set channel on NDP setup

Bug: 190354626
Test: build, CtsVerifier
Change-Id: Ieff18b96ec0f24c1c20c40add4e47a532ece8922

2 years agoexynos9610: wifi: Configure correct overlay configuration.
Les Lee [Wed, 5 Jan 2022 05:27:25 +0000 (13:27 +0800)]
exynos9610: 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

2 years agoexynos9610: Enable zygote critical window
Woody Lin [Wed, 28 Oct 2020 03:22:19 +0000 (11:22 +0800)]
exynos9610: Enable zygote critical window

Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51

2 years agoexynos9610: Migrate to AIDL ClearKey DRM HAL
Bruno Martins [Wed, 14 Sep 2022 13:51:15 +0000 (14:51 +0100)]
exynos9610: Migrate to AIDL ClearKey DRM HAL

Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2

2 years agoexynos9610: Drop default DRM service
Bruno Martins [Mon, 30 May 2022 18:27:51 +0000 (19:27 +0100)]
exynos9610: Drop default DRM service

This is not needed, since Widevine DRM and Clearkey DRM
services are available.

Change-Id: I97023f1bab88ddb8fa4cb205df190c516a759951

2 years agoexynos9610: Move Bluetooth power config away from overlay
Georg Veichtlbauer [Wed, 14 Sep 2022 06:54:28 +0000 (08:54 +0200)]
exynos9610: 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

2 years agoexynos9610: Disable LE audio related profiles
Alice Kuo [Fri, 6 May 2022 07:18:16 +0000 (15:18 +0800)]
exynos9610: Disable LE audio related profiles

Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)

2 years agoexynos9610: Use the ?= operator so BT properties can be overridden
Sal Savage [Wed, 27 Apr 2022 20:30:38 +0000 (13:30 -0700)]
exynos9610: 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

2 years agoexynos9610: Set default the Bluetooth class of device
Sal Savage [Mon, 25 Apr 2022 23:43:16 +0000 (16:43 -0700)]
exynos9610: 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

2 years agoexynos9610: Update LE Audio profile properties to match spec and implementation
Sal Savage [Thu, 7 Apr 2022 22:54:04 +0000 (15:54 -0700)]
exynos9610: Update LE Audio profile properties to match spec and implementation

Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d

2 years agoexynos9610: Move BT profiles props to vendor
Alexander Koskovich [Wed, 20 Jul 2022 16:16:53 +0000 (09:16 -0700)]
exynos9610: Move BT profiles props to vendor

 * Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460

2 years agoexynos9610: Enable bluetooth profiles with product.prop
Sal Savage [Fri, 4 Feb 2022 17:41:57 +0000 (09:41 -0800)]
exynos9610: Enable bluetooth profiles with product.prop

Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe

2 years agoexynos9610: Move to android_memset32 shim in hardware/lineage/compat
Nolen Johnson [Wed, 21 Sep 2022 16:32:05 +0000 (12:32 -0400)]
exynos9610: Move to android_memset32 shim in hardware/lineage/compat

Change-Id: I4b37149335452dbcd0e40cd21144b5af1e00bdce

2 years agoexynos9610: Set config_sustainedPerformanceModeSupported
Srinath Sridharan [Wed, 27 Jul 2016 22:01:12 +0000 (15:01 -0700)]
exynos9610: Set config_sustainedPerformanceModeSupported

This config will support the Sustained Performance Mode.

Change-Id: Ic992ea6fd910cf679a940b273c95968f4c60adbb

2 years agoexynos9610: Lower DPI to account for Android 12 UI
Nolen Johnson [Sun, 19 Jun 2022 05:20:58 +0000 (01:20 -0400)]
exynos9610: Lower DPI to account for Android 12 UI

Change-Id: Id2963f421fdc441347b5275dd0378ef804590cfc

2 years agoexynos9610: allow hal_camera_default to read/write m2m1shot_device
Jan Altensen [Thu, 5 May 2022 23:08:00 +0000 (01:08 +0200)]
exynos9610: allow hal_camera_default to read/write m2m1shot_device

Change-Id: I8a6ce897fe85ae19e220a28773191b6122e633d4

2 years agoexynos9610: drop android_hardware_samsung_nfc from lineage.dependencies
Jan Altensen [Thu, 28 Apr 2022 03:36:24 +0000 (05:36 +0200)]
exynos9610: drop android_hardware_samsung_nfc from lineage.dependencies

 * this repo is synced by default from aosp

Change-Id: I6131eaedf55071b565ed8875db845f4fb6894598

2 years agoexynos9610: sepolicy: Allow multiple services to search system data dirs
Nolen Johnson [Thu, 28 Apr 2022 02:16:26 +0000 (22:16 -0400)]
exynos9610: sepolicy: Allow multiple services to search system data dirs

* /data/user_de/0 specifically.

Change-Id: I6c3dc06e66b02e13c627922b483966250fba3532

2 years agoexynos9610: sepolicy: Allow gpsd to read bootanim_system_prop
Nolen Johnson [Sun, 17 Apr 2022 00:27:42 +0000 (20:27 -0400)]
exynos9610: sepolicy: Allow gpsd to read bootanim_system_prop

Change-Id: I52b6b5da47921cf238fb98da50b452b1f6cbcdd2

2 years agoexynos9610: sepolicy: Bringup for Android 12
Nolen Johnson [Fri, 15 Apr 2022 22:13:12 +0000 (18:13 -0400)]
exynos9610: sepolicy: Bringup for Android 12

Change-Id: I3b631e708833caea694b0a2c118a3da6b1bdc854

2 years agoexynos9610: restorecon_recursive fpdata/keystore directories
Nolen Johnson [Fri, 15 Apr 2022 22:12:34 +0000 (18:12 -0400)]
exynos9610: restorecon_recursive fpdata/keystore directories

* These are getting mis-labeled and causing a neverallow.

Change-Id: If1546db8876d4a9fe0f05b0cbdbf9b8c5fa0bfa4

2 years agoexynos9610: Remove system_server neverallow reading vendor_radio_prop
Nolen Johnson [Thu, 14 Apr 2022 15:49:10 +0000 (11:49 -0400)]
exynos9610: Remove system_server neverallow reading vendor_radio_prop

* Not even needed anymore.

Change-Id: I960939d5706b195d43469a974e6d2b3cdec9c47a

2 years agoexynos9610: Remove now duplicated labels/types
Nolen Johnson [Tue, 5 Apr 2022 16:59:26 +0000 (12:59 -0400)]
exynos9610: Remove now duplicated labels/types

Change-Id: I35ea9ccb2042927961a399f7ff7919f66b620a63

2 years agoexynos9610: Rename exported3_radio_prop to radio_control_prop
Inseob Kim [Tue, 28 Jul 2020 07:34:50 +0000 (16:34 +0900)]
exynos9610: Rename exported3_radio_prop to radio_control_prop

The context name exported3_radio_prop is ambiguous and does not reflect
the usage and role of the properties. This changes its name to
radio_control_prop.

Some downstream branches are still using exported3_radio_prop, so
get_prop(domain, radio_control_prop) is added to avoid regression. It's
just a workaround and to be removed soon, after all exported3_radio_prop
are cleaned up.

Exempt-From-Owner-Approval: cherry pick

Bug: 162214733
Test: boot a device with a sim and see basic functions work
Change-Id: I1bdb3d92377ead1faf4f1296f50846bdce89c596
Merged-In: I1bdb3d92377ead1faf4f1296f50846bdce89c596

2 years agoexynos9610: Drop support for Snapdragon Camera
Alexander Koskovich [Thu, 27 Jan 2022 21:23:56 +0000 (14:23 -0700)]
exynos9610: Drop support for Snapdragon Camera

 * Won't be implemented this cycle (or ever again hopefully).

Change-Id: Ie2a346319dfe814deaf9833cb31640505cc6b7dc

2 years agoexynos9610: Remove CLANG compile flag
Georg Veichtlbauer [Thu, 10 Mar 2022 15:03:55 +0000 (16:03 +0100)]
exynos9610: Remove CLANG compile flag

Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a

2 years agoexynos9610: Disable the usage of ConfigStore.
Alexander Koskovich [Thu, 3 Dec 2020 10:26:15 +0000 (10:26 +0000)]
exynos9610: Disable the usage of ConfigStore.

 * As per commit https://github.com/LineageOS/android_hardware_interfaces/commit/11a113a67e87a8da9a9bf0a73883f2325de90934 ("Add disable_configstore").

[SebaUbuntu] Remove manifest entry as well

Change-Id: I5482989a8a96227a3e2a5317eacf613c641bfa8e

2 years agoexynos9610: Specify encryption format for adoptable storage
Tim Zimmermann [Sat, 29 Jan 2022 07:06:53 +0000 (08:06 +0100)]
exynos9610: Specify encryption format for adoptable storage

Change-Id: I781d803627330d81b4011321ca721ff4abba4339

2 years agoexynos9610: Set SOC properties for exynos9610
Wilson Sung [Wed, 3 Mar 2021 10:08:45 +0000 (18:08 +0800)]
exynos9610: Set SOC properties for exynos9610

Bug: 158284209
Bug: 180589452
Change-Id: I31ec2aff20a4efb3c502ee5c8c6463e31c892bd5
Signed-off-by: Wilson Sung <wilsonsung@google.com>
2 years agoexynos9610: Uprev graphics.composer to 2.4
Midas Chien [Fri, 10 Apr 2020 13:12:56 +0000 (21:12 +0800)]
exynos9610: Uprev graphics.composer to 2.4

Move sunfish to composer 2.4 interface for the R api additions.

Bug: 148836379
Test:
1. $adb shell lshal | grep 'composer'
    android.hardware.graphics.composer@2.4::IComposer/default

2. $adb shell lshal --init-vintf
<hal format="hidl">
   <name>android.hardware.graphics.composer</name>
   <transport>hwbinder</transport>
   <fqname>@2.4::IComposer/default</fqname>
</hal>

3. adb shell ps | grep 'composer'
system ... android.hardware.graphics.composer@2.4-service-sm8150

4. vts-tf > run vts -m VtsHalGraphicsComposerV2_4Target
5. Check FOSS work

Change-Id: Ic3e78b7ff04802120765b04f782021b405d2494f

2 years agoexynos9610: Enable graphics mapper version 2.1
Arvind Kumar [Thu, 9 Jan 2020 06:38:57 +0000 (12:08 +0530)]
exynos9610: Enable graphics mapper version 2.1

 Enable graphics mapper version 2.1

Change-Id: Iad70754a980eadcfd68752c76e569b503d398fae

2 years agoexynos9610: Patch ShannonIms to use updated method for Android S
Jan Altensen [Thu, 14 Apr 2022 15:45:22 +0000 (11:45 -0400)]
exynos9610: Patch ShannonIms to use updated method for Android S

* `sed -i 's/getDataConnectionNetworkType/getNetworkType/g' ShannonIms/smali/com/shannon/imsservice/conn/proxy/ImsConnectivityProxyListener*`

Change-Id: Ief3ffd2a13e4e263240017e9a60d626e00853a6d

2 years agoexynos9610: Move from HIDL lights HAL to AIDL
Nolen Johnson [Tue, 5 Apr 2022 19:24:59 +0000 (15:24 -0400)]
exynos9610: Move from HIDL lights HAL to AIDL

Change-Id: Idfc0ec003d899d528248245e907d262364dbb6ba

2 years agoexynos9610: Build needed HIDL libs into vendor
LuK1337 [Tue, 14 Dec 2021 10:42:44 +0000 (11:42 +0100)]
exynos9610: Build needed HIDL libs into vendor

Change-Id: I1db79176ac103cb7fc8db0fa4b4cfc699e38ad49

2 years agoexynos9610: Modify Vulkan and OpenGL version to 2020-03-01
linjoey [Wed, 16 Jun 2021 13:29:00 +0000 (21:29 +0800)]
exynos9610: Modify Vulkan and OpenGL version to 2020-03-01

Bug: 191252896
Test: android.graphics.cts.VulkanDeqpLevelTest#testVulkanDeqpLevel pass
Change-Id: I0e598ee8a26cd614dc5076a87c514756ba39d740

2 years agoexynos9610: Add OpenGL ES and update Vulkan dEQP feature flags
Alastair Donaldson [Fri, 18 Dec 2020 13:53:59 +0000 (13:53 +0000)]
exynos9610: Add OpenGL ES and update Vulkan dEQP feature flags

Populates a new feature flag to record the level of OpenGL ES dEQP
test support.  Updates the analogous Vulkan dEQP feature flag to the
value for the next dessert release.

Bug: 159841535
Bug: 175706433
Merged-In: Ib0fb8f83732d0b3f56bb11a97c84fdc7727c1026
Change-Id: Ic97a65fba95a67e3e16cedd0eb4f3f209f645421

2 years agoexynos9610: Uprev clearkey plugin to drm HAL v1.4
Edwin Wong [Thu, 25 Mar 2021 16:43:21 +0000 (09:43 -0700)]
exynos9610: Uprev clearkey plugin to drm HAL v1.4

Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I106a727f2f29bf5472484402b2801a630b0d6301

2 years agoexynos9610: Remove odex/oat files from pinner list
Nolen Johnson [Tue, 5 Apr 2022 16:46:44 +0000 (12:46 -0400)]
exynos9610: Remove odex/oat files from pinner list

The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: I8de2a2935901cbd3eaa50ce2d8aa09f61080ba02
Merged-In: Ie633ea788dab3389a3407ec9a461b5837befca46

2 years agoexynos9610: Update SurfaceFlinger pin on all targets
Kevin Jeon [Tue, 19 Jan 2021 22:52:54 +0000 (22:52 +0000)]
exynos9610: Update SurfaceFlinger pin on all targets

This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460

2 years agoexynos9610: sepolicy: Attach vendor_property_type to properties
Inseob Kim [Tue, 18 Aug 2020 14:29:12 +0000 (23:29 +0900)]
exynos9610: sepolicy: Attach vendor_property_type to properties

We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Change-Id: Iedbbcc5086c09f549e91e73ece7311563c378347

2 years agoexynos9610: Allow ELF prebuilts in PRODUCT_COPY_FILES
Roger Ellis [Wed, 13 May 2020 23:56:10 +0000 (16:56 -0700)]
exynos9610: Allow ELF prebuilts in PRODUCT_COPY_FILES

 * ELF prebuilts were banned in PRODUCT_COPY_FILES starting
   May 11th. See b/156534160 for long-term fix which should
   override this change.

Change-Id: Icd25b40ca4e4285319775046a1b70de30572be07

2 years agoexynos9610: Use PRODUCT_*_SEPOLICY_DIRS to build product sepolicy.
Tri Vo [Fri, 1 Feb 2019 19:27:25 +0000 (11:27 -0800)]
exynos9610: Use PRODUCT_*_SEPOLICY_DIRS to build product sepolicy.

We are restoring the old behavior of BOARD_PLAT_*_SEPOLICY_DIR that
extends system sepolicy. To that end, we use another make variable to
specify product sepolicy.

Bug: 119305624
Test: m selinux_policy
Change-Id: I67636b7aaff2bd5ae5309981f9fa2f8ce51edf6f

2 years agoexynos9610: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES
Michael Bestas [Thu, 31 Mar 2022 23:52:31 +0000 (02:52 +0300)]
exynos9610: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES

Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e

2 years agoexynos9610: WifiOverlay: disable Automatic channel selection (ACS)
Jan Altensen [Sun, 17 Apr 2022 03:51:03 +0000 (05:51 +0200)]
exynos9610: WifiOverlay: disable Automatic channel selection (ACS)

 * this was erroneously enabled when we moved to WifiOverlay

Change-Id: I1794df85fffe6e8163348b87cc257ab0dc6a2e88

2 years agoexynos9610: These devices doesn't support SIM hot-swap
Nolen Johnson [Tue, 5 Apr 2022 14:58:42 +0000 (10:58 -0400)]
exynos9610: These devices doesn't support SIM hot-swap

Change-Id: I10baa9b5618fcd80d34f045ddb7f81d4560d47c6

2 years agoexynos9610: Squashed inclusion of MotCamera2
Nolen Johnson [Mon, 4 Apr 2022 20:05:00 +0000 (16:05 -0400)]
exynos9610: Squashed inclusion of MotCamera2

This is a squashed commit of:

Add Moto Camera 2 & priv-app permissions
* Snap APIv2 doesn't support our Aux Cam, or Camera
  Mods (considering they are removable and need special
  HAL handling for flash, internal Camera/USB disabling,
  etc.

* Snap APIv1 doesn't like our front-flash, or video
  recording audio (likely fixable). As well as the
  aforementioned lack of Camera Mod support.

* Mata ships Klik to support an external Camera "mod"
  and sets precedent for shipping OEM Cameras, so we're
  just going to go ahead and do it.

Change-Id: I7d5001e7f743cdb9aaeb70c032a19cc008209135 | AOSP
---------------------------------------------------------

Include MotoSignatureApp
* Needed for MotCamera2 to update via the Play Store.
* Also exclude from dex-opt'ing on host, as this app
  is known not to like that (see: shamu, clark).

Change-Id: Ibf2aafd731783fdae63b228460753457296de47c | AOSP
----------------------------------------------------------

Override Camera2 with MotCamera2 properly
* Possible as of https://review.lineageos.org/c/LineageOS/android_tools_extract-utils/+/314698.

Change-Id: I88808f7ab795099dc0ea1e80992d7c68aaa90167 | AOSP
---------------------------------------------------------

Change-Id: I89aa823bac2a2fa4b92d324cc0dbcdc6811468de

2 years agoexynos9610: Kill Wi-Fi Aware feature
Nolen Johnson [Tue, 24 Aug 2021 23:15:36 +0000 (19:15 -0400)]
exynos9610: Kill Wi-Fi Aware feature

* Crashes things and causes lag.
* Additionally, Moto removed the NaN stuff in R release.

Change-Id: Ia86a23ee303119655b1deaacd29d51117db97f28

2 years agoexynos9610: Force restorecon for /data/vendor
Felix [Fri, 26 Apr 2019 16:02:06 +0000 (18:02 +0200)]
exynos9610: Force restorecon for /data/vendor

The restorecon_recursive directive in init is only applied if the
file_contexts file changed between builds, but not necessarily if any
file or folder inside /efs or /persist has changed.

The restorecon code checks whether an xattr named
"security.sehash" contains a string that matches the current
combined hashes of the SELinux context files and skips restoring labels
if there is a match, see
https://android.googlesource.com/platform/external/selinux/+/refs/tags/android-9.0.0_r35/libselinux/src/android/android_platform.c#1546

Change-Id: Ic0cd848836ee550499d9236f56ed6e939e35f01e

2 years agoexynos9610: sepolicy: Update for RSB31.Q1-48-36-11
Jan Altensen [Wed, 25 Aug 2021 13:50:37 +0000 (15:50 +0200)]
exynos9610: sepolicy: Update for RSB31.Q1-48-36-11

Change-Id: I6ca1ee2012e68d66e09c7aec8dd38eef1e8c0fb6

2 years agoexynos9610: RSBS31.Q1-48-36-20
Jan Altensen [Tue, 17 Aug 2021 11:20:34 +0000 (13:20 +0200)]
exynos9610: RSBS31.Q1-48-36-20

Co-authored-by: Jan Altensen <info@stricted.net>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I6a2cbe2dacad5ef3e02f1c8c80e9ca234d9f02e9

2 years agoexynos9610: Fix audio through Bluetooth during calls
arch-dev [Sun, 8 Aug 2021 13:44:21 +0000 (15:44 +0200)]
exynos9610: Fix audio through Bluetooth during calls

Change-Id: I7c5d018db222f4fd339ab6545d41bae37d62cc75

3 years agoFix some overlay issues
arch-dev [Sun, 1 Aug 2021 07:39:37 +0000 (09:39 +0200)]
Fix some overlay issues

This fixes the clock padding left issue when pulling down
the qs panel, the carrier padding left on the lockscreen
and the power menu padding top.
In add to these it fixes the bottom rounded corners too.

Change-Id: Id624a07f02291a1bb799b2867598a2a6f00d3b3c

3 years agoexynos9610: sepolicy: remove duplicate label for mobicore_data_registry_file
Jan Altensen [Fri, 16 Jul 2021 15:47:02 +0000 (17:47 +0200)]
exynos9610: sepolicy: remove duplicate label for mobicore_data_registry_file

 * its now defined and labeled as mobicore_vendor_data_file in android_device_samsung_slsi_sepolicy

Change-Id: I1040e3b97cf46a5011369b6931d9f59739302dd7

3 years agoexynos9610: Allow 3rd party apps to use fingerprint gestures
razorloves [Mon, 14 Jun 2021 02:28:01 +0000 (21:28 -0500)]
exynos9610: Allow 3rd party apps to use fingerprint gestures

* All moto_exynos9610 devices have rear mounted fingerprint sensor
  with swipe-down gesture.

Change-Id: I7f08c640452f169c3e403c7af20ca61e7e90ca5c

3 years agoexynos9610: remove proc_last_kmsg type and rules
Jan Altensen [Fri, 11 Jun 2021 11:06:28 +0000 (13:06 +0200)]
exynos9610: remove proc_last_kmsg type and rules

 * it's defined in device/samsung_slsi/sepolicy now

Change-Id: Ibb6415db1bd89d135d9196c2e76903fbd7ee1737

3 years agoexynos9610: Remove USE_XML_AUDIO_POLICY_CONF
Sebastiano Barezzi [Mon, 7 Jun 2021 16:07:18 +0000 (18:07 +0200)]
exynos9610: Remove USE_XML_AUDIO_POLICY_CONF

* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8

3 years agoexynos9610: sepolicy: remove duplicate type vendor_wifi_prop
Jan Altensen [Tue, 1 Jun 2021 18:25:55 +0000 (20:25 +0200)]
exynos9610: sepolicy: remove duplicate type vendor_wifi_prop

 * its defined in device/samsung_slsi/sepolicy now

Change-Id: Ia2355fff2fbc7d7e41e0511a17efaec70a30f5ac

3 years agoexynos9610: address update_engine denials
Jan Altensen [Wed, 26 May 2021 02:23:34 +0000 (04:23 +0200)]
exynos9610: address update_engine denials

Change-Id: I79cf65ab2e8af2d3198c0c1890527b1661eebce5

3 years agoexynos9610: Enable call recording
Danny Baumann [Wed, 18 Jul 2018 15:25:32 +0000 (17:25 +0200)]
exynos9610: Enable call recording

Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33

3 years agoexynos9610: Set auto brightness mode on by default
razorloves [Tue, 28 Apr 2020 02:11:03 +0000 (21:11 -0500)]
exynos9610: Set auto brightness mode on by default

Change-Id: I5cb8e3db27849ebd90459a6d70e053158c05bcc9