diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-03-23 15:06:31 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-03-23 15:12:24 -0700 |
commit | 139747949e5a0f9e5c3eb603ce6859799e6917c7 (patch) | |
tree | b1eb8abd01993ac4738e1dc343a26dad7ba57314 | |
parent | 2616ae05b3846f60af1af9be905e40b547047212 (diff) | |
download | sapphire-139747949e5a0f9e5c3eb603ce6859799e6917c7.tar.gz |
Script to extract blobs from a running device.
This also sets up the vendor/ side of the build system to properly
use those files in open-source environments.
Bug: 1869158
Change-Id: I23b9ad247582ea77e1cd2b80f9e5162339fe20b6
-rwxr-xr-x | extract-files.sh | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..553faa5 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,120 @@ +#!/bin/sh + +# Copyright (C) 2010 The Android Open Source 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. + +mkdir -p ../../../vendor/htc/sapphire/proprietary +adb pull /system/bin/akmd ../../../vendor/htc/sapphire/proprietary/akmd +chmod 755 ../../../vendor/htc/sapphire/proprietary/akmd +adb pull /system/etc/01_qcomm_omx.cfg ../../../vendor/htc/sapphire/proprietary/01_qcomm_omx.cfg +adb pull /system/etc/AudioFilter.csv ../../../vendor/htc/sapphire/proprietary/AudioFilter.csv +adb pull /system/etc/AudioPreProcess.csv ../../../vendor/htc/sapphire/proprietary/AudioPreProcess.csv +adb pull /system/etc/firmware/brf6300.bin ../../../vendor/htc/sapphire/proprietary/brf6300.bin +adb pull /system/etc/pvasflocal.cfg ../../../vendor/htc/sapphire/proprietary/pvasflocal.cfg +adb pull /system/etc/wifi/Fw1251r1c.bin ../../../vendor/htc/sapphire/proprietary/Fw1251r1c.bin +adb pull /system/lib/egl/libGLES_qcom.so ../../../vendor/htc/sapphire/proprietary/libGLES_qcom.so +adb pull /system/lib/libaudioeq.so ../../../vendor/htc/sapphire/proprietary/libaudioeq.so +adb pull /system/lib/libcamera.so ../../../vendor/htc/sapphire/proprietary/libcamera.so +adb pull /system/lib/libgps.so ../../../vendor/htc/sapphire/proprietary/libgps.so +adb pull /system/lib/libhtc_acoustic.so ../../../vendor/htc/sapphire/proprietary/libhtc_acoustic.so +adb pull /system/lib/libhtc_ril.so ../../../vendor/htc/sapphire/proprietary/libhtc_ril.so +adb pull /system/lib/liblvmxipc.so ../../../vendor/htc/sapphire/proprietary/liblvmxipc.so +adb pull /system/lib/libmm-adspsvc.so ../../../vendor/htc/sapphire/proprietary/libmm-adspsvc.so +adb pull /system/lib/liboemcamera.so ../../../vendor/htc/sapphire/proprietary/liboemcamera.so +adb pull /system/lib/libOmxCore.so ../../../vendor/htc/sapphire/proprietary/libOmxCore.so +adb pull /system/lib/libOmxH264Dec.so ../../../vendor/htc/sapphire/proprietary/libOmxH264Dec.so +adb pull /system/lib/libOmxMpeg4Dec.so ../../../vendor/htc/sapphire/proprietary/libOmxMpeg4Dec.so +adb pull /system/lib/libOmxVidEnc.so ../../../vendor/htc/sapphire/proprietary/libOmxVidEnc.so +adb pull /system/lib/libomx_wmadec_sharedlibrary.so ../../../vendor/htc/sapphire/proprietary/libomx_wmadec_sharedlibrary.so +adb pull /system/lib/libomx_wmvdec_sharedlibrary.so ../../../vendor/htc/sapphire/proprietary/libomx_wmvdec_sharedlibrary.so +adb pull /system/lib/libopencorehw.so ../../../vendor/htc/sapphire/proprietary/libopencorehw.so +adb pull /system/lib/libpvasfcommon.so ../../../vendor/htc/sapphire/proprietary/libpvasfcommon.so +adb pull /system/lib/libpvasflocalpbreg.so ../../../vendor/htc/sapphire/proprietary/libpvasflocalpbreg.so +adb pull /system/lib/libpvasflocalpb.so ../../../vendor/htc/sapphire/proprietary/libpvasflocalpb.so +adb pull /system/lib/libqcomm_omx.so ../../../vendor/htc/sapphire/proprietary/libqcomm_omx.so +adb pull /system/lib/libstagefrighthw.so ../../../vendor/htc/sapphire/proprietary/libstagefrighthw.so + +cat > ../../../vendor/htc/sapphire/device_sapphire-vendor.mk << EOF +# Copyright (C) 2010 The Android Open Source 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. + +# This file is generated by device/htc/sapphire/extract-files.sh + +PRODUCT_COPY_FILES := \\ + vendor/htc/sapphire/proprietary/libgps.so:obj/lib/libgps.so \\ + vendor/htc/sapphire/proprietary/libcamera.so:obj/lib/libcamera.so + +PRODUCT_COPY_FILES += \\ + vendor/htc/sapphire/proprietary/akmd:system/bin/akmd \\ + vendor/htc/sapphire/proprietary/01_qcomm_omx.cfg:system/etc/01_qcomm_omx.cfg \\ + vendor/htc/sapphire/proprietary/AudioFilter.csv:system/etc/AudioFilter.csv \\ + vendor/htc/sapphire/proprietary/AudioPreProcess.csv:system/etc/AudioPreProcess.csv \\ + vendor/htc/sapphire/proprietary/brf6300.bin:system/etc/firmware/brf6300.bin \\ + vendor/htc/sapphire/proprietary/pvasflocal.cfg:system/etc/pvasflocal.cfg \\ + vendor/htc/sapphire/proprietary/Fw1251r1c.bin:system/etc/wifi/Fw1251r1c.bin \\ + vendor/htc/sapphire/proprietary/libGLES_qcom.so:system/lib/egl/libGLES_qcom.so \\ + vendor/htc/sapphire/proprietary/libaudioeq.so:system/lib/libaudioeq.so \\ + vendor/htc/sapphire/proprietary/libcamera.so:system/lib/libcamera.so \\ + vendor/htc/sapphire/proprietary/libgps.so:system/lib/libgps.so \\ + vendor/htc/sapphire/proprietary/libhtc_acoustic.so:system/lib/libhtc_acoustic.so \\ + vendor/htc/sapphire/proprietary/libhtc_ril.so:system/lib/libhtc_ril.so \\ + vendor/htc/sapphire/proprietary/liblvmxipc.so:system/lib/liblvmxipc.so \\ + vendor/htc/sapphire/proprietary/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \\ + vendor/htc/sapphire/proprietary/liboemcamera.so:system/lib/liboemcamera.so \\ + vendor/htc/sapphire/proprietary/libOmxCore.so:system/lib/libOmxCore.so \\ + vendor/htc/sapphire/proprietary/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \\ + vendor/htc/sapphire/proprietary/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \\ + vendor/htc/sapphire/proprietary/libOmxVidEnc.so:system/lib/libOmxVidEnc.so \\ + vendor/htc/sapphire/proprietary/libomx_wmadec_sharedlibrary.so:system/lib/libomx_wmadec_sharedlibrary.so \\ + vendor/htc/sapphire/proprietary/libomx_wmvdec_sharedlibrary.so:system/lib/libomx_wmvdec_sharedlibrary.so \\ + vendor/htc/sapphire/proprietary/libopencorehw.so:system/lib/libopencorehw.so \\ + vendor/htc/sapphire/proprietary/libpvasfcommon.so:system/lib/libpvasfcommon.so \\ + vendor/htc/sapphire/proprietary/libpvasflocalpbreg.so:system/lib/libpvasflocalpbreg.so \\ + vendor/htc/sapphire/proprietary/libpvasflocalpb.so:system/lib/libpvasflocalpb.so \\ + vendor/htc/sapphire/proprietary/libqcomm_omx.so:system/lib/libqcomm_omx.so \\ + vendor/htc/sapphire/proprietary/libstagefrighthw.so:system/lib/libstagefrighthw.so +EOF + +cat > ../../../vendor/htc/sapphire/BoardConfigVendor.mk << EOF +# Copyright (C) 2010 The Android Open Source 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. + +# This file is generated by device/htc/sapphire/extract-files.sh + +BOARD_GPS_LIBRARIES := libgps + +USE_CAMERA_STUB := false +EOF |