apktools 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apktools/apkresources.rb +2 -1
- data/lib/apktools/apkxml.rb +4 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a7d709889a4101fe18888eb6d09b3eb92d1f804
|
4
|
+
data.tar.gz: eae384df63fffbfc1804b5abaa9022b03fde1d75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af4c035591b6786e3e06384237b7115d07651b07ac7022695fecbe430a325c58ca5a16bbcbd156ae1c189fbd9ea9c2e70a7cb765860f0b9a07dd5b85d833b775
|
7
|
+
data.tar.gz: 0a50e003f5a392965db1255861e78271de3fd2f756ba374cca4cd6394f17b6b18e5fc1c379b7b05c67a10657da2014495bd3d01eb80dc3c49614faae324dfa7d
|
@@ -131,9 +131,10 @@ class ApkResources
|
|
131
131
|
# Create a new ApkResources instance from the specified +apk_file+
|
132
132
|
#
|
133
133
|
# This opens and parses the contents of the APK's resources.arsc file.
|
134
|
-
|
135
134
|
def initialize(apk_file)
|
136
135
|
data = nil
|
136
|
+
Zip.warn_invalid_date = false
|
137
|
+
|
137
138
|
# Get resources.arsc from the APK file
|
138
139
|
Zip::File.foreach(apk_file) do |f|
|
139
140
|
if f.name.match(/resources.arsc/)
|
data/lib/apktools/apkxml.rb
CHANGED
@@ -114,6 +114,7 @@ class ApkXml
|
|
114
114
|
# This opens and parses the contents of the APK's resources.arsc file.
|
115
115
|
def initialize(apk_file)
|
116
116
|
@current_apk = apk_file
|
117
|
+
Zip.warn_invalid_date = false
|
117
118
|
@apk_resources = ApkResources.new(apk_file)
|
118
119
|
end #initialize
|
119
120
|
|
@@ -129,17 +130,18 @@ class ApkXml
|
|
129
130
|
def parse_xml(xml_file, pretty = false, resolve_resources = false)
|
130
131
|
# Reset variables
|
131
132
|
@xml_elements = Array.new()
|
132
|
-
xml_output =
|
133
|
+
xml_output = ''
|
133
134
|
indent = 0
|
134
135
|
data = nil
|
135
136
|
|
136
|
-
|
137
|
+
Zip.warn_invalid_date = false
|
137
138
|
Zip::File.foreach(@current_apk) do |f|
|
138
139
|
if f.name.match(xml_file)
|
139
140
|
data = f.get_input_stream.read.force_encoding('BINARY')
|
140
141
|
end
|
141
142
|
end
|
142
143
|
|
144
|
+
|
143
145
|
# Parse the Header Chunk
|
144
146
|
header = ChunkHeader.new( read_short(data, HEADER_START),
|
145
147
|
read_short(data, HEADER_START+2),
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apktools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.2.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.2.1
|
27
27
|
description: Library to assist reading resource data out of Android APKs
|
28
28
|
email: smith@wiresareobsolete.com
|
29
29
|
executables:
|
@@ -32,11 +32,11 @@ executables:
|
|
32
32
|
extensions: []
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
|
-
- bin/get_app_version.rb
|
36
|
-
- bin/read_manifest.rb
|
37
35
|
- lib/apktools/apkresources.rb
|
38
36
|
- lib/apktools/apkxml.rb
|
39
37
|
- lib/apktools/resconfiguration.rb
|
38
|
+
- bin/get_app_version.rb
|
39
|
+
- bin/read_manifest.rb
|
40
40
|
homepage: http://github.com/devunwired/apktools
|
41
41
|
licenses:
|
42
42
|
- MIT
|
@@ -47,17 +47,17 @@ require_paths:
|
|
47
47
|
- lib
|
48
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - '>='
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '0'
|
53
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - '>='
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.
|
60
|
+
rubygems_version: 2.0.14.1
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: APKTools
|