GitHub/LineageOS/G12/android_device_amlogic_g12-common.git
3 weeks agog12: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES lineage-21
Michael Bestas [Thu, 31 Mar 2022 23:52:31 +0000 (02:52 +0300)]
g12: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES

Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e
(cherry picked from commit a6e4df76f0b51813f3e97167c6259bfbbd117f20)

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

Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e

4 weeks agog12a: Sync extract scripts with 22 templates
Michael Bestas [Sun, 29 Sep 2024 08:24:29 +0000 (11:24 +0300)]
g12a: Sync extract scripts with 22 templates

Change-Id: I7963ae050cfb193c5d0c2636da9c1e8f82bcdbdb

5 weeks agog12a: Make security patch reflect wade's latest
Nolen Johnson [Fri, 11 Oct 2024 20:11:01 +0000 (16:11 -0400)]
g12a: Make security patch reflect wade's latest

Change-Id: Ia5271993a62f066873575b2dd22eb21f11a7f6c4

5 weeks agog12a: Fix subtitlemanager HAL ELF checks
Cosmin Tanislav [Fri, 16 Aug 2024 23:23:32 +0000 (02:23 +0300)]
g12a: Fix subtitlemanager HAL ELF checks

Change-Id: I0d242a404b2f983cecab5994d56a6098dcb9c3c1

5 weeks agog12a: Do not manually build dependencies
Cosmin Tanislav [Sat, 17 Aug 2024 01:59:30 +0000 (04:59 +0300)]
g12a: Do not manually build dependencies

Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b

5 weeks agog12a: Resolve all missing symbols from libui
Bruno Martins [Sat, 5 Oct 2024 11:26:00 +0000 (12:26 +0100)]
g12a: Resolve all missing symbols from libui

Fixes errors detected with ELF checks:
error: Unresolved symbol: _ZN7android19GraphicBufferMapper4lockEPK13native_handlejRKNS_4RectEPPvPiS9_
error: Unresolved symbol: _ZN7android19GraphicBufferMapper6unlockEPK13native_handle

Change-Id: I4b5e44c884cc708c98c903eb2621b8b8607f76c9

5 weeks agog12a: Enable elf checks
Aaron Kling [Wed, 14 Aug 2024 06:44:45 +0000 (01:44 -0500)]
g12a: Enable elf checks

Change-Id: Ia6c9a381abb3384c77532d75e02fd84c841a4d1e

5 weeks agog12a: Decommonize TEE
Nolen Johnson [Wed, 9 Oct 2024 21:36:54 +0000 (17:36 -0400)]
g12a: Decommonize TEE

Change-Id: Ieb16762da85dd729db3f5973e68c171fea26eaa7

5 weeks agog12a: Split sm1 to its own tree and drop g12b
Nolen Johnson [Wed, 9 Oct 2024 21:13:05 +0000 (17:13 -0400)]
g12a: Split sm1 to its own tree and drop g12b

* g12b never worked in this tree anyway.
* Start using g12a prefix, as g12b tree may follow.

Change-Id: I6ca77d4605c992d9f381c4968545394c6d197e63

6 weeks agog12: Update pinned wade files
Nolen Johnson [Wed, 9 Oct 2024 20:56:01 +0000 (16:56 -0400)]
g12: Update pinned wade files

Change-Id: Iaa0cddd0b18f90a9ef8c46f5309da53f66628b7a

6 weeks agog12: Pull another netflix permission
Nolen Johnson [Wed, 9 Oct 2024 20:50:52 +0000 (16:50 -0400)]
g12: Pull another netflix permission

Change-Id: I25dc09b60c39de1e7e62ee34911f961b56e9ec7a

6 weeks agog12-common: Remove useless ATV permission files
Bruno Martins [Sun, 6 Oct 2024 13:26:20 +0000 (14:26 +0100)]
g12-common: Remove useless ATV permission files

* split-permissions breaks boot on A15 and seems like it was never needed.
* Rest are in gapps or un-needed.
* DeadpoolService is a no-op on _tab builds, so include it.

Change-Id: I462250b6a75585bfcca23bdeb650fd1e286ae770

6 weeks agog12-common: Remove useless tee binaries
Bruno Martins [Sat, 5 Oct 2024 11:31:53 +0000 (12:31 +0100)]
g12-common: Remove useless tee binaries

These trigger missing deps and aren't used at all.

Change-Id: I3e8b133aca343bba3a616185d2e7abed186f35a2

