Manifest

class apkinjector.manifest.Manifest

AndroidManifest.xml utils used across the project

static get_activities(manifest: str) → List[str]

Get a list of activities declared in the target manifest.

Parameters

manifest (str) – Path to the decoded AndroidManifest.xml.

Returns

A sorted list of activities.

Return type

List[str]

static get_libraries(manifest: str) → List[str]

Get a list of activities declared in the target manifest.

Parameters

manifest (str) – Path to the decoded AndroidManifest.xml.

Returns

A sorted list of activities.

Return type

List[str]

static get_main_activity(manifest: str) → str

Get the main activity declared in the target manifest.

Parameters

manifest (str) – Path to the decoded AndroidManifest.xml.

Returns

The name of the main activity

Return type

str

static get_permissions(manifest: str) → List[str]

Get a list of permissions declared in the target manifest.

Parameters

manifest (str) – Path to the decoded AndroidManifest.xml.

Returns

A sorted list of permissions.

Return type

List[str]