broadcom) TO_EXTRACT="\ system/vendor/firmware/bcm20795_firmware.ncd \ system/vendor/firmware/bcm4354A2.hcd \ system/xbin/wlutil \ " ;; moto) TO_EXTRACT="\ system/bin/adspd \ system/bin/ramdump \ system/bin/tcmd_mini \ system/etc/Bluetooth_cal.acdb \ system/etc/diag/FIT_V12.cfg \ system/etc/diag/mdm/FIT_V12.cfg \ system/etc/diag/mdm/sensors_qxdm.cfg \ system/etc/diag/sensors_qxdm.cfg \ system/etc/firmware/vpu.b00 \ system/etc/firmware/vpu.b01 \ system/etc/firmware/vpu.b02 \ system/etc/firmware/vpu.b03 \ system/etc/firmware/vpu.b04 \ system/etc/firmware/vpu.b05 \ system/etc/firmware/vpu.b06 \ system/etc/firmware/vpu.b07 \ system/etc/firmware/vpu.b08 \ system/etc/firmware/vpu.b09 \ system/etc/firmware/vpu.b10 \ system/etc/firmware/vpu.b11 \ system/etc/firmware/vpu.b12 \ system/etc/firmware/vpu.mbn \ system/etc/firmware/vpu.mdt \ system/etc/General_cal.acdb \ system/etc/Global_cal.acdb \ system/etc/Handset_cal.acdb \ system/etc/Hdmi_cal.acdb \ system/etc/Headset_cal.acdb \ system/etc/permissions/org.simalliance.openmobileapi.xml \ system/etc/Speaker_cal.acdb \ system/framework/org.simalliance.openmobileapi.jar \ system/lib/libadspd-jni.so \ system/lib/libadspd.so \ system/lib/librecoglib.so \ system/lib/libsupermodel.so \ system/vendor/firmware/acdb.mbn \ system/vendor/firmware/atmel-a432-14061601-0102aa-shamu-p1.tdat \ system/vendor/firmware/atmel-a432-14101503-0103aa-shamu.tdat \ system/vendor/firmware/left.boost.music.eq \ system/vendor/firmware/left.boost_music_table.preset \ system/vendor/firmware/left.boost_n1b12.patch \ system/vendor/firmware/left.boost_n1c2.patch \ system/vendor/firmware/left.boost.ringtone.eq \ system/vendor/firmware/left.boost_ringtone_table.preset \ system/vendor/firmware/left.boost.speaker \ system/vendor/firmware/left.boost.voice.eq \ system/vendor/firmware/left.boost_voice_table.preset \ system/vendor/firmware/right.boost.music.eq \ system/vendor/firmware/right.boost_music_table.preset \ system/vendor/firmware/right.boost_n1b12.patch \ system/vendor/firmware/right.boost_n1c2.patch \ system/vendor/firmware/right.boost.ringtone.eq \ system/vendor/firmware/right.boost_ringtone_table.preset \ system/vendor/firmware/right.boost.speaker \ system/vendor/firmware/right.boost.voice.eq \ system/vendor/firmware/right.boost_voice_table.preset \ system/vendor/firmware/VRGain.bin \ system/vendor/lib/libmdmcutback.so \ system/vendor/lib/libmotext_inf.so \ system/vendor/lib/libqmimotext.so \ system/vendor/moto/audiomonitor/sensory/lts_en_us_9_5_2b.raw \ system/vendor/moto/audiomonitor/sensory/nn_de_mfcc_16k_15_big_250_v3_4.raw \ system/vendor/moto/audiomonitor/sensory/nn_en_uk_mfcc_16k_15_big_250_v2_2.raw \ system/vendor/moto/audiomonitor/sensory/nn_en_us_mfcc_16k_15_big_250_v5_1_1.raw \ system/vendor/moto/audiomonitor/sensory/nn_es_es_mfcc_16k_15_big_250_v1_5.raw \ system/vendor/moto/audiomonitor/sensory/nn_es_us_mfcc_16k_15_big_250_v1_5.raw \ system/vendor/moto/audiomonitor/sensory/nn_fr_ca_mfcc_16k_15_big_250_v2_5.raw \ system/vendor/moto/audiomonitor/sensory/nn_fr_fr_mfcc_16k_15_big_250_v2_4.raw \ system/vendor/moto/audiomonitor/sensory/nn_it_mfcc_16k_15_big_250_v3_5.raw \ system/vendor/moto/audiomonitor/sensory/nn_pt_mfcc_16k_15_big_250_v1_1.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_dede_1_1.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_enuk_1_1.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_enus_2_0.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_eses_1_2.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_esus_1_2.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_frca_prec1_1_0.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_frfr_1_1.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_it_it_1_0.raw \ system/vendor/moto/audiomonitor/sensory/phonemesearch_ptbr_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_dede_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_enuk_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_enus_2_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_eses_1_2.raw \ system/vendor/moto/audiomonitor/sensory/svsid_esus_1_2.raw \ system/vendor/moto/audiomonitor/sensory/svsid_frca_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_frfr_1_1.raw \ system/vendor/moto/audiomonitor/sensory/svsid_it_it_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_ptbr_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_triggerogn1_dede_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_triggerogn1_enuk_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_triggerogn1_eses_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_triggerogn1_itit_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_triggerogn_enus_3_1.raw \ system/vendor/moto/audiomonitor/sensory/svsid_triggerogn_frfr_1_0.raw \ system/vendor/moto/audiomonitor/sensory/svsid_triggerogn_ptbr_2_1.raw \ " ;; qcom) TO_EXTRACT="\ system/bin/bridgemgrd \ system/bin/diag_klog \ system/bin/diag_mdlog \ system/bin/diag_qshrink4_daemon \ system/bin/irsc_util \ system/bin/ks \ system/bin/mdm_helper \ system/bin/mm-qcamera-daemon \ system/bin/mpdecision \ system/bin/netmgrd \ system/bin/PktRspTest \ system/bin/port-bridge \ system/bin/qmi-framework-tests/qmi_ping_clnt_test_0000 \ system/bin/qmi-framework-tests/qmi_ping_clnt_test_0001 \ system/bin/qmi-framework-tests/qmi_ping_clnt_test_1000 \ system/bin/qmi-framework-tests/qmi_ping_clnt_test_1001 \ system/bin/qmi-framework-tests/qmi_ping_clnt_test_2000 \ system/bin/qmi-framework-tests/qmi_ping_svc \ system/bin/qmi-framework-tests/qmi_ping_test \ system/bin/qmi-framework-tests/qmi_test_service_clnt_test_0000 \ system/bin/qmi-framework-tests/qmi_test_service_clnt_test_0001 \ system/bin/qmi-framework-tests/qmi_test_service_clnt_test_1000 \ system/bin/qmi-framework-tests/qmi_test_service_clnt_test_1001 \ system/bin/qmi-framework-tests/qmi_test_service_clnt_test_2000 \ system/bin/qmi-framework-tests/qmi_test_service_test \ system/bin/qmi_motext_hook \ system/bin/qmi_simple_ril_test \ system/bin/qmuxd \ system/bin/qseecomd \ system/bin/radish \ system/bin/rundiag \ system/bin/sensors.qcom \ system/bin/test_diag \ system/bin/thermal-engine \ system/bin/time_daemon \ system/bin/usbhub \ system/bin/usbhub_init \ system/etc/firmware/cpp_firmware_v1_1_1.fw \ system/etc/firmware/cpp_firmware_v1_1_6.fw \ system/etc/firmware/cpp_firmware_v1_2_0.fw \ system/etc/firmware/cpp_firmware_v1_6_0.fw \ system/etc/firmware/cpp_firmware_v1_8_0.fw \ system/etc/flp.conf \ system/etc/qmi_fw.conf \ system/etc/sap.conf \ system/etc/sensors/sensor_def_qcomdev.conf \ system/etc/thermal-engine-shamu.conf \ system/lib/hw/audio.primary.msm8084.so \ system/lib/hw/gps.msm8084.so \ system/lib/hw/sound_trigger.primary.shamu.so \ system/lib/libaudioroute.so \ system/lib/libdetectmodem.so \ system/lib/libgps.utils.so \ system/lib/libloc_core.so \ system/lib/libloc_eng.so \ system/lib/libmdmdetect.so \ system/lib/libmm-qcamera.so \ system/lib/librmnetctl.so \ system/lib/libtinycompress.so \ system/lib/soundfx/libqcomvisualizer.so \ system/lib/soundfx/libqcomvoiceprocessing.so \ system/lib/soundfx/libspeakerbundle.so \ system/vendor/bin/gsiff_daemon \ system/vendor/firmware/a420_pfp.fw \ system/vendor/firmware/a420_pm4.fw \ system/vendor/firmware/adsp.b00 \ system/vendor/firmware/adsp.b01 \ system/vendor/firmware/adsp.b02 \ system/vendor/firmware/adsp.b03 \ system/vendor/firmware/adsp.b04 \ system/vendor/firmware/adsp.b05 \ system/vendor/firmware/adsp.b06 \ system/vendor/firmware/adsp.b07 \ system/vendor/firmware/adsp.b08 \ system/vendor/firmware/adsp.b10 \ system/vendor/firmware/adsp.b11 \ system/vendor/firmware/adsp.b12 \ system/vendor/firmware/adsp.mdt \ system/vendor/firmware/aonvr1.bin \ system/vendor/firmware/aonvr2.bin \ system/vendor/firmware/keymaster/keymaster.b00 \ system/vendor/firmware/keymaster/keymaster.b01 \ system/vendor/firmware/keymaster/keymaster.b02 \ system/vendor/firmware/keymaster/keymaster.b03 \ system/vendor/firmware/keymaster/keymaster.mdt \ system/vendor/firmware/venus.b00 \ system/vendor/firmware/venus.b01 \ system/vendor/firmware/venus.b02 \ system/vendor/firmware/venus.b03 \ system/vendor/firmware/venus.b04 \ system/vendor/firmware/venus.mdt \ system/vendor/firmware/widevine.b00 \ system/vendor/firmware/widevine.b01 \ system/vendor/firmware/widevine.b02 \ system/vendor/firmware/widevine.b03 \ system/vendor/firmware/widevine.mdt \ system/vendor/lib/egl/eglsubAndroid.so \ system/vendor/lib/egl/eglSubDriverAndroid.so \ system/vendor/lib/egl/libEGL_adreno.so \ system/vendor/lib/egl/libGLESv1_CM_adreno.so \ system/vendor/lib/egl/libGLESv2_adreno.so \ system/vendor/lib/egl/libq3dtools_adreno.so \ system/vendor/lib/hw/activity_recognition.msm8084.so \ system/vendor/lib/hw/flp.msm8084.so \ system/vendor/lib/hw/sensors.msm8084.so \ system/vendor/lib/libacdbloader.so \ system/vendor/lib/libacdbrtac.so \ system/vendor/lib/libactuator_lc898122_camcorder.so \ system/vendor/lib/libactuator_lc898122_camera.so \ system/vendor/lib/libactuator_lc898122.so \ system/vendor/lib/libadiertac.so \ system/vendor/lib/libadreno_utils.so \ system/vendor/lib/libaudcal.so \ system/vendor/lib/libbccQTI.so \ system/vendor/lib/libC2D2.so \ system/vendor/lib/libc2d30-a3xx.so \ system/vendor/lib/libc2d30-a4xx.so \ system/vendor/lib/libc2d30.so \ system/vendor/lib/libCB.so \ system/vendor/lib/libchromatix_ar0261_common.so \ system/vendor/lib/libchromatix_ar0261_cpp.so \ system/vendor/lib/libchromatix_ar0261_default_video.so \ system/vendor/lib/libchromatix_ar0261_liveshot.so \ system/vendor/lib/libchromatix_ar0261_preview.so \ system/vendor/lib/libchromatix_ar0261_snapshot.so \ system/vendor/lib/libchromatix_imx132_common.so \ system/vendor/lib/libchromatix_imx132_cpp.so \ system/vendor/lib/libchromatix_imx132_default_video.so \ system/vendor/lib/libchromatix_imx132_liveshot.so \ system/vendor/lib/libchromatix_imx132_preview.so \ system/vendor/lib/libchromatix_imx132_snapshot.so \ system/vendor/lib/libchromatix_imx135_common.so \ system/vendor/lib/libchromatix_imx135_cpp.so \ system/vendor/lib/libchromatix_imx135_default_video.so \ system/vendor/lib/libchromatix_imx135_hfr_120.so \ system/vendor/lib/libchromatix_imx135_hfr_60.so \ system/vendor/lib/libchromatix_imx135_hfr_90.so \ system/vendor/lib/libchromatix_imx135_liveshot.so \ system/vendor/lib/libchromatix_imx135_preview.so \ system/vendor/lib/libchromatix_imx135_snapshot.so \ system/vendor/lib/libchromatix_imx135_video_hd.so \ system/vendor/lib/libchromatix_imx214_common.so \ system/vendor/lib/libchromatix_imx214_cpp.so \ system/vendor/lib/libchromatix_imx214_default_video.so \ system/vendor/lib/libchromatix_imx214_hfr_120.so \ system/vendor/lib/libchromatix_imx214_hfr_60.so \ system/vendor/lib/libchromatix_imx214_liveshot.so \ system/vendor/lib/libchromatix_imx214_preview.so \ system/vendor/lib/libchromatix_imx214_snapshot_hdr.so \ system/vendor/lib/libchromatix_imx214_snapshot.so \ system/vendor/lib/libchromatix_imx214_video_hdr.so \ system/vendor/lib/libconfigdb.so \ system/vendor/lib/libcsd-client.so \ system/vendor/lib/libdiag.so \ system/vendor/lib/libdrmdecrypt.so \ system/vendor/lib/libdrmfs.so \ system/vendor/lib/libdrmtime.so \ system/vendor/lib/libdsi_netctrl.so \ system/vendor/lib/libdsutils.so \ system/vendor/lib/libgeofence.so \ system/vendor/lib/libgsl.so \ system/vendor/lib/libidl.so \ system/vendor/lib/libizat_core.so \ system/vendor/lib/libjpegehw.so \ system/vendor/lib/liblbs_core.so \ system/vendor/lib/libllvm-glnext.so \ system/vendor/lib/libllvm-qcom.so \ system/vendor/lib/libloc_api_v02.so \ system/vendor/lib/libloc_ds_api.so \ system/vendor/lib/libmmcamera2_c2d_module.so \ system/vendor/lib/libmmcamera2_cpp_module.so \ system/vendor/lib/libmmcamera2_frame_algorithm.so \ system/vendor/lib/libmmcamera2_iface_modules.so \ system/vendor/lib/libmmcamera2_imglib_modules.so \ system/vendor/lib/libmmcamera2_isp_modules.so \ system/vendor/lib/libmmcamera2_is.so \ system/vendor/lib/libmmcamera2_pproc_modules.so \ system/vendor/lib/libmmcamera2_sensor_modules.so \ system/vendor/lib/libmmcamera2_stats_algorithm.so \ system/vendor/lib/libmmcamera2_stats_modules.so \ system/vendor/lib/libmmcamera2_vpe_module.so \ system/vendor/lib/libmmcamera2_wnr_module.so \ system/vendor/lib/libmmcamera_ar0261_eeprom.so \ system/vendor/lib/libmmcamera_ar0261.so \ system/vendor/lib/libmmcamera_cac2_lib.so \ system/vendor/lib/libmmcamera_faceproc.so \ system/vendor/lib/libmmcamera_imglib.so \ system/vendor/lib/libmmcamera_imx132.so \ system/vendor/lib/libmmcamera_imx135.so \ system/vendor/lib/libmmcamera_imx214.so \ system/vendor/lib/libmmcamera_isp_abf44.so \ system/vendor/lib/libmmcamera_isp_bcc44.so \ system/vendor/lib/libmmcamera_isp_be_stats44.so \ system/vendor/lib/libmmcamera_isp_bf_scale_stats44.so \ system/vendor/lib/libmmcamera_isp_bf_stats44.so \ system/vendor/lib/libmmcamera_isp_bg_stats44.so \ system/vendor/lib/libmmcamera_isp_bhist_stats44.so \ system/vendor/lib/libmmcamera_isp_bpc44.so \ system/vendor/lib/libmmcamera_isp_chroma_enhan40.so \ system/vendor/lib/libmmcamera_isp_chroma_suppress40.so \ system/vendor/lib/libmmcamera_isp_clamp_encoder40.so \ system/vendor/lib/libmmcamera_isp_clamp_video40.so \ system/vendor/lib/libmmcamera_isp_clamp_viewfinder40.so \ system/vendor/lib/libmmcamera_isp_clf44.so \ system/vendor/lib/libmmcamera_isp_clf46.so \ system/vendor/lib/libmmcamera_isp_color_correct40.so \ system/vendor/lib/libmmcamera_isp_color_correct46.so \ system/vendor/lib/libmmcamera_isp_color_xform_encoder40.so \ system/vendor/lib/libmmcamera_isp_color_xform_viewfinder40.so \ system/vendor/lib/libmmcamera_isp_cs_stats44.so \ system/vendor/lib/libmmcamera_isp_demosaic44.so \ system/vendor/lib/libmmcamera_isp_demux40.so \ system/vendor/lib/libmmcamera_isp_fovcrop_encoder40.so \ system/vendor/lib/libmmcamera_isp_fovcrop_encoder46.so \ system/vendor/lib/libmmcamera_isp_fovcrop_video46.so \ system/vendor/lib/libmmcamera_isp_fovcrop_viewfinder40.so \ system/vendor/lib/libmmcamera_isp_fovcrop_viewfinder46.so \ system/vendor/lib/libmmcamera_isp_gamma44.so \ system/vendor/lib/libmmcamera_isp_ihist_stats44.so \ system/vendor/lib/libmmcamera_isp_linearization40.so \ system/vendor/lib/libmmcamera_isp_ltm44.so \ system/vendor/lib/libmmcamera_isp_luma_adaptation40.so \ system/vendor/lib/libmmcamera_isp_mce40.so \ system/vendor/lib/libmmcamera_isp_mesh_rolloff44.so \ system/vendor/lib/libmmcamera_isp_rs_stats44.so \ system/vendor/lib/libmmcamera_isp_scaler_encoder44.so \ system/vendor/lib/libmmcamera_isp_scaler_encoder46.so \ system/vendor/lib/libmmcamera_isp_scaler_video46.so \ system/vendor/lib/libmmcamera_isp_scaler_viewfinder44.so \ system/vendor/lib/libmmcamera_isp_scaler_viewfinder46.so \ system/vendor/lib/libmmcamera_isp_sce40.so \ system/vendor/lib/libmmcamera_isp_sub_module.so \ system/vendor/lib/libmmcamera_isp_wb40.so \ system/vendor/lib/libmmcamera_onsemi_cat24c16_eeprom.so \ system/vendor/lib/libmmcamera_tintless_algo.so \ system/vendor/lib/libmmcamera_tintless_bg_pca_algo.so \ system/vendor/lib/libmmcamera_vpu_module.so \ system/vendor/lib/libmmipl.so \ system/vendor/lib/libmmjpeg.so \ system/vendor/lib/libmmqjpeg_codec.so \ system/vendor/lib/libmmqjpegdma.so \ system/vendor/lib/libnetmgr.so \ system/vendor/lib/liboemcamera.so \ system/vendor/lib/liboemcrypto.so \ system/vendor/lib/libois_lc898122.so \ system/vendor/lib/libqcci_legacy.so \ system/vendor/lib/libqdi.so \ system/vendor/lib/libqdp.so \ system/vendor/lib/libqmi_cci.so \ system/vendor/lib/libqmi_client_qmux.so \ system/vendor/lib/libqmi_common_so.so \ system/vendor/lib/libqmi_csi.so \ system/vendor/lib/libqmi_encdec.so \ system/vendor/lib/libqmiservices.so \ system/vendor/lib/libqmi.so \ system/vendor/lib/libqomx_jpegdec.so \ system/vendor/lib/libqomx_jpegenc.so \ system/vendor/lib/libQSEEComAPI.so \ system/vendor/lib/libril-qc-qmi-1.so \ system/vendor/lib/libril-qcril-hook-oem.so \ system/vendor/lib/librpmb.so \ system/vendor/lib/librs_adreno_sha1.so \ system/vendor/lib/librs_adreno.so \ system/vendor/lib/libRSDriver_adreno.so \ system/vendor/lib/libsensor1.so \ system/vendor/lib/libsensor_reg.so \ system/vendor/lib/libthermalclient.so \ system/vendor/lib/libthermalioctl.so \ system/vendor/lib/libtime_genoff.so \ system/vendor/lib/libTimeService.so \ system/vendor/lib/libxml.so \ " ;;