6 weeks agoaml: Include SKU init script lineage-20
Nolen Johnson [Sun, 6 Oct 2024 16:22:50 +0000 (12:22 -0400)]
aml: Include SKU init script

Change-Id: I535034ec1939c454442ef2e823c82a78bc644b6f
(cherry picked from commit b6c4cc943c08cca4faf53a3bada70cf739ce6367)

6 weeks agoaml: Include device specific init script
Nolen Johnson [Sun, 6 Oct 2024 15:47:34 +0000 (11:47 -0400)]
aml: Include device specific init script

Change-Id: Ie463a664ed99344610f0873bad05f3714e7a9132
(cherry picked from commit 2123e5db8abc2cf23e94ee28fec95261102ca7b1)

6 weeks agoaml: Include SKU init script
Nolen Johnson [Sun, 6 Oct 2024 16:22:50 +0000 (12:22 -0400)]
aml: Include SKU init script

Change-Id: I535034ec1939c454442ef2e823c82a78bc644b6f

6 weeks agoaml: Include device specific init script
Nolen Johnson [Sun, 6 Oct 2024 15:47:34 +0000 (11:47 -0400)]
aml: Include device specific init script

Change-Id: Ie463a664ed99344610f0873bad05f3714e7a9132

6 weeks agog12: Don't mount factory in fstabs
Nolen Johnson [Sun, 6 Oct 2024 15:38:18 +0000 (11:38 -0400)]
g12: Don't mount factory in fstabs

* Results in 20 second boot hold on deadpool/devkits.
* Instead mount in init scripts where applicable.
* Devkits don't have it period so just nuke it there.

Change-Id: Ic53189bde9aaf00e9996e83936e57d5a850f9e83

6 weeks agog12: Don't mount factory in fstabs
Nolen Johnson [Sun, 6 Oct 2024 15:38:18 +0000 (11:38 -0400)]
g12: Don't mount factory in fstabs

* Results in 20 second boot hold on deadpool/devkits.
* Instead mount in init scripts where applicable.
* Devkits don't have it period so just nuke it there.

Change-Id: Ic53189bde9aaf00e9996e83936e57d5a850f9e83

6 weeks agog12-common: Re-sync extract scripts with templates
Bruno Martins [Sat, 5 Oct 2024 10:27:15 +0000 (11:27 +0100)]
g12-common: Re-sync extract scripts with templates

Change-Id: I95866b7f7bf1ccd89669201aea7a44e649ac64f8

2 months agog12: sm1: Update sabrina pinned files
Nolen Johnson [Wed, 11 Sep 2024 02:51:59 +0000 (22:51 -0400)]
g12: sm1: Update sabrina pinned files

Change-Id: I3179c87d101dc416af9752928bde2d116a7d56c4

2 months agog12-common: extract-files improvements
Michael Bestas [Mon, 9 Sep 2024 23:07:58 +0000 (02:07 +0300)]
g12-common: extract-files improvements

Change-Id: I517698ca3b5a93e10a5b167417631c7f8d0ab9e2

2 months agog12-common: Sync extract scripts with templates
Michael Bestas [Tue, 27 Aug 2024 19:51:30 +0000 (22:51 +0300)]
g12-common: Sync extract scripts with templates

Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc

3 months agog12: Update extract build for sm1 files
Nolen Johnson [Mon, 5 Aug 2024 05:05:23 +0000 (01:05 -0400)]
g12: Update extract build for sm1 files

Change-Id: I410fb1cfb570a821d2109ae28b3310bd19779306

3 months agog12: Remove references to a2dp module
Aaron Kling [Fri, 19 Aug 2022 04:17:54 +0000 (23:17 -0500)]
g12: Remove references to a2dp module

APM would fail to parse the config anyway:

  E DevicesFactoryHAL: loadAudioInterface couldn't load audio hw module audio.a2dp (No such file or directory)
  W DevicesFactoryHalHidl: The specified device name is not recognized: "a2dp"
  E AudioFlinger: loadHwModule() error -22 loading module a2dp
  W APM_AudioPolicyManager: could not open HW module a2dp

Change-Id: Iaa1be881cfe8f8474cef0ba46e1b0a62b59e14be

3 months agog12: Remove references to a2dp module
Aaron Kling [Fri, 19 Aug 2022 04:17:54 +0000 (23:17 -0500)]
g12: Remove references to a2dp module

APM would fail to parse the config anyway:

  E DevicesFactoryHAL: loadAudioInterface couldn't load audio hw module audio.a2dp (No such file or directory)
  W DevicesFactoryHalHidl: The specified device name is not recognized: "a2dp"
  E AudioFlinger: loadHwModule() error -22 loading module a2dp
  W APM_AudioPolicyManager: could not open HW module a2dp

