File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ require_relative './lib/apk_to_java/version.rb'
6
6
Gem ::Specification . new do |s |
7
7
s . name = 'apkToJava'
8
8
s . version = ApkToJava ::VERSION
9
- s . date = '2016-01-28'
10
9
s . summary = 'View android apk as java code in GUI'
11
10
s . description = s . summary
12
11
s . authors = [ 'Ajit Singh' ]
Original file line number Diff line number Diff line change @@ -40,8 +40,16 @@ def execute
40
40
if ARGV [ 0 ] == 'setup'
41
41
initialize_setup
42
42
elsif valid_usage?
43
- initialize_setup if !env_setup?
44
- view_as_java_code ARGV [ 0 ]
43
+ initialize_setup unless env_setup?
44
+
45
+ apk_file = ARGV [ 0 ]
46
+ if apk_file . include? ( ' ' ) || apk_file . include? ( '.' )
47
+ new_name = apk_file . sub ( ' ' , '_' )
48
+ new_name = new_name . sub ( '.' , '_' )
49
+ `cp #{ apk_file . sub ( ' ' , '\ ' ) } #{ new_name } `
50
+ apk_file = new_name
51
+ end
52
+ view_as_java_code apk_file
45
53
end
46
54
end
47
55
Original file line number Diff line number Diff line change 2
2
3
3
module ApkToJava
4
4
class Setup
5
- JADX_URL = "'https://drive.google.com/uc?id=0BxXHKToe2BBtMGZMQXR5NFhGSUE &export=download'"
5
+ JADX_URL = "'https://drive.google.com/uc?id=1GvmqyIcErQzYRnvV96FkgjRd-0nmf1Xg &export=download'"
6
6
7
7
def download_jadx
8
8
"wget --no-check-certificate #{ JADX_URL } -O jadx.zip && sudo unzip jadx.zip -d jadx/ && rm jadx.zip"
Original file line number Diff line number Diff line change 1
1
module ApkToJava
2
- VERSION = '1.3'
2
+ VERSION = '1.3.1 '
3
3
end
You can’t perform that action at this time.
0 commit comments