- Includes following changes: * Import Xiaomi MiSys Hal and Sepolicy * Import needed camera permissions * Import Camera Postprocessing * Import Poco F3 / Mi 11x Device Features [For Miui Deps] * Import camxoverride settings & tune down CameraX logging * Import needed camera prebuilts for Poco F3 AOSP Device trees * Import Leica/Miui Camera mod 5.x by https://t.me/itzdfplayer & HollyBear * Create device-specific config overlay for following Camera to enable appropriate features * Import device-specific OpenCL * Import AOSP and LOS aux camera overlays * Import appropriate sepolicy for Poco F3 / Mi11x - Repo requires: * Have device-side hides in libinit for .mod_device and .name * Import MiSys entries to FCM [Example:47e3f385a6] * Enable newer HIDL overrideFormat [4d9f9a23e9] * Build camera for Jemalloc [c5d5ea6706] * Set TARGET_CAMERA_PACKAGE_NAME for vendor tags [60ad521bf1] -> [c4fbccafa0] Used changes from following authors: Co-authored-by: UtsavBalar1231 <utsavbalar1231@gmail.com> Co-authored-by: ItzDFPlayer <deniskovalevskiy91@gmail.com> Co-authored-by: chrisl7 <wandersonrodriguesf1@gmail.com>
70 lines
1.4 KiB
Bash
Executable File
70 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2016 The CyanogenMod Project
|
|
# Copyright (C) 2017-2020 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set -e
|
|
|
|
DEVICE=camera
|
|
VENDOR=xiaomi
|
|
|
|
# Load extract_utils and do some sanity checks
|
|
MY_DIR="${BASH_SOURCE%/*}"
|
|
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
|
|
|
|
ANDROID_ROOT="${MY_DIR}/../../.."
|
|
|
|
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
|
|
if [ ! -f "${HELPER}" ]; then
|
|
echo "Unable to find helper script at ${HELPER}"
|
|
exit 1
|
|
fi
|
|
source "${HELPER}"
|
|
|
|
# Default to sanitizing the vendor folder before extraction
|
|
CLEAN_VENDOR=true
|
|
|
|
KANG=
|
|
SECTION=
|
|
|
|
while [ "${#}" -gt 0 ]; do
|
|
case "${1}" in
|
|
-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
|
|
|
|
function blob_fixup() {
|
|
case "${1}" in
|
|
system/lib64/libmicampostproc_client.so)
|
|
patchelf --remove-needed libhidltransport.so "${2}"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
# Initialize the helper
|
|
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
|
|
|
|
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
|
|
|
|
"${MY_DIR}/setup-makefiles.sh"
|