Change-Id: Iaa1be881cfe8f8474cef0ba46e1b0a62b59e14be

3 months agog12: Stop copying Generic.kl
Nolen Johnson [Thu, 2 May 2024 22:30:06 +0000 (18:30 -0400)]
g12: Stop copying Generic.kl

* Overrides platform one causing things like SUW
  skip to break.

Change-Id: Ia4bf13b80ffd88f23de4fb461e36f8e4ca976b95

3 months agog12: audio: Drop invalid and unused effects
Bruno Martins [Sun, 28 Jul 2024 22:25:32 +0000 (23:25 +0100)]
g12: audio: Drop invalid and unused effects

As seen in the logs:

  E EffectsFactoryConfigLoader: Error querying effect 4b8b4260-3429-11e6-a6c7-0002a5d5c51b on lib audio_pre_processing
  E EffectsFactoryConfigLoader: Error querying effect 5dbdc480-3429-11e6-a499-0002a5d5c51b on lib audio_pre_processing

Change-Id: I9048fe5c27e865f7edb6cf1b07e2f73aa7194ed2

3 months agog12: audio: Remove ms12v2dapwrapper effect
Bruno Martins [Sun, 28 Jul 2024 22:22:13 +0000 (23:22 +0100)]
g12: audio: Remove ms12v2dapwrapper effect

The library doesn't exist in adt-3 factory images.

Change-Id: I59b0b4a009c8e608ba6dc0e9126dad0b915a4087

3 months agog12: Remove legacy audio effects configuration file
Bruno Martins [Sun, 28 Jul 2024 22:00:21 +0000 (23:00 +0100)]
g12: Remove legacy audio effects configuration file

The XML variant is loaded, no need to keep legacy one.

Change-Id: I5f8666e55b3c92895a056f69585daa6e3f78d0a1

3 months agog12: audio: Drop invalid and unused effects
Bruno Martins [Sun, 28 Jul 2024 22:25:32 +0000 (23:25 +0100)]
g12: audio: Drop invalid and unused effects

As seen in the logs:

  E EffectsFactoryConfigLoader: Error querying effect 4b8b4260-3429-11e6-a6c7-0002a5d5c51b on lib audio_pre_processing
  E EffectsFactoryConfigLoader: Error querying effect 5dbdc480-3429-11e6-a499-0002a5d5c51b on lib audio_pre_processing

Change-Id: I9048fe5c27e865f7edb6cf1b07e2f73aa7194ed2

3 months agog12: audio: Remove ms12v2dapwrapper effect
Bruno Martins [Sun, 28 Jul 2024 22:22:13 +0000 (23:22 +0100)]
g12: audio: Remove ms12v2dapwrapper effect

The library doesn't exist in adt-3 factory images.

Change-Id: I59b0b4a009c8e608ba6dc0e9126dad0b915a4087

3 months agog12: Remove legacy audio effects configuration file
Bruno Martins [Sun, 28 Jul 2024 22:00:21 +0000 (23:00 +0100)]
g12: Remove legacy audio effects configuration file

The XML variant is loaded, no need to keep legacy one.

Change-Id: I5f8666e55b3c92895a056f69585daa6e3f78d0a1

3 months agog12: Drop prebuilt health HAL
Bruno Martins [Fri, 26 Jul 2024 22:35:51 +0000 (23:35 +0100)]
g12: Drop prebuilt health HAL

The batteryless custom health HAL is now built for all amlogic targets.

Change-Id: I1434556422ec5e78d34c0303ca75ad1eefd56cab

3 months agog12: Drop prebuilt health HAL
Bruno Martins [Fri, 26 Jul 2024 22:35:51 +0000 (23:35 +0100)]
g12: Drop prebuilt health HAL

The batteryless custom health HAL is now built for all amlogic targets.

Change-Id: I1434556422ec5e78d34c0303ca75ad1eefd56cab

4 months agoRevert "g12: Fixup PQModule typo"
Nolen Johnson [Mon, 22 Jul 2024 01:17:40 +0000 (21:17 -0400)]
Revert "g12: Fixup PQModule typo"

This reverts commit 8c1b7ec253e2bedfc6b9a3228cca1f3bb752ccbc.

Reason: Actually correct, already squash reverted in 21.
Change-Id: I9c06e4bba61780469d1aabd37efe55beb8f54cd9

