diff --git a/devlib/utils/android.py b/devlib/utils/android.py index 3af15d8..36f064a 100755 --- a/devlib/utils/android.py +++ b/devlib/utils/android.py @@ -148,12 +148,12 @@ class ApkInfo(object): self._apk_path = None self._activities = None self._methods = None - if path: - self.parse(path) - self._aapt = _ANDROID_ENV.get_env('aapt') self._aapt_version = _ANDROID_ENV.get_env('aapt_version') + if path: + self.parse(path) + # pylint: disable=too-many-branches def parse(self, apk_path): output = self._run([self._aapt, 'dump', 'badging', apk_path])