Skip to content

Commit 46219ac

Browse files
douglas-raillard-armmarcbonnici
authored andcommitted
android: Fix typo in ApkInfo
Change self.aapt into self._aapt
1 parent 4589b46 commit 46219ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

devlib/utils/android.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def __init__(self, path=None):
156156

157157
# pylint: disable=too-many-branches
158158
def parse(self, apk_path):
159-
output = self._run([self.aapt, 'dump', 'badging', apk_path])
159+
output = self._run([self._aapt, 'dump', 'badging', apk_path])
160160
for line in output.split('\n'):
161161
if line.startswith('application-label:'):
162162
self.label = line.split(':')[1].strip().replace('\'', '')
@@ -196,7 +196,7 @@ def parse(self, apk_path):
196196
@property
197197
def activities(self):
198198
if self._activities is None:
199-
cmd = [self.aapt, 'dump', 'xmltree', self._apk_path]
199+
cmd = [self._aapt, 'dump', 'xmltree', self._apk_path]
200200
if self._aapt_version == 2:
201201
cmd += ['--file']
202202
cmd += ['AndroidManifest.xml']
@@ -215,7 +215,7 @@ def methods(self):
215215
extracted = z.extract('classes.dex', tmp_dir)
216216
except KeyError:
217217
return []
218-
dexdump = os.path.join(os.path.dirname(self.aapt), 'dexdump')
218+
dexdump = os.path.join(os.path.dirname(self._aapt), 'dexdump')
219219
command = [dexdump, '-l', 'xml', extracted]
220220
dump = self._run(command)
221221

0 commit comments

Comments
 (0)