4 months agog12: Remove unused properties
Nolen Johnson [Thu, 2 May 2024 22:29:53 +0000 (18:29 -0400)]
g12: Remove unused properties

Change-Id: Ibe8e28c0953831449af94e0c3b9a71ba02b9d5f7
(cherry picked from commit 46fc8850856d13710eb3ac16f2bbbcb887bc3ca6)

4 months agog12: Update vendor security patch level from wade
Nolen Johnson [Tue, 11 Jun 2024 00:36:31 +0000 (20:36 -0400)]
g12: Update vendor security patch level from wade

* deadpool's diff to wade has almost no changes on the most
  recent wade build, and the only blob differences are DRM /
  droidlogic stuff that was _added_.
* This is reflective of our blobs/kernel.

Change-Id: Ibaa30fdef1c975b245b3d7d5b2d157852037ef3e
(cherry picked from commit b3a79cae403edbaf621a2a9fedfe1ccb86504b13)

4 months agog12: Remove property duplicated in aml/common
Nolen Johnson [Thu, 2 May 2024 22:00:38 +0000 (18:00 -0400)]
g12: Remove property duplicated in aml/common

Change-Id: Ic162f1ef458db9dad9d2d57d1b8d5fc57b5912ca
(cherry picked from commit d7a677915d080a2f32854d80e1854caaf34d95ca)

4 months agog12: Stop declaring/starting services that don't exist
Nolen Johnson [Fri, 3 May 2024 20:16:14 +0000 (16:16 -0400)]
g12: Stop declaring/starting services that don't exist

Change-Id: I4685ac8afd6f513628fa8936eb9f9701f0c41d79
(cherry picked from commit eb116e380acf6ffb5b6c524added3a2318fb43ff)

4 months agog12: Mount factory partition and make /mnt/vendor/ mounts optional
Nolen Johnson [Fri, 7 Jun 2024 21:18:06 +0000 (17:18 -0400)]
g12: Mount factory partition and make /mnt/vendor/ mounts optional

* Some devices have them some don't, don't fail to boot if we
  don't have it.

Change-Id: Iada51919e5c30309534c09666e2b41b291b4feb7
(cherry picked from commit ab5441bd5d8b0ea4b5f057a8b95000de3fbe6aa9)

4 months agog12: Stop setting QCA wifi only property
Nolen Johnson [Sun, 9 Jun 2024 19:28:36 +0000 (15:28 -0400)]
g12: Stop setting QCA wifi only property

* denied anyway.

Change-Id: I337ed417e5745b4ed5c412a1b0ae8c4d6381d38e

4 months agog12: Move kernel modules to vendor DLKM partition
Bruno Martins [Sat, 16 Dec 2023 14:50:30 +0000 (14:50 +0000)]
g12: Move kernel modules to vendor DLKM partition

Change-Id: Ifc49911dcb4988bbc3c82351e9427b610f7b75c8

4 months agog12: Copy media firmware directly from the source
Bruno Martins [Sun, 7 Jul 2024 17:23:07 +0000 (18:23 +0100)]
g12: Copy media firmware directly from the source

Change-Id: I327202b49c4487a6cfde81cfe6727d98f7b2774e

4 months agog12: Properly build external kernel modules
Bruno Martins [Sat, 16 Dec 2023 19:20:24 +0000 (19:20 +0000)]
g12: Properly build external kernel modules

Change-Id: Ie632cdc1e2567606bcd10b7816fa65ad6090a038

4 months agoPartially revert "g12: Commonize a few things"
Bruno Martins [Sun, 21 Jul 2024 12:35:45 +0000 (13:35 +0100)]
Partially revert "g12: Commonize a few things"

This partially reverts commit a8de692e14457c3ec3254c122278a649f1c80607.

Reason: amlogic/common tree doesn't contain any proprietary file lists.

Change-Id: Ia8a29c7656a8d1452d56b804995451753329e0f4

4 months agoPartially revert "g12: Commonize a few things"
Bruno Martins [Sun, 21 Jul 2024 12:35:45 +0000 (13:35 +0100)]
Partially revert "g12: Commonize a few things"

This partially reverts commit d44975965a13bff3095382157c3273ad7c3ba04a.

Reason: amlogic/common tree doesn't contain any proprietary file lists.

Change-Id: Ia8a29c7656a8d1452d56b804995451753329e0f4

4 months agog12: Move kernel modules to vendor DLKM partition
Bruno Martins [Sat, 16 Dec 2023 14:50:30 +0000 (14:50 +0000)]
g12: Move kernel modules to vendor DLKM partition

