diff options
Diffstat (limited to 'extract_utils.sh')
-rw-r--r-- | extract_utils.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extract_utils.sh b/extract_utils.sh index 2cc8983..3e85100 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -30,6 +30,7 @@ ARCHES= FULLY_DEODEXED=-1 TMPDIR=$(mktemp -d) +HOST="$(uname | tr '[:upper:]' '[:lower:]')" # # cleanup @@ -102,6 +103,10 @@ function setup_vendor() { VENDOR_STATE=0 VENDOR_RADIO_STATE=0 fi + + if [ -z "$PATCHELF" ]; then + export PATCHELF="$LINEAGE_ROOT"/prebuilts/tools-lineage/${HOST}-x86/bin/patchelf + fi } # Helper functions for parsing a spec. @@ -1249,7 +1254,6 @@ function oat2dex() { local SRC="$3" local TARGET= local OAT= - local HOST="$(uname | tr '[:upper:]' '[:lower:]')" if [ -z "$BAKSMALIJAR" ] || [ -z "$SMALIJAR" ]; then export BAKSMALIJAR="$LINEAGE_ROOT"/prebuilts/tools-lineage/common/smali/baksmali.jar @@ -1264,10 +1268,6 @@ function oat2dex() { export CDEXCONVERTER="$LINEAGE_ROOT"/prebuilts/tools-lineage/${HOST}-x86/bin/compact_dex_converter fi - if [ -z "$PATCHELF" ]; then - export PATCHELF="$LINEAGE_ROOT"/prebuilts/tools-lineage/${HOST}-x86/bin/patchelf - fi - # Extract existing boot.oats to the temp folder if [ -z "$ARCHES" ]; then echo "Checking if system is odexed and locating boot.oats..." |