diff --git a/README.md b/README.md index 9726571..039ab77 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Tools used -------------------- Dex2jar : http://code.google.com/p/dex2jar/ -JAD : http://www.varaneckas.com/jad +Procyon : https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler apk-tool : http://code.google.com/p/android-apktool/ diff --git a/apk2java b/apk2java deleted file mode 100755 index 01b2b4d..0000000 --- a/apk2java +++ /dev/null @@ -1,194 +0,0 @@ -#!/bin/bash - -# Author: @Th3Zer0 -# -# This file is released under Public Domain. -# Feel Free. Be Free. ;) - -unset ALL_OFF BOLD BLUE RED -ALL_OFF="\e[1;0m" -BOLD="\e[1;1m" -RED="${BOLD}\e[1;31m" -BLUE="${BOLD}\e[1;34m" -readonly ALL_OFF BOLD BLUE RED - -help() { - printf "${BLUE}apk2java${ALL_OFF} Linux - Author: Davide 'TheZero' Silvetti\n" >&2 - echo "Usage: $0 [smali] .apk" - echo " Write 'smali' for disassemble .dex source code" -} - -error() { - local mesg=$1; shift - printf "${BOLD}[ ${RED}E${ALL_OFF}${BOLD} ]${ALL_OFF} ${mesg}\n" "$@" >&2 -} - -SMALI="0" - -if [ $# = '1' ]; then - check=`echo $1 | grep ".apk"` - if [ "$check" = "" ]; then - error "Select a valid .apk file!" - echo "" - help - fi -elif [ $# = '2' ]; then - if [ $2 = "smali" -o $1 = "smali" ]; then - SMALI="1" - echo "smali" - else - error "Invalid option: $2" - echo "" - help - exit 2 - fi -else - help - exit 1 -fi - -HOME="/opt/apk2java" - -FILENAME=$1 -FILEDIR=`echo $FILENAME | sed -nr 's|(.*)/.*$|\1|p'` -cd $FILEDIR -FILEDIR=`pwd` -FILE=`echo $FILENAME | sed -nr 's|.*/(.*)$|\1|p'` -PROJECT=`echo $FILE | sed -nr 's|(.*).apk$|\1|p'` - - -CLASSPATH= - -cd $HOME - -echo "*********************************************" -echo "** Convert 'apk' to 'jar' **" -echo "*********************************************" - -for i in `ls $HOME/lib/*.jar`; do - CLASSPATH=${CLASSPATH:-}"$i:" -done - -java -Xms512m -Xmx1024m -classpath "${CLASSPATH}" "com.googlecode.dex2jar.tools.Dex2jarCmd" "$FILEDIR/$FILE" --force - -echo "*********************************************" -echo "** Remove if any 'src' folder exists **" -echo "*********************************************" - -if [ -d $HOME/src ]; then - rm -r $HOME/src -fi -if [ -d $HOME/class ]; then - rm -r $HOME/class -fi - -echo "*********************************************" -echo "** Create 'src' and 'class' folders **" -echo "*********************************************" - -mkdir $HOME/src -mkdir $HOME/class - -echo "*********************************************" -echo "** Expand, delete the 'jar' file **" -echo "*********************************************" - -DIR="class" - -for i in `ls $HOME/*.jar`; do - unzip -o $i -d $DIR - rm $i -done - -echo "*********************************************" -echo "** Decompiling class files **" -echo "*********************************************" - -for i in `ls $HOME/class`; do - cp -R "$HOME/class/$i" ./src -done - -for i in `ls -1R $HOME/src`; do - d=`echo $i | sed -nr 's|^(.*):$|\1|p'` - if [ "$d" != "" ]; then - cd $HOME - if [ -d $d ]; then - cd $d - DIR=`pwd` - fi - fi - - f=`echo $i | grep ".class"` - if [ "$f" != "" ]; then - if [ -f "$f" ]; then - $HOME/tool/jad -d $DIR -o -s .java $f - fi - fi -done - -echo "*********************************************" -echo "** Delete .class files and 'class' folder **" -echo "*********************************************" - -cd $HOME -for i in `ls -1R $HOME/src`; do - d=`echo $i | sed -nr 's|^(.*):$|\1|p'` - if [ "$d" != "" ]; then - cd $HOME - if [ -d $d ]; then - cd $d - DIR=`pwd` - fi - fi - - f=`echo $i | grep ".class"` - if [ "$f" != "" ]; then - if [ -f "$f" ]; then - rm $f - fi - fi -done -cd $HOME -rm -R class - -echo "*********************************************" -echo "** Extract, fix resource files **" -echo "*********************************************" - -cd $HOME -java -jar "./tool/apktool.jar" decode -s -f $FILEDIR/$FILE ./other/ - -if [ $SMALI == '1' ]; then - echo "*********************************************" - echo "** Disassemble smali **" - echo "*********************************************" - - java -jar $HOME/tool/baksmali-1.4.0.jar -o ./other/smali ./other/classes.dex -fi - -echo "*********************************************" -echo "** Create the Eclipse Project **" -echo "*********************************************" - -rm -r $FILEDIR/$PROJECT -unzip -o $HOME/tool/eclipseproject.zip -d $FILEDIR/$PROJECT -cp -Rf ./src $FILEDIR/$PROJECT -cd ./other -cp -Rf ./ $FILEDIR/$PROJECT -PACKAGE=`cat $FILEDIR/$PROJECT/AndroidManifest.xml | sed -nr 's|.*package="(.*)"|\1|p'` -str="2a\\\t${PACKAGE}" -sed -i $str $FILEDIR/$PROJECT/.project - -echo "*********************************************" -echo "** Clean temp folder **" -echo "*********************************************" - -cd $HOME -rm -r ./src -rm -r ./other - -echo "*********************************************" -echo "** Process complete **" -echo "*********************************************" - -exit diff --git a/apk2java.py b/apk2java.py new file mode 100755 index 0000000..4f4a3f3 --- /dev/null +++ b/apk2java.py @@ -0,0 +1,180 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8 -*- +# + +import sys, os, string +import urllib +import zipfile +from subprocess import call +from optparse import OptionParser + +apk_file='' +apk_folder='' +project_name='' +sign_file='' +home=os.path.dirname(os.path.realpath(sys.argv[0])) +tmp='/tmp/apk2java/' +external="https://github.com/TheZ3ro/apk2java-linux/archive/master.zip" + +def check_home(path): + return os.path.isdir(path+"/tool") + +def getunzipped(theurl, thedir, report): + print "Downloading external tool..." + name = os.path.join(thedir, 'temp.zip') + try: + name, hdrs = urllib.urlretrieve(theurl, name, report) + except IOError, e: + print "Can't retrieve %r to %r: %s" % (theurl, thedir, e) + return + try: + z = zipfile.ZipFile(name) + except zipfile.error, e: + print "Bad zipfile (from %r): %s" % (theurl, e) + return + for n in z.namelist(): + (dirname, filename) = os.path.split(n) + if filename == '': + # directory + newdir = thedir + '/' + dirname + if not os.path.exists(newdir): + os.mkdir(newdir) + else: + # file + fd = open(thedir+"/"+n, 'w') + fd.write(z.read(n)) + fd.close() + z.close() + os.unlink(name) + +def report(blocknr, blocksize, size): + current = blocknr*blocksize + sys.stdout.write("\rProgress: {0:.2f}%".format(100.0*current/size)) + +def apktool(smali): + print "*********************************************" + print "** Extract, fix resource files **" + print "*********************************************" + if apk_file != '': + if smali == True: + call(home+'/tool/apktool_200rc3.jar d '+apk_file+' -o '+tmp+project_name+' -f',shell=True) + else: + call(home+'/tool/apktool_200rc3.jar d '+apk_file+' -o '+tmp+project_name+' -sf',shell=True) + os.system('mv %s %s' % (tmp+project_name+'/classes.dex', tmp+project_name+'/original/')) + print 'Done' + +def dex2jar(): + print "*********************************************" + print "** Convert 'apk' to 'jar' **" + print "*********************************************" + if apk_file != '': + call(home+'/tool/dex2jar-0.0.9.15/d2j-dex2jar.sh -f -o '+tmp+project_name+'.jar '+apk_file, shell=True) + call(home+'/tool/dex2jar-0.0.9.15/d2j-asm-verify.sh '+tmp+project_name+'.jar',shell=True) + print 'Done' + +def procyon(): + print "*********************************************" + print "** Decompiling class files **" + print "*********************************************" + if apk_file != '': + call(home+'/tool/procyon-decompiler-0528.jar -jar '+tmp+project_name+'.jar -o '+tmp+project_name+'/src/',shell=True) + print 'Done' + +def apktool_build(): + print "*********************************************" + print "** Building apk from smali **" + print "*********************************************" + if apk_folder != '': + call(home+'/tool/apktool_200rc3.jar b '+apk_folder+' -o '+tmp+project_name+'-rebuild.apk',shell=True) + global sign_file + sign_file = tmp+project_name+'-rebuild.apk' + print 'Done' + +def jar2jasmin(): + print "*********************************************" + print "** Convert 'jar' to 'jasmin' **" + print "*********************************************" + if apk_file != '': + call(home+'/tool/dex2jar-0.0.9.15/d2j-jar2jasmin.sh -f -o '+tmp+project_name+'/jasmin '+tmp+project_name+'.jar',shell=True) + print 'Done' + +def jasmin_build(): + print "*********************************************" + print "** Build apk from jasmin **" + print "*********************************************" + if apk_folder != '': + call(home+'/tool/dex2jar-0.0.9.15/d2j-jasmin2jar.sh -f -o '+tmp+project_name+'-new.jar '+tmp+project_name+'/jasmin',shell=True) + call(home+'/tool/dex2jar-0.0.9.15/d2j-asm-verify.sh '+tmp+project_name+'-new.jar',shell=True) + call(home+'/tool/dex2jar-0.0.9.15/d2j-jar2dex.sh -f -o '+tmp+project_name+'/classes.dex '+tmp+project_name+'-new.jar',shell=True) + call('zip -r '+tmp+project_name+'-new.apk -j '+tmp+project_name+'/classes.dex',shell=True) + global sign_file + sign_file = tmp+project_name+'-new.apk' + print 'Done' + +def sign(): + print "*********************************************" + print "** Sign apk **" + print "*********************************************" + call(home+'/tool/dex2jar-0.0.9.15/d2j-apk-sign.sh -f -o '+tmp+project_name+'-signed.apk '+sign_file,shell=True) + +def main(): + global apk_folder,apk_file,project_name,home + usage = "usage: %prog action file [options]" + parser = OptionParser(usage=usage) + parser.add_option("--java",action="store_true", dest="java", default=True, help="select java source format [DEFAULT]") + parser.add_option("--smali",action="store_true", dest="smali", default=False, help="select smali source format") + parser.add_option("--jasmin",action="store_true", dest="jasmin", default=False, help="select jasmin source format") + parser.add_option("--no-source",action="store_true", dest="nosc", default=False, help="no source code generation") + (options, args) = parser.parse_args() + + if home == "/opt/apk2java": + if check_home(home) == False: + getunzipped(external, home, report) + else: + if check_home(home) == False and check_home("/opt/apk2java") == False: + getunzipped(external, "/opt/apk2java", report) + home = "/opt/apk2java" + + exit(0) + + if (options.smali+options.jasmin+options.nosc) > 1: + print "[ ERROR ] You can only select 1 source format --[smali/jasmin/java/no-source]" + exit(1) + if len(args)==2: + if args[0] == 'd': + if os.path.isfile(args[1]) and os.path.splitext(args[1])[-1].lower() == '.apk': + apk_file = args[1] + project_name = os.path.splitext(os.path.basename(args[1]))[0].lower() + call("cp "+apk_file+" "+tmp+project_name+"-new.apk",shell=True) + if options.jasmin == True: + dex2jar() + jar2jasmin() + else: + apktool(options.smali) + if options.smali == False and options.nosc == False: + dex2jar() + procyon() + else: + print "[ ERROR ] You must select a valid APK file!" + exit(1) + elif args[0] == 'b': + if os.path.isdir(args[1]): + apk_folder = args[1] + project_name = os.path.basename(os.path.dirname(args[1]).lower()) + print project_name + if options.jasmin == True: + jasmin_build() + elif options.smali == True: + apktool_build() + else: + print "[ ERROR ] Can't build apk with that source format. Only Jasmin or Smali supported" + sign() + else: + parser.error("action can be only 'b' (build) or 'd' (decompile)") + else: + parser.print_help() + +# Script start Here +if __name__=="__main__": + main() + \ No newline at end of file diff --git a/install.sh b/install.sh deleted file mode 100755 index 20c52a9..0000000 --- a/install.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Author: @Th3Zer0 -# -# This file is released under Public Domain. -# Feel Free. Be Free. ;) - -DESTINATION=/opt/apk2java - -if (( EUID == 0 )); then - chmod a+x ./uninstall.sh - - cp -r ./ $DESTINATION - - chmod -R 777 $DESTINATION - - if [ ! -e "/usr/bin/apk2java" ]; then - ln -s /opt/apk2java/apk2java /usr/bin/ - fi -else - echo "Please, run $0 as root" - exit 1 -fi - -exit diff --git a/lib/asm-LICENSE.txt b/lib/asm-LICENSE.txt deleted file mode 100644 index d0cd82d..0000000 --- a/lib/asm-LICENSE.txt +++ /dev/null @@ -1,28 +0,0 @@ - - ASM: a very small and fast Java bytecode manipulation framework - Copyright (c) 2000-2005 INRIA, France Telecom - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the copyright holders nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF - THE POSSIBILITY OF SUCH DAMAGE. diff --git a/lib/asm-all-3.3.1.jar b/lib/asm-all-3.3.1.jar deleted file mode 100644 index 39a0d6d..0000000 Binary files a/lib/asm-all-3.3.1.jar and /dev/null differ diff --git a/lib/commons-io-LICENSE.txt b/lib/commons-io-LICENSE.txt deleted file mode 100644 index 43e91eb..0000000 --- a/lib/commons-io-LICENSE.txt +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/lib/commons-io-NOTICE.txt b/lib/commons-io-NOTICE.txt deleted file mode 100644 index 1d7e2ef..0000000 --- a/lib/commons-io-NOTICE.txt +++ /dev/null @@ -1,6 +0,0 @@ -Apache Commons IO -Copyright 2002-2010 The Apache Software Foundation - -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/). - diff --git a/lib/commons-lite-1.15.jar b/lib/commons-lite-1.15.jar deleted file mode 100644 index 6510f73..0000000 Binary files a/lib/commons-lite-1.15.jar and /dev/null differ diff --git a/lib/dex-ir-1.12.jar b/lib/dex-ir-1.12.jar deleted file mode 100644 index 396ff80..0000000 Binary files a/lib/dex-ir-1.12.jar and /dev/null differ diff --git a/lib/dex-reader-1.15.jar b/lib/dex-reader-1.15.jar deleted file mode 100644 index a18ee9a..0000000 Binary files a/lib/dex-reader-1.15.jar and /dev/null differ diff --git a/lib/dex-tools-0.0.9.15.jar b/lib/dex-tools-0.0.9.15.jar deleted file mode 100644 index 0f3dc36..0000000 Binary files a/lib/dex-tools-0.0.9.15.jar and /dev/null differ diff --git a/lib/dex-translator-0.0.9.15.jar b/lib/dex-translator-0.0.9.15.jar deleted file mode 100644 index 637c369..0000000 Binary files a/lib/dex-translator-0.0.9.15.jar and /dev/null differ diff --git a/lib/dx-NOTICE b/lib/dx-NOTICE deleted file mode 100644 index c5b1efa..0000000 --- a/lib/dx-NOTICE +++ /dev/null @@ -1,190 +0,0 @@ - - Copyright (c) 2005-2008, The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - diff --git a/lib/dx.jar b/lib/dx.jar deleted file mode 100644 index ed008c1..0000000 Binary files a/lib/dx.jar and /dev/null differ diff --git a/lib/jar-rename-1.6.jar b/lib/jar-rename-1.6.jar deleted file mode 100644 index dacd673..0000000 Binary files a/lib/jar-rename-1.6.jar and /dev/null differ diff --git a/lib/jasmin-p2.5.jar b/lib/jasmin-p2.5.jar deleted file mode 100644 index 37a3248..0000000 Binary files a/lib/jasmin-p2.5.jar and /dev/null differ diff --git a/lib/license-jasmin.txt b/lib/license-jasmin.txt deleted file mode 100644 index 348b7cb..0000000 --- a/lib/license-jasmin.txt +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 1996-2004, Jon Meyer - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are permitted provided - * that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of conditions - * and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, this list of conditions - * and the following disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Jon Meyer nor the names of its contributors may be used to - * endorse or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A - * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR - * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Jasmin was written by Jon Meyer, www.cybergrain.com - * The Jasmin website is jasmin.sourceforge.net. - */ - \ No newline at end of file diff --git a/sample.apk b/sample.apk deleted file mode 100644 index 08247bb..0000000 Binary files a/sample.apk and /dev/null differ diff --git a/tool/apktool.jar b/tool/apktool.jar deleted file mode 100644 index 4b7e6c1..0000000 Binary files a/tool/apktool.jar and /dev/null differ diff --git a/tool/baksmali-1.4.0.jar b/tool/baksmali-1.4.0.jar deleted file mode 100644 index 64e782a..0000000 Binary files a/tool/baksmali-1.4.0.jar and /dev/null differ diff --git a/tool/eclipseproject.zip b/tool/eclipseproject.zip deleted file mode 100644 index 74c5ef9..0000000 Binary files a/tool/eclipseproject.zip and /dev/null differ diff --git a/tool/jad b/tool/jad deleted file mode 100755 index 981fa27..0000000 Binary files a/tool/jad and /dev/null differ diff --git a/uninstall.sh b/uninstall.sh deleted file mode 100755 index 36239f1..0000000 --- a/uninstall.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -# Author: @Th3Zer0 -# -# This file is released under Public Domain. -# Feel Free. Be Free. ;) - -if (( EUID == 0 )); then - - if [ -h "/usr/bin/apk2java" ]; then - rm -f /usr/bin/apk2java - fi - - rm -rf /opt/apk2java - -else - echo "Please, run $0 as root" - exit 1 -fi - -exit