GitHub/LineageOS/android_device_motorola_exynos9610-common.git
22 months agoRevert "exynos9610: These devices doesn't support SIM hot-swap" lineage-19.1
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)

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

23 months 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: 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

3 years agoexynos9610: Add fingerprint configuration to overlay
Kevin Chyn [Thu, 23 Jan 2020 22:19:19 +0000 (14:19 -0800)]
exynos9610: Add fingerprint configuration to overlay

The framework was changed in Android R to require explicit authenticator registration.
This change allows apps to continue to use the fingerprint sensor.

Bug: 147445115

Test: Builds
Change-Id: Id3385edc784b2053c8b54ec3153728f4e6e22a45

3 years agoexynos9610: extract_utils: Run shellcheck
Nolen Johnson [Mon, 10 May 2021 17:06:09 +0000 (13:06 -0400)]
exynos9610: extract_utils: Run shellcheck

* Ignore `SC2013` as there's no good way to handle this in all shells.

Change-Id: I53e9d5b4d761e7e7ebc0f3cefdd3772aae5aba66

3 years agoexynos9610: Add a check before adding dependencies
Marc Bourgoin [Thu, 11 Feb 2021 05:38:58 +0000 (22:38 -0700)]
exynos9610: Add a check before adding dependencies

Without a check, when performing a vendor blob regen it'll add another
dependency on top of any existing one

Change-Id: I9c7f17082fd850235c794d44cec3cda0c4b883ef

3 years agoexynos9610: Cleanup properties
Nolen Johnson [Mon, 10 May 2021 16:13:22 +0000 (12:13 -0400)]
exynos9610: Cleanup properties

* `persist.sys.bootanim.play_sound=true` - Used to play that god
   awful "Hello Moto" sound on stock.
* `{ro.,}ril.ecclist{,1}=911,112` - Auto-generated elsewhere.
* `ro.mot.android_one=true` - for Moto software experience changes.
* `ro.vendor.config.release_version` - Custom Moto prop
* `ro.control_privapp_permissions=enforce` - Default in LineageOS
   environments.
* `ro.logd.size=2M` - no need to make log buffer larger.
* `keyguard.no_require_sim=true` - Set in build/ in LineageOS
   environments.
* Ringtones/Sounds should be LineageOS default, we don't ship Moto
  `.ogg` files anyway.

Change-Id: I5a17e8bca9c896984f3ceca90c8ca9479540072c

3 years agoexynos9610: Cleanup
Nolen Johnson [Sun, 9 May 2021 20:25:42 +0000 (16:25 -0400)]
exynos9610: Cleanup

* Alphabetize all the things.
* Cleanup extraneous seperators.
* Cleanup extraneous spaces.
* Move to double #'s for titles so latter comments
  indentation makes sense.
* Use `comm` and `sort` to compare and ensure we
  didn't lose anything:
  `comm -23 <( sort new/BoardConfigCommon.mk) <(sort old/BoardConfigCommon.mk)`

Change-Id: If879a307f8e20a2b6b7ad05a76bc32b5a2f4c936

3 years agoexynos9610-common: Set proper AVB rollback index
Nolen Johnson [Sun, 9 May 2021 20:06:47 +0000 (16:06 -0400)]
exynos9610-common: Set proper AVB rollback index

* Though disabled, we should still report proper rollback
  index.

Change-Id: I05ba499618bfa90795620c9bf73fc8fe5f9e7cee

3 years agoexynos9610-common: Simplify AVB flag logic
Nolen Johnson [Sun, 9 May 2021 20:04:34 +0000 (16:04 -0400)]
exynos9610-common: Simplify AVB flag logic

* AVB's `--flags 3` arguement builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838

3 years agoRevert "exynos9610: copy libGLES_mali.so to vulkan.exynos9610.so"
Jan Altensen [Sun, 9 May 2021 20:51:57 +0000 (22:51 +0200)]
Revert "exynos9610: copy libGLES_mali.so to vulkan.exynos9610.so"

 * apparently symlinks works again?

This reverts commit e59aee7d73753e9e944839a4a34324d98d7a0225.

Change-Id: I7bee55e415bb30f2fd72bb88480302ef48f72818

3 years agoexynos9610: add livedisplay implementation
Jan Altensen [Fri, 7 May 2021 18:29:10 +0000 (20:29 +0200)]
exynos9610: add livedisplay implementation

Change-Id: Ia8ef756e0211691d5eeac6c7347930effb5d1eb3

3 years agoRevert "exynos9610: Disable LiveDisplay"
Jan Altensen [Sat, 8 May 2021 04:17:05 +0000 (06:17 +0200)]
Revert "exynos9610: Disable LiveDisplay"

