universal7885: Use proper blobs naming

Change-Id: I634aaad541106e84de41abbde8c6e58c0892e387
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2022-04-21 20:57:25 +09:00
commit 68998d78c2
No known key found for this signature in database
GPG key ID: 50ABF73F0D19445D
18 changed files with 1190 additions and 0 deletions

View file

@ -0,0 +1,92 @@
#!/bin/bash
#
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d ${MY_DIR} ]]; then MY_DIR="${PWD}"; fi
LINEAGE_ROOT="${MY_DIR}"/../../..
HELPER="${LINEAGE_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
function blob_fixup {
case "$1" in
vendor/lib*/camera.device@3.2-impl.so)
"$PATCHELF" --add-needed "libcorrectcamera.so" "$2"
sed -i 's/_ZN7android8hardware6camera6device4V3_214implementation12CameraDevice24getCameraCharacteristicsENSt3__18functionIFvNS1_6common4V1_06StatusERKNS0_8hidl_vecIhEEEEE/_ZN7android8hardware6camera6device4V3_214implementation12CameraDevice24getEurekaCharacteristicsENSt3__18functionIFvNS1_6common4V1_06StatusERKNS0_8hidl_vecIhEEEEE/g' "$2"
sed -i 's/_ZN7android8hardware6camera6device4V3_214implementation12CameraDevice4openERKNS_2spINS3_21ICameraDeviceCallbackEEENSt3__18functionIFvNS1_6common4V1_06StatusERKNS6_INS3_20ICameraDeviceSessionEEEEEE/_ZN7android8hardware6camera6device4V3_214implementation12CameraDevice4nukeERKNS_2spINS3_21ICameraDeviceCallbackEEENSt3__18functionIFvNS1_6common4V1_06StatusERKNS6_INS3_20ICameraDeviceSessionEEEEEE/g' "$2"
;;
vendor/lib*/libsensorlistener.so)
grep -q libshim_sensorndkbridge.so "$2" || "$PATCHELF" --add-needed "libshim_sensorndkbridge.so" "$2"
;;
esac
}
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
ONLY_COMMON=
ONLY_TARGET=
SECTION=
KANG=
while [ "${#}" -gt 0 ]; do
case "${1}" in
--only-common)
ONLY_COMMON=true
;;
--only-target)
ONLY_TARGET=true
;;
-n | --no-cleanup)
CLEAN_VENDOR=false
;;
-k | --kang)
KANG="--kang"
;;
-s | --section)
SECTION="${2}"
shift
CLEAN_VENDOR=false
;;
*)
SRC="${1}"
;;
esac
shift
done
if [ -z "${SRC}" ]; then
SRC="adb"
fi
# Initialize the helper for common device
if [ -z "${ONLY_TARGET}" ]; then
# Initialize the helper for common device
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}"
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
"${KANG}" --section "${SECTION}"
fi
if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
# Reinitialize the helper for device
source "${MY_DIR}/../${DEVICE}/extract-files.sh"
setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" false "${CLEAN_VENDOR}"
extract "${MY_DIR}/../${DEVICE}/proprietary-files.txt" "${SRC}" \
"${KANG}" --section "${SECTION}"
fi
"${MY_DIR}/setup-makefiles.sh"

View file