Change-Id: Ifc49911dcb4988bbc3c82351e9427b610f7b75c8

4 months agog12: Print all kernel logs when debugging
Nolen Johnson [Fri, 12 Jul 2024 21:08:16 +0000 (17:08 -0400)]
g12: Print all kernel logs when debugging

Change-Id: I5f182ff67df30d963a11c9b72a78d8dd7dca235b
(cherry picked from commit a2de9a047ec9e52ec6ac27eacc1ce03eeb97cc66)

4 months agog12: Print all kernel logs when debugging
Nolen Johnson [Fri, 12 Jul 2024 21:08:16 +0000 (17:08 -0400)]
g12: Print all kernel logs when debugging

Change-Id: I5f182ff67df30d963a11c9b72a78d8dd7dca235b

4 months agog12: Copy media firmware directly from the source
Bruno Martins [Sun, 7 Jul 2024 17:23:07 +0000 (18:23 +0100)]
g12: Copy media firmware directly from the source

Change-Id: I327202b49c4487a6cfde81cfe6727d98f7b2774e

4 months agog12: Properly build external kernel modules
Bruno Martins [Sat, 16 Dec 2023 19:20:24 +0000 (19:20 +0000)]
g12: Properly build external kernel modules

Change-Id: Ie632cdc1e2567606bcd10b7816fa65ad6090a038

4 months agog12: Uncoditionally build dumpstate HAL dependency
Bruno Martins [Sun, 7 Jul 2024 14:49:21 +0000 (15:49 +0100)]
g12: Uncoditionally build dumpstate HAL dependency

Change-Id: If183acb8199ae018d725ea8a6c968d55e7b833f0

4 months agog12: Remove software omx codec references
Aaron Kling [Sat, 29 Jun 2024 03:09:34 +0000 (22:09 -0500)]
g12: Remove software omx codec references

These are no longer available as of Android 14 QPR3. The C2 codecs
available by default in the swcodec apex will be used instead.

Change-Id: I8cdf3e700823779a7382c66c3df8410d41209b7c

5 months agog12: Patch libs for missing GraphicBufferMapper symbols
Bruno Martins [Tue, 18 Jun 2024 21:52:47 +0000 (22:52 +0100)]
g12: Patch libs for missing GraphicBufferMapper symbols

Change-Id: I1e79f01710433ceafb2a4b296a591cf910ee649f

5 months agog12: Build missing libraries for 14 QPR3
Michael Bestas [Thu, 13 Jun 2024 21:26:49 +0000 (00:26 +0300)]
g12: Build missing libraries for 14 QPR3

Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2

5 months agog12: Use common power-libperfmgr
Bruno Martins [Sun, 19 May 2024 18:12:09 +0000 (19:12 +0100)]
g12: Use common power-libperfmgr

Change-Id: I7cc2a5ec484b9e7e733131f41004a1646b661aa7

5 months agog12: Switch to Audio HAL V6
Mikhail Naganov [Fri, 22 Nov 2019 18:56:29 +0000 (10:56 -0800)]
g12: Switch to Audio HAL V6

Switch to Audio HAL V6

Bug: 141989952
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
            manual audio "smoke" test on taimen and walleye

Change-Id: Ieb1cc5c7fdcc5416a328a0a5c4a1996258b81ac8

5 months agog12: Set manifest target-level to 5
Tim Zimmermann [Sun, 15 May 2022 04:02:43 +0000 (06:02 +0200)]
g12: Set manifest target-level to 5

Change-Id: Ic72d17ebdb388dee9e63e27a36190c93c095fb0c

5 months agog12: Update sm1 files from April sabrina build
Nolen Johnson [Tue, 11 Jun 2024 00:59:06 +0000 (20:59 -0400)]
g12: Update sm1 files from April sabrina build

Change-Id: Id0d154ae0b8c992c1be1b4e7664e476e593c6316

5 months agog12: Update vendor security patch level from wade
Nolen Johnson [Tue, 11 Jun 2024 00:36:31 +0000 (20:36 -0400)]
g12: Update vendor security patch level from wade

* deadpool's diff to wade has almost no changes on the most
  recent wade build, and the only blob differences are DRM /
  droidlogic stuff that was _added_.
* This is reflective of our blobs/kernel.

Change-Id: Ibaa30fdef1c975b245b3d7d5b2d157852037ef3e

5 months agog12: Fix firmware extraction with VENDOR_BRAND
Nolen Johnson [Mon, 10 Jun 2024 05:51:48 +0000 (01:51 -0400)]
g12: Fix firmware extraction with VENDOR_BRAND

