Fix some typo

This commit is contained in:
Ruffalo Lavoisier 2024-05-31 18:21:16 +09:00
parent 6b22031c7f
commit e31c3265c8
10 changed files with 13 additions and 13 deletions

View File

@ -14,7 +14,7 @@ pip install androguard
~~~~
> [!IMPORTANT]
> Versions >= 4.0.0 are new releases after a long time, where the project has substantial differences from the previous stable version 3.3.5 from 2019. This means that certain functionalities have been removed. If you notice an issue with your project using tha latest version, please open up an [issue](https://github.com/androguard/androguard/issues).
> Versions >= 4.0.0 are new releases after a long time, where the project has substantial differences from the previous stable version 3.3.5 from 2019. This means that certain functionalities have been removed. If you notice an issue with your project using the latest version, please open up an [issue](https://github.com/androguard/androguard/issues).
## Documentation
**Documentation contains outdated information - In progress of updating**

View File

@ -227,7 +227,7 @@ class DEXBasicBlock:
def get_method(self) -> dex.EncodedMethod:
"""
Returns the originiating method
Returns the originating method
:return: the method
:rtype: androguard.core.dex.EncodedMethod
@ -1462,7 +1462,7 @@ class Analysis:
logger.info("Adding DEX file version {}".format(vm.version))
# TODO: This step can easily be multithreaded, as there is no dependecy between the objects at this stage
# TODO: This step can easily be multithreaded, as there is no dependency between the objects at this stage
tic = time.time()
for i, current_class in enumerate(vm.get_classes()):
# seed ClassAnalysis objects into classes attribute and add as new class

View File

@ -29,7 +29,7 @@ from androguard.core.axml import (ARSCParser,
TEXT,
END_DOCUMENT)
# External dependecies
# External dependencies
from lxml.etree import Element
import lxml.sax
from xml.dom.pulldom import SAX2DOM
@ -746,7 +746,7 @@ class APK:
At the same time, the CRC32 are calculated for the files.
:rtype: a dictionnary
:rtype: a dictionary
"""
if self._files == {}:
# Generate File Types / CRC List

View File

@ -101,7 +101,7 @@ def complexToFloat(xcomplex) -> float:
class StringBlock:
"""
StringBlock is a CHUNK inside an AXML File: `ResStringPool_header`
It contains all strings, which are used by referecing to ID's
It contains all strings, which are used by referencing to ID's
See http://androidxref.com/9.0.0_r3/xref/frameworks/base/libs/androidfw/include/androidfw/ResourceTypes.h#436
"""
@ -694,7 +694,7 @@ class AXMLParser:
@property
def name(self) -> str:
"""
Return the String assosciated with the tag name
Return the String associated with the tag name
"""
if self.m_name == -1 or (self.m_event != START_TAG and self.m_event != END_TAG):
return ''

View File

@ -394,7 +394,7 @@ class Session:
def get_objects_dex(self) -> Iterator[tuple[str, dex.DEX, Analysis]]:
"""
Yields all dex objects inclduing their Analysis objects
Yields all dex objects including their Analysis objects
:returns: tuple of (sha256, DEX, Analysis)
"""

View File

@ -218,7 +218,7 @@ class DynamicUI:
def get_available_blocks(self):
blocks: list[Message] = []
# Retrieve every unhandled block currently avilable in the queue
# Retrieve every unhandled block currently available in the queue
try:
for _ in range(10):
blocks.append(self.input_queue.get_nowait())

View File

@ -3,7 +3,7 @@
import sys
from typing import Union, BinaryIO
#  External dependecies
#  External dependencies
# import asn1crypto
from asn1crypto.x509 import Name
from loguru import logger

View File

@ -37,7 +37,7 @@ class AnalysisTest(unittest.TestCase):
self.assertEqual(len(list(dx.get_external_methods())), 3116) # difficult to check
# TODO: the DEX header says 12795 here, but 9676 + 3116 adds up to 12792
# JADX corroborates 9676, so I think 3116 is off, and a few unncessary
# JADX corroborates 9676, so I think 3116 is off, and a few unnecessary
# ExternalMethods are added somewhere
self.assertEqual(len(list(dx.get_methods())), 12792) # dex header header->headerItem->methodIdsSize

View File

@ -714,7 +714,7 @@ class APKTest(unittest.TestCase):
self.assertEqual(list(a.get_all_attribute_value("activity", "name"))[0], 'com.android.galaxy4.Galaxy4')
self.assertEqual(list(a.get_all_attribute_value("activity", "name", format_value=False))[0], '.Galaxy4')
# Test some formattings
# Test some formatting
self.assertEqual(a._format_value('foo'), 'com.android.galaxy4.foo')
self.assertEqual(a._format_value('.foo'), 'com.android.galaxy4.foo')
self.assertEqual(a._format_value('com.android.galaxy4.foo'), 'com.android.galaxy4.foo')

View File

@ -470,7 +470,7 @@ class InstructionTest(unittest.TestCase):
self.assertEqual(ins.get_output(), 'v{}, {}'.format(reg, lit))
def testInstruction31i(self):
"""Test functionaltiy of Instruction31i (const, const-wide/32)"""
"""Test functionality of Instruction31i (const, const-wide/32)"""
# const is often used to load resources...
tests = [