GitHub/LineageOS/G12/android_device_amlogic_g12-common.git
10 months agog12-common: Drop space reservation for GMS in vendor partition
Bruno Martins [Sun, 17 Dec 2023 11:41:09 +0000 (11:41 +0000)]
g12-common: Drop space reservation for GMS in vendor partition

Change-Id: I3359575757a27b65c2b28e03d67a238c4d3f77e8

11 months agog12-common: Put oemlock support behind TEE flag
Bruno Martins [Mon, 18 Dec 2023 15:22:51 +0000 (15:22 +0000)]
g12-common: Put oemlock support behind TEE flag

Makes no sense to ship on devkits.

Change-Id: Ic439ec47080e842039a242087715538810ed979c

11 months agog12-common: Only build optee kernel module on targets that have TEE
Bruno Martins [Sat, 16 Dec 2023 22:33:50 +0000 (22:33 +0000)]
g12-common: Only build optee kernel module on targets that have TEE

Change-Id: Ib1f83634f23e1fb6c08aa3ee7248f6a90f793708

11 months agog12-common: Include device specific rc
Nolen Johnson [Mon, 11 Dec 2023 06:20:50 +0000 (01:20 -0500)]
g12-common: Include device specific rc

Change-Id: Ia4745b7ffb0a1386252d5305ef51c68a207eccd0

11 months agog12-common: sort-blobs-list
Nolen Johnson [Tue, 28 Nov 2023 17:27:50 +0000 (12:27 -0500)]
g12-common: sort-blobs-list

Change-Id: Idd07f3268a63646bf6996830682499d4ccf307ac

11 months agog12-common: Fix sort-blobs-list
Nolen Johnson [Tue, 28 Nov 2023 17:25:36 +0000 (12:25 -0500)]
g12-common: Fix sort-blobs-list

* Makes this alphabetize properly.

Change-Id: I2450977ff6acd4cd7d29dfd2e3a4ca7f32b71904

12 months agog12-common: Add a readme detailing SOC support
Nolen Johnson [Tue, 21 Nov 2023 20:55:51 +0000 (15:55 -0500)]
g12-common: Add a readme detailing SOC support

Change-Id: I1d837632896c7d42f0979bd448364bf2b760ff67

12 months agog12-common: Copy ramdisk to first_stage_ramdisk as well
Nolen Johnson [Mon, 13 Nov 2023 04:12:02 +0000 (23:12 -0500)]
g12-common: Copy ramdisk to first_stage_ramdisk as well

* Fixes up 1acf46eebcc8452303c55d9c344e254edcf5542e which dropped this.

Change-Id: I365f7af37b5c9830e95650eeeb55027e70162c22
(cherry picked from commit fa91916f9f5b6cb6dfd1cda76fb3897a30e05358)

12 months agog12-common: Run systemcontrol_static in recovery mode
Bruno Martins [Tue, 31 Oct 2023 12:53:22 +0000 (12:53 +0000)]
g12-common: Run systemcontrol_static in recovery mode

This is done to ensure that proper display resolution is set while
device is in recovery mode. Meson config file is required, so import
it into the device tree in order to avoid uncommon copy rules.

Change-Id: I3a14e02f8b857a8007a34fbbe902949ead3373a2

12 months agog12-common: Remove no longer existing module
Bruno Martins [Wed, 25 Oct 2023 15:22:13 +0000 (16:22 +0100)]
g12-common: Remove no longer existing module

Change-Id: I27ec8c2dfdbba16717b9b092c15725e43c836ab9

12 months agog12-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
LuK1337 [Thu, 19 Oct 2023 22:53:15 +0000 (00:53 +0200)]
g12-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat

Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2

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

12 months agog12-common: Build Widevine DRM HAL dependencies
Bruno Martins [Wed, 25 Oct 2023 13:14:20 +0000 (14:14 +0100)]
g12-common: Build Widevine DRM HAL dependencies

The vendor variants of android.hardware.drm@1.[0-4] are no longer
implicitly built since the migration to AIDL ClearKey DRM HAL.

Change-Id: I79c69e93e27f3c2f4a1c6f7acf5f013ee8f6cd03

13 months agog12-common: Properly support AVB and non-AVB targets
Bruno Martins [Sun, 22 Oct 2023 22:34:42 +0000 (23:34 +0100)]
g12-common: Properly support AVB and non-AVB targets

The devkits do not support AVB, therefore a separate fstab must be used.
Copied over from existing fstab, with references to AVB removed as well
as mounting of /dev/block/tee partition skipped.