Change-Id: I7af41a450cfed10d115f1bc6514f3a9f452b8374

5 months agog12: Allow vendor and vendor_brand to diverge
Nolen Johnson [Mon, 10 Jun 2024 05:34:01 +0000 (01:34 -0400)]
g12: Allow vendor and vendor_brand to diverge

* For devkits which use vendor/amlogic.

Change-Id: Iab593610ecad2a4eccaf753e4ce48fdae26c7ffa

5 months agog12: Pull keymint to devices
Nolen Johnson [Mon, 10 Jun 2024 05:08:16 +0000 (01:08 -0400)]
g12: Pull keymint to devices

* Do this because devkits don't need this.

Change-Id: I1aadbe46570100ce7ddb6b91b258c31cb2270235

5 months agog12: Stop setting QCA wifi only property
Nolen Johnson [Sun, 9 Jun 2024 19:28:36 +0000 (15:28 -0400)]
g12: Stop setting QCA wifi only property

* denied anyway.

Change-Id: I337ed417e5745b4ed5c412a1b0ae8c4d6381d38e

5 months agog12: Split g12a/sm1 proprietary files
Nolen Johnson [Sun, 9 Jun 2024 17:46:18 +0000 (13:46 -0400)]
g12: Split g12a/sm1 proprietary files

* Needs its own composer/systemcontrol/keymint.

Change-Id: I5e23feb428ab05fa0a9f46412b7de3a8141c4d47

5 months agog12: Pull Netflix HAL / DroidLogic apps in
Nolen Johnson [Sat, 8 Jun 2024 21:46:40 +0000 (17:46 -0400)]
g12: Pull Netflix HAL / DroidLogic apps in

* ATV Netflix depends on L1, so treat is as TEE only.
* DroidLogic apps for better or worse are a huge value
  add, so pull them in device-specific trees.
* Decommonize tvconfig files while we're at it, as
  these devices have wildly varied ODM partitions.
* sabrina needs it's own keymint, use deadpool's
  everywhere else.

Change-Id: Ibf50e4b4e21499efd64cc16c76ead902e69b17fa

5 months agog12: Mount factory partition and make /mnt/vendor/ mounts optional
Nolen Johnson [Fri, 7 Jun 2024 21:18:06 +0000 (17:18 -0400)]
g12: Mount factory partition and make /mnt/vendor/ mounts optional

* Some devices have them some don't, don't fail to boot if we
  don't have it.

Change-Id: Iada51919e5c30309534c09666e2b41b291b4feb7

5 months agog12: Fixup PQModule typo
Nolen Johnson [Thu, 23 May 2024 21:05:04 +0000 (17:05 -0400)]
g12: Fixup PQModule typo

* Fixes pixelation on bootloader splash screen for some.

Change-Id: I3643ec8cfb00dd59296d8566f55daba46f6f1274
(cherry picked from commit 1c2314e43f93aab57e64ab764b675b046cd3ccc9)

5 months agog12: Fixup PQModule typo
Nolen Johnson [Thu, 23 May 2024 21:05:04 +0000 (17:05 -0400)]
g12: Fixup PQModule typo

* Fixes pixelation on bootloader splash screen for some.

Change-Id: I3643ec8cfb00dd59296d8566f55daba46f6f1274

5 months agog12: Drop reserved sizes
Nolen Johnson [Wed, 22 May 2024 21:01:43 +0000 (17:01 -0400)]
g12: Drop reserved sizes

* device/amlogic/common inherits the common values now.

Change-Id: I3b3e5647ce296e320da8fd5940e697dcfa07999a

6 months agog12: Set console/baud rate conditionally
Nolen Johnson [Tue, 21 May 2024 16:03:06 +0000 (12:03 -0400)]
g12: Set console/baud rate conditionally

Change-Id: Ib063dd6ee5f8bd5beed9cf290152d72ab1db67e9
(cherry picked from commit b81f362e58edf9245120f639ef3e1dfb57dc46f2)

6 months agog12: Set console/baud rate conditionally
Nolen Johnson [Tue, 21 May 2024 16:03:06 +0000 (12:03 -0400)]
g12: Set console/baud rate conditionally

Change-Id: Ib063dd6ee5f8bd5beed9cf290152d72ab1db67e9

6 months agog12: Move default BT MAC to common
Nolen Johnson [Mon, 20 May 2024 21:54:40 +0000 (17:54 -0400)]
g12: Move default BT MAC to common

