Nolen Johnson [Fri, 2 Dec 2022 22:09:33 +0000 (17:09 -0500)]
g12: treewide: TTT1.220909.001.B7-
9305992
Change-Id: I280f0b86e4a0f61d534d8fad76d9b4fda0134657
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
Timi Rautamäki [Mon, 29 Aug 2022 09:35:02 +0000 (09:35 +0000)]
g12: adjust reserved space for 12 gapps
Change-Id: Ice772d08724a07e272d21c33ee368bab0a188fca
Nolen Johnson [Tue, 7 Jun 2022 21:23:12 +0000 (17:23 -0400)]
g12: Move the common stuff to amlogic/common
Change-Id: I45b8d767aa27dcafc0c19fb4e5af814ff40bd2eb
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
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
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
Bruno Martins [Mon, 4 Jul 2022 13:20:58 +0000 (14:20 +0100)]
g12: Change proprietary makefiles inheritance order
Change-Id: I65da3e542b763b0435a051892e3974673c95876e
Nolen Johnson [Sun, 3 Jul 2022 20:12:38 +0000 (16:12 -0400)]
fixup! "g12: Drop duplicated property"
* Ugh.
Change-Id: Id0613fcc4cded13d386b6c12a6e837d7f1a382e5
Nolen Johnson [Sun, 3 Jul 2022 19:56:43 +0000 (15:56 -0400)]
g12: Drop duplicated property
* In g12.mk already.
Change-Id: I680d28252b671dd349382c7b4f38f82926e3d7d0
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
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
Nolen Johnson [Tue, 7 Jun 2022 21:23:12 +0000 (17:23 -0400)]
g12: Inherit from basic amlogic/common tree
Change-Id: I7b2610c854d264f492e9c67097f7208c23b6db35
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
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
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
Bruno Martins [Thu, 9 Jun 2022 21:07:54 +0000 (22:07 +0100)]
g12: manifest: Remove unnecessary fqname entries
Change-Id: If6d23d9d340f674e52067aae92024d522025499f
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
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
Christian Hoffmann [Tue, 7 Jun 2022 22:03:55 +0000 (00:03 +0200)]
g12: Drop duplicate prop
Change-Id: I3166ac0a8866c9b5f3bb72f20560597f651e0284
Nolen Johnson [Tue, 7 Jun 2022 04:45:37 +0000 (00:45 -0400)]
g12: Move sepolicy to device/amlogic/sepolicy
Change-Id: I281b025f1eea47f6e6df62d256e73441bdd8745a
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
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
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
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
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
Timi Rautamäki [Wed, 11 May 2022 11:45:04 +0000 (11:45 +0000)]
g12: sepolicy: Address misc denials
Change-Id: I611b6a78b1c29c318a0f3a856ccf250610ba73f5
Timi Rautamäki [Tue, 10 May 2022 20:21:28 +0000 (20:21 +0000)]
g12: Fix sepolicy for graphics allocator tmpfs
Change-Id: I33e3c05e830b9462136cb71df89ba3b59dd1fdbb
Vitaliy Tomin [Fri, 27 May 2022 17:08:07 +0000 (01:08 +0800)]
g12: Set TARGET_AMLOGIC_GPU_ARCH
Change-Id: I399bc7c9611173c7993a02b5afc36892c521d8bd
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
Nolen Johnson [Tue, 3 May 2022 17:38:22 +0000 (13:38 -0400)]
g12: sepolicy: Android 12 policy
Change-Id: I92ff8dcfd7872c762681736293e81c98064f6fa5
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
me2151 [Sat, 7 May 2022 21:29:15 +0000 (21:29 +0000)]
g12-common: Decommonize liboemcrypto.so
Change-Id: Ice60da2bf2340fc441178a40cd6dade294820a1e
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
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
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
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
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
Nolen Johnson [Tue, 19 Apr 2022 17:16:02 +0000 (13:16 -0400)]
g12: Decommonize vendor.media.support.dolbyvision
Change-Id: I47aae310a409404d91e6fddf64ad5fb183fe02ac
Nolen Johnson [Tue, 19 Apr 2022 17:05:13 +0000 (13:05 -0400)]
g12: Decommonize ro.vendor.platform.support.dolbyvision
Change-Id: Ia8f05ad1c33b791404b52f32abeca30167851501
Timi Rautamäki [Thu, 24 Mar 2022 08:10:55 +0000 (08:10 +0000)]
g12: sepolicy: update for new blobs
Change-Id: I0d969ddc841165282b86f9472c4bbcebab8ab666
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
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
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
Bruno Martins [Fri, 25 Mar 2022 14:09:28 +0000 (14:09 +0000)]
g12: Use TARGET_COPY_OUT_VENDOR everywhere
Change-Id: Ic42e79ac00feac6118dc99fa1edbc0142ba3a484
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
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
Timi Rautamäki [Thu, 24 Mar 2022 15:06:35 +0000 (15:06 +0000)]
g12: add recovery to fstab
Change-Id: I8f68e3385b6df6cd9cf690e45d82d40c8a0e9b7d
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Jan Altensen [Tue, 14 Sep 2021 18:09:17 +0000 (20:09 +0200)]
g12: add dummy target for dtb image
Change-Id: Ibb49f125b11622897eb8c802f8580d7521881db9
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
Nolen Johnson [Fri, 10 Sep 2021 02:14:01 +0000 (22:14 -0400)]
g12: Correct dtbo mount location in fstab
Change-Id: I8afd8d10c9829d11f23f3259c5b55359c33cce4c
Aaron Kling [Sun, 4 Jul 2021 00:13:52 +0000 (19:13 -0500)]
g12: Use software OMX codecs
* Hardware OMX codecs crash hard at the moment.
Change-Id: Idf71588311a37031869eeefd110549af40695913
Timi Rautamäki [Tue, 31 Aug 2021 07:19:02 +0000 (07:19 +0000)]
g12: decommonize remote keylayout
Wade's remote has different key mapping, such as assistant and Netflix
Change-Id: Idd60bcf77606dce24e6b2f9ecee788821b2d6898
Alessandro Astone [Mon, 30 Aug 2021 12:16:50 +0000 (14:16 +0200)]
g12: Unbork recovery usb configfs
Everything that's useful is a duplucate of recovery's init.rc
Other configs were breaking adb when switching from fastbootd to
recovery.
Change-Id: I141299f897d8af10f40fdc5e7fae088d854f2d3e
Jan Altensen [Mon, 16 Aug 2021 16:25:17 +0000 (18:25 +0200)]
g12: actually add the dtb image to the zip
Change-Id: I0a601d0fb747b34c1571e996560316777fb9957c
Jan Altensen [Tue, 3 Aug 2021 20:11:15 +0000 (22:11 +0200)]
g12: dd dtb.img instead of using package_extract_file
* for some reason its not getting flashed via package_extract_file
Change-Id: Ia1bd4fa008dd0cde71baea63b48c6636ec85cb82
Nolen Johnson [Thu, 5 Aug 2021 03:21:46 +0000 (23:21 -0400)]
g12: Move mounting of factory partition to relevant device trees
* Some devices have a factory partition that we can't mount, fun.
Change-Id: Ie354982574fa3ac9d36f676ba329e7e1b66a980a
Nolen Johnson [Tue, 3 Aug 2021 22:45:50 +0000 (18:45 -0400)]
Revert "g12: init-files: fstab: Don't mark firmware partitions as formatable"
This reverts commit
cf91493d196b22e207ecfafc6d8dc2da45685806.
Reason: dopinder/wade want to be able format these, while deadpool doesn't.
Change-Id: I116ce178d2fb6a7c49e0e133c10ce00e82bcb6f5
Jan Altensen [Mon, 2 Aug 2021 14:46:10 +0000 (16:46 +0200)]
Revert "g12: init-files: ueventd: Provide additional firmware directories"
This reverts commit
7ac4ab266c2777c7aeb2838bbfae794a49a0961d.
without this revert:
[ 5.962641@3]- Try to load video/h264_enc.bin ...
[ 5.966496@3]- firmware_codec firmware_vdec: Direct firmware load for video/h264_enc.bin failed with error -2
[ 5.976168@3]- Error : -2 can't load the video/h264_enc.bin.
[ 5.981819@3]- get data from fsys fail.
[ 5.985616@3]- invaild file type.
[ 5.989361@3]- Try to load video/video_ucode.bin ...
[ 5.993980@3]- firmware_codec firmware_vdec: Direct firmware load for video/video_ucode.bin failed with error -2
[ 6.004101@3]- Error : -2 can't load the video/video_ucode.bin.
[ 6.009971@3]- get data from fsys fail.
[ 6.013797@3]- invaild file type.
[ 6.019731@1]- Registered frame rate driver success.
with this revert:
[ 5.977339@2]- Try to load video/h264_enc.bin ...
[ 5.982556@2]- load firmware size : 76288, Name : video/h264_enc.bin.
[ 5.988188@2]- Try to load video/video_ucode.bin ...
[ 6.003037@2]- load firmware size :
1459200, Name : video/video_ucode.bin.
[ 6.012527@2]- Registered frame rate driver success.
Change-Id: I1ffba87da44b391861fe16e0e295cd5a709cd913
Timi Rautamäki [Sat, 31 Jul 2021 12:58:08 +0000 (12:58 +0000)]
g12: clone kernel to kernel/amlogic/linux-4.9
Change-Id: Ifa231be880272ab1d41c0e5080faeaee643df974
Timi Rautamäki [Sat, 31 Jul 2021 10:56:19 +0000 (10:56 +0000)]
g12: fixup lineage.dependencies
Change-Id: Ic2984351b1bbe4881535a1ec6c2eb29b0b36712b
Luca Stefani [Tue, 27 Jul 2021 21:32:54 +0000 (17:32 -0400)]
g12: init-files: ueventd: Provide additional firmware directories
* The correct way to do this is to let the kernel search fail
and fall back.
Change-Id: Id98377324a45408e4b0d6b4a3a4eba54488f17fb
Jimmy Chen [Thu, 3 Oct 2019 03:24:23 +0000 (11:24 +0800)]
g12: Move supplicant service init to wpa_supplicant
Bug:
138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
Luca Stefani [Tue, 27 Jul 2021 21:03:04 +0000 (17:03 -0400)]
g12: Remove legacy fuse based external device mounts
Change-Id: I31cd4f5111d5116cb4534db6567e504c5e783e8c
Demon Singur [Fri, 21 Sep 2018 11:11:36 +0000 (11:11 +0000)]
g12: init-files: Do not symlink sdcard legacy path
* Solves the following denial:
`denied { write } for pid=548 comm="init" name="storage" dev="rootfs" ino=15996 scontext=u:r:vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0`
Change-Id: If246f497bd8384f0fee81469d8d29dcb528d4d4e
Nolen Johnson [Tue, 27 Jul 2021 20:18:23 +0000 (16:18 -0400)]
g12: init-files: Remove non-existant entries
* Remove module loads that don't exist.
* Remove imports of non-existant init-scripts.
* Remove non-existant service declarations.
Change-Id: I92a3386f85ac322d1c71726609d5a9fa87431d3c
Nolen Johnson [Tue, 27 Jul 2021 20:03:38 +0000 (16:03 -0400)]
g12: init-files: Remove uncessary debugging entries
* AOSP defaults to level 3, so no need to set it ourselves.
* We don't need to set global read on these debugging nodes.
* We ought to be restricting `dmesg` to root for security
reasons.
Change-Id: Ifa6677d4a4afee5281267ee0a3bfce0b5f4f3daf
Nolen Johnson [Tue, 27 Jul 2021 20:00:49 +0000 (16:00 -0400)]
g12: init-files: Format contents and delete blank triggers
Change-Id: I266b0a34f4e9eb9d2943a933078421f1504294cb
Luca Stefani [Tue, 27 Jul 2021 19:44:25 +0000 (15:44 -0400)]
g12: init-files: fstab: Don't mark firmware partitions as formatable
* No clue why stock does this, marking these as formatable
would allow both recovery and init to wipe them, which
we definitely don't want.
Change-Id: I0511d76d978863bc86aa7f0e8218db3bd4e98a95
Nolen Johnson [Mon, 26 Jul 2021 22:45:24 +0000 (18:45 -0400)]
g12: Attempt to mount factory partition
* sabrina has a factory partition.
Change-Id: Ia40b71236564bdaee1721c48ad9a2efd677e2b17
Marc Bourgoin [Thu, 25 Jun 2020 02:15:33 +0000 (22:15 -0400)]
g12: Symlink bootdevice for Lineage Recovery
* It is needed by OpenGApps install script.
Change-Id: Idb90a6ecaae541e74a9878c1ca93459cc2fdd949
Nolen Johnson [Thu, 15 Jul 2021 06:40:07 +0000 (02:40 -0400)]
g12: Import NRDP permission/JSON configuration
* The permission makes the Netflix app appear/install on the Leanback
Play Store, the JSON's configure playback within the app.
* These are shipped with slight variations on dopinder/wade/sabrina,
but not deadpool - import them here regardless, as we can all benefit.
* Only commonize ro.vendor.nrdp.validation, as the rest of the properties vary.
* Taken from: sabrina_prod_stable-user-10-QTS2.200918.015-
6966301-release-keys
Change-Id: I875982d329b2861674e868c5ef6977c88ce8719c
Aayush Gupta [Sat, 14 Nov 2020 07:12:12 +0000 (12:42 +0530)]
g12: Install WifiOverlay into vendor
* We want these overlays on GSI, therefore install it to
vendor.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I3107da263fd29f0bc40f495ad84fdf4db0d3c814
Quallenauge [Tue, 10 Nov 2020 16:23:28 +0000 (17:23 +0100)]
g12: WifiOverlay: Disable WPA2 -> WPA3 upgrade
* Our device doesn't simply support SAE.
* [npjohnson] Technically our chipset supports it, but it
doesn't work on stock either, so disable it for now
at least.
Change-Id: Ibf8b9e363b4677cf2ab9590cc2ea1ba2341e29ca
Roshan Pius [Fri, 24 Apr 2020 21:33:28 +0000 (14:33 -0700)]
g12: Add WifiOverlay
* This is the only overlay that doesn't match default values.
Bug:
148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
deadman96385 [Sat, 3 Jul 2021 03:36:08 +0000 (20:36 -0700)]
g12: Remove Bluetooth overlay
* This is no longer used as of 11 in favor of RRO overlays,
and in our case, this will be done with component-overrides
per-device.
Change-Id: I83d12b1776bbdcb4ea5b59c1a05d4883ef8ef880
Jan Altensen [Fri, 2 Jul 2021 05:43:16 +0000 (07:43 +0200)]
g12: Guard prebuilt tee*/keymaster for devices with no OP-TEE
* These need to be split out because development
boards don't have OP-TEE, and even if they could
kang another device's, we have no functional keys
or TA files, so it's useless and broken.
* Devices that have no OP-TEE need to set
`TARGET_HAS_TEE := false` in their lineage_${DEVICE}.mk.
* So that we can successfully encrypt as per the fstab
entry for `/data`, build the AOSP keymaster 4.1 service,
and that uses a VINTF fragment.
Change-Id: I8756ba2d9cd5c53725645185783f9e15b739602c
Nolen Johnson [Thu, 1 Jul 2021 21:09:25 +0000 (17:09 -0400)]
g12: Decommonize init.amlogic.wifi_buildin.rc
* Only deadpool/wade has Broadcom Wi-Fi/Bluetooth,
dopinder has Realtek, and will need different modules
and node permissions changed.
Change-Id: I204e5c22a1dc306c9c932a3634f5e6534a438ee5
Aaron Kling [Thu, 1 Jul 2021 19:37:31 +0000 (14:37 -0500)]
g12: Decommonize TA files
* These are different on all Askey G12A devices.
Change-Id: I4f798d094aacb4270619609c8cf9e0427abf2a95
deadman96385 [Thu, 1 Jul 2021 19:13:21 +0000 (12:13 -0700)]
g12: Set a dummy BT MAC address
* BT HAL needs this.
Change-Id: If25c136e9b1a4c3bb0ef0b6b497b94f1e3e079a0
Nolen Johnson [Wed, 30 Jun 2021 21:47:39 +0000 (17:47 -0400)]
g12: Decommonize FRP confguration
* Only deadpool actually has an FRP partition.
Change-Id: If55b306644cdad368f83d446babf6681447c77e2
Nolen Johnson [Wed, 30 Jun 2021 05:56:36 +0000 (01:56 -0400)]
g12: Set USB name in recovery to ro.product.board
* This sets it per-variant.
Change-Id: I52c596a271f8e70625e3a478f421e949d014358e
Nolen Johnson [Sat, 26 Jun 2021 03:17:53 +0000 (23:17 -0400)]
g12: Declare boot/dtbo partition in fstab
* To appease the build system.
Change-Id: Id2b33ce34433cffa800ad398da694730f61e0e12
Nolen Johnson [Sat, 26 Jun 2021 02:51:25 +0000 (22:51 -0400)]
g12: Add dynamic partitions to fstab
* Build system wants these.
Change-Id: I969d0ddc1820a48913bbf898ea513beeada1760f
Nolen Johnson [Sun, 18 Jul 2021 16:47:09 +0000 (12:47 -0400)]
g12: Drop Wi-Fi MultiHAL
* Requires framework side magic.
* Manifest entries conflict with source built bits.
Change-Id: Ied00042a663728edd61ccb5b0777e3c19f411197
Aaron Kling [Fri, 25 Jun 2021 05:01:52 +0000 (01:01 -0400)]
g12: Build kernel modules inline
* Edit tee-supplicant to load modules from the correct
location.
Change-Id: Iaf409805dbdf6c4b4661c4246c3a54d6453e58f5