Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
FIX: CP
Browse files Browse the repository at this point in the history
  • Loading branch information
thez3ro committed Jul 5, 2016
1 parent 3503ed6 commit b11fa47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apk2java.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#

Expand Down Expand Up @@ -149,7 +149,7 @@ def main():
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)
#call("cp "+apk_file+" "+tmp+project_name+"-new.apk",shell=True)
if options.jasmin == True:
dex2jar()
jar2jasmin()
Expand All @@ -158,6 +158,7 @@ def main():
if options.smali == False and options.nosc == False:
dex2jar()
procyon()
call("cp "+tmp+project_name+"/ ./ -R",shell=True)
else:
print ("[ ERROR ] You must select a valid APK file!")
exit(1)
Expand All @@ -172,6 +173,7 @@ def main():
else:
print ("[ ERROR ] Can't build apk with that source format. Only Jasmin or Smali supported")
sign()
call("cp "+sign_file+" ./",shell=True)
else:
parser.error("action can be only 'b' (build) or 'd' (decompile)")
else:
Expand Down

0 comments on commit b11fa47

Please sign in to comment.