Change-Id: I927c37ba24c09b0d3a0d7b65c7b9bfa4b52cccd5
(cherry picked from commit b798b9d8fe99810cf3ac8414e405aac052c21808)

6 months agog12: Commonize a few things
Nolen Johnson [Mon, 20 May 2024 21:54:03 +0000 (17:54 -0400)]
g12: Commonize a few things

Change-Id: If2c95314dfef4da9445ce963a547863cd3102f49
(cherry picked from commit d44975965a13bff3095382157c3273ad7c3ba04a)

6 months agog12: Move default BT MAC to common
Nolen Johnson [Mon, 20 May 2024 21:54:40 +0000 (17:54 -0400)]
g12: Move default BT MAC to common

Change-Id: I927c37ba24c09b0d3a0d7b65c7b9bfa4b52cccd5

6 months agog12: Commonize a few things
Nolen Johnson [Mon, 20 May 2024 21:54:03 +0000 (17:54 -0400)]
g12: Commonize a few things

Change-Id: If2c95314dfef4da9445ce963a547863cd3102f49

6 months agog12: Commonize ueventd.rc
Nolen Johnson [Mon, 20 May 2024 17:27:07 +0000 (13:27 -0400)]
g12: Commonize ueventd.rc

Change-Id: I09dad343562cd1dd7d352aa3d906f7a992b4820f
(cherry picked from commit 5773b8e14718fb2b2ce660e30adcc08771bf0949)

6 months agog12: init-files: ueventd: Add one node that gx uses
Nolen Johnson [Mon, 20 May 2024 17:23:22 +0000 (13:23 -0400)]
g12: init-files: ueventd: Add one node that gx uses

Change-Id: If22a4f13f06a2e679033586ffc75eca5a7e268f1
(cherry picked from commit 38e065426d50fada10eaf8c51dd7647b897ff868)

6 months agog12: Commonize ueventd.rc
Nolen Johnson [Mon, 20 May 2024 17:27:07 +0000 (13:27 -0400)]
g12: Commonize ueventd.rc

Change-Id: I09dad343562cd1dd7d352aa3d906f7a992b4820f

6 months agog12: init-files: ueventd: Add one node that gx uses
Nolen Johnson [Mon, 20 May 2024 17:23:22 +0000 (13:23 -0400)]
g12: init-files: ueventd: Add one node that gx uses

Change-Id: If22a4f13f06a2e679033586ffc75eca5a7e268f1

6 months agog12: Allow including console support
Nolen Johnson [Wed, 8 May 2024 23:31:50 +0000 (19:31 -0400)]
g12: Allow including console support

* For devkits.

Change-Id: Id7d9fa943930f78768f752295f16880ae0ffe0b7

6 months agog12: Move non-overriding keylayouts/idc's to device/lineage/atv
Nolen Johnson [Sat, 4 May 2024 03:48:17 +0000 (23:48 -0400)]
g12: Move non-overriding keylayouts/idc's to device/lineage/atv

* Standard remote support & UX.

Change-Id: I38897fad4408a51a8dcd9d1feeafcf2ff0c14e6e

6 months agog12: Stop declaring/starting services that don't exist
Nolen Johnson [Fri, 3 May 2024 20:16:14 +0000 (16:16 -0400)]
g12: Stop declaring/starting services that don't exist

Change-Id: I4685ac8afd6f513628fa8936eb9f9701f0c41d79

6 months agog12: Stop settings OEM key from ro.boot property
Nolen Johnson [Fri, 3 May 2024 20:15:05 +0000 (16:15 -0400)]
g12: Stop settings OEM key from ro.boot property

