[
  {
    "path": ".gitignore",
    "content": ".iml\n.gradle\n.idea\n.DS_Store\nbuild\nlocal\nlocal.properties\ncommit.js\ncommit.sh\ndecompile_*"
  },
  {
    "path": "DecompileApk.iml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module external.linked.project.id=\"DecompileApk\" external.linked.project.path=\"$MODULE_DIR$\" external.root.project.path=\"$MODULE_DIR$\" external.system.id=\"GRADLE\" external.system.module.group=\"\" external.system.module.version=\"unspecified\" type=\"JAVA_MODULE\" version=\"4\">\n  <component name=\"FacetManager\">\n    <facet type=\"java-gradle\" name=\"Java-Gradle\">\n      <configuration>\n        <option name=\"BUILD_FOLDER_PATH\" value=\"$MODULE_DIR$/build\" />\n        <option name=\"BUILDABLE\" value=\"false\" />\n      </configuration>\n    </facet>\n  </component>\n  <component name=\"NewModuleRootManager\" LANGUAGE_LEVEL=\"JDK_1_6\">\n    <output url=\"file://$MODULE_DIR$/out/production/classes\" />\n    <output-test url=\"file://$MODULE_DIR$/out/test/classes\" />\n    <exclude-output />\n    <content url=\"file://$MODULE_DIR$\">\n      <excludeFolder url=\"file://$MODULE_DIR$/.gradle\" />\n    </content>\n    <orderEntry type=\"jdk\" jdkName=\"1.8\" jdkType=\"JavaSDK\" />\n    <orderEntry type=\"sourceFolder\" forTests=\"false\" />\n  </component>\n</module>"
  },
  {
    "path": "README.md",
    "content": "# DecompileApk\r\n\r\ndownload decompileapk.zip and unzip\r\n\r\ndecompileapk.zip：https://github.com/MasonLiuChn/DecompileApk/blob/master/app/doc/decompileapk.zip\r\n\r\n### Feature 1\r\n\r\nit can output dex,jar,smali,xml,AndroidManifest.xml,res,sign,version,packageName.\r\n```java\r\njava -jar decompileapk.jar -apk xx.apk\r\n```\r\n<img src=\"https://raw.githubusercontent.com/MasonLiuChn/DecompileApk/master/app/doc/1.png\" width=\"50%\" height=\"50%\" />\r\n\r\n<img src=\"https://raw.githubusercontent.com/MasonLiuChn/DecompileApk/master/app/doc/2.png\" width=\"20%\" height=\"20%\" />\r\n\r\n### Feature 2\r\nrecreate apk.\r\n```java\r\njava -jar decompileapk.jar -b -out <apktool_output_path>\r\n```\r\n### Feature 3\r\noutput dex method counts.\r\n```java\r\njava -jar decompileapk.jar -c -apk xx.apk\r\n```\r\n\r\n-----\r\n\r\nBlog:http://blog.csdn.net/masonblog\r\n\r\nEmail:MasonLiuChn@gmail.com\r\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'java'\napply plugin: 'kotlin'\n\n/** 执行java工程（方法一）./gradlew run -PappArgs=\"['-h']\"\n **/\next {\n    defMainClassName = \"com.masonliu.decompileapk.Main\"\n}\napply plugin: 'application'\nrun {\n    if (project.hasProperty(\"appArgs\")) {\n        args Eval.me(appArgs)\n    }\n    mainClassName = project.hasProperty(\"mainClass\") ? project.getProperty(\"mainClass\") : project.ext.defMainClassName\n}\ndefaultTasks 'run'\n\n/** 执行java工程（方法二）  ./gradlew runApp -PmainClass=\"com.masonliu.wanfo.xuefo.TestCollector\"\n **/\ntask runApp(type: JavaExec) {\n    classpath = sourceSets.main.runtimeClasspath\n    main = project.hasProperty(\"mainClass\") ? project.getProperty(\"mainClass\") : \"com.masonliu.decompileapk.Main\"\n}\n\n/** 打jar包  ./gradlew jar -PmainClass=\"com.masonliu.decompileapk.Main\"\n *  其他打包方法 链接：https://www.jianshu.com/p/5bb1e87df15f\n 另一种方法：application插件\n apply plugin: 'application'\n mainClassName = appMainClass\n 执行命令gradle build或者./gradlew build，查看build/distributions会有两个压缩文件，压缩文件包含了两个文件夹，bin为启动脚本，lib则是软件jar包和依赖。还可以执行./gradlew installDist生成未压缩文件目录build/install。\n **/\njar {\n    from {\n        //添加依懒到打包文件\n        //configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }\n        configurations.runtime.collect { zipTree(it) }\n    }\n    mainClassName = project.hasProperty(\"mainClass\") ? project.getProperty(\"mainClass\") : project.ext.defMainClassName\n    manifest {\n        attributes 'Main-Class': mainClassName\n    }\n}\n\n/** 执行jar包 ./gradlew runJar -PappArgs=\"['-u', 'myuser', 'some other argument', 'and/a/path']\"\n *  例如：./gradlew runJar -PappArgs=\"['-apk','doc/test.apk']\"\n **/\ntask runJar(type: Exec) {\n    def myArgs = [\"java\", \"-jar\", \"${project.buildDir}/libs/app.jar\"]\n    if (project.hasProperty(\"appArgs\")) {\n        def args = Eval.me(appArgs)\n        myArgs.addAll(args)\n    }\n    commandLine myArgs\n}\n\n\ndependencies {\n    compile fileTree(dir: 'libs', include: ['*.jar'])\n    implementation \"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version\"\n    //compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'\n}\ntasks.withType(JavaCompile) {\n    options.encoding = \"UTF-8\"\n}\nbuildscript {\n    ext.kotlin_version = '1.3.31'\n    repositories {\n        mavenCentral()\n    }\n    dependencies {\n        classpath \"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version\"\n    }\n}\nrepositories {\n    mavenCentral()\n}\ncompileKotlin {\n    kotlinOptions {\n        jvmTarget = \"1.8\"\n    }\n}\ncompileTestKotlin {\n    kotlinOptions {\n        jvmTarget = \"1.8\"\n    }\n}\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/LICENSE.txt",
    "content": "\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/NOTICE.txt",
    "content": "dex2jar - Tools to work with android .dex and java .class files\nCopyright (c) 2009-2014 Panxiaobo\n\ncontributors\n  - Bob Pan <pxb1988#gmail.com>\n  - Enea Stanzani <aeneas.ltr#gmail.com>\n  - t3stwhat <t3stwhat#gmail.com>\n  - paulhooijenga <paulhooijenga#gmail.com>\n  - yyjdelete <yyjdelete#gmail.com>\n  - jcmdev0 <jcmdev0#gmail.com>\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/bin/dex-tools",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  dex-tools start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/..\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"dex-tools\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and DEX_TOOLS_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/lib/ST4-4.0.8.jar:$APP_HOME/lib/org.abego.treelayout.core-1.0.1.jar:$APP_HOME/lib/antlr4-runtime-4.5.jar:$APP_HOME/lib/d2j-smali-2.1-SNAPSHOT.jar:$APP_HOME/lib/dex-writer-2.1-SNAPSHOT.jar:$APP_HOME/lib/antlr-runtime-3.5.2.jar:$APP_HOME/lib/asm-debug-all-5.0.3.jar:$APP_HOME/lib/dex-translator-2.1-SNAPSHOT.jar:$APP_HOME/lib/dex-reader-2.1-SNAPSHOT.jar:$APP_HOME/lib/dx-23.0.0.jar:$APP_HOME/lib/dex-reader-api-2.1-SNAPSHOT.jar:$APP_HOME/lib/antlr4-4.5.jar:$APP_HOME/lib/dex-tools-2.1-SNAPSHOT.jar:$APP_HOME/lib/d2j-jasmin-2.1-SNAPSHOT.jar:$APP_HOME/lib/dex-ir-2.1-SNAPSHOT.jar:$APP_HOME/lib/d2j-base-cmd-2.1-SNAPSHOT.jar:$APP_HOME/lib/antlr-3.5.2.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $DEX_TOOLS_OPTS -classpath \"\\\"$CLASSPATH\\\"\" com.googlecode.dex2jar.tools.BaseCmd \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/bin/dex-tools.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  dex-tools startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%..\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and DEX_TOOLS_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windows variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\lib\\ST4-4.0.8.jar;%APP_HOME%\\lib\\org.abego.treelayout.core-1.0.1.jar;%APP_HOME%\\lib\\antlr4-runtime-4.5.jar;%APP_HOME%\\lib\\d2j-smali-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\dex-writer-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\antlr-runtime-3.5.2.jar;%APP_HOME%\\lib\\asm-debug-all-5.0.3.jar;%APP_HOME%\\lib\\dex-translator-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\dex-reader-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\dx-23.0.0.jar;%APP_HOME%\\lib\\dex-reader-api-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\antlr4-4.5.jar;%APP_HOME%\\lib\\dex-tools-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\d2j-jasmin-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\dex-ir-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\d2j-base-cmd-2.1-SNAPSHOT.jar;%APP_HOME%\\lib\\antlr-3.5.2.jar\n\n@rem Execute dex-tools\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %DEX_TOOLS_OPTS%  -classpath \"%CLASSPATH%\" com.googlecode.dex2jar.tools.BaseCmd %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable DEX_TOOLS_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%DEX_TOOLS_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-apk-sign.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.ApkSign %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-apk-sign.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.ApkSign\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-asm-verify.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.AsmVerify %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-asm-verify.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.AsmVerify\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-baksmali.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.d2j.smali.BaksmaliCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-baksmali.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.d2j.smali.BaksmaliCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-class-version-switch.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.ClassVersionSwitch %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-class-version-switch.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.ClassVersionSwitch\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-decrypt-string.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.DecryptStringCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-decrypt-string.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.DecryptStringCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex-recompute-checksum.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.DexRecomputeChecksum %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex-recompute-checksum.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.DexRecomputeChecksum\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex-weaver.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.DexWeaverCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex-weaver.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.DexWeaverCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex2jar.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.Dex2jarCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex2jar.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.Dex2jarCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex2smali.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.d2j.smali.BaksmaliCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-dex2smali.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.d2j.smali.BaksmaliCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar-access.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.JarAccessCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar-access.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.JarAccessCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar-weaver.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.JarWeaverCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar-weaver.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.JarWeaverCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar2dex.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.Jar2Dex %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar2dex.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.Jar2Dex\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar2jasmin.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.d2j.jasmin.Jar2JasminCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jar2jasmin.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.d2j.jasmin.Jar2JasminCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jasmin2jar.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.d2j.jasmin.Jasmin2JarCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-jasmin2jar.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.d2j.jasmin.Jasmin2JarCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-smali.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.d2j.smali.SmaliCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-smali.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.d2j.smali.SmaliCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-std-apk.bat",
    "content": "@echo off\n\nREM\nREM dex2jar - Tools to work with android .dex and java .class files\nREM Copyright (c) 2009-2013 Panxiaobo\nREM \nREM Licensed under the Apache License, Version 2.0 (the \"License\");\nREM you may not use this file except in compliance with the License.\nREM You may obtain a copy of the License at\nREM \nREM      http://www.apache.org/licenses/LICENSE-2.0\nREM \nREM Unless required by applicable law or agreed to in writing, software\nREM distributed under the License is distributed on an \"AS IS\" BASIS,\nREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nREM See the License for the specific language governing permissions and\nREM limitations under the License.\nREM\n\nREM call d2j_invoke.bat to setup java environment\n@\"%~dp0d2j_invoke.bat\" com.googlecode.dex2jar.tools.StdApkCmd %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j-std-apk.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"com.googlecode.dex2jar.tools.StdApkCmd\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j_invoke.bat",
    "content": "@echo off\nREM better invocation scripts for windows from lanchon, release in public domain. thanks!\nREM https://code.google.com/p/dex2jar/issues/detail?id=192\n\nsetlocal enabledelayedexpansion\n\nset LIB=%~dp0lib\n\nset CP=\nfor %%X in (\"%LIB%\"\\*.jar) do (\n    set CP=!CP!%%X;\n)\n\njava -Xms512m -Xmx1024m -cp \"%CP%\" %*\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/d2j_invoke.sh",
    "content": "#!/bin/sh\n\n#\n# dex2jar - Tools to work with android .dex and java .class files\n# Copyright (c) 2009-2013 Panxiaobo\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n#      http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n# copy from $Tomcat/bin/startup.sh\n# resolve links - $0 may be a softlink\nPRG=\"$0\"\nwhile [ -h \"$PRG\" ] ; do\n  ls=`ls -ld \"$PRG\"`\n  link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n  if expr \"$link\" : '/.*' > /dev/null; then\n    PRG=\"$link\"\n  else\n    PRG=`dirname \"$PRG\"`/\"$link\"\n  fi\ndone\nPRGDIR=`dirname \"$PRG\"`\n#\n\n_classpath=\".\"\nif [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath};`cygpath -w ${k}`\"\n    done\nelse\n    for k in \"$PRGDIR\"/lib/*.jar\n    do\n        _classpath=\"${_classpath}:${k}\"\n    done\nfi\n\njava -Xms512m -Xmx1024m -classpath \"${_classpath}\" \"$@\"\n"
  },
  {
    "path": "app/runLibs/dex-tools-2.1-SNAPSHOT/lib/open-source-license.txt",
    "content": "==== dx-*.jar\nApache 2.0 http://www.apache.org/licenses/LICENSE-2.0.html\n\n\n==== antlr-*.jar\n[The BSD License]\nCopyright (c) 2003-2007, Terence Parr\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n* Redistributions of source code must retain the above copyright\n  notice, this list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright\n  notice, this list of conditions and the following disclaimer in\n  the documentation and/or other materials provided with the\n  distribution.\n* Neither the name of the author nor the names of its contributors\n  may be used to endorse or promote products derived from this\n  software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\nFOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\nCOPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\nANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n\n\n==== asm-*.jar\n\n ASM: a very small and fast Java bytecode manipulation framework\n Copyright (c) 2000-2005 INRIA, France Telecom\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n 3. Neither the name of the copyright holders nor the names of its\n    contributors may be used to endorse or promote products derived from\n    this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\n THE POSSIBILITY OF SUCH DAMAGE.\n\n"
  },
  {
    "path": "app/runLibs/jd-ui.cfg",
    "content": "[Manifest]\nVersion=2\n[GUI]\nMainWindowPosition=229,233 1053x717\n[RecentFiles]\nPath0=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\build\\\\output\\\\decompile_1560837967624\\\\classes_dex2jar.jar\nPath1=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\decompile_1560417853633\\\\classes_dex2jar.jar\nPath2=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\build_decompile_1560417770280\\\\classes_dex2jar.jar\nPath3=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\decompile1560417427517\\\\classes_dex2jar.jar\nPath4=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\decompile1560417284860\\\\classes_dex2jar.jar\nPath5=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\decompile1560416939352\\\\classes_dex2jar.jar\nPath6=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\build\\\\output\\\\decompile1560416510138\\\\classes_dex2jar.jar\nPath7=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\build\\\\output\\\\decompile1560415873548\\\\classes_dex2jar.jar\nPath8=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\build\\\\output\\\\decompile1560415315376\\\\classes_dex2jar.jar\nPath9=D:\\\\Project\\\\AS_MY\\\\DecompileApk\\\\app\\\\build\\\\output\\\\decompile1560415265442\\\\classes_dex2jar.jar\n"
  },
  {
    "path": "app/src/main/java/com/masonliu/decompileapk/Main.java",
    "content": "package com.masonliu.decompileapk;\n\n\nimport com.masonliu.decompileapk.util.FileUtil;\nimport com.masonliu.decompileapk.util.MyRuntime;\nimport com.masonliu.decompileapk.util.StringUtil;\nimport com.masonliu.decompileapk.util.ZipUtil;\n\nimport java.io.File;\n\n/**\n * 混淆：\n * !shrink\n * !warning\n * !optimize\n * !com.mason.**\n * keep attribute annotation\n *\n * @author liumeng\n */\npublic class Main {\n\n    public static void main(String[] args) {\n        String runtimeDir = System.getProperty(\"user.dir\");\n        System.out.println(\"user.dir（当前命令行所在目录）: \" + runtimeDir);\n        String jarParentPath = \"\";\n        if (runInJar()) {\n            jarParentPath = jarParentPath();\n        } else {\n            jarParentPath = runtimeDir;\n        }\n        System.out.println(\"user.dir（当前class或jar所在目录）: \" + jarParentPath);\n\n        String apkPath = runtimeDir + \"/doc/test.apk\";\n        String outPath = runtimeDir + \"/build/output\";\n        boolean isLog = true;\n        boolean isBuild = false;\n        boolean isCount = false;\n\n        if (runInJar()) {\n            MyJCommander jct = new MyJCommander(args);\n            apkPath = jct.getApkPath();\n            outPath = jct.getOutPath();\n            isLog = jct.debug;\n            isBuild = jct.build;\n            isCount = jct.count;\n        }\n\n        MyRuntime myRuntime = MyRuntime.getMyRuntime();\n        myRuntime.changeDir(jarParentPath + \"/runLibs/\");\n        myRuntime.isLog = isLog;\n        System.out.println(\"********************************************************\");\n        System.out.println(\"Processing...\");\n\n        if (isBuild) {\n            recreateApk(myRuntime, outPath);\n        } else if (isCount) {\n            countMethodApk(myRuntime, apkPath);\n        } else {\n            decompileApk(myRuntime, apkPath, outPath);\n        }\n\n        System.out.println(\"Done!\");\n        System.out.println(\"********************************************************\");\n    }\n\n    public static void recreateApk(MyRuntime myRuntime, String apktoolOutput) {\n        System.out.println(\"Recreate apk...\");\n        //重新打包\n        myRuntime.exec(\"java -jar apktool_2.0.0.3.jar b -f \" + apktoolOutput);\n        System.out.println(\"Find apk in \" + apktoolOutput + \"/dist/\");\n        System.out.println(\"The apk has no sign and no zipalign,please run 'jarsigner' and 'zipalign'.\");\n    }\n\n    public static void countMethodApk(MyRuntime myRuntime, String apktoolOutput) {\n        myRuntime.isLog = true;\n        myRuntime.exec(\"java -jar dex-method-counts.jar \" + apktoolOutput);\n        myRuntime.isLog = false;\n    }\n\n    public static void decompileApk(MyRuntime myRuntime, String apkPath, String outPath) {\n        outPath = outPath + \"/decompile_\" + System.currentTimeMillis();\n        try {\n            FileUtil.copy(apkPath, outPath + \"/tem.apk\");\n            //使用apktool反编译可以得到smali和反编译后的xml\n            myRuntime.exec(\"java -jar apktool_2.3.4.jar d \" + outPath + \"/tem.apk\" + \" -f -o \" + outPath + \"/apktool_output\");\n            //apk直接转成jar\n            if (MyRuntime.isWindowsOS()) {\n                myRuntime.exec(myRuntime.pb.directory().getAbsolutePath() + \"/dex-tools-2.1-SNAPSHOT/d2j-dex2jar.bat -f -o \" + outPath + \"/classes_dex2jar.jar \" + outPath + \"/tem.apk\");\n            } else {\n                myRuntime.exec(myRuntime.pb.directory().getAbsolutePath() + \"/dex-tools-2.1-SNAPSHOT/d2j-dex2jar.sh -f -o \" + outPath + \"/classes_dex2jar.jar \" + outPath + \"/tem.apk\");\n            }\n            //检测签名\n            String signerLog = myRuntime.exec(\"java -jar apksigner_xyc000.jar verify -v --print-certs \" + outPath + \"/tem.apk\");\n            StringUtil.string2File(signerLog, outPath + \"/signlog.txt\");\n            //unzip、反编译AndroidManifest（apktool反编译的不靠谱） 把 dex 和 AndroidManifest.xml copy到外边\n            ZipUtil.UnZip(new File(outPath + \"/tem.apk\"), outPath + \"/apkunzip\");\n            String trueAndroidManifest = myRuntime.exec(\"java -jar axmlprinter-0.1.7.jar \" + outPath + \"/apkunzip/AndroidManifest.xml\");\n            StringUtil.string2File(trueAndroidManifest, outPath + \"/AndroidManifest.xml\");\n            FileUtil.copy(outPath + \"/apkunzip/classes.dex\", outPath + \"/apktool_output/classes.dex\");\n            FileUtil.delete(outPath + \"/apkunzip\");\n            //查看结果\n            Result.handleResult(new String[]{outPath + \"/AndroidManifest.xml\", outPath + \"/signlog.txt\"});\n            //删除签名信息临时文件\n            FileUtil.delete(outPath + \"/signlog.txt\");\n            //调用jd-ui\n            if (MyRuntime.isWindowsOS()) {\n                myRuntime.exec(myRuntime.pb.directory().getAbsolutePath() + \"/jd-ui.exe \" + outPath + \"/classes_dex2jar.jar\");\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    private static boolean runInJar() {\n        return !System.getProperty(\"java.class.path\").contains(\";\");\n    }\n\n    private static String jarParentPath() {\n        return new File(System.getProperty(\"java.class.path\")).getParentFile().getAbsolutePath();\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/masonliu/decompileapk/MyJCommander.java",
    "content": "package com.masonliu.decompileapk;\n\nimport com.beust.jcommander.JCommander;\nimport com.beust.jcommander.Parameter;\nimport com.masonliu.decompileapk.util.StringUtil;\n\nimport java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MyJCommander {\n\n    @Parameter\n    public List<String> parameters = new ArrayList<String>();\n    @Parameter(names = {\"-v\", \"-debug\", \"-verbose\"}, description = \"Debug mode\")\n    public boolean debug;\n    @Parameter(names = {\"-h\", \"--h\", \"-help\", \"--help\"}, description = \"help\")\n    public boolean help;\n    @Parameter(names = {\"-b\"}, description = \"recreate apk\")\n    public boolean build;\n    @Parameter(names = {\"-c\"}, description = \"method counts\")\n    public boolean count;\n    @Parameter(names = {\"-apk\"}, description = \"apk path\")\n    private String apkPath;\n    @Parameter(names = {\"-out\"}, description = \"out path or apktool_output_path\")\n    private String outPath;\n\n    public MyJCommander(String args[]) {\n        JCommander jc = new JCommander(this, args);\n        if (this.help) {\n            StringBuffer sb = new StringBuffer();\n            sb.append(\"\\n\");\n            sb.append(\"********************************************************\\n\");\n            sb.append(\"DecompileApk\\n\");\n            sb.append(\"DecompileApk_v2 a tool for decompiling Android apk files\\n\");\n            sb.append(\"Copyright 2014 Mason Liu <masonliuchn@gmail.com>\\n\");\n            sb.append(\"********************************************************\\n\");\n            jc.setProgramName(sb.toString());\n            jc.usage();\n        }\n\n//        if (parameters.size() > 0) {\n//            apkpath = parameters.get(0);\n//            apkpath = new File(apkpath).getAbsolutePath();\n//        } else {\n//            System.exit(0);\n//        }\n//\n//        if (parameters.size() > 1) {\n//            output = parameters.get(1);\n//        }\n//        if (StringUtil.isBlank(output)) {\n//            output = System.getProperty(\"user.dir\");\n//        }\n//        output = new File(output).getAbsolutePath();\n    }\n\n    public String getApkPath() {\n        if (StringUtil.isBlank(apkPath)) {\n            System.exit(0);\n        }\n        //new File会自动拼接当前命令行目录\n        return new File(apkPath).getAbsolutePath();\n    }\n\n    public String getOutPath() {\n        if (StringUtil.isBlank(outPath)) {\n            outPath = System.getProperty(\"user.dir\");\n        }\n        //new File会自动拼接当前命令行目录\n        return new File(outPath).getAbsolutePath();\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/masonliu/decompileapk/Result.java",
    "content": "package com.masonliu.decompileapk;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.StringWriter;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\n\npublic class Result {\n\n    public static void handleResult(String[] args) {\n        File file = new File(args[0]);\n        String a = file2String(file, \"UTF-8\");\n        System.out.println(pattern(\"android:versionCode=\\\"\\\\d*\\\"\", a));\n        System.out.println(pattern(\"android:versionName=\\\"[\\\\S^\\\"]*\\\"\", a));\n        System.out.println(pattern(\"package=\\\"[\\\\S^\\\"]*\\\"\", a));\n\n        File file2 = new File(args[1]);\n        if (file2 == null) {\n            System.out.println(\"check sign failed！\");\n        } else {\n            String d = file2String(file2, \"UTF-8\");\n            System.out.println(d);\n        }\n    }\n\n    private static String pattern(String b, String a) {\n        Pattern p2 = Pattern.compile(b);\n        Matcher m2 = p2.matcher(a);\n        while (m2.find()) {\n            String s0 = m2.group();\n            return s0;\n        }\n        return \"\";\n    }\n\n    public static String file2String(File file, String encoding) {\n        InputStreamReader reader = null;\n        StringWriter writer = new StringWriter();\n        try {\n            if (encoding == null || \"\".equals(encoding.trim())) {\n                reader = new InputStreamReader(new FileInputStream(file), encoding);\n            } else {\n                reader = new InputStreamReader(new FileInputStream(file));\n            }\n            char[] buffer = new char[2048];\n            int n = 0;\n            while (-1 != (n = reader.read(buffer))) {\n                writer.write(buffer, 0, n);\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n            return null;\n        } finally {\n            if (reader != null)\n                try {\n                    reader.close();\n                } catch (IOException e) {\n                    e.printStackTrace();\n                }\n        }\n        if (writer != null)\n            return writer.toString();\n        else return null;\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/com/masonliu/decompileapk/util/FileUtil.java",
    "content": "package com.masonliu.decompileapk.util;\n\nimport java.io.BufferedInputStream;\nimport java.io.BufferedOutputStream;\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileFilter;\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.FilenameFilter;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.PrintWriter;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\n/**\n * @author liumeng 新建文件、复制文件、文本文件字符集转换、查找指定字符串\n */\npublic class FileUtil {\n    private static List<String> allDoc;\n    private static Map<String, List<String>> allDocs = new HashMap<>();\n\n    public static boolean createNewDoc(String targetDocPath) {\n        File targetDocFile = new File(targetDocPath);\n        targetDocFile.delete();\n        try {\n            targetDocFile.createNewFile();\n        } catch (Exception e) {\n            try {\n                targetDocFile.getParentFile().mkdirs();\n                return targetDocFile.createNewFile();\n            } catch (Exception e1) {\n                e1.printStackTrace();\n            }\n        }\n        return false;\n    }\n\n    public static boolean createNewDir(String targetDirPath) {\n        File targetDirFile = new File(targetDirPath);\n        targetDirFile.delete();\n        return targetDirFile.mkdirs();\n    }\n\n    public static boolean rename(String source, String name) {\n        File sourceFile = new File(source);\n        String target = sourceFile.getParentFile().getAbsolutePath() + File.separator + name;\n        if (source.equals(target)) {\n            return false;\n        }\n        return move(source, target);\n    }\n\n    private static boolean copyFile(String sourceDocPath, String targetDocPath) {\n        File sourceDocFile = new File(sourceDocPath);\n        File targetDocFile = new File(targetDocPath);\n\n        if (!sourceDocFile.exists() || sourceDocFile.isDirectory())\n            return false;\n\n        FileUtil.createNewDoc(targetDocPath);\n\n        try {\n            // 新建文件输入流并对它进行缓冲\n            FileInputStream input = new FileInputStream(sourceDocFile);\n            BufferedInputStream inBuff = new BufferedInputStream(input);\n\n            // 新建文件输出流并对它进行缓冲\n            FileOutputStream output = new FileOutputStream(targetDocFile);\n            BufferedOutputStream outBuff = new BufferedOutputStream(output);\n\n            // 缓冲数组\n            byte[] b = new byte[1024 * 5];\n            int len;\n            while ((len = inBuff.read(b)) != -1) {\n                outBuff.write(b, 0, len);\n            }\n\n            // 刷新此缓冲的输出流\n            outBuff.flush();\n\n            // 关闭流\n            input.close();\n            inBuff.close();\n            output.close();\n            outBuff.close();\n            return true;\n        } catch (Exception e) {\n            return false;\n        }\n    }\n\n    private static boolean copyDirectiory(String sourceDirPath, String targetDirPath) {\n        File sourceDirFile = new File(sourceDirPath);\n\n        if (!sourceDirFile.exists())\n            return false;\n\n        FileUtil.delete(targetDirPath);\n\n        File[] files = sourceDirFile.listFiles();\n\n        if (files.length > 0) {\n            for (int i = 0; i < files.length; i++) {\n                if (files[i].isFile()) {\n                    String targetFilePath = targetDirPath + File.separator + files[i].getName();\n                    copyFile(files[i].getAbsolutePath(), targetFilePath);\n                } else {\n                    String dir1 = sourceDirPath + File.separator + files[i].getName();\n                    String dir2 = targetDirPath + File.separator + files[i].getName();\n                    copyDirectiory(dir1, dir2);\n                }\n            }\n        } else {\n            FileUtil.createNewDir(targetDirPath);\n        }\n\n\n        return true;\n    }\n\n    public static boolean copy(String source, String target) {\n        File sourceFile = new File(source);\n        if (!sourceFile.exists())\n            return false;\n\n        if (sourceFile.isDirectory()) {\n            return copyDirectiory(source, target);\n        } else {\n            return copyFile(source, target);\n        }\n    }\n\n    public static boolean delete(String source) {\n        File sourceFile = new File(source);\n        if (sourceFile.isDirectory()) {\n            for (File f : sourceFile.listFiles()) {\n                delete(f.getAbsolutePath());\n            }\n        }\n        return sourceFile.delete();\n    }\n\n    public static String findFile(String source, String fileName, boolean cache) {\n        if (allDocs.containsKey(source)) {\n            allDoc = allDocs.get(source);\n        } else {\n            allDoc = new ArrayList<>();\n            allDocs.put(source, allDoc);\n        }\n        if (!cache || allDoc.size() == 0) {\n            allDoc.clear();\n            findAllFile(allDoc, source);\n        }\n        for (String url : allDoc) {\n            if (url.endsWith(\"/\" + fileName)) {\n                return url;\n            }\n            String tmp = \"/\" + fileName + \"/\";\n            if (url.contains(tmp)) {\n                return url.split(tmp)[0] + tmp;\n            }\n        }\n        return null;\n    }\n\n    public static void findAllFile(List<String> allDoc, String source) {\n        File sourceFile = new File(source);\n        if (sourceFile.isDirectory()) {\n            for (File f : sourceFile.listFiles()) {\n                findAllFile(allDoc, f.getAbsolutePath());\n            }\n        } else {\n            allDoc.add(sourceFile.getAbsolutePath());\n        }\n    }\n\n    public static boolean move(String source, String target) {\n        File sourceFile = new File(source);\n        if (!sourceFile.exists() || new File(source).getAbsolutePath().equals(new File(target).getAbsolutePath()))\n            return false;\n\n        return copy(source, target) && delete(source);\n\n    }\n\n    public static String getDocFromDir(String sourceDir, String prefix) {\n        File sourceDirFile = new File(sourceDir);\n        FilenameFilter filter = new FilenameFilter() {\n            @Override\n            public boolean accept(File dir, String name) {\n                if (name.startsWith(prefix)) {\n                    return true;\n                }\n                return false;\n            }\n        };\n        return sourceDirFile.listFiles(filter)[0].getAbsolutePath();\n    }\n\n    // 字符集转换问题\n    public static void convert(File file, final String posfix,\n                               String oldEncoding, String newEncoding) {\n        File[] fileName = file.listFiles(new FileFilter() {\n            public boolean accept(File pathname) {\n                if (pathname.isDirectory()) {\n                    return true;\n                }\n                if (pathname.getName().endsWith(posfix)) {\n                    return true;\n                }\n                return false;\n            }\n        });\n\n        for (File ff : fileName) {\n            if (ff.isDirectory()) {\n                convert(ff, posfix, oldEncoding, newEncoding);\n            } else {\n                // File source = new File(ff.getParentFile().getAbsoluteFile() +\n                // \"1.txt\");\n                File temp = new File(ff.getAbsolutePath() + \".temp\");\n                createNewDir(temp.getAbsolutePath());\n                fileIO(ff, getCharset(ff), temp, newEncoding);\n                ff.delete();\n                fileIO(temp, newEncoding, ff, newEncoding);\n                temp.delete();\n\n            }\n        }\n    }\n\n    public static void fileIO(File ff, String oldEncoding, File temp,\n                              String newEncoding) {\n        FileInputStream fis = null;\n        FileOutputStream fos = null;\n        InputStreamReader isr = null;\n        OutputStreamWriter osw = null;\n        BufferedReader br = null;\n        BufferedWriter bw = null;\n\n        try {\n            fis = new FileInputStream(ff);\n            isr = new InputStreamReader(fis, oldEncoding);\n            br = new BufferedReader(isr);\n\n            fos = new FileOutputStream(temp);\n            osw = new OutputStreamWriter(fos, newEncoding);\n            PrintWriter pw = new PrintWriter(osw);\n\n            String str = null;\n            while ((str = br.readLine()) != null) {\n\n                // String s=null;\n                // if (str != null) {\n                // //用默认字符编码解码字符串。\n                // byte[] bs = str.getBytes(oldEncoding);\n                // //用新的字符编码生成字符串\n                // s= new String(bs, newEncoding);\n                // }\n\n                pw.println(str);\n            }\n        } catch (IOException e) {\n            e.printStackTrace();\n        } finally {\n            if (br != null)\n                try {\n                    br.close();\n                } catch (IOException e) {\n                }\n            if (bw != null)\n                try {\n                    bw.close();\n                } catch (IOException e) {\n                }\n            if (osw != null)\n                try {\n                    osw.close();\n                } catch (IOException e) {\n                }\n            if (isr != null)\n                try {\n                    isr.close();\n                } catch (IOException e) {\n                }\n            if (fos != null)\n                try {\n                    fos.close();\n                } catch (IOException e) {\n                }\n            if (fis != null)\n                try {\n                    fis.close();\n                } catch (IOException e) {\n                }\n        }\n    }\n\n    public static String getCharset(File file) {\n        String charset = \"GBK\";\n        byte[] first3Bytes = new byte[3];\n        try {\n            boolean checked = false;\n            BufferedInputStream bis = new BufferedInputStream(\n                    new FileInputStream(file));\n            bis.mark(0);\n            int read = bis.read(first3Bytes, 0, 3);\n            if (read == -1)\n                return charset;\n            if (first3Bytes[0] == (byte) 0xFF && first3Bytes[1] == (byte) 0xFE) {\n                charset = \"UTF-16LE\";\n                checked = true;\n            } else if (first3Bytes[0] == (byte) 0xFE\n                    && first3Bytes[1] == (byte) 0xFF) {\n                charset = \"UTF-16BE\";\n                checked = true;\n            } else if (first3Bytes[0] == (byte) 0xEF\n                    && first3Bytes[1] == (byte) 0xBB\n                    && first3Bytes[2] == (byte) 0xBF) {\n                charset = \"UTF-8\";\n                checked = true;\n            }\n            bis.reset();\n            if (!checked) {\n                int loc = 0;\n                while ((read = bis.read()) != -1) {\n                    loc++;\n                    if (read >= 0xF0)\n                        break;\n                    // 单独出现BF以下的，也算是GBK\n                    if (0x80 <= read && read <= 0xBF)\n                        break;\n                    if (0xC0 <= read && read <= 0xDF) {\n                        read = bis.read();\n                        if (0x80 <= read && read <= 0xBF)// 双字节 (0xC0 - 0xDF)\n                            // (0x80 -\n                            // 0xBF),也可能在GB编码内\n                            continue;\n                        else\n                            break;\n                        // 也有可能出错，但是几率较小\n                    } else if (0xE0 <= read && read <= 0xEF) {\n                        read = bis.read();\n                        if (0x80 <= read && read <= 0xBF) {\n                            read = bis.read();\n                            if (0x80 <= read && read <= 0xBF) {\n                                charset = \"UTF-8\";\n                                break;\n                            } else\n                                break;\n                        } else\n                            break;\n                    }\n                }\n            }\n            bis.close();\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n        return charset;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/masonliu/decompileapk/util/MyRuntime.java",
    "content": "package com.masonliu.decompileapk.util;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.InputStreamReader;\n\npublic class MyRuntime {\n    public static MyRuntime myRuntime;\n    public static boolean isLog = true;\n    public ProcessBuilder pb;\n\n\n    public MyRuntime() {\n        pb = new ProcessBuilder();\n    }\n\n    public static MyRuntime getMyRuntime() {\n        if (myRuntime == null) {\n            myRuntime = new MyRuntime();\n        }\n        return myRuntime;\n    }\n\n    public static boolean isWindowsOS() {\n        String osName = System.getProperty(\"os.name\");\n        if (osName.toLowerCase().contains(\"win\")) {\n            return true;\n        }\n        return false;\n    }\n\n    public String exec(String command) {\n        log(\"--------\" + command + \"--------\");\n        String[] commands = command.split(\" \");\n        for (int i = 0; i < commands.length; i++) {\n            commands[i] = commands[i].replace(\"&nbsp;\", \" \");\n            if (commands[i].startsWith(\"\\\"\") || commands[i].startsWith(\"'\")) {\n                commands[i] = commands[i].substring(1);\n            }\n            if (commands[i].endsWith(\"\\\"\") || commands[i].endsWith(\"'\")) {\n                commands[i] = commands[i].substring(0, commands[i].length() - 1);\n            }\n        }\n        String result = \"\";\n        try {\n            Process process = pb.redirectErrorStream(true).command(commands).start();\n\n//            new Thread(new Runnable() {\n//                @Override\n//                public void run() {\n//                    try {\n//                        BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));\n//                        String line;\n//                        while ((line = in.readLine()) != null) {\n//                            log(line);\n//                        }\n//                        in.close();\n//                    }catch (Exception e){\n//                        e.printStackTrace();\n//                    }\n//\n//                }\n//            }).start();\n//            //http://caiguangguang.blog.51cto.com/1652935/1352708\n\n            BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));\n            String line;\n            while ((line = in.readLine()) != null) {\n                log(line);\n                result = result + line + \"\\n\";\n            }\n            in.close();\n\n//            process.waitFor();\n            log(\"################################\");\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n        return result;\n    }\n\n    public void changeDir(String path) {\n        pb.directory(new File(path));\n    }\n\n    public void log(String log) {\n        if (isLog)\n            System.out.println(log);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/masonliu/decompileapk/util/StringUtil.java",
    "content": "package com.masonliu.decompileapk.util;\n\n\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.StringReader;\nimport java.io.StringWriter;\nimport java.security.MessageDigest;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class StringUtil {\n    /**\n     * 追加文件：使用FileWriter\n     *\n     * @param fileName\n     * @param content\n     */\n    public static void string2fileAdd(String fileName, String content) {\n        string2fileAdd(fileName, content, \"UTF-8\");\n    }\n\n    public static void string2fileAdd(String fileName, String content, String encode) {\n        BufferedWriter writer = null;\n        try {\n            // 打开一个写文件器，构造函数中的第二个参数true表示以追加形式写文件\n            writer =\n                    new BufferedWriter(\n                            new OutputStreamWriter(\n                                    new FileOutputStream(fileName, true), encode));\n            writer.write(content + \"\\n\");\n        } catch (Exception e) {\n            e.printStackTrace();\n        } finally {\n            try {\n                writer.close();\n            } catch (Exception e) {\n                e.printStackTrace();\n            }\n        }\n    }\n\n    /**\n     * 是否有中文\n     *\n     * @param c\n     * @return\n     */\n    public static boolean hasChinese(String c) {\n        for (int i = 0; i < c.length(); i++) {\n            int b = c.charAt(i);\n            if (b >= 0x4E00 && b <= 0x9FA5) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    public static boolean hasChinese2(String c) {\n        Pattern p = Pattern.compile(\"[\\u4e00-\\u9fa5]\");\n        Matcher m = p.matcher(c);\n        if (m.find()) {\n            return true;\n        }\n        return false;\n    }\n\n\n    /**\n     * 基本功能：过滤所有以\"<\"开头以\">\"结尾的标签\n     * <p/>\n     *\n     * @param str\n     * @return String\n     */\n    public static String filterHtml(String str) {\n        if (StringUtil.isBlank(str))\n            return str;\n        Pattern pattern = Pattern.compile(\"<([^>]*)>\");\n        Matcher matcher = pattern.matcher(str);\n        StringBuffer sb = new StringBuffer();\n        boolean result1 = matcher.find();\n        while (result1) {\n            matcher.appendReplacement(sb, \"\");\n            result1 = matcher.find();\n        }\n        matcher.appendTail(sb);\n\n        return sb.toString().replaceAll(\" \\\\n *\", \"\").replace(\"&ldquo;\", \" \")\n                .replace(\"&rdquo;\", \" \");\n    }\n\n    /**\n     * 去除字符串首尾的空白字符\n     *\n     * @param str\n     * @return\n     */\n    public static String trim(String str) {\n        if (str == null || str.length() == 0) {\n            return str;\n        }\n        return str.trim();\n    }\n\n    /**\n     * 去除文字中的空白字符\n     *\n     * @param str\n     * @return\n     */\n    public static String removeSpace(String str) {\n        if (str == null || str.length() == 0) {\n            return str;\n        }\n        return str.trim().replaceAll(\"\\\\s\", \"\");\n    }\n\n    public static boolean isNotBlank(String str) {\n        return !isBlank(str);\n    }\n\n    public static boolean isBlank(String str) {\n        return str == null || str.length() == 0;\n    }\n\n    public static String MD5(String str) {\n        try {\n            MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n            messageDigest.update(str.getBytes());\n            return toHex(messageDigest.digest()).substring(8, 24);\n            // 下边是替换移位处理\n            // if(s!=null){\n            // char[] a=s.toCharArray();\n            // char[] b=new char[a.length];\n            // a[4]='s';\n            // a[9]='t';\n            // a[24]='y';\n            // for(int i=0;i<a.length;i++)\n            // {\n            // b[i]=a[(i+8)%s.length()];\n            // }\n            // return new String (b);\n            // }else{\n            // return null;\n            // }\n        } catch (Exception e) {\n        }\n\n        return \"\";\n    }\n\n    private static String toHex(byte[] buffer) {\n        StringBuffer sb = new StringBuffer(buffer.length * 2);\n        for (int i = 0; i < buffer.length; i++) {\n            sb.append(Character.forDigit((buffer[i] & 240) >> 4, 16));\n            sb.append(Character.forDigit(buffer[i] & 15, 16));\n        }\n        return sb.toString();\n    }\n\n    /**\n     * web连接正则\n     *\n     * @return\n     */\n    public static Pattern getWebPattern() {\n        Pattern webpattern = Pattern\n                .compile(\"http[s]*://[[[^/:]&&[a-zA-Z_0-9]]\\\\.]+(:\\\\d+)?(/[a-zA-Z_0-9]+)*(/[a-zA-Z_0-9]*([a-zA-Z_0-9]+\\\\.[a-zA-Z_0-9]+)*)?(\\\\?(&?[a-zA-Z_0-9]+=[%[a-zA-Z_0-9]-]*)*)*(#[[a-zA-Z_0-9]|-]+)?\");\n        return webpattern;\n    }\n\n    /**\n     * web连接正则\n     *\n     * @return\n     */\n    public static Pattern getMobilePattern() {\n        Pattern pattern = Pattern.compile(\"^1\\\\d{10}$\");\n        return pattern;\n    }\n\n    /**\n     * \".\"匹配除line terminator以外的所有字符(未指定DOTALL时) 在指定DOTAll模式时\".\"匹配所有字符\n     *\n     * @(POST|GET).*?\\\\) ? 用于指定最小匹配\n     */\n    public static String getPatternStr(String ori, String pat, int a, int b) {\n        if (StringUtil.isBlank(ori))\n            return null;\n        Pattern atPeoplePtn = Pattern.compile(pat, Pattern.DOTALL);\n        Matcher matcher = atPeoplePtn.matcher(ori);\n        while (matcher.find()) {\n            int i = matcher.start();\n            int j = matcher.end();\n            String id = ori.substring(i + a, j - b);\n            return id;\n        }\n        return null;\n    }\n\n    public static List<String> getPatternStrs(String ori, String pat, int a, int b) {\n        if (StringUtil.isBlank(ori))\n            return null;\n        List<String> s = new ArrayList<>();\n        Pattern atPeoplePtn = Pattern.compile(pat, Pattern.DOTALL);\n        Matcher matcher = atPeoplePtn.matcher(ori);\n        while (matcher.find()) {\n            int i = matcher.start();\n            int j = matcher.end();\n            String id = ori.substring(i + a, j - b);\n            s.add(id);\n        }\n        return s;\n    }\n\n    /**\n     * 并取出前5\n     *\n     * @param ori\n     * @param pat\n     * @return\n     */\n    public static List<String> getPatternStrsInternational(String ori, String pat) {\n        if (StringUtil.isBlank(ori))\n            return null;\n        List<String> s = new ArrayList<String>();\n        Pattern atPeoplePtn = Pattern.compile(pat);\n        Matcher matcher = atPeoplePtn.matcher(ori);\n        while (matcher.find()) {\n            int i = matcher.start();\n            int j = matcher.end();\n            String id;\n            try {\n                //-6 或者 -5 的目的是  为了显示  L.i 这种log情况\n                id = ori.substring(i - 6, j);\n\n            } catch (Exception e) {\n                try {\n                    id = ori.substring(i - 5, j);\n                } catch (Exception e2) {\n                    id = ori.substring(i, j);\n                }\n            }\n            s.add(id);\n        }\n        return s;\n    }\n\n    /**\n     * 将字符串写入指定文件(当指定的父路径中文件夹不存在时，会最大限度去创建，以保证保存成功！)\n     *\n     * @param res      原字符串\n     * @param filePath 文件路径\n     * @return 成功标记\n     */\n    public static boolean string2File(String res, String filePath) {\n        boolean flag = true;\n        BufferedReader bufferedReader = null;\n        BufferedWriter bufferedWriter = null;\n        try {\n            File distFile = new File(filePath);\n            if (!distFile.getParentFile().exists()) {\n                distFile.getParentFile().mkdirs();\n            }\n            bufferedReader = new BufferedReader(new StringReader(res));\n            // bufferedWriter = new BufferedWriter(new FileWriter(distFile));\n            FileOutputStream writerStream = new FileOutputStream(filePath);\n            bufferedWriter = new BufferedWriter(new OutputStreamWriter(writerStream, \"UTF-8\"));\n            char buf[] = new char[1024]; // 字符缓冲区\n            int len;\n            while ((len = bufferedReader.read(buf)) != -1) {\n                bufferedWriter.write(buf, 0, len);\n            }\n            bufferedWriter.flush();\n            bufferedReader.close();\n            bufferedWriter.close();\n        } catch (Exception e) {\n            e.printStackTrace();\n            flag = false;\n            return flag;\n        } finally {\n            if (bufferedReader != null) {\n                try {\n                    bufferedReader.close();\n                } catch (Exception e) {\n                    e.printStackTrace();\n                }\n            }\n            if (bufferedWriter != null) {\n                try {\n                    bufferedWriter.close();\n                } catch (Exception e) {\n                    e.printStackTrace();\n                }\n            }\n        }\n        return flag;\n    }\n\n    /**\n     * 文本文件转换为指定编码的字符串\n     *\n     * @param file     文本文件\n     * @param encoding 编码类型\n     * @return 转换后的字符串\n     * @throws IOException\n     */\n    public static String file2String(File file, String encoding) {\n        InputStreamReader reader = null;\n        StringWriter writer = new StringWriter();\n        try {\n            if (encoding == null || \"\".equals(encoding.trim())) {\n                encoding = \"UTF-8\";\n            }\n            reader = new InputStreamReader(new FileInputStream(file), encoding);\n            // 将输入流写入输出流\n            char[] buffer = new char[2048];\n            int n = 0;\n            while (-1 != (n = reader.read(buffer))) {\n                writer.write(buffer, 0, n);\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n            return null;\n        } finally {\n            if (reader != null)\n                try {\n                    reader.close();\n                } catch (IOException e) {\n                    e.printStackTrace();\n                }\n        }\n        // 返回转换结果\n        if (writer != null)\n            return writer.toString();\n        else\n            return null;\n    }\n\n    /**\n     * 文本文件转换为指定编码的 转换成行 的 list\n     *\n     * @param file     文本文件\n     * @param encoding 编码类型\n     * @return 转换后的字符串\n     * @throws IOException\n     */\n    public static List<String> file2Strings(File file, String encoding) {\n        BufferedReader bufferedReader = null;\n        try {\n            if (encoding == null || \"\".equals(encoding.trim())) {\n                encoding = \"UTF-8\";\n            }\n            bufferedReader = new BufferedReader(\n                    new InputStreamReader(\n                            new FileInputStream(file), encoding));\n            List<String> result = new ArrayList<String>();\n            String tempString = null;\n            // 一次读入一行，直到读入null为文件结束\n            while ((tempString = bufferedReader.readLine()) != null) {\n                result.add(tempString);\n            }\n            return result;\n        } catch (Exception e) {\n            e.printStackTrace();\n            return null;\n        } finally {\n            if (bufferedReader != null)\n                try {\n                    bufferedReader.close();\n                } catch (IOException e) {\n                    e.printStackTrace();\n                }\n        }\n    }\n\n    /**\n     * 文本文件转换为指定编码的 转换成行 的 list\n     *\n     * @param file     文本文件\n     * @param encoding 编码类型\n     * @return 转换后的字符串\n     * @throws IOException\n     */\n    public static List<String> searchLineStr(File file, String encoding, String str) {\n        BufferedReader reader = null;\n        List<String> result = new ArrayList<String>();\n        try {\n            System.out.println(\"以行为单位读取文件内容，一次读一整行：\");\n            reader = new BufferedReader(new FileReader(file));\n            String tempString = null;\n            int line = 1;\n            // 一次读入一行，直到读入null为文件结束\n            while ((tempString = reader.readLine()) != null) {\n                // 显示行号\n                System.out.println(\"line \" + line + \": \" + tempString);\n                result.add(tempString);\n                line++;\n            }\n            reader.close();\n        } catch (IOException e) {\n            e.printStackTrace();\n        } finally {\n            if (reader != null) {\n                try {\n                    reader.close();\n                } catch (IOException e1) {\n                }\n            }\n        }\n        return result;\n    }\n\n    /**\n     * 判断是否是数字\n     *\n     * @param str\n     * @return\n     */\n    public static boolean isNumeric(String str) {\n        Pattern pattern = Pattern.compile(\"[0-9]*\");\n        return pattern.matcher(str).matches();\n    }\n\n    public static String firstUpperCase(String str) {\n        if (isNotBlank(str)) {\n            str = str.substring(0, 1).toUpperCase() + str.substring(1);\n        }\n        return str;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/masonliu/decompileapk/util/ZipUtil.java",
    "content": "package com.masonliu.decompileapk.util;\n\nimport net.lingala.zip4j.core.ZipFile;\nimport net.lingala.zip4j.model.ZipParameters;\nimport net.lingala.zip4j.util.Zip4jConstants;\n\nimport java.io.BufferedOutputStream;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.net.URI;\nimport java.nio.file.FileSystem;\nimport java.nio.file.FileSystems;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.nio.file.StandardCopyOption;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.zip.ZipEntry;\nimport java.util.zip.ZipInputStream;\nimport java.util.zip.ZipOutputStream;\n\npublic class ZipUtil {\n\n    public static void zip(String sourceDirPath, String zipDocPath) {\n        try {\n            File sourceDirFile = new File(sourceDirPath);\n            if (!sourceDirFile.exists() || sourceDirFile.isFile()) {\n                return;\n            }\n            File zipFile = new File(zipDocPath);\n            zipFile.getParentFile().mkdirs();\n            ZipOutputStream outputStream = new ZipOutputStream(new FileOutputStream(zipDocPath));\n            zip(sourceDirFile, outputStream);\n            outputStream.close();\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    private static void zip(File file, ZipOutputStream outputStream) {\n        if (file.isDirectory()) {\n            for (File f : file.listFiles()) {\n                zip(f, outputStream);\n            }\n        } else {\n            try {\n                String zipInnerPath = file.getAbsolutePath().substring(file.getParentFile().getAbsolutePath().length() + 1);\n                System.out.println(\"zip \" + zipInnerPath);\n                outputStream.putNextEntry(new ZipEntry(zipInnerPath));\n                FileInputStream inputStream = new FileInputStream(file);\n                int buffer;\n                while ((buffer = inputStream.read()) != -1) {\n                    outputStream.write(buffer);\n                }\n                inputStream.close();\n            } catch (Exception e) {\n                e.printStackTrace();\n            }\n        }\n    }\n\n    public static void UnZip(final File temp, final String outPath) {\n        Thread unZip = new Thread() {\n            public void run() {\n\n            }\n        };\n        unZip.start();\n        try {\n            String zipFileString = temp.getPath();\n            ZipInputStream inZip = new ZipInputStream(new FileInputStream(zipFileString));\n            ZipEntry zipEntry;\n            String szName = \"\";\n            long length = 0;\n            while ((zipEntry = inZip.getNextEntry()) != null) {\n                szName = zipEntry.getName();\n                if (zipEntry.isDirectory()) {\n                    // get the folder name of the widget\n                    szName = szName.substring(0, szName.length() - 1);\n                    File folder = new File(outPath\n                            + File.separator + szName);\n                    folder.mkdirs();\n                } else {\n                    File file = new File(outPath + File.separator\n                            + szName);\n                    if (file.exists()) {\n                        // if(!file.getName().endsWith(\"bat\"))\n                        continue;\n                        // else\n                        // file.delete();\n                    }\n                    FileUtil.createNewDoc(file.getAbsolutePath());\n                    // file.createNewFile();\n                    // get the output stream of the file\n                    BufferedOutputStream bos = new BufferedOutputStream(\n                            new FileOutputStream(file), 1024);\n                    int len;\n                    byte[] buffer = new byte[1024];\n                    // read (len) bytes into buffer\n                    while ((len = inZip.read(buffer)) != -1) {\n\n                        bos.write(buffer, 0, len);\n                        bos.flush();\n                        length += len;\n                    }\n                    bos.close();\n                }\n            }// end of while\n            inZip.close();\n            length = 0;\n            // 11.25\n            temp.delete();\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    /**\n     * @param zipFile\n     * @param dir       如/META-INF\n     * @param fileToAdd\n     * @throws IOException\n     */\n    public static void addFileToZip(File zipFile, String dir, File fileToAdd) throws IOException {\n        Map<String, String> env = new HashMap<String, String>();\n        env.put(\"create\", \"true\");\n        try (FileSystem fs = FileSystems.newFileSystem(URI.create(\"jar:\" + zipFile.toURI()), env)) {\n            Path pathToAddFile = fileToAdd.toPath();\n            Path pathInZipfile = null;\n            if (dir == null || \"\".equals(dir)) {\n                pathInZipfile = fs.getPath(\"/\" + fileToAdd.getName());\n            } else {\n                pathInZipfile = fs.getPath(dir + \"/\" + fileToAdd.getName());\n            }\n            Files.copy(pathToAddFile, pathInZipfile, StandardCopyOption.REPLACE_EXISTING);\n        }\n    }\n\n    /**\n     * @param mZipFile\n     * @param targetPath 如填写 META-INF\n     * @param fileToAdd\n     */\n    public static void addFileToZip2(File mZipFile, String targetPath, File fileToAdd) {\n        try {\n            ZipFile zipFile = new ZipFile(mZipFile);\n            ZipParameters parameters = new ZipParameters();\n            parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\n            parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);\n            parameters.setRootFolderInZip(targetPath);//填写 META-INF\n            zipFile.addFile(fileToAdd, parameters);\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n\n    }\n}\n"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    repositories {\n        jcenter()\n    }\n    dependencies {\n\n    }\n}\n\nallprojects {\n    repositories {\n        jcenter()\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Fri Mar 31 09:12:27 CST 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.1-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\n\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windowz variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\ngoto execute\n\n:4NT_args\n@rem Get arguments from the 4NT Shell from JP Software\nset CMD_LINE_ARGS=%$\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle",
    "content": "include  ':app'\n"
  }
]