From baba6e02445493bf790667c53806e4e94ef971f3 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sun, 30 Oct 2016 15:20:13 +0800 Subject: [PATCH] land: Add proprietary file extraction scripts Change-Id: I375b5fed9d88613d0d1c7ce9aa1cccbce53b4cac --- extract-files.sh | 57 +++ proprietary-files.txt | 820 +++++++++++++++++++++++++++++++++++++++++- setup-makefiles.sh | 47 +++ 3 files changed, 923 insertions(+), 1 deletion(-) create mode 100755 extract-files.sh create mode 100755 setup-makefiles.sh diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..437e356 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,57 @@ +#!/bin/bash +# +# Copyright (C) 2016 The CyanogenMod Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set -e + +DEVICE=land +VENDOR=xiaomi + +# Load extractutils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi + +CM_ROOT="$MY_DIR"/../../.. + +HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh +if [ ! -f "$HELPER" ]; then + echo "Unable to find helper script at $HELPER" + exit 1 +fi +. "$HELPER" + +if [ $# -eq 0 ]; then + SRC=adb +else + if [ $# -eq 1 ]; then + SRC=$1 + else + echo "$0: bad number of arguments" + echo "" + echo "usage: $0 [PATH_TO_EXPANDED_ROM]" + echo "" + echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from" + echo "the device using adb pull." + exit 1 + fi +fi + +# Initialize the helper +setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" + +extract "$MY_DIR"/proprietary-files.txt "$SRC" + +"$MY_DIR"/setup-makefiles.sh diff --git a/proprietary-files.txt b/proprietary-files.txt index 4a149aa..4a01e65 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,2 +1,820 @@ +# ADSP +bin/adsprpcd +vendor/lib/libadsprpc.so +vendor/lib/libfastcvadsp_stub.so +vendor/lib/libfastcvopt.so +vendor/lib64/libadsprpc.so +vendor/lib64/libadsp_default_listener.so + + +# ADSP modules +vendor/lib/rfsa/adsp/libadsp_fd_skel.so +vendor/lib/rfsa/adsp/libapps_mem_heap.so +vendor/lib/rfsa/adsp/libdspCV_skel.so +vendor/lib/rfsa/adsp/libfastcvadsp.so +vendor/lib/rfsa/adsp/libfastcvadsp_skel.so + +# Audio +vendor/lib/libacdb-fts.so +vendor/lib/libacdbloader.so +vendor/lib/libacdbrtac.so +vendor/lib/libadiertac.so +vendor/lib/libadm.so +vendor/lib/libaudcal.so +vendor/lib/libaudiodevarb.so +vendor/lib/soundfx/libqcbassboost.so +vendor/lib/soundfx/libqcreverb.so +vendor/lib/soundfx/libqcvirt.so +vendor/lib64/libacdb-fts.so +vendor/lib64/libacdbloader.so +vendor/lib64/libacdbrtac.so +vendor/lib64/libadiertac.so +vendor/lib64/libaudcal.so +vendor/lib64/libaudiodevarb.so + +# Audio ACDB +etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb +etc/acdbdata/QRD/QRD_General_cal.acdb +etc/acdbdata/QRD/QRD_Global_cal.acdb +etc/acdbdata/QRD/QRD_Handset_cal.acdb +etc/acdbdata/QRD/QRD_Hdmi_cal.acdb +etc/acdbdata/QRD/QRD_Headset_cal.acdb +etc/acdbdata/QRD/QRD_Speaker_cal.acdb + +# Bluetooth +bin/btnvtool +bin/hci_qcomm_init +vendor/lib/libbtnv.so +vendor/lib64/libbtnv.so + +# CNE +bin/cnd +etc/cne/SwimConfig.xml +etc/cne/andsfCne.xml +etc/permissions/ConnectivityExt.xml +etc/permissions/cneapiclient.xml +etc/permissions/com.quicinc.cne.xml +framework/ConnectivityExt.jar +framework/cneapiclient.jar +framework/com.quicinc.cne.jar +-priv-app/CNEService/CNEService.apk +vendor/lib/libNimsWrap.so +vendor/lib/libcne.so +vendor/lib/libcneapiclient.so +vendor/lib/libcneconn.so +vendor/lib/libcneqmiutils.so +vendor/lib/libvendorconn.so +vendor/lib/libwqe.so +vendor/lib/libxml.so +vendor/lib64/libNimsWrap.so +vendor/lib64/libcne.so +vendor/lib64/libcneapiclient.so +vendor/lib64/libcneconn.so +vendor/lib64/libcneqmiutils.so +vendor/lib64/libvendorconn.so +vendor/lib64/libwqe.so +vendor/lib64/libxml.so + +# Camera +bin/mm-qcamera-daemon +etc/camera/ofilm_s5k5e8_chromatix.xml +etc/camera/ov13853_q13853a_chromatix.xml +etc/camera/ov5670_f5670bq_chromatix.xml +etc/camera/msm8937_camera.xml +etc/camera/plus_ov5670_f5670bq_chromatix.xml +etc/camera/qtech_s5k3l8_f3l8yam_chromatix.xml +etc/camera/s5k5e8_chromatix.xml +etc/camera/sunny_ov5670_f5670bq_chromatix.xml +etc/camera/sunny_s5k3l8_f3l8yam_chromatix.xml +etc/camera/s5k3l8_f3l8yam_chromatix.xml +lib/hw/camera.msm8937.so +lib/libmm-qcamera.so +lib/libmmcamera_interface.so +lib/libmmjpeg_interface.so +lib/libmorpho_memory_allocator.so +lib/libmorpho_panorama.so +lib/libqomx_core.so +vendor/lib/libchromaflash.so +vendor/lib/libflash_pmic.so +vendor/lib/libjpegdhw.so +vendor/lib/libjpegdmahw.so +vendor/lib/libjpegehw.so +vendor/lib/libmmcamera_chromaflash_lib.so +vendor/lib/libmmcamera_dbg.so +vendor/lib/libmmcamera_dummyalgo.so +vendor/lib/libmmcamera_eebinparse.so +vendor/lib/libmmcamera_eeprom_util.so +vendor/lib/libmmcamera_eztune_module.so +vendor/lib/libmmcamera_faceproc.so +vendor/lib/libmmcamera_hdr_gb_lib.so +vendor/lib/libmmcamera_imglib_faceproc_adspstub.so +vendor/lib/libmmcamera_imglib.so +vendor/lib/libmmcamera_llvd.so +vendor/lib/libmmcamera_optizoom_lib.so +vendor/lib/libmmcamera_ov13853_q13853a.so +vendor/lib/libmmcamera_ov5670.so +vendor/lib/libmmcamera_ov5670_eeprom.so +vendor/lib/libmmcamera_pdaf.so +vendor/lib/libmmcamera_pdafcamif.so +vendor/lib/libmmcamera_ppbase_module.so +vendor/lib/libmmcamera_s5k3l8.so +vendor/lib/libmmcamera_s5k5e8.so +vendor/lib/libmmcamera_s5k5e8_eeprom.so +vendor/lib/libmmcamera_stillmore_lib.so +vendor/lib/libmmcamera_thread_services.so +vendor/lib/libmmcamera_tintless_algo.so +vendor/lib/libmmcamera_tintless_bg_pca_algo.so +vendor/lib/libmmcamera_tuning_lookup.so +vendor/lib/libmmcamera_tuning.so +vendor/lib/libmmcamera_vpu_module.so +vendor/lib/libmmcamera2_c2d_module.so +vendor/lib/libmmcamera2_cpp_module.so +vendor/lib/libmmcamera2_frame_algorithm.so +vendor/lib/libmmcamera2_iface_modules.so +vendor/lib/libmmcamera2_imglib_modules.so +vendor/lib/libmmcamera2_is.so +vendor/lib/libmmcamera2_isp_modules.so +vendor/lib/libmmcamera2_mct.so +vendor/lib/libmmcamera2_pp_buf_mgr.so +vendor/lib/libmmcamera2_pproc_modules.so +vendor/lib/libmmcamera2_q3a_core.so +vendor/lib/libmmcamera2_sensor_modules.so +vendor/lib/libmmcamera2_stats_algorithm.so +vendor/lib/libmmcamera2_stats_modules.so +vendor/lib/libmmcamera2_vpe_module.so +vendor/lib/libmmcamera2_wnr_module.so +vendor/lib/libmmjpeg.so +vendor/lib/libmmqjpeg_codec.so +vendor/lib/libmmqjpegdma.so +vendor/lib/libmorpho_easy_hdr.so +vendor/lib/libmorpho_hdr_checker.so +vendor/lib/libmorpho_image_stab4.so +vendor/lib/libmorpho_panorama_gp.so +vendor/lib/liboptizoom.so +vendor/lib/libqomx_jpegdec.so +vendor/lib/libqomx_jpegenc_pipe.so +vendor/lib/libqomx_jpegenc.so +vendor/lib/libseemore.so + +# Camera actuators +vendor/lib/libactuator_bu64244gwz.so +vendor/lib/libactuator_dw9718s.so +vendor/lib/libactuator_dw9763.so +vendor/lib/libactuator_dw9763_ov13853.so + +# Camera chromatix +vendor/lib/libchromatix_ov5670_f5670bq_a3_default_preview.so +vendor/lib/libchromatix_ov5670_f5670bq_a3_default_video.so +vendor/lib/libchromatix_ov5670_f5670bq_a3_hfr_120.so +vendor/lib/libchromatix_ov5670_f5670bq_a3_hfr_60.so +vendor/lib/libchromatix_ov5670_f5670bq_a3_hfr_90.so +vendor/lib/libchromatix_ov5670_f5670bq_common.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_ds_chromatix.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_hfr_120.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_hfr_60.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_hfr_90.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_liveshot.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_preview.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_snapshot.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_us_chromatix.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_video.so +vendor/lib/libchromatix_ov5670_f5670bq_cpp_video_full.so +vendor/lib/libchromatix_ov5670_f5670bq_default_video.so +vendor/lib/libchromatix_ov5670_f5670bq_hfr_120.so +vendor/lib/libchromatix_ov5670_f5670bq_hfr_60.so +vendor/lib/libchromatix_ov5670_f5670bq_hfr_90.so +vendor/lib/libchromatix_ov5670_f5670bq_liveshot.so +vendor/lib/libchromatix_ov5670_f5670bq_postproc.so +vendor/lib/libchromatix_ov5670_f5670bq_preview.so +vendor/lib/libchromatix_ov5670_f5670bq_snapshot.so +vendor/lib/libchromatix_ov5670_f5670bq_video_full.so +vendor/lib/libchromatix_ov5670_f5670bq_zsl_preview.so +vendor/lib/libchromatix_ov5670_f5670bq_zsl_video.so + +vendor/lib/libchromatix_plus_ov5670_f5670bq_a3_default_preview.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_a3_default_video.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_a3_hfr_120.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_a3_hfr_60.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_a3_hfr_90.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_common.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_ds_chromatix.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_hfr_120.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_hfr_60.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_hfr_90.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_liveshot.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_preview.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_snapshot.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_us_chromatix.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_video.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_cpp_video_full.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_default_video.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_hfr_120.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_hfr_60.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_hfr_90.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_liveshot.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_postproc.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_preview.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_snapshot.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_video_full.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_zsl_preview.so +vendor/lib/libchromatix_plus_ov5670_f5670bq_zsl_video.so + +vendor/lib/libchromatix_sunny_ov5670_f5670bq_common.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_hfr_60.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_hfr_90.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_hfr_120.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_preview.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_liveshot.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_postproc.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_snapshot.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_a3_hfr_60.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_a3_hfr_90.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_video.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_zsl_video.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_a3_hfr_120.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_hfr_60.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_hfr_90.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_video_full.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_hfr_120.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_preview.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_zsl_preview.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_liveshot.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_snapshot.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_default_video.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_video_full.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_a3_default_video.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_ds_chromatix.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_cpp_us_chromatix.so +vendor/lib/libchromatix_sunny_ov5670_f5670bq_a3_default_preview.so + +vendor/lib/libchromatix_s5k5e8_common.so +vendor/lib/libchromatix_s5k5e8_hfr_60.so +vendor/lib/libchromatix_s5k5e8_hfr_90.so +vendor/lib/libchromatix_s5k5e8_hfr_120.so +vendor/lib/libchromatix_s5k5e8_preview.so +vendor/lib/libchromatix_s5k5e8_liveshot.so +vendor/lib/libchromatix_s5k5e8_postproc.so +vendor/lib/libchromatix_s5k5e8_snapshot.so +vendor/lib/libchromatix_s5k5e8_a3_hfr_60.so +vendor/lib/libchromatix_s5k5e8_a3_hfr_90.so +vendor/lib/libchromatix_s5k5e8_cpp_video.so +vendor/lib/libchromatix_s5k5e8_zsl_video.so +vendor/lib/libchromatix_s5k5e8_a3_hfr_120.so +vendor/lib/libchromatix_s5k5e8_cpp_hfr_60.so +vendor/lib/libchromatix_s5k5e8_cpp_hfr_90.so +vendor/lib/libchromatix_s5k5e8_cpp_hfr_120.so +vendor/lib/libchromatix_s5k5e8_cpp_preview.so +vendor/lib/libchromatix_s5k5e8_zsl_preview.so +vendor/lib/libchromatix_s5k5e8_cpp_liveshot.so +vendor/lib/libchromatix_s5k5e8_cpp_snapshot.so +vendor/lib/libchromatix_s5k5e8_default_video.so +vendor/lib/libchromatix_s5k5e8_a3_default_video.so +vendor/lib/libchromatix_s5k5e8_cpp_ds_chromatix.so +vendor/lib/libchromatix_s5k5e8_cpp_us_chromatix.so +vendor/lib/libchromatix_s5k5e8_a3_default_preview.so + +vendor/lib/libchromatix_s5k3l8_common.so +vendor/lib/libchromatix_s5k3l8_hfr_60.so +vendor/lib/libchromatix_s5k3l8_hfr_90.so +vendor/lib/libchromatix_s5k3l8_hfr_120.so +vendor/lib/libchromatix_s5k3l8_preview.so +vendor/lib/libchromatix_s5k3l8_postproc.so +vendor/lib/libchromatix_s5k3l8_snapshot.so +vendor/lib/libchromatix_s5k3l8_cpp_video.so +vendor/lib/libchromatix_s5k3l8_cpp_hfr_60.so +vendor/lib/libchromatix_s5k3l8_cpp_hfr_90.so +vendor/lib/libchromatix_s5k3l8_cpp_hfr_120.so +vendor/lib/libchromatix_s5k3l8_cpp_preview.so +vendor/lib/libchromatix_s5k3l8_mono_common.so +vendor/lib/libchromatix_s5k3l8_mono_hfr_60.so +vendor/lib/libchromatix_s5k3l8_mono_hfr_90.so +vendor/lib/libchromatix_s5k3l8_cpp_liveshot.so +vendor/lib/libchromatix_s5k3l8_cpp_snapshot.so +vendor/lib/libchromatix_s5k3l8_mono_hfr_120.so +vendor/lib/libchromatix_s5k3l8_mono_preview.so +vendor/lib/libchromatix_s5k3l8_default_video.so +vendor/lib/libchromatix_s5k3l8_hfr_60_ak7345.so +vendor/lib/libchromatix_s5k3l8_hfr_90_ak7345.so +vendor/lib/libchromatix_s5k3l8_mono_postproc.so +vendor/lib/libchromatix_s5k3l8_mono_snapshot.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_common.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_hfr_60.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_hfr_90.so +vendor/lib/libchromatix_s5k3l8_hfr_120_ak7345.so +vendor/lib/libchromatix_s5k3l8_mono_cpp_video.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_hfr_120.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_preview.so +vendor/lib/libchromatix_s5k3l8_mono_cpp_hfr_60.so +vendor/lib/libchromatix_s5k3l8_mono_cpp_hfr_90.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_liveshot.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_postproc.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_snapshot.so +vendor/lib/libchromatix_s5k3l8_mono_cpp_hfr_120.so +vendor/lib/libchromatix_s5k3l8_mono_cpp_preview.so +vendor/lib/libchromatix_s5k3l8_zsl_video_ak7345.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_cpp_video.so +vendor/lib/libchromatix_s5k3l8_mono_cpp_liveshot.so +vendor/lib/libchromatix_s5k3l8_mono_cpp_snapshot.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_cpp_hfr_60.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_cpp_hfr_90.so +vendor/lib/libchromatix_s5k3l8_mono_default_video.so +vendor/lib/libchromatix_s5k3l8_mono_hfr_60_ak7345.so +vendor/lib/libchromatix_s5k3l8_mono_hfr_90_ak7345.so +vendor/lib/libchromatix_s5k3l8_zsl_preview_ak7345.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_cpp_hfr_120.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_cpp_preview.so +vendor/lib/libchromatix_s5k3l8_mono_hfr_120_ak7345.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_common.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_hfr_60.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_hfr_90.so +vendor/lib/libchromatix_s5k3l8_default_video_ak7345.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_cpp_liveshot.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_cpp_snapshot.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_common.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_hfr_60.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_hfr_90.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_hfr_120.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_preview.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_default_video.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_hfr_60_dw9763.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_hfr_90_dw9763.so +vendor/lib/libchromatix_s5k3l8_mono_zsl_video_ak7345.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_hfr_120.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_preview.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_liveshot.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_postproc.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_snapshot.so +vendor/lib/libchromatix_s5k3l8_default_preview_ak7345.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_hfr_120_dw9763.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_liveshot.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_postproc.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_snapshot.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_cpp_hfr_60.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_cpp_hfr_90.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_cpp_hfr_120.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_cpp_liveshot.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_cpp_preview.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_cpp_snapshot.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_cpp_video.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_default_preview_dw9763.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_default_video.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_default_video_dw9763.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_hfr_60_dw9763.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_hfr_90_dw9763.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_hfr_120_dw9763.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_zsl_preview_dw9763.so +vendor/lib/libchromatix_qtech_s5k3l8_f3l8yam_zsl_video_dw9763.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_default_preview_dw9763.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_default_video_dw9763.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_zsl_preview_dw9763.so +vendor/lib/libchromatix_s5k3l8_f3l8yam_zsl_video_dw9763.so +vendor/lib/libchromatix_s5k3l8_mono_default_preview_ak7345.so +vendor/lib/libchromatix_s5k3l8_mono_default_video_ak7345.so +vendor/lib/libchromatix_s5k3l8_mono_zsl_preview_ak7345.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_cpp_hfr_60.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_cpp_hfr_90.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_cpp_hfr_120.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_cpp_liveshot.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_cpp_preview.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_cpp_snapshot.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_cpp_video.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_default_preview_dw9763.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_default_video.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_default_video_dw9763.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_hfr_60_dw9763.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_hfr_90_dw9763.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_hfr_120_dw9763.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_zsl_preview_dw9763.so +vendor/lib/libchromatix_sunny_s5k3l8_f3l8yam_zsl_video_dw9763.so + +vendor/lib/libchromatix_ov13853_q13853a_common.so +vendor/lib/libchromatix_ov13853_q13853a_hfr_60.so +vendor/lib/libchromatix_ov13853_q13853a_hfr_90.so +vendor/lib/libchromatix_ov13853_q13853a_hfr_120.so +vendor/lib/libchromatix_ov13853_q13853a_preview.so +vendor/lib/libchromatix_ov13853_q13853a_liveshot.so +vendor/lib/libchromatix_ov13853_q13853a_postproc.so +vendor/lib/libchromatix_ov13853_q13853a_snapshot.so +vendor/lib/libchromatix_ov13853_q13853a_cpp_video.so +vendor/lib/libchromatix_ov13853_q13853a_cpp_hfr_60.so +vendor/lib/libchromatix_ov13853_q13853a_cpp_hfr_90.so +vendor/lib/libchromatix_ov13853_q13853a_cpp_hfr_120.so +vendor/lib/libchromatix_ov13853_q13853a_cpp_preview.so +vendor/lib/libchromatix_ov13853_q13853a_cpp_liveshot.so +vendor/lib/libchromatix_ov13853_q13853a_cpp_snapshot.so +vendor/lib/libchromatix_ov13853_q13853a_default_video.so +vendor/lib/libchromatix_ov13853_q13853a_default_preview_bu64291gwz.so +vendor/lib/libchromatix_ov13853_q13853a_default_video_bu64291gwz.so +vendor/lib/libchromatix_ov13853_q13853a_hfr_60_bu64291gwz.so +vendor/lib/libchromatix_ov13853_q13853a_hfr_90_bu64291gwz.so +vendor/lib/libchromatix_ov13853_q13853a_hfr_120_bu64291gwz.so +vendor/lib/libchromatix_ov13853_q13853a_zsl_preview_bu64291gwz.so +vendor/lib/libchromatix_ov13853_q13853a_zsl_video_bu64291gwz.so + +# Camera firmware +etc/firmware/cpp_firmware_v1_1_1.fw +etc/firmware/cpp_firmware_v1_1_6.fw +etc/firmware/cpp_firmware_v1_10_0.fw +etc/firmware/cpp_firmware_v1_2_0.fw +etc/firmware/cpp_firmware_v1_4_0.fw +etc/firmware/cpp_firmware_v1_5_0.fw +etc/firmware/cpp_firmware_v1_5_2.fw +etc/firmware/cpp_firmware_v1_6_0.fw +etc/firmware/cpp_firmware_v1_8_0.fw + +# Camera sensors +vendor/lib/libmmcamera_isp_wb40.so +vendor/lib/libmmcamera_isp_abf40.so +vendor/lib/libmmcamera_isp_bcc40.so +vendor/lib/libmmcamera_isp_bpc40.so +vendor/lib/libmmcamera_isp_ltm44.so +vendor/lib/libmmcamera_isp_mce40.so +vendor/lib/libmmcamera_isp_sce40.so +vendor/lib/libmmcamera_isp_demux40.so +vendor/lib/libmmcamera_isp_gamma40.so +vendor/lib/libmmcamera_isp_template.so +vendor/lib/libmmcamera_isp_be_stats44.so +vendor/lib/libmmcamera_isp_bf_stats47.so +vendor/lib/libmmcamera_isp_bg_stats44.so +vendor/lib/libmmcamera_isp_cs_stats44.so +vendor/lib/libmmcamera_isp_demosaic40.so +vendor/lib/libmmcamera_isp_rs_stats44.so +vendor/lib/libmmcamera_isp_sub_module.so +vendor/lib/libmmcamera_isp_bhist_stats44.so +vendor/lib/libmmcamera_isp_clamp_video40.so +vendor/lib/libmmcamera_isp_ihist_stats44.so +vendor/lib/libmmcamera_isp_chroma_enhan40.so +vendor/lib/libmmcamera_isp_mesh_rolloff40.so +vendor/lib/libmmcamera_isp_clamp_encoder40.so +vendor/lib/libmmcamera_isp_color_correct40.so +vendor/lib/libmmcamera_isp_linearization40.so +vendor/lib/libmmcamera_isp_scaler_encoder44.so +vendor/lib/libmmcamera_isp_chroma_suppress40.so +vendor/lib/libmmcamera_isp_fovcrop_encoder40.so +vendor/lib/libmmcamera_isp_luma_adaptation40.so +vendor/lib/libmmcamera_isp_clamp_viewfinder40.so +vendor/lib/libmmcamera_isp_scaler_viewfinder44.so +vendor/lib/libmmcamera_isp_fovcrop_viewfinder40.so +vendor/lib/libmmcamera_isp_color_xform_encoder40.so +vendor/lib/libmmcamera_isp_color_xform_viewfinder40.so + +# DPM +bin/dpmd +etc/dpm/dpm.conf +etc/dpm/nsrm/NsrmConfiguration.xml +etc/permissions/com.qti.dpmframework.xml +etc/permissions/dpmapi.xml +framework/com.qti.dpmframework.jar +framework/dpmapi.jar +framework/tcmclient.jar +-priv-app/dpmserviceapp/dpmserviceapp.apk +vendor/lib/libdpmctmgr.so +vendor/lib/libdpmfdmgr.so +vendor/lib/libdpmframework.so +vendor/lib/libdpmnsrm.so +vendor/lib/libdpmtcm.so +vendor/lib64/libdpmctmgr.so +vendor/lib64/libdpmfdmgr.so +vendor/lib64/libdpmframework.so +vendor/lib64/libdpmnsrm.so +vendor/lib64/libdpmtcm.so + +# DRM +bin/qseecomd +vendor/bin/qseeproxydaemon +vendor/lib/libQSEEComAPI.so +vendor/lib64/lib-sec-disp.so +vendor/lib64/libGPreqcancel.so +vendor/lib64/libGPreqcancel_svc.so +vendor/lib64/libQSEEComAPI.so +vendor/lib64/libSecureUILib.so +vendor/lib64/libStDrvInt.so +vendor/lib64/libdrmfs.so +vendor/lib64/libdrmtime.so +vendor/lib64/libqisl.so +vendor/lib64/librpmb.so +vendor/lib64/libsecureui.so +vendor/lib64/libsecureui_svcsock.so +vendor/lib64/libssd.so + +# Display calibration +etc/qdcm_calib_data_hx8394F_HD720p_video_BOE.xml +etc/qdcm_calib_data_ili9881c_HD720p_video_Tianma.xml +etc/qdcm_calib_data_nt35521s_HD720p_video_EBBG.xml + +# Gatekeeper +vendor/lib/hw/gatekeeper.msm8937.so +vendor/lib64/hw/gatekeeper.msm8937.so + +# GPS +bin/loc_launcher +bin/lowi-server +bin/xtwifi-client +bin/xtwifi-inet-agent +etc/permissions/com.qti.location.sdk.xml +etc/permissions/com.qualcomm.location.xml +framework/com.qti.location.sdk.jar +-lib/libloc_api_v02.so +-lib64/libloc_api_v02.so +lib/libloc_ds_api.so +lib64/libloc_ds_api.so +-priv-app/com.qualcomm.location/com.qualcomm.location.apk +vendor/bin/slim_daemon +vendor/lib/hw/flp.default.so +vendor/lib/libalarmservice_jni.so +vendor/lib/libdataitems.so +vendor/lib/libflp.so +vendor/lib/libgeofence.so +vendor/lib/libizat_core.so +vendor/lib/liblbs_core.so +vendor/lib/libloc_ext.so +vendor/lib/liblocationservice.so +vendor/lib/liblocationservice_glue.so +vendor/lib/liblowi_client.so +vendor/lib/libquipc_os_api.so +vendor/lib/libulp2.so +vendor/lib/libxtadapter.so +vendor/lib/libxtwifi_ulp_adaptor.so +vendor/lib/libxt_native.so +vendor/lib64/hw/flp.default.so +vendor/lib64/libalarmservice_jni.so +vendor/lib64/libasn1cper.so +vendor/lib64/libasn1crt.so +vendor/lib64/libasn1crtx.so +vendor/lib64/libdataitems.so +vendor/lib64/libflp.so +vendor/lib64/libgdtap.so +vendor/lib64/libgeofence.so +vendor/lib64/libizat_core.so +vendor/lib64/liblbs_core.so +vendor/lib64/libloc_ext.so +vendor/lib64/libloc_xtra.so +vendor/lib64/liblocationservice.so +vendor/lib64/liblocationservice_glue.so +vendor/lib64/liblowi_client.so +vendor/lib64/liblowi_wifihal.so +vendor/lib64/liblowi_wifihal_nl.so +vendor/lib64/libquipc_os_api.so +vendor/lib64/libulp2.so +vendor/lib64/libxt_native.so +vendor/lib64/libxtadapter.so +vendor/lib64/libxtwifi_ulp_adaptor.so + +# Graphics +vendor/lib/egl/eglSubDriverAndroid.so +vendor/lib/egl/libEGL_adreno.so +vendor/lib/egl/libGLESv1_CM_adreno.so +vendor/lib/egl/libGLESv2_adreno.so +vendor/lib/egl/libQTapGLES.so +vendor/lib/egl/libq3dtools_adreno.so +vendor/lib/egl/libq3dtools_esx.so +vendor/lib/libC2D2.so +vendor/lib/libCB.so +vendor/lib/libOpenCL.so +vendor/lib/libRSDriver_adreno.so +vendor/lib/libadreno_utils.so +vendor/lib/libbccQTI.so +vendor/lib/libc2d30-a5xx.so +vendor/lib/libc2d30_bltlib.so +vendor/lib/libgsl.so +vendor/lib/libllvm-glnext.so +vendor/lib/libllvm-qcom.so +vendor/lib/libmmQSM.so +vendor/lib/librs_adreno.so +vendor/lib/librs_adreno_sha1.so +vendor/lib/libsd_sdk_display.so +vendor/lib/libsdm-disp-apis.so +vendor/lib64/egl/eglSubDriverAndroid.so +vendor/lib64/egl/libEGL_adreno.so +vendor/lib64/egl/libGLESv1_CM_adreno.so +vendor/lib64/egl/libGLESv2_adreno.so +vendor/lib64/egl/libQTapGLES.so +vendor/lib64/egl/libq3dtools_adreno.so +vendor/lib64/egl/libq3dtools_esx.so +vendor/lib64/libC2D2.so +vendor/lib64/libCB.so +vendor/lib64/libOpenCL.so +vendor/lib64/libRSDriver_adreno.so +vendor/lib64/libadreno_utils.so +vendor/lib64/libbccQTI.so +vendor/lib64/libc2d30-a5xx.so +vendor/lib64/libc2d30_bltlib.so +vendor/lib64/libgsl.so +vendor/lib64/libllvm-glnext.so +vendor/lib64/libllvm-qcom.so +vendor/lib64/libmm-disp-apis.so +vendor/lib64/libmm-qdcm.so +vendor/lib64/libmmQSM.so +vendor/lib64/librs_adreno.so +vendor/lib64/librs_adreno_sha1.so +vendor/lib64/libscalar.so +vendor/lib64/libsd_sdk_display.so +vendor/lib64/libsdm-color.so +vendor/lib64/libsdm-diag.so +vendor/lib64/libsdm-disp-apis.so +vendor/lib64/libsdmextension.so + +# Graphics firmware +etc/firmware/a530_gpmu.fw2 +etc/firmware/a530_pfp.fw +etc/firmware/a530_pm4.fw +etc/firmware/a530v1_pfp.fw +etc/firmware/a530v1_pm4.fw +etc/firmware/a530v2_seq.fw2 +etc/firmware/a530v3_gpmu.fw2 +etc/firmware/a530v3_seq.fw2 + +# Keystore +vendor/lib/hw/keystore.msm8937.so +vendor/lib64/hw/keystore.msm8937.so + +# Listen +vendor/lib/hw/sound_trigger.primary.msm8937.so +vendor/lib/libadpcmdec.so +vendor/lib/libsmwrapper.so + +# Media +lib/libOmxVpp.so +lib/libvpplibrary.so +vendor/lib/libI420colorconvert.so +vendor/lib/libOmxAacDec.so +vendor/lib/libOmxEvrcDec.so +vendor/lib/libOmxQcelp13Dec.so +vendor/lib/libmm-color-convertor.so +vendor/lib/libmmosal.so +vendor/lib/libvqzip.so + +# Network +-priv-app/QtiTetherService/QtiTetherService.apk +vendor/lib/libconnctrl.so +vendor/lib64/libconnctrl.so +vendor/lib64/libQtiTether.so + # Perf -vendor/etc/msm_irqbalance.conf +bin/iop +bin/msm_irqbalance +lib64/libqti-iop.so +vendor/bin/perfd +vendor/lib/libqc-opt.so +vendor/lib/libqti-iop-client.so +vendor/lib/libqti-perfd-client.so +vendor/lib64/libqc-opt.so +vendor/lib64/libqti-iop-client.so +vendor/lib64/libqti-perfd-client.so + +# Peripheral manager +bin/pm-proxy +bin/pm-service +vendor/lib/libperipheral_client.so +vendor/lib64/libperipheral_client.so + +# Postprocessing +etc/permissions/com.qti.snapdragon.sdk.display.xml +framework/com.qti.snapdragon.sdk.display.jar +-vendor/app/colorservice/colorservice.apk +vendor/bin/mm-pp-dpps +vendor/lib64/libdisp-aba.so + +# QMI +bin/irsc_util +etc/permissions/qti_permissions.xml +vendor/lib/libdiag.so +vendor/lib/libdsi_netctrl.so +vendor/lib/libdsutils.so +vendor/lib/libidl.so +vendor/lib/libqcci_legacy.so +vendor/lib/libqcmaputils.so +vendor/lib/libqdi.so +vendor/lib/libqdp.so +vendor/lib/libqmi.so +vendor/lib/libqmi_cci.so +vendor/lib/libqmi_client_helper.so +vendor/lib/libqmi_client_qmux.so +vendor/lib/libqmi_common_so.so +vendor/lib/libqmi_csi.so +vendor/lib/libqmi_encdec.so +vendor/lib/libqmiservices.so +vendor/lib/libqti-wl.so +vendor/lib/libquipc_os_api.so +vendor/lib/libsmemlog.so +vendor/lib/libvqzip.so +vendor/lib64/libdiag.so +vendor/lib64/libdsi_netctrl.so +vendor/lib64/libdsutils.so +vendor/lib64/libidl.so +vendor/lib64/libqcci_legacy.so +vendor/lib64/libqcmaputils.so +vendor/lib64/libqdi.so +vendor/lib64/libqdp.so +vendor/lib64/libqmi.so +vendor/lib64/libqmi_cci.so +vendor/lib64/libqmi_client_helper.so +vendor/lib64/libqmi_client_qmux.so +vendor/lib64/libqmi_common_so.so +vendor/lib64/libqmi_csi.so +vendor/lib64/libqmi_encdec.so +vendor/lib64/libqmiservices.so +vendor/lib64/libqti-wl.so +vendor/lib64/libquipc_os_api.so +vendor/lib64/libsmemlog.so + +# Radio +-app/datastatusnotification/datastatusnotification.apk +-app/fastdormancy/fastdormancy.apk +-app/QtiTelephonyService/QtiTelephonyService.apk +-app/shutdownlistener/shutdownlistener.apk +bin/netmgrd +bin/qmuxd +bin/radish +bin/rmt_storage +bin/tftp_server +etc/data/dsi_config.xml +etc/data/netmgr_config.xml +etc/data/qmi_config.xml +etc/permissions/embms.xml +etc/permissions/qcnvitems.xml +etc/permissions/qcrilhook.xml +etc/permissions/telephonyservice.xml +framework/embmslibrary.jar +-framework/qcnvitems.jar +-framework/qcrilhook.jar +framework/qti-telephony-common.jar +framework/QtiTelephonyServicelibrary.jar +-priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk +vendor/bin/qti +vendor/lib64/libconfigdb.so +vendor/lib64/liblqe.so +vendor/lib64/libmdmdetect.so +vendor/lib64/libnetmgr.so +vendor/lib64/libqcmaputils.so +vendor/lib64/libril-qc-qmi-1.so +vendor/lib64/libril-qc-radioconfig.so +vendor/lib64/libril-qcril-hook-oem.so +vendor/lib64/libsystem_health_mon.so +vendor/qcril.db + +# Radio - IMS +bin/ims_rtp_daemon +bin/imscmservice +bin/imsdatadaemon +bin/imsqmidaemon +-vendor/app/ims/ims.apk +-vendor/app/imssettings/imssettings.apk +vendor/lib64/lib-dplmedia.so +vendor/lib64/lib-ims-rcscmjni.so +vendor/lib64/lib-imsSDP.so +vendor/lib64/lib-imscamera.so +vendor/lib64/lib-imsdpl.so +vendor/lib64/lib-imsqimf.so +vendor/lib64/lib-imsrcs.so +vendor/lib64/lib-imsrcscm.so +vendor/lib64/lib-imsrcscmclient.so +vendor/lib64/lib-imsrcscmservice.so +vendor/lib64/lib-imss.so +vendor/lib64/lib-imsvt.so +vendor/lib64/lib-imsxml.so +vendor/lib64/lib-rcsimssjni.so +vendor/lib64/lib-rcsjni.so +vendor/lib64/lib-rtpcommon.so +vendor/lib64/lib-rtpcore.so +vendor/lib64/lib-rtpdaemoninterface.so +vendor/lib64/lib-rtpsl.so +vendor/lib64/libimscamera_jni.so +vendor/lib64/libimsmedia_jni.so +vendor/lib64/librcc.so +vendor/lib64/libvoice-svc.so + +# Sensors +bin/sensors.qcom +etc/sensors/hals.conf +etc/sensors/sensor_def_qcomdev.conf +vendor/lib/hw/activity_recognition.msm8937.so +vendor/lib/libsensor1.so +vendor/lib/libsensor_reg.so +vendor/lib/sensors.ssc.so +vendor/lib64/hw/activity_recognition.msm8937.so +vendor/lib64/libsensor1.so +vendor/lib64/libsensor_reg.so +vendor/lib64/sensors.ssc.so + +# Thermal +etc/thermal-engine.conf +vendor/bin/thermal-engine +-vendor/lib/libthermalclient.so +-vendor/lib64/libthermalclient.so +vendor/lib64/libthermalioctl.so + +# Time services +-app/TimeService/TimeService.apk +bin/time_daemon +-vendor/lib/libtime_genoff.so +vendor/lib/libTimeService.so +-vendor/lib64/libtime_genoff.so +vendor/lib64/libTimeService.so + +# Widevine +vendor/lib/mediadrm/libwvdrmengine.so + +# Wifi +bin/cnss-daemon +bin/cnss_diag diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..b3e5af5 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,47 @@ +#!/bin/bash +# +# Copyright (C) 2016 The CyanogenMod Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set -e + +# Required! +DEVICE=land +VENDOR=xiaomi + +# Load extractutils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi + +CM_ROOT="$MY_DIR"/../../.. + +HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh +if [ ! -f "$HELPER" ]; then + echo "Unable to find helper script at $HELPER" + exit 1 +fi +. "$HELPER" + +# Initialize the helper +setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" + +# Copyright headers and guards +write_headers + +# The standard blobs +write_makefiles "$MY_DIR"/proprietary-files.txt + +# We are done! +write_footers