Skip to content

Instantly share code, notes, and snippets.

@xenithorb
Created March 12, 2017 09:38
Show Gist options
  • Save xenithorb/509018440a4d2385b247e37881594243 to your computer and use it in GitHub Desktop.
Save xenithorb/509018440a4d2385b247e37881594243 to your computer and use it in GitHub Desktop.
#!/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