This reverts commit d83ff07e42f1e0d6a4c4c68ad751ea4b36f5f262.

Change-Id: I848350521cbae8feadfbcfc042acbda0242f15e6

3 years agoexynos9610: remove config_availableColorModes
Jan Altensen [Fri, 7 May 2021 09:22:27 +0000 (11:22 +0200)]
exynos9610: remove config_availableColorModes

 * seemingly does nothing

Change-Id: Ib75c870e2b7a4f2558b7b96fbebf68d1a35d57f5

3 years agoexynos9610-common: Enable RRO overlays for lineage-sdk
LuK1337 [Thu, 29 Oct 2020 13:31:02 +0000 (14:31 +0100)]
exynos9610-common: Enable RRO overlays for lineage-sdk

Change-Id: I482f2393e10e90362db2c66b7abb0de837085843

3 years agoexynos9610-common: AB_OTA_UPDATER is BoardConfig variable
Tao Bao [Tue, 7 May 2019 05:42:02 +0000 (22:42 -0700)]
exynos9610-common: AB_OTA_UPDATER is BoardConfig variable

Bug: 130433003
Test: TreeHugger
Change-Id: I70c7a884df45781e8b14339edd02985ba3de02fd

3 years agoexynos9610-common: Deduplicate handheld_core_hardware.xml copy rule
Bruno Martins [Sun, 3 Jan 2021 11:17:21 +0000 (11:17 +0000)]
exynos9610-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

3 years agoexynos9610-common: Remove deprecated boot animation flags
Nolen Johnson [Sun, 9 May 2021 20:28:05 +0000 (16:28 -0400)]
exynos9610-common: Remove deprecated boot animation flags

* These have been dead since, like, cm-11.0.

Change-Id: I9e082ca08425416d865b4384483eb968a8fbfbf3

3 years agoexynos9610-common: Cleanup dead targets
Nolen Johnson [Mon, 23 Nov 2020 19:46:29 +0000 (14:46 -0500)]
exynos9610-common: Cleanup dead targets

build/make/core/main.mk:1136: warning:  device/motorola/hannah/lineage_hannah.mk includes non-existent modules in PRODUCT_PACKAGES
Offending entries:
android.hardware.neuralnetworks@1.2-service-sample-all
wpa_supplicant.conf
build/make/core/main.mk:1136: error: Build failed.
15:35:26 ckati failed with: exit status 1

To do this yourself, put the following line into
lineage_$TARGET.mk:

`$(call enforce-product-packages-exist,)`

Note that the above flag must be in the product
makefile to work.

Change-Id: I0e4d93f4c3be077d49befa1f547d11d623ca74d5

3 years agoexynos9610-common: Remove TARGET_KERNEL_HEADER_ARCH
Nolen Johnson [Sun, 9 May 2021 19:56:35 +0000 (15:56 -0400)]
exynos9610-common: Remove TARGET_KERNEL_HEADER_ARCH

* Only matters if it differs from TARGET_KERNEL_ARCH.

Change-Id: I5857a9db7b9e20ab5b0c3a10c65df43990819041

3 years agoexynos9610-common: Kill deprecated TARGET_USES_MKE2FS
Nolen Johnson [Thu, 25 Jun 2020 21:17:06 +0000 (17:17 -0400)]
exynos9610-common: Kill deprecated TARGET_USES_MKE2FS

* This has been useless since some time in Pie.
* Also, is duplicated here as well.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543

3 years agoexynos9610: update ShannonIms
Jan Altensen [Sun, 9 May 2021 15:35:11 +0000 (17:35 +0200)]
exynos9610: update ShannonIms

Change-Id: Icf60bd620a1b49d407f1ad4b9b4206c2db0bf69d

3 years agoexynos9610: address IMS related denials
Jan Altensen [Sun, 9 May 2021 08:09:33 +0000 (10:09 +0200)]
exynos9610: address IMS related denials

Change-Id: I20285d510605238f2c0b62890d1e8a6f07b0d651

3 years agoexynos9610: overlay: Remove old configuration and use new config for MMTEL/RCS
Brad Ebinger [Thu, 5 Dec 2019 19:37:45 +0000 (11:37 -0800)]
exynos9610: overlay: Remove old configuration and use new config for MMTEL/RCS

Remove the old config_ims_package device config and configure the
new MMTEL and RCS configurations in Telephony instead. Also,
configure the RcsService to be the default RCS service.

Bug: 111305845
Test: make checkbuild
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65

3 years agoexynos9610: address mediacodec denials
Jan Altensen [Sun, 9 May 2021 05:06:16 +0000 (07:06 +0200)]
exynos9610: address mediacodec denials

Change-Id: I2943deca6987a88e6aa4d289b16ac5d695e6f0cf

