1  broadcom)
2    TO_EXTRACT="\
3            system/vendor/firmware/bcm2079x_firmware.ncd \
4            system/vendor/firmware/bcm2079x_pre_firmware.ncd \
5            "
6    ;;
7  lge)
8    TO_EXTRACT="\
9            system/lib/libacdbdata.so \
10            system/lib/libAKM.so \
11            system/lib/libcamera_fast_af.so \
12            system/lib/libmorpho_noise_reduction.so \
13            system/vendor/firmware/keymaster/keymaster.b00 \
14            system/vendor/firmware/keymaster/keymaster.b01 \
15            system/vendor/firmware/keymaster/keymaster.b02 \
16            system/vendor/firmware/keymaster/keymaster.b03 \
17            system/vendor/firmware/keymaster/keymaster.mdt \
18            "
19    ;;
20  qcom)
21    TO_EXTRACT="\
22            system/bin/ATFWD-daemon \
23            system/bin/bridgemgrd \
24            system/bin/btnvtool \
25            system/bin/diag_klog \
26            system/bin/diag_mdlog \
27            system/bin/ds_fmc_appd \
28            system/bin/efsks \
29            system/bin/hci_qcomm_init \
30            system/bin/ks \
31            system/bin/mm-qcamera-daemon \
32            system/bin/mpdecision \
33            system/bin/netmgrd \
34            system/bin/nl_listener \
35            system/bin/port-bridge \
36            system/bin/qcks \
37            system/bin/qmuxd \
38            system/bin/qseecomd \
39            system/bin/radish \
40            system/bin/rmt_storage \
41            system/bin/sensors.qcom \
42            system/bin/thermald \
43            system/bin/usbhub \
44            system/bin/usbhub_init \
45            system/bin/v4l2-qcamera-app \
46            system/etc/firmware/tzapps.b00 \
47            system/etc/firmware/tzapps.b01 \
48            system/etc/firmware/tzapps.b02 \
49            system/etc/firmware/tzapps.b03 \
50            system/etc/firmware/tzapps.mdt \
51            system/etc/firmware/vidc_1080p.fw \
52            system/etc/firmware/vidc.b00 \
53            system/etc/firmware/vidc.b01 \
54            system/etc/firmware/vidc.b02 \
55            system/etc/firmware/vidc.b03 \
56            system/etc/firmware/vidc.mdt \
57            system/vendor/lib/egl/eglsubAndroid.so \
58            system/vendor/lib/egl/libEGL_adreno.so \
59            system/vendor/lib/egl/libGLESv1_CM_adreno.so \
60            system/vendor/lib/egl/libGLESv2_adreno.so \
61            system/vendor/lib/egl/libplayback_adreno.so \
62            system/vendor/lib/egl/libq3dtools_adreno.so \
63            system/lib/hw/flp.msm8960.so \
64            system/lib/hw/gps.msm8960.so \
65            system/lib/hw/sensors.msm8960.so \
66            system/lib/libacdbloader.so \
67            system/vendor/lib/libadreno_utils.so \
68            system/lib/libaudcal.so \
69            system/lib/libaudioalsa.so \
70            system/vendor/lib/libC2D2.so \
71            system/vendor/lib/libc2d30-a3xx.so \
72            system/vendor/lib/libc2d30.so \
73            system/vendor/lib/libCB.so \
74            system/lib/libchromatix_imx111_default_video.so \
75            system/lib/libchromatix_imx111_preview.so \
76            system/lib/libchromatix_imx111_zsl.so \
77            system/lib/libchromatix_imx119_default_video.so \
78            system/lib/libchromatix_imx119_preview.so \
79            system/lib/libchromatix_mt9e013_default_video.so \
80            system/lib/libchromatix_mt9e013_preview.so \
81            system/lib/libchromatix_mt9e013_video_hfr.so \
82            system/lib/libchromatix_ov5647_default_video.so \
83            system/lib/libchromatix_ov5647_preview.so \
84            system/lib/libchromatix_ov5647_video_hfr.so \
85            system/lib/libchromatix_ov8825_default_video.so \
86            system/lib/libchromatix_ov8825_preview.so \
87            system/lib/libchromatix_ov9726_default_video.so \
88            system/lib/libchromatix_ov9726_preview.so \
89            system/lib/libchromatix_s5k4e1_default_video.so \
90            system/lib/libchromatix_s5k4e1_preview.so \
91            system/lib/libchromatix_vx6953_default_video.so \
92            system/lib/libchromatix_vx6953_preview.so \
93            system/lib/libCommandSvc.so \
94            system/lib/libconfigdb.so \
95            system/lib/libcsd-client.so \
96            system/lib/libdiag.so \
97            system/lib/libdrmdiag.so \
98            system/lib/libdrmfs.so \
99            system/lib/libdrmtime.so \
100            system/lib/libdsi_netctrl.so \
101            system/lib/libdsprofile.so \
102            system/lib/libdss.so \
103            system/lib/libdsucsd.so \
104            system/lib/libdsutils.so \
105            system/lib/libgemini.so \
106            system/lib/libgps.utils.so \
107            system/vendor/lib/libgsl.so \
108            system/lib/libI420colorconvert.so \
109            system/lib/libidl.so \
110            system/lib/libimage-jpeg-dec-omx-comp.so \
111            system/lib/libimage-jpeg-enc-omx-comp.so \
112            system/lib/libimage-omx-common.so \
113            system/vendor/lib/libllvm-qcom.so \
114            system/vendor/lib/libbccQTI.so \
115            system/lib/libloc_core.so \
116            system/lib/libloc_eng.so \
117            system/lib/libmercury.so \
118            system/lib/libmmcamera_faceproc.so \
119            system/lib/libmmcamera_frameproc.so \
120            system/lib/libmmcamera_hdr_lib.so \
121            system/lib/libmmcamera_image_stab.so \
122            system/lib/libmmcamera_statsproc31.so \
123            system/lib/libmmcamera_wavelet_lib.so \
124            system/lib/libmm-color-convertor.so \
125            system/lib/libmmipl.so \
126            system/lib/libmmjpeg.so \
127            system/lib/libmmjps.so \
128            system/lib/libmmmpod.so \
129            system/lib/libmmmpo.so \
130            system/lib/libmmstillomx.so \
131            system/lib/libnetmgr.so \
132            system/lib/liboemcamera.so \
133            system/lib/liboemcrypto.so \
134            system/lib/libqcci_legacy.so \
135            system/lib/libqdi.so \
136            system/lib/libqdp.so \
137            system/lib/libqmi_cci.so \
138            system/lib/libqmi_client_qmux.so \
139            system/lib/libqmi_common_so.so \
140            system/lib/libqmi_csi.so \
141            system/lib/libqmi_csvt_srvc.so \
142            system/lib/libqmi_encdec.so \
143            system/lib/libqmiservices.so \
144            system/lib/libqmi.so \
145            system/lib/libQSEEComAPI.so \
146            system/lib/libril-qc-qmi-1.so \
147            system/lib/libril-qcril-hook-oem.so \
148            system/vendor/lib/librs_adreno_sha1.so \
149            system/vendor/lib/librs_adreno.so \
150            system/vendor/lib/libRSDriver_adreno.so \
151            system/vendor/lib/libsc-a3xx.so \
152            system/lib/libsensor1.so \
153            system/lib/libsensor_reg.so \
154            system/lib/libsensor_user_cal.so \
155            system/lib/libstagefright_hdcp.so \
156            system/lib/libxml.so \
157            system/vendor/firmware/a300_pfp.fw \
158            system/vendor/firmware/a300_pm4.fw \
159            system/vendor/firmware/dsps.b00 \
160            system/vendor/firmware/dsps.b01 \
161            system/vendor/firmware/dsps.b02 \
162            system/vendor/firmware/dsps.b03 \
163            system/vendor/firmware/dsps.b04 \
164            system/vendor/firmware/dsps.b05 \
165            system/vendor/firmware/dsps.mdt \
166            system/vendor/firmware/q6.b00 \
167            system/vendor/firmware/q6.b01 \
168            system/vendor/firmware/q6.b03 \
169            system/vendor/firmware/q6.b04 \
170            system/vendor/firmware/q6.b05 \
171            system/vendor/firmware/q6.b06 \
172            system/vendor/firmware/q6.mdt \
173            system/vendor/firmware/wcnss.b00 \
174            system/vendor/firmware/wcnss.b01 \
175            system/vendor/firmware/wcnss.b02 \
176            system/vendor/firmware/wcnss.b04 \
177            system/vendor/firmware/wcnss.b05 \
178            system/vendor/firmware/wcnss.mdt \
179            system/vendor/lib/libdrmdecrypt.so \
180            system/vendor/lib/libgeofence.so \
181            system/vendor/lib/libizat_core.so \
182            system/vendor/lib/libloc_api_v02.so \
183            system/vendor/lib/libloc_ds_api.so \
184            "
185    ;;
186