@ -0,0 +1,165 @@
# All blobs below are extracted from samsung/a20ektt/a20e:11/RP1A.200720.012/A202KKKU8CUL3:user/release-keys, unless otherwise stated.
vendor/lib64/vendor.samsung.hardware.radio@2.1.so
vendor/lib64/omx/libOMX.Exynos.MPEG4.Decoder.so
vendor/lib64/omx/libOMX.Exynos.HEVC.Decoder.so
vendor/lib64/omx/libOMX.Exynos.MPEG4.Encoder.so
vendor/lib64/omx/libOMX.Exynos.VP8.Decoder.so
vendor/lib64/omx/libOMX.Exynos.AVC.Encoder.so
vendor/lib64/omx/libOMX.Exynos.AVC.Decoder.so
vendor/lib64/omx/libOMX.Exynos.VP9.Decoder.so
vendor/lib64/omx/libOMX.Exynos.WMV.Decoder.so
vendor/lib64/omx/libOMX.Exynos.VP8.Encoder.so
vendor/lib64/omx/libOMX.Exynos.HEVC.Encoder.so
vendor/lib64/libiwt.so
vendor/lib64/vendor.samsung.hardware.gnss@2.0.so
vendor/lib64/libsynaFpSensorTestNwd.so
vendor/lib64/libfloatingfeature.so
vendor/lib64/egl/libGLES_mali.so
vendor/lib64/libvkmanager_vendor.so
vendor/lib64/libion_exynos.so
vendor/lib64/libsecaudiocoreutils.so
vendor/lib64/libbauthserver.so
vendor/lib64/camera.device@3.2-impl.so
vendor/lib64/libteecl.so
vendor/lib64/camera.device@3.5-impl.so
vendor/lib64/camera.device@1.0-impl.so
vendor/lib64/libreference-ril.so
vendor/lib64/libepicoperator.so
vendor/lib64/libcsc.so
vendor/lib64/libgf_in_system_lib.so
vendor/lib64/libqfp_sensortest.so
vendor/lib64/soundfx/libaudioeffectoffload.so
vendor/lib64/librilutils.so
vendor/lib64/libsecnativefeature.so
vendor/lib64/libprofileparamstorage.so
vendor/lib64/vendor.samsung.hardware.radio.bridge@2.0.so
vendor/lib64/libril.so
vendor/lib64/camera.device@3.3-impl.so
vendor/lib64/libExynosOMX_Core.so
vendor/lib64/camera.device@3.4-impl.so
vendor/lib64/libskeymaster4device.so
vendor/lib64/libExynosOMX_Resourcemanager.so
vendor/lib64/libsec-ril-dsds.so
vendor/lib64/hw/android.hardware.gnss@2.1-impl.so
vendor/lib64/hw/vendor.samsung.hardware.gnss@2.0-impl.so
vendor/lib64/libsec-ril.so
vendor/lib64/vendor.samsung.hardware.radio@2.0.so
vendor/lib64/libGrallocWrapper.so
vendor/lib64/libkeymaster_helper.so
vendor/lib64/libsecril-client.so
vendor/lib64/vendor.samsung.hardware.radio.channel@2.0.so
vendor/lib64/libwifi-hal.so
vendor/lib64/libbauthtzcommon.so
vendor/lib64/libsemnativecarrierfeature.so
vendor/lib64/libsecaudioinfo.so
vendor/lib/vendor.samsung.hardware.radio@2.1.so
vendor/lib/omx/libOMX.Exynos.MPEG4.Decoder.so
vendor/lib/omx/libOMX.Exynos.HEVC.Decoder.so
vendor/lib/omx/libOMX.Exynos.MPEG4.Encoder.so
vendor/lib/omx/libOMX.Exynos.VP8.Decoder.so
vendor/lib/omx/libOMX.Exynos.AVC.Encoder.so
vendor/lib/omx/libOMX.Exynos.AVC.Decoder.so
vendor/lib/omx/libOMX.Exynos.VP9.Decoder.so
vendor/lib/omx/libOMX.Exynos.WMV.Decoder.so
vendor/lib/omx/libOMX.Exynos.VP8.Encoder.so
vendor/lib/omx/libOMX.Exynos.HEVC.Encoder.so
vendor/lib/libsynaFpSensorTestNwd.so
vendor/lib/libfloatingfeature.so
vendor/lib/mediadrm/libwvdrmengine.so
vendor/lib/egl/libGLES_mali.so
vendor/lib/libion_exynos.so
vendor/lib/vndk/libtinyalsa.so
vendor/lib/libsecaudiocoreutils.so
vendor/lib/lib_soundaliveresampler.so
vendor/lib/libbauthserver.so
vendor/lib/camera.device@3.2-impl.so
vendor/lib/libteecl.so
vendor/lib/camera.device@3.5-impl.so
vendor/lib/camera.device@1.0-impl.so
vendor/lib/libreference-ril.so
vendor/lib/libspeakercalibration.so
vendor/lib/libepicoperator.so
vendor/lib/libcsc.so
vendor/lib/libgf_in_system_lib.so
vendor/lib/libqfp_sensortest.so
vendor/lib/liboemcrypto.so
vendor/lib/soundfx/libaudioeffectoffload.so
vendor/lib/librilutils.so
vendor/lib/libsecnativefeature.so
vendor/lib/libprofileparamstorage.so
vendor/lib/vendor.samsung.hardware.radio.bridge@2.0.so
vendor/lib/libril.so
vendor/lib/camera.device@3.3-impl.so
vendor/lib/libExynosOMX_Core.so
vendor/lib/lib_SoundAlive_SRC384_ver320.so
vendor/lib/camera.device@3.4-impl.so
vendor/lib/libExynosOMX_Resourcemanager.so
vendor/lib/lib_SamsungRec_07010.so
vendor/lib/libacryl.so
vendor/lib/libwvhidl.so
vendor/lib/vendor.samsung.hardware.radio@2.0.so
vendor/lib/libGrallocWrapper.so
vendor/lib/libsecril-client.so
vendor/lib/libSamsungPostProcessConvertor.so
vendor/lib/libbauthtzcommon.so
vendor/lib/libsemnativecarrierfeature.so
vendor/lib/libsecaudioinfo.so
vendor/firmware/Tfa9896.cnt
vendor/firmware/calliope_sram.bin
vendor/firmware/calliope_dram.bin
vendor/firmware/nfc/sec_s3nrn82_firmware.bin
vendor/firmware/AP_AUDIO_SLSI.bin
vendor/firmware/APBargeIn_AUDIO_SLSI.bin
vendor/etc/init/wifi_slsi.rc
vendor/etc/init/teegris_v3.rc
vendor/etc/init/init.gps.rc
vendor/etc/init/init.vendor.rilchip.rc
vendor/etc/init/init.vendor.rilcommon.rc
vendor/etc/init/vendor.samsung.hardware.gnss@2.0-service.rc
vendor/etc/init/android.hardware.drm@1.3-service.widevine.rc
vendor/etc/media_codecs_performance.xml
vendor/etc/dolby/dax-default.xml
vendor/etc/audio_board_info.xml
vendor/etc/gnss/gps.cfg
vendor/etc/gnss/ca.pem
vendor/etc/gnss/gps.debug.cfg
vendor/etc/media_profiles_V1_0.xml
vendor/etc/nfc/sec_s3nrn82_rfreg.bin
vendor/etc/media_codecs.xml
vendor/etc/default_volume_tables.xml
vendor/etc/audio_policy_volumes.xml
vendor/bin/main_abox
vendor/bin/wlbtd
vendor/bin/hw/macloader
vendor/bin/hw/android.hardware.drm@1.3-service.widevine
vendor/bin/hw/rild
vendor/bin/hw/vendor.samsung.hardware.gnss@2.0-service
vendor/bin/tzts_daemon
vendor/bin/cbd
vendor/bin/tzdaemon
vendor/tee/00000000-0000-0000-0000-00535453540c
vendor/tee/00000000-0000-0000-0000-4b45594d5354
vendor/tee/ffffffff-0000-0000-0000-000000000030
vendor/tee/00000000-0000-0000-0000-657365636f6d
vendor/tee/00000000-0000-0000-0000-000000020081
vendor/tee/00000000-0000-0000-0000-656e676d6f64
vendor/tee/00000000-0000-0000-0000-6d73745f5441
vendor/tee/00000000-0000-0000-0000-46494e474552
vendor/tee/00000000-0000-0000-0000-474154454b45
vendor/tee/00000000-0000-0000-0000-000000010081
vendor/tee/00000000-0000-0000-0000-564c544b5052
vendor/tee/00000000-0000-0000-0000-0053545354ab
vendor/tee/00000000-0000-0000-0000-0050524f4341
vendor/tee/00000000-0000-0000-0000-00000000dead
vendor/tee/driver/00000000-0000-0000-0000-00535453540b
vendor/tee/driver/00000000-0000-0000-0000-4d53546d7374
vendor/tee/driver/18d9f073-18a5-4ade-9def-875e07f7f293_
vendor/tee/driver/00000000-0000-0000-0000-564c544b4456
vendor/tee/tui/resolution_common/ID00000100
vendor/tee/00000000-0000-0000-0000-535355504341
vendor/tee/00000000-0000-0000-0000-505256544545
vendor/tee/00000000-0000-0000-0000-000000534b4d
vendor/tee/00000000-0000-0000-0000-00575644524d
vendor/tee/00000000-0000-0000-0000-000046495645
vendor/tee/00000000-0000-0000-0000-446e6c6f6164

View file

@ -0,0 +1,50 @@
#!/bin/bash
#
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
INITIAL_COPYRIGHT_YEAR=2019
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d ${MY_DIR} ]]; then MY_DIR="${PWD}"; fi
LINEAGE_ROOT="${MY_DIR}/../../.."
HELPER="${LINEAGE_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
# Initialize the helper for common
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true
# Copyright headers and guards
write_headers "universal7885-common"
# The standard common blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true
# Finish
write_footers
if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
# Reinitialize the helper for device
INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR"
setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" false
# Copyright headers and guards
write_headers
# The standard device blobs
write_makefiles "${MY_DIR}/../${DEVICE}/proprietary-files.txt" true
# Finish
write_footers
fi