Change-Id: Id943a4f959a2e500c59b1def14a7abee69d8839c

13 months agog12-common: init-files: Mark boot as recoveryonly
Michael Bestas [Fri, 24 Feb 2023 23:23:06 +0000 (01:23 +0200)]
g12-common: init-files: Mark boot as recoveryonly

Change-Id: I09ee9bc584c07f92ac0e19d3756f11de2517047c

13 months agog12-common: Undeclare duplicated Widevine DRM HAL interfaces
Bruno Martins [Sun, 22 Oct 2023 11:39:48 +0000 (12:39 +0100)]
g12-common: Undeclare duplicated Widevine DRM HAL interfaces

Already declared in Widevine DRM HAL fragment manifest.

Change-Id: Ie115f76f73bd4782dbb73d8533f5d1fb537f8f8b

13 months agog12-common: Update from TTT1.230205.001
Bruno Martins [Wed, 4 Oct 2023 20:50:55 +0000 (21:50 +0100)]
g12-common: Update from TTT1.230205.001

Change-Id: I1d546fce9381a89546f1d6b7bbdd7e5f1d8d1e27

13 months agog12-common: Invert keymaster deps inclusion logic
Bruno Martins [Wed, 4 Oct 2023 09:44:18 +0000 (10:44 +0100)]
g12-common: Invert keymaster deps inclusion logic

The flag is only set for targets that don't support TEE.

Change-Id: I80594529f9d2506f7844a4e38c81740fe339c7b5

13 months agog12-common: Remove default keymaster service
Bruno Martins [Wed, 4 Oct 2023 09:33:47 +0000 (10:33 +0100)]
g12-common: Remove default keymaster service

This is moving to amlogic-common, to place it along with gatekeeper
for devices that have no TEE and thus require a software-backed
solution.

Change-Id: I11053c189815820ec622a78f235af4a5d09ae03f

13 months agog12-common: Skip keymaster vendor deps unless target has TEE
Bruno Martins [Wed, 4 Oct 2023 09:15:18 +0000 (10:15 +0100)]
g12-common: Skip keymaster vendor deps unless target has TEE

Change-Id: I23bd70cc1c10f509e259d9c624702c0f1d1c4725

13 months agog12-common: Only copy HW keystore permission on supported targets
Bruno Martins [Wed, 4 Oct 2023 09:04:17 +0000 (10:04 +0100)]
g12-common: Only copy HW keystore permission on supported targets

Change-Id: Ia7e7b0eb5840154fa06e77c2d4989e8faee099ec

13 months agog12-common: Skip ATV specific blobs on non-ATV targets
Bruno Martins [Fri, 29 Sep 2023 13:50:10 +0000 (14:50 +0100)]
g12-common: Skip ATV specific blobs on non-ATV targets

Change-Id: Ifaec95a99ce028dba5be2547919ff35b93542048

13 months agog12-common: Fix Vulkan support
Bruno Martins [Fri, 29 Sep 2023 16:11:24 +0000 (17:11 +0100)]
g12-common: Fix Vulkan support

Quite funny, the lib is actually a symlink to ../egl/libGLES_mali.so.

Change-Id: Ib185c9acb14e15fa358becd3973afeb0a4e8ad28

13 months agog12-common: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES
Michael Bestas [Thu, 31 Mar 2022 23:52:31 +0000 (02:52 +0300)]
g12-common: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES

Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e

16 months agog12-common: Allow targets to include additional manifests
Bruno Martins [Wed, 19 Jul 2023 20:42:43 +0000 (21:42 +0100)]
g12-common: Allow targets to include additional manifests

Change-Id: I8bca18e434bc28ed406a5bb745a3381631b7951a

16 months agog12-common: Decommonize super partition size
Nolen Johnson [Tue, 11 Jul 2023 20:54:28 +0000 (16:54 -0400)]
g12-common: Decommonize super partition size

Calculate dynamic partition size based on the super partition size
defined by the targets.

Change-Id: I574742d5798338eb98c6f229977bd4aebf4e22f0

18 months agog12-common: Align extractors with templates
Nolen Johnson [Wed, 17 May 2023 13:11:30 +0000 (09:11 -0400)]
g12-common: Align extractors with templates

* These now directly support VENDOR_COMMON!

Change-Id: I6c4e2226fea90be3dcc29dccbd7e23d24b2473f5

