-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessAPK.py
More file actions
29 lines (23 loc) · 854 Bytes
/
processAPK.py
File metadata and controls
29 lines (23 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import glob
import os
import subprocess
##params= ["Zero Facebook.apk"]
##program = r'"C:\\Users\\Fadi\\Dropbox\\Android\\dex2jar-0.0.9.12"'
##subprocess.Popen( [program]+params )
##filepath="C:/Users/Fadi/Dropbox/Android/dex2jar-0.0.9.12"
##p = Popen(filepath, shell=True, stdout = subprocess.PIPE)
##
##stdout, stderr = p.communicate()
##print p.returncode # is 0 if success
##
##os.chdir("C:\Users\Fadi\Dropbox\SharedWithMe\Android\Input")
##for files in glob.glob("*.apk"):
## print files
##startingDir = os.getcwd() # save our current directory
##testDir = "C:\\Users\\Fadi\\Dropbox\\Android\\dex2jar-0.0.9.12" # note that \ is windows specific, and we have to escape it
##os.chdir(testDir) # change to our test directory
##os.system("java -jar dex2jar Zero Facebook.apk")
##os.chdir(startingDir) # change back to where we started
##
##
##