3 years agoexynos9610: Don't let builds complete without vendor tree
Kevin F. Haggerty [Fri, 9 Apr 2021 14:18:37 +0000 (08:18 -0600)]
exynos9610: Don't let builds complete without vendor tree

* There is zero reason to ever build without blobs. We've even seen
  this situation with official builds from our servers. It's always
  better for a build to fail than it is for it to produce something
  that has no chance at working.

Change-Id: I4968795670c91f691e9ecdc0e4af62e16ba3a93a

3 years agoexynos9610: fixup frameworks/base overlay
Jan Altensen [Fri, 7 May 2021 08:33:37 +0000 (10:33 +0200)]
exynos9610: fixup frameworks/base overlay

Change-Id: I41123f517cd7fe6fa9b0d8281accd3c2cfdff791

3 years agoexynos9610: import correct power_profile.xml
Jan Altensen [Fri, 7 May 2021 05:12:06 +0000 (07:12 +0200)]
exynos9610: import correct power_profile.xml

Change-Id: I46c4d2e026b44a2c6af88bc5aa93b475019d1dc6

3 years agoexynos9610: initial sepolicy
Jan Altensen [Fri, 30 Apr 2021 04:50:53 +0000 (06:50 +0200)]
exynos9610: initial sepolicy

Change-Id: I8f45bf61337ace5c98931c9036b371c77af627cc

3 years agoexynos9610: inherit samsung_slsi sepolicy
Jan Altensen [Wed, 28 Apr 2021 14:17:28 +0000 (16:17 +0200)]
exynos9610: inherit samsung_slsi sepolicy

Change-Id: I4bb0f9cbd15bf516375c9b7b3583baf26a2c6177

3 years agoexynos9610: shim: fixup audio_route_missing_ctl
Jan Altensen [Wed, 5 May 2021 13:03:01 +0000 (15:03 +0200)]
exynos9610: shim: fixup audio_route_missing_ctl

Change-Id: Ie646fde984bd676a89d1086074a0c594c4eb8f0b

3 years agoexynos9610: shim: add better reverse engineered mixer_read_event
Jan Altensen [Wed, 5 May 2021 11:53:33 +0000 (13:53 +0200)]
exynos9610: shim: add better reverse engineered mixer_read_event

 * decompiled output more or less matches now with thats on stock

Change-Id: I5b525342e0cf2b731f93bd3ac74b636fd533969d

3 years agoexynos9610: build lights hal from hardware/samsung
Jan Altensen [Tue, 4 May 2021 00:55:46 +0000 (02:55 +0200)]
exynos9610: build lights hal from hardware/samsung

Change-Id: I81d3bb350319c5449e1a4039da7558ad4c6b0772

3 years agoexynos9610: build fastcharge hal from hardware/samsung
Jan Altensen [Tue, 4 May 2021 00:44:48 +0000 (02:44 +0200)]
exynos9610: build fastcharge hal from hardware/samsung

Change-Id: Ibd59d14c5ca849cf05ce72f8c4f5a3f5471d8cf4

3 years agoexynos9610: build common usb typec hal
Jan Altensen [Tue, 4 May 2021 00:43:07 +0000 (02:43 +0200)]
exynos9610: build common usb typec hal

Change-Id: I3a12e8d96ee4bb347426aaad12545a0afd925779

3 years agoexynos9610: update vendor security patch level to 2021-04-01
Jan Altensen [Mon, 3 May 2021 05:57:01 +0000 (07:57 +0200)]
exynos9610: update vendor security patch level to 2021-04-01

 * motorola/troika_retail/troika_sprout:10/QSBS30.62-29-11-5/db5cb:user/release-keys
 * motorola/kane_retail/kane_sprout:10/QSAS30.62-33-12/e6aee:user/release-keys

Change-Id: Ie0fb405ceb2a35795cbbde8a78b8623ff7df1f90

3 years agoexynos9610: fix extract-files.sh
Jan Altensen [Mon, 3 May 2021 06:27:26 +0000 (08:27 +0200)]
exynos9610: fix extract-files.sh

 * i forgot to commit these changes previously

Change-Id: I9484c7852d65fcccf84e922d6cd3356b2a79f240

3 years agoexynos9610: correct TARGET_BOARD_PLATFORM value
Jan Altensen [Mon, 3 May 2021 00:59:19 +0000 (02:59 +0200)]
exynos9610: correct TARGET_BOARD_PLATFORM value

Change-Id: I86d8a97d7e61d1d1783684af4fecdf231a7db9a7

3 years agoexynos9610: init: add NET_RAW capability to gpsd
Jan Altensen [Sun, 2 May 2021 22:28:29 +0000 (00:28 +0200)]
exynos9610: init: add NET_RAW capability to gpsd

