Created
March 12, 2017 09:38
-
-
Save xenithorb/509018440a4d2385b247e37881594243 to your computer and use it in GitHub Desktop.
Auto-patcher script for https://github.com/Lanchon/haystack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILESET_NAME="${1:?ERROR: First argument (fileset name) not provided}" | |
AND_VERS="7.0" | |
API_VERS="24" | |
patch_list=( | |
"sigspoof-hook-${AND_VERS}" | |
"sigspoof-core" | |
"sigspoof-ui-global-${AND_VERS}" | |
) | |
adb devices | |
adb root | |
./pull-fileset "$FILESET_NAME" | |
for patch in "${patch_list[@]}"; do | |
./patch-fileset "patches/${patch}" "${API_VERS}" "${CONCAT_FILESET_NAME:=${FILESET_NAME%/}}" | |
CONCAT_FILESET_NAME="${CONCAT_FILESET_NAME}__${patch}" | |
done | |
./push-fileset "${CONCAT_FILESET_NAME}" | |
rm -r "${FILESET_NAME:?ERROR: Bad rm variable}"* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment