summaryrefslogtreecommitdiff
path: root/extract-files.sh
diff options
context:
space:
mode:
authorrazorloves <razorloves@gmail.com>2019-02-28 20:17:12 -0600
committerrazorloves <razorloves@gmail.com>2019-03-01 01:17:34 -0600
commit8a6d8bd7d7069cc41ee17125fa647dd4c25d3a5c (patch)
treed8e3e88ab128895bd2836e4ee974458344bb635f /extract-files.sh
parentdca701ba4ccabb4d4531fc9201ecc260688e0469 (diff)
marlin: Setup separate extract scripts for marlin and sailfish
When building the vendor img, there are differences between the 2 so we need to separate them. Change-Id: Ifc608ebea43d0b0326d67c763cb77a9a41967d6e
Diffstat (limited to 'extract-files.sh')
l---------[-rwxr-xr-x]extract-files.sh62
1 files changed, 1 insertions, 61 deletions
diff --git a/extract-files.sh b/extract-files.sh
index 1c81214c..937477d6 100755..120000
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -1,61 +1 @@
-#!/bin/bash
-#
-# Copyright (C) 2017 The LineageOS 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
-
-VENDOR=google
-DEVICE=marlin
-
-# 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/lineage/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"/device-proprietary-files.txt "$SRC"
-extract "$MY_DIR"/device-proprietary-files-vendor.txt "$SRC"
-
-# Don't disable MyVerizonServices app
-sed -i 's|<disabled-until-used-preinstalled-carrier-app package="com.verizon.mips.services" />|<!--disabled-until-used-preinstalled-carrier-app package="com.verizon.mips.services" /-->|g'\
- "$CM_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary/etc/sysconfig/nexus.xml
-
-"$MY_DIR"/setup-makefiles.sh
+marlin/extract-files.sh \ No newline at end of file