Change-Id: I399ad0f9c24d71d33f0aa41165f7329472fffc6c

3 years agoexynos9610: init: dont create /data/misc/fm_radio
Jan Altensen [Sun, 2 May 2021 21:42:22 +0000 (23:42 +0200)]
exynos9610: init: dont create /data/misc/fm_radio

Change-Id: I7380d8081d5005b887dd36c779679f210d1c6f77

3 years agoexynos9610: init: dont create /data/camera
Jan Altensen [Sun, 2 May 2021 08:07:15 +0000 (10:07 +0200)]
exynos9610: init: dont create /data/camera

 * its not used

Change-Id: Iaf69a2fae52df0c0443e39ea343bfaa47a9700d8

3 years agoexynos9610: Enable v1.3 clearkey drm plugin
Robert Shih [Tue, 26 Nov 2019 06:25:42 +0000 (22:25 -0800)]
exynos9610: Enable v1.3 clearkey drm plugin

Bug: 139134043
Test: MediaDrmTest
Change-Id: Ie34e59947577988f75fae52d22e3f573f4b92420

3 years agoexynos9610: init: remove unknown/deprecated properties
Jan Altensen [Sat, 1 May 2021 02:30:14 +0000 (04:30 +0200)]
exynos9610: init: remove unknown/deprecated properties

Change-Id: I59fd8e12cf5fc01e9eca65a6f2be7fe406099ad1

3 years agoexynos9610: relocate thermal log file
Jan Altensen [Fri, 30 Apr 2021 04:56:22 +0000 (06:56 +0200)]
exynos9610: relocate thermal log file

Change-Id: I624c12100f59d8034e388fe0166e6cf935e9a04d

3 years agoexynos9610: drop dolby dms service
Jan Altensen [Fri, 30 Apr 2021 04:55:12 +0000 (06:55 +0200)]
exynos9610: drop dolby dms service

Change-Id: Icdc20377ce628eb200964a64baeef28f27866978

3 years agoexynos9610: remove nfc manifest entry
Jan Altensen [Tue, 27 Apr 2021 17:00:21 +0000 (19:00 +0200)]
exynos9610: remove nfc manifest entry

 * its a vintf manifest fragment now

Change-Id: Ie81a0a3d7eb690fccb6987f16250d1c57cb1e8cd

3 years agoexynos9610: build nfc hal from source
Jan Altensen [Sat, 24 Apr 2021 00:54:40 +0000 (02:54 +0200)]
exynos9610: build nfc hal from source

Change-Id: Ief7ef8f2a597b1a978ea4b0ec4e41391cec03a99

3 years agoexynos9610: manifest: Remove Trust interface entry
Michael Bestas [Fri, 1 Jan 2021 03:15:05 +0000 (05:15 +0200)]
exynos9610: manifest: Remove Trust interface entry

This has been turned into a VINTF fragment.

Change-Id: Iaf53a2e1fbac75d53ec11d4c56c51230f4758daf

3 years agoexynos9610: Switch to patchelf from tools-lineage
Michael Bestas [Thu, 5 Nov 2020 17:50:53 +0000 (19:50 +0200)]
exynos9610: Switch to patchelf from tools-lineage

Change-Id: If1a7328804fb9bc39ccec70690f1090f2d0509b3

3 years agoexynos9610: Switch to standalone extract utils
Michael Bestas [Sat, 19 Dec 2020 00:53:35 +0000 (02:53 +0200)]
exynos9610: Switch to standalone extract utils

* Align with templates while we are at it

Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4

3 years agoexynos9610: correct recovery pixel format
Jan Altensen [Thu, 24 Dec 2020 19:08:56 +0000 (20:08 +0100)]
exynos9610: correct recovery pixel format

Change-Id: Icd506928128c2a0250b7dfeead64f75b13ea88c1
(cherry picked from commit 407ebf3aec6769947410f7d7a01063953c511a3c)

3 years agoexynos9610: dependencies: fix kernel path
Jan Altensen [Thu, 24 Dec 2020 08:12:33 +0000 (09:12 +0100)]
exynos9610: dependencies: fix kernel path

 * no idea how i havent noticed that earlier

Change-Id: I7bb3dcbc5bbf639840552d155642773412376f07

3 years agoexynos9610: add shim for __cxa_demangle
Jan Altensen [Thu, 15 Oct 2020 16:55:43 +0000 (18:55 +0200)]
exynos9610: add shim for __cxa_demangle

 * `libc++demangle` exists but is a static library
 * cxa_demangle.cpp taken from `refs/tags/android-11.0.0_r1`

Change-Id: I5ffcad94cb8523ea9badf1084f9419136dedf3ad