Ejemplo n.º 1
0
    def __init__(self, filepath, string_processing=True):
        super(APK, self).__init__(filepath)

        if not self.looks_like_an_apk(filepath):
            raise APKParsingError

        self._files = []
        self._extract_and_set_entries(string_processing)

        if len(self._files) == 0 or self._cert is None:
            raise APKParsingError

        self._app_name = Aapt.get_app_name(filepath)
Ejemplo n.º 2
0
 def test_get_app_name(self):
     for filename in self.files:
         self.assertTrue(Aapt.get_app_name(self.files[filename]) == self.files_properties[filename]['app_name'])
Ejemplo n.º 3
0
 def test_get_app_name(self):
     for filename in self.files:
         self.assertTrue(Aapt.get_app_name(self.files[filename]) == self.files_properties[filename]['app_name'])