ctcci: Get xmlpatch command from config

This commit is contained in:
ave 2021-08-22 19:41:58 +03:00
parent 2786de6c73
commit b6f80bbee0
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def xmlpatch(patch_file, workdir, patch_name=""):
print(f"Applying {patch_file}")
subprocess.run(f"java -cp /opt/ctc/tools/xml-patch.jar com.github.dnault.xmlpatch.BatchPatcher --patch {patch_file} --srcdir {workdir}",
subprocess.run(f"{XML_PATCH_BIN} com.github.dnault.xmlpatch.BatchPatcher --patch {patch_file} --srcdir {workdir}",
shell=True, check=True, cwd=workdir)
def patch(patch_file, workdir, patch_name=""):

View File

@ -2,6 +2,7 @@ import os
APKTOOL_BIN = "java -jar /opt/ctc/tools/apktool.jar"
DEX2JAR_BIN = "java -jar /opt/ctc/tools/dex2jar.jar"
XML_PATCH_BIN = "java -cp /opt/ctc/tools/xml-patch.jar"
# APKs must be placed under $DISTOK_FOLDER/android/$PACKAGE_ID-$VERSION_NUMBER.apk
# Example: /home/ave/distok/android/com.discord-909.apk