19 months agog12: Also put fstab to first_stage_ramdisk
Christian Hoffmann [Mon, 10 Apr 2023 08:18:19 +0000 (10:18 +0200)]
g12: Also put fstab to first_stage_ramdisk

* New wade 12 bootloader switches root due to androidboot.force_normal_boot=1
* so just copy to both locations to support both bootloaders
* and also make "fastboot boot" happy (which doesn't set androidboot.force_normal_boot=1)

Change-Id: I1cc99db9403ea5c1d1709427a6eed2cd09933617

20 months agog12: Categorize permissions
Nolen Johnson [Sat, 11 Mar 2023 21:28:18 +0000 (16:28 -0500)]
g12: Categorize permissions

Change-Id: I937e4d199f52fa029607342a1d938be29b12d31d

20 months agog12: Deduplicate gamepad permission
Nolen Johnson [Sat, 11 Mar 2023 21:25:29 +0000 (16:25 -0500)]
g12: Deduplicate gamepad permission

* Copied in device/amlogic/common/aml.mk

Change-Id: I69d2a5737b54716dad12aae8c35684743da266b8

22 months agog12: Don't limit inodes on /product
razorloves [Sat, 20 Aug 2022 07:58:14 +0000 (02:58 -0500)]
g12: Don't limit inodes on /product

This fixes the issue where the MindTheGapps zip install is
incomplete due to /product not having enough free inodes.

Change-Id: I401a09565bc243d2b164f44b0b40518d65209aea

23 months agog12: Adjust partition reservations
Christian Hoffmann [Tue, 20 Dec 2022 18:11:09 +0000 (19:11 +0100)]
g12: Adjust partition reservations

* Makes MTG fit

Change-Id: I6d43654a4ec5a5a6cd227737c27516f87e312d06

23 months agog12: Decommonize libsecmem
Christian Hoffmann [Sat, 10 Dec 2022 03:54:11 +0000 (22:54 -0500)]
g12: Decommonize libsecmem

* While this works fine on deadpool's newer liboemcrypto,
  wade/dopinder and the rest of the g12* family's liboemcrypto's
  don't play nicely with the newer libsecmem, so they will need
  to continue using older versions of it.

Change-Id: Ib28fdf52668be729ccd30a6f6b57ec9e2a86fca6

23 months agog12: Build necessary ndk_platform shims needed by blobs
Nolen Johnson [Tue, 6 Dec 2022 06:25:27 +0000 (01:25 -0500)]
g12: Build necessary ndk_platform shims needed by blobs

* Really not sure how this works on stock, libs just aren't there.

Change-Id: I9720bc74b1f0a5d441fec6ba2569b460ec1b2b79

23 months agog12: Remove conflicting blur_sysprop_notifier prebuilt
Bruno Martins [Fri, 11 Nov 2022 11:59:45 +0000 (11:59 +0000)]
g12: Remove conflicting blur_sysprop_notifier prebuilt

This is built from device/google/atv/products/atv_system_ext.mk.

Change-Id: I848f494c3892e6cea42545ff54f4cd0f73ea8d0a

23 months agog12: treewide: TTT1.220909.001.B7-9305992
Nolen Johnson [Fri, 2 Dec 2022 22:09:33 +0000 (17:09 -0500)]
g12: treewide: TTT1.220909.001.B7-9305992

Change-Id: I280f0b86e4a0f61d534d8fad76d9b4fda0134657

2 years agog12: Temporarily disable sdr2hdr
Nolen Johnson [Mon, 26 Sep 2022 19:23:29 +0000 (15:23 -0400)]
g12: Temporarily disable sdr2hdr

* The toggle in Settings is broken.

Change-Id: Ibfd13d725b192f8ddfd128c275353fdbffa392c8

2 years agog12: adjust reserved space for 12 gapps
Timi Rautamäki [Mon, 29 Aug 2022 09:35:02 +0000 (09:35 +0000)]
g12: adjust reserved space for 12 gapps

Change-Id: Ice772d08724a07e272d21c33ee368bab0a188fca

2 years agog12: Move the common stuff to amlogic/common
Nolen Johnson [Tue, 7 Jun 2022 21:23:12 +0000 (17:23 -0400)]
g12: Move the common stuff to amlogic/common

Change-Id: I45b8d767aa27dcafc0c19fb4e5af814ff40bd2eb

2 years agog12: Refactor partition flags
Sebastiano Barezzi [Wed, 20 Apr 2022 12:42:18 +0000 (14:42 +0200)]
g12: Refactor partition flags

* Set file system type and copy out for each partition
* Reorder flags
* Unset PRODUCT_BUILD_SUPER_PARTITION as it defaults to the value
  of PRODUCT_USE_DYNAMIC_PARTITIONS

Change-Id: Ie2a3ec5a0fec79a07c79d3f9f633c11f4e40a433

2 years agog12: overlay: Remove config_enableMultiUserUI
Bruno Martins [Mon, 4 Jul 2022 14:52:29 +0000 (15:52 +0100)]
g12: overlay: Remove config_enableMultiUserUI

This is set globally in LineageOS.

Change-Id: Ia8e5bb3e5ecf60890a6db0622706306d891d8e42

2 years agog12: Remove config_tether_upstream_types overlay
Wang Han [Sun, 19 Aug 2018 03:05:37 +0000 (11:05 +0800)]
g12: Remove config_tether_upstream_types overlay

* No need for it now as framework side handles this well on P

Change-Id: I708663f3de23cf1677a81bf31e8fc5fed4145e1b

2 years agog12: Change proprietary makefiles inheritance order
Bruno Martins [Mon, 4 Jul 2022 13:20:58 +0000 (14:20 +0100)]
g12: Change proprietary makefiles inheritance order

Change-Id: I65da3e542b763b0435a051892e3974673c95876e

2 years agofixup! "g12: Drop duplicated property"
Nolen Johnson [Sun, 3 Jul 2022 20:12:38 +0000 (16:12 -0400)]
fixup! "g12: Drop duplicated property"

* Ugh.

Change-Id: Id0613fcc4cded13d386b6c12a6e837d7f1a382e5

2 years agog12: Drop duplicated property
Nolen Johnson [Sun, 3 Jul 2022 19:56:43 +0000 (15:56 -0400)]
g12: Drop duplicated property

* In g12.mk already.

Change-Id: I680d28252b671dd349382c7b4f38f82926e3d7d0

2 years agog12: Guard bluetooth support properly
Bruno Martins [Thu, 9 Jun 2022 14:53:49 +0000 (15:53 +0100)]
g12: Guard bluetooth support properly

* Devices without bluetooth must set BOARD_HAVE_BLUETOOTH to
  false in product.mk, not BoardConfig.
* While we're at it, remove useless prop to disable bluetooth audio.

Change-Id: Icec1b48bb477d285a5af06ce4d86fdbc0d155213

2 years agoRevert "g12: Remove androidboot.dynamic_partitions from kernel cmdline"
Jan Altensen [Sat, 18 Jun 2022 05:22:34 +0000 (07:22 +0200)]
Revert "g12: Remove androidboot.dynamic_partitions from kernel cmdline"

This reverts commit 121e182490dfbe7f388b99738d37641dbb7a7b2b.

Reason: Devkits don't set these, and it's harmless on devices
(only Deadpool it seems) who already set it.

Change-Id: I261dfdfc07f5a4dac0285c623e03000e4d1bb1d0

2 years agog12: Inherit from basic amlogic/common tree
Nolen Johnson [Tue, 7 Jun 2022 21:23:12 +0000 (17:23 -0400)]
g12: Inherit from basic amlogic/common tree

Change-Id: I7b2610c854d264f492e9c67097f7208c23b6db35

2 years agog12: Unset BOARD_VNDK_VERSION
Bruno Martins [Wed, 19 Feb 2020 21:17:32 +0000 (21:17 +0000)]
g12: Unset BOARD_VNDK_VERSION

PRODUCT_USE_VNDK will be true in Android-P or later launching devices
and consequently BOARD_VNDK_VERSION will be set to 'current'.

Change-Id: Iaed3eb4875c00742903627d63b4f2968e356781b

2 years agog12: Replace audio@2.0-service with audio.service
Roman Kiryanov [Wed, 8 Apr 2020 21:23:47 +0000 (14:23 -0700)]
g12: Replace audio@2.0-service with audio.service

Legacy service name, use android.hardware.audio.service instead

Bug: 153579444
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Merged-In: I4c05accb86dd0c9cd1b3fef3d84e0d54b2afc6a1
Change-Id: I6b55b4b1db2577f4176c99dca7021cfe78e13307

2 years agog12: Unset PRODUCT_IS_ATV
Bruno Martins [Thu, 9 Jun 2022 22:19:02 +0000 (23:19 +0100)]
g12: Unset PRODUCT_IS_ATV

This is done already when inheriting from
device/google/atv/products/atv_base.mk.

Change-Id: I8c357ea6692b22babf950a06844acf1cde488e1c

2 years agog12: manifest: Remove unnecessary fqname entries
Bruno Martins [Thu, 9 Jun 2022 21:07:54 +0000 (22:07 +0100)]
g12: manifest: Remove unnecessary fqname entries

Change-Id: If6d23d9d340f674e52067aae92024d522025499f

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

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

Change-Id: I97023f1bab88ddb8fa4cb205df190c516a759951

2 years agog12: manifest: Remove old Clearkey DRM entries
Bruno Martins [Thu, 9 Jun 2022 20:54:44 +0000 (21:54 +0100)]
g12: manifest: Remove old Clearkey DRM entries

These are set in the vintf fragment manifest.

Change-Id: I617dcf2a9a336f1ef33e1db7e311b9d917bf609d

2 years agog12: Drop duplicate prop
Christian Hoffmann [Tue, 7 Jun 2022 22:03:55 +0000 (00:03 +0200)]
g12: Drop duplicate prop

Change-Id: I3166ac0a8866c9b5f3bb72f20560597f651e0284

2 years agog12: Move sepolicy to device/amlogic/sepolicy
Nolen Johnson [Tue, 7 Jun 2022 04:45:37 +0000 (00:45 -0400)]
g12: Move sepolicy to device/amlogic/sepolicy

Change-Id: I281b025f1eea47f6e6df62d256e73441bdd8745a

2 years agog12: Correct comment on OP-TEE proprietary file setup-makefiles
Nolen Johnson [Tue, 7 Jun 2022 04:01:47 +0000 (00:01 -0400)]
g12: Correct comment on OP-TEE proprietary file setup-makefiles

Change-Id: I53aeb563eb700964af68bc3aa13c8fa9f00eb125

2 years agog12: Fix a duplicate entry and remove actual denial
Christian Hoffmann [Mon, 6 Jun 2022 06:32:11 +0000 (08:32 +0200)]
g12: Fix a duplicate entry and remove actual denial

Change-Id: I2278d88738bd21ec1a0ef59cad3b89421ea86115

2 years agofixup! g12: sepolicy: Address misc denials
Nolen Johnson [Mon, 6 Jun 2022 23:13:35 +0000 (19:13 -0400)]
fixup! g12: sepolicy: Address misc denials

* Mixed up chain ordering, this can't go in until
  debugfs is in.

Change-Id: Ie2191c0e892a3dfe925efd1b30c21d2c36fceded

2 years agog12: Move ueventd conf to vendor etc folder
Aaron Kling [Wed, 17 Nov 2021 05:19:46 +0000 (23:19 -0600)]
g12: Move ueventd conf to vendor etc folder

system/core removed support for having the conf in /vendor/ in
commit 71dd706.

Change-Id: I4a3648d168c9f8cdf43f90cdf244f4d2dcda1e87

2 years agog12: Add HDCP TEE blobs
Christian Hoffmann [Sat, 4 Jun 2022 12:02:30 +0000 (14:02 +0200)]
g12: Add HDCP TEE blobs

* Fixes HDCP for DRM content
* Taken from: Dynalink/sti6130d350/sti6130d350:10/QT/20220222:user/release-keys

Change-Id: Id79a8054e1b2a98481761e1d6c926b07771bb3a5

2 years agog12: sepolicy: Address misc denials
Timi Rautamäki [Wed, 11 May 2022 11:45:04 +0000 (11:45 +0000)]
g12: sepolicy: Address misc denials

Change-Id: I611b6a78b1c29c318a0f3a856ccf250610ba73f5

2 years agog12: Fix sepolicy for graphics allocator tmpfs
Timi Rautamäki [Tue, 10 May 2022 20:21:28 +0000 (20:21 +0000)]
g12: Fix sepolicy for graphics allocator tmpfs

Change-Id: I33e3c05e830b9462136cb71df89ba3b59dd1fdbb

2 years agog12: Set TARGET_AMLOGIC_GPU_ARCH
Vitaliy Tomin [Fri, 27 May 2022 17:08:07 +0000 (01:08 +0800)]
g12: Set TARGET_AMLOGIC_GPU_ARCH

Change-Id: I399bc7c9611173c7993a02b5afc36892c521d8bd

2 years agog12: remove prebuilt audio files
Timi Rautamäki [Thu, 12 May 2022 08:22:49 +0000 (08:22 +0000)]
g12: remove prebuilt audio files

These are copied in frameworks/base/data/sounds/AudioTv.mk

Change-Id: If8c452d712a4118ed6ce97d9ef81379717be6a7d

2 years agog12: sepolicy: Android 12 policy
Nolen Johnson [Tue, 3 May 2022 17:38:22 +0000 (13:38 -0400)]
g12: sepolicy: Android 12 policy

Change-Id: I92ff8dcfd7872c762681736293e81c98064f6fa5

2 years agog12: Sort proprietary files
Vitaliy Tomin [Thu, 5 May 2022 05:37:13 +0000 (13:37 +0800)]
g12: Sort proprietary files

* Sort and group proprietary-files.
* Move playready dat files to tee list.
* Deduplicate libsecmem.so.

Change-Id: I031a89f96d1a84023523e0d3d67620700764ea40

2 years agog12-common: Decommonize liboemcrypto.so
me2151 [Sat, 7 May 2022 21:29:15 +0000 (21:29 +0000)]
g12-common: Decommonize liboemcrypto.so

Change-Id: Ice60da2bf2340fc441178a40cd6dade294820a1e

2 years agog12: Remove setting of ro.crypto.fuse_sdcard from fs.rc
Nolen Johnson [Tue, 3 May 2022 17:36:21 +0000 (13:36 -0400)]
g12: Remove setting of ro.crypto.fuse_sdcard from fs.rc

* Neverallow, and not needed.

Change-Id: I86d4a8174918c7e02f57559a31187a4e3edbb6f1

2 years agog12: Fix building with `TARGET_HAS_TEE := false`
Vitaliy Tomin [Mon, 2 May 2022 17:32:47 +0000 (01:32 +0800)]
g12: Fix building with `TARGET_HAS_TEE := false`

* Move playready blobs to proprietary-files-tee.txt since it depends on
  libtee

Change-Id: If71a51b1e065da210126914dd46ce55dbe72d350

2 years agog12: Include prebuilt `amlogic_fbc_lib.ko`
Nolen Johnson [Mon, 2 May 2022 18:20:44 +0000 (14:20 -0400)]
g12: Include prebuilt `amlogic_fbc_lib.ko`

* Needed for high-res hardware-backed OMX, and is
  prebuilt even in Amlogic BSP's (yuck).

* Our kernel, surprisingly, loads this just fine.

Change-Id: I31a17fdb249075614751e43cdae9fba055e1d182

2 years agog12: Swap to hardware OMX codecs
Nolen Johnson [Mon, 2 May 2022 15:45:30 +0000 (11:45 -0400)]
g12: Swap to hardware OMX codecs

* These FINALLY work.
* This reverts 4619ddf8762c15e9c6c116934cfea2dc6cd90706 partially,
  as the media_codecs.xml file was updated in 12 import.
* Leave software-backed OMX as an option guarded by a flag for
  debugging purposes down the line.

Change-Id: I52949e71865268f04c92a2d5bb42ede7d03f9396

2 years agog12: Import missing `use_uvm=1` from stock kernel cmdline
Vitaliy Tomin [Mon, 2 May 2022 15:44:48 +0000 (11:44 -0400)]
g12: Import missing `use_uvm=1` from stock kernel cmdline

* Fixes hardware-backed OMX - set on deadpool stock 12,
  some videos still crash OMX but it is few and far between.

Change-Id: I307e64a91c43dabf2dd62845a3385d8c0ea57bfc

2 years agog12: Decommonize vendor.media.support.dolbyvision
Nolen Johnson [Tue, 19 Apr 2022 17:16:02 +0000 (13:16 -0400)]
g12: Decommonize vendor.media.support.dolbyvision

Change-Id: I47aae310a409404d91e6fddf64ad5fb183fe02ac

2 years agog12: Decommonize ro.vendor.platform.support.dolbyvision
Nolen Johnson [Tue, 19 Apr 2022 17:05:13 +0000 (13:05 -0400)]
g12: Decommonize ro.vendor.platform.support.dolbyvision

Change-Id: Ia8f05ad1c33b791404b52f32abeca30167851501

2 years agog12: sepolicy: update for new blobs
Timi Rautamäki [Thu, 24 Mar 2022 08:10:55 +0000 (08:10 +0000)]
g12: sepolicy: update for new blobs

Change-Id: I0d969ddc841165282b86f9472c4bbcebab8ab666

2 years agog12: sepolicy: update for S
Timi Rautamäki [Wed, 23 Mar 2022 19:33:19 +0000 (19:33 +0000)]
g12: sepolicy: update for S

* vendor_kernel_modules, hal_oemlock_default are defined in
  system/sepolicy
* priv_app doesn't need cgroup_bpf dir access
* audioserver accessing vendor_prop is a neverallow
* ro.rfkilldisabled, init.svc.tee_supplicant, ro.vendor.hdmi.auto_otp
  are unused
* ro.crypto.fuse_sdcard is not labeled in stock
* Update property labels according to
  https://source.android.com/devices/architecture/configuration/add-system-properties#vendor-sepolicies

Change-Id: I9a13c93ccfbb4358b57dd113d27b90416eb0384f

2 years agog12: Copy all possible feature permission files directly from fw/native
Bruno Martins [Fri, 25 Mar 2022 13:18:17 +0000 (13:18 +0000)]
g12: Copy all possible feature permission files directly from fw/native

Change-Id: Iba9a91fcd08868d691c332d50041b473973ecfe5

2 years agog12: Add OpenGL ES and update Vulkan dEQP feature flags
Alastair Donaldson [Fri, 18 Dec 2020 13:53:59 +0000 (13:53 +0000)]
g12: 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 agog12: Use TARGET_COPY_OUT_VENDOR everywhere
Bruno Martins [Fri, 25 Mar 2022 14:09:28 +0000 (14:09 +0000)]
g12: Use TARGET_COPY_OUT_VENDOR everywhere

Change-Id: Ic42e79ac00feac6118dc99fa1edbc0142ba3a484

2 years agog12: Define Soong namespaces in the common product makefile
Bruno Martins [Thu, 5 Sep 2019 11:17:15 +0000 (12:17 +0100)]
g12: Define Soong namespaces in the common product makefile

This is where it belongs.

Change-Id: Ibea0e8fe5dbc26d8953a9735f0b38cf087805b76

2 years agog12: Be simple and just use LOCAL_PATH var
Bruno Martins [Fri, 25 Mar 2022 12:38:37 +0000 (12:38 +0000)]
g12: Be simple and just use LOCAL_PATH var

Change-Id: I74bfebb8c579560a4d212b809df70769eb13222e

2 years agog12: add recovery to fstab
Timi Rautamäki [Thu, 24 Mar 2022 15:06:35 +0000 (15:06 +0000)]
g12: add recovery to fstab

Change-Id: I8f68e3385b6df6cd9cf690e45d82d40c8a0e9b7d

2 years agog12: Allow ELF prebuilts in PRODUCT_COPY_FILES
Roger Ellis [Wed, 13 May 2020 23:56:10 +0000 (16:56 -0700)]
g12: 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 agog12: treewide: adt3-user 12 STT1.211025.001.Z4 7928920 release-keys
Nolen Johnson [Mon, 20 Dec 2021 23:37:09 +0000 (18:37 -0500)]
g12: treewide: adt3-user 12 STT1.211025.001.Z4 7928920 release-keys

* Keymaster manifest isn't needed anymore as keymint has a vintf
  fragment.

20584bc7666f91e4f9c2c4f670a89438ff3b8160 reverted in the process
  as it isn't completely correct, we need to fix them sepolicy
  side.

Change-Id: I75f9c962798fd979dcb86bdadad7be4880f6edac

2 years agog12: Move architecture flags to generic variant lineage-19.0
Nolen Johnson [Mon, 10 Jan 2022 01:10:24 +0000 (20:10 -0500)]
g12: Move architecture flags to generic variant

* Some recent native crashes on b4s4 have led me to believe
  that we're all better off doing generic archs, as silent
  crashing code sucks...

* Additionally, we are `cortex-a53` and not `cortex-a53.a57`
  so, remedy that as well.

Change-Id: I5f4b0c3c68baf9f311cb37a6c163b9e7d5a0b57d

2 years agog12: Unset PRODUCT_FULL_TREBLE_OVERRIDE
LuK1337 [Sun, 14 Oct 2018 12:47:55 +0000 (14:47 +0200)]
g12: Unset PRODUCT_FULL_TREBLE_OVERRIDE

* It's not needed since it's automatically set for any devices
  shipped with 26+.

Change-Id: I59e17fe3774af63dbea424be6206b77e0e6050ba

2 years agog12: sepolicy: Use BOARD_VENDOR_SEPOLICY_DIRS
Felix [Tue, 28 May 2019 12:05:51 +0000 (14:05 +0200)]
g12: sepolicy: Use BOARD_VENDOR_SEPOLICY_DIRS

BOARD_SEPOLICY_DIRS is deprecated.

Change-Id: I046282b2a2e8c541726fb29cb0044503322d4be9

2 years agog12: Use default g12_variant_defconfig
Nolen Johnson [Mon, 20 Dec 2021 18:28:08 +0000 (13:28 -0500)]
g12: Use default g12_variant_defconfig

* But allow devices to override it (e.g. sabrina).

Change-Id: Iba3fb6245a744fcb7db47fb015e5e7c69064fe9d

3 years agog12: Reserve space for GApps
Nolen Johnson [Tue, 28 Sep 2021 21:07:00 +0000 (17:07 -0400)]
g12: Reserve space for GApps

* Guard this with WITH_GMS to allow people to
  build GApps inline.

Change-Id: I25802c5f14f1353a8d6f761bb256a6b7dfb63e8b

3 years agog12: Initial sepolicy
Timi Rautamäki [Mon, 27 Sep 2021 20:38:13 +0000 (20:38 +0000)]
g12: Initial sepolicy

Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I596e83fd2c0fabe7b31020cf69267bd43f836dc5

3 years agog12: Remove androidboot.dynamic_partitions from kernel cmdline
Nolen Johnson [Mon, 1 Nov 2021 01:53:08 +0000 (21:53 -0400)]
g12: Remove androidboot.dynamic_partitions from kernel cmdline

* This is duplicated elsewhere, and this isn't the proper
  place to set it.

Change-Id: Idd2a0a2dbf73e5e20dd9839bff3485e5a9e94c1b

3 years agog12: Comply with property isolation
Nolen Johnson [Sun, 31 Oct 2021 03:35:24 +0000 (23:35 -0400)]
g12: Comply with property isolation

* Stock has isolation enabled, and yet has these all in
  /vendor/build.prop? - eh, we can do it correctly.

Change-Id: I547277eae2f0eadf873670bc79778f3401f036ba

3 years agog12: Remove /data/media creation from fs.rc
Nolen Johnson [Fri, 29 Oct 2021 16:33:21 +0000 (12:33 -0400)]
g12: Remove /data/media creation from fs.rc

* Done by platform.

Change-Id: Ia8f3cb91d967c3ec29ab4da50e7c4978ef0d5f43

3 years agog12: remove broadcom firmware files from proprietary-files.txt
Jan Altensen [Thu, 16 Sep 2021 08:38:33 +0000 (10:38 +0200)]
g12: remove broadcom firmware files from proprietary-files.txt

 * this is handled in hardware/amlogic/kernel-modules/dhd-driver/firmware now

Change-Id: Idcae813063960cc800fafbc9eb62ec12a2627804

3 years agog12: Remove non-pinned variant of config_bcm4359c0_ag.txt
Nolen Johnson [Tue, 14 Sep 2021 22:11:41 +0000 (18:11 -0400)]
g12: Remove non-pinned variant of config_bcm4359c0_ag.txt

Change-Id: I68b014de9c482e1ab5c765dd1ad9b241150ab090

3 years agog12: Pin sabrina's Bluetooth/Wi-Fi firmware
Nolen Johnson [Tue, 14 Sep 2021 21:38:11 +0000 (17:38 -0400)]
g12: Pin sabrina's Bluetooth/Wi-Fi firmware

* sabrina sees Bluetooth/Wi-Fi hangs and reboots if
  you don't use the stock firmware.

Change-Id: I3aa6a9cd96c8f3a5084a986e8d783428c9ef3460

3 years agog12: add dummy target for dtb image
Jan Altensen [Tue, 14 Sep 2021 18:09:17 +0000 (20:09 +0200)]
g12: add dummy target for dtb image

Change-Id: Ibb49f125b11622897eb8c802f8580d7521881db9

3 years agog12: fix flashing of DTB/logo images
Jan Altensen [Fri, 10 Sep 2021 06:37:05 +0000 (08:37 +0200)]
g12: fix flashing of DTB/logo images

 * the build system apparently does not like it when `add-radio-file` is called from within build rules when building via `m target-files-package`, manually add it to the radioimage list

Change-Id: I250a5a36305fadb3c36b5d61f3fc68b03bb5ede7

3 years agog12: Correct dtbo mount location in fstab
Nolen Johnson [Fri, 10 Sep 2021 02:14:01 +0000 (22:14 -0400)]
g12: Correct dtbo mount location in fstab

Change-Id: I8afd8d10c9829d11f23f3259c5b55359c33cce4c