* Askey in their infinite wisdom left a static one in
  u-boot, and one (that's actually set) in product/build.prop,
  so we need to hardcode it.

Change-Id: I218a325f5e5b99919bc6d36ac6a6e1b0c4956610

6 months agog12: Copy cgroups configs from system/core where possible
Nolen Johnson [Fri, 3 May 2024 20:02:32 +0000 (16:02 -0400)]
g12: Copy cgroups configs from system/core where possible

* cgroups.json is identical, task_profiles has differences.

Change-Id: I477d5f4f5015f18acedf644f56dc6cad4c1c2d00

6 months agog12: Reclassify unsorted blobs
Nolen Johnson [Fri, 3 May 2024 19:53:10 +0000 (15:53 -0400)]
g12: Reclassify unsorted blobs

Change-Id: Ibca2513b2e8912d475d67d2fdbe23c5003d3eae5

6 months agog12: Decommonize ATV OEM key
Nolen Johnson [Thu, 2 May 2024 22:30:43 +0000 (18:30 -0400)]
g12: Decommonize ATV OEM key

* Dopinder's is one digit off.

Change-Id: Ic5bfca5bbfea20680b0777ddff1846d36d248b1f

6 months agog12: Remove unused properties
Nolen Johnson [Thu, 2 May 2024 22:29:53 +0000 (18:29 -0400)]
g12: Remove unused properties

Change-Id: Ibe8e28c0953831449af94e0c3b9a71ba02b9d5f7

6 months agog12: Stop copying Generic.kl
Nolen Johnson [Thu, 2 May 2024 22:30:06 +0000 (18:30 -0400)]
g12: Stop copying Generic.kl

* Overrides platform one causing things like SUW
  skip to break.

Change-Id: Ia4bf13b80ffd88f23de4fb461e36f8e4ca976b95

6 months agog12: Allow GPU to be overriden
Nolen Johnson [Thu, 2 May 2024 22:22:23 +0000 (18:22 -0400)]
g12: Allow GPU to be overriden

* GX can boot this.

Change-Id: Ib59247b08c8f5630d60fa252096af7fccea61c42

6 months agog12: Remove property duplicated in aml/common
Nolen Johnson [Thu, 2 May 2024 22:00:38 +0000 (18:00 -0400)]
g12: Remove property duplicated in aml/common

Change-Id: Ic162f1ef458db9dad9d2d57d1b8d5fc57b5912ca

6 months agoRevert "g12: Ship full recovery image"
Nolen Johnson [Mon, 29 Apr 2024 01:02:10 +0000 (21:02 -0400)]
Revert "g12: Ship full recovery image"

This reverts commit 468eadb3a10d0f3a87fcf5c20b1d8a168471e3fa.

Reason for revert: Global now in vendor/lineage.

Change-Id: Ib5d19fe8e69e52c87454418f9e4a0c4bdf90e7b8
(cherry picked from commit 3efa9d97d4ce51973b1d88e58265674a089e8241)

6 months agoRevert "g12: Ship full recovery image"
Nolen Johnson [Mon, 29 Apr 2024 01:02:10 +0000 (21:02 -0400)]
Revert "g12: Ship full recovery image"

This reverts commit 468eadb3a10d0f3a87fcf5c20b1d8a168471e3fa.

Reason for revert: Global now in vendor/lineage.

Change-Id: Ib5d19fe8e69e52c87454418f9e4a0c4bdf90e7b8

6 months agog12: Allow some SOCs to fall back to gx tree
Nolen Johnson [Tue, 23 Apr 2024 00:05:40 +0000 (20:05 -0400)]
g12: Allow some SOCs to fall back to gx tree

Change-Id: I5b397dd108da01137521d619829923a2684156c2
(cherry picked from commit 50d1e2bef2085b5ce464bfa8962ac2d1f27ee2ac)

6 months agog12: Allow some SOCs to fall back to gx tree
Nolen Johnson [Tue, 23 Apr 2024 00:05:40 +0000 (20:05 -0400)]
g12: Allow some SOCs to fall back to gx tree

Change-Id: I5b397dd108da01137521d619829923a2684156c2

7 months agog12-common: Update kernel target level
Roger Liao [Thu, 18 Jan 2024 20:09:13 +0000 (21:09 +0100)]
g12-common: Update kernel target level

Updating kernel target level to Android Q

checkvintf Error
checkvintf E : files are incompatible:
    Runtime info and framework compatibility matrix are
    incompatible: Kernel FCM version is not specified, but kernel version
    4.9.337 is found. Fix by specifying kernel FCM version in device
checkvintf E : manifest. For example, for a *-r kernel:
checkvintf E : <kernel target-level="4"/>
checkvintf E : INCOMPATIBLE

Bug: 148823278
Change-Id: Ia30013045b0fe15abc859dda503aed790aaeeb76

8 months agog12-common: Declare vulkan lib as a symlink during extraction
Bruno Martins [Mon, 18 Mar 2024 13:14:18 +0000 (13:14 +0000)]
g12-common: Declare vulkan lib as a symlink during extraction

Change-Id: I2678e73e957081db7d988da589892b482985778e

8 months agog12-common: Do not set BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT
Bruno Martins [Sun, 25 Feb 2024 16:56:58 +0000 (16:56 +0000)]
g12-common: Do not set BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT

It breaks while generating system_ext image without GMS.

Change-Id: Id085bedb3bbdef063219878153ae4c2ce18b0a47