dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
DexppManifest Struct Reference

The decoded AndroidManifest.xml. More...

#include <dexpp.h>

Public Attributes

char * package
 The package attribute of <manifest>.
 
int has_version_code
 1 when android:versionCode is set and known.
 
int64_t version_code
 android:versionCode.
 
uint32_t version_code_reference
 The reference id of android:versionCode, or 0.
 
char * version_name
 android:versionName, or NULL.
 
int has_min_sdk
 1 when android:minSdkVersion is set and known.
 
int64_t min_sdk
 android:minSdkVersion.
 
uint32_t min_sdk_reference
 The reference id of android:minSdkVersion, or 0.
 
int has_target_sdk
 1 when android:targetSdkVersion is set and known.
 
int64_t target_sdk
 android:targetSdkVersion.
 
uint32_t target_sdk_reference
 The reference id of android:targetSdkVersion, or 0.
 
char ** permissions
 The name of each <uses-permission>.
 
size_t permission_count
 Number of permissions.
 
DexppDeclaredPermission * declared_permissions
 Each <permission> the app declares.
 
size_t declared_permission_count
 Number of declared permissions.
 
DexppComponent * components
 Every component, in manifest order.
 
size_t component_count
 Number of components.
 
char * launcher_activity
 The launcher activity's name, or NULL.
 
int debuggable
 android:debuggable: 1, 0, or -1 when absent or unknown.
 
uint32_t debuggable_reference
 The reference id of android:debuggable, or 0.
 
int allow_backup
 android:allowBackup: 1, 0, or -1 when absent or unknown.
 
uint32_t allow_backup_reference
 The reference id of android:allowBackup, or 0.
 

Detailed Description

The decoded AndroidManifest.xml.

Release with dexpp_manifest_clear().

A boolean or integer attribute may be written as a resource reference, such as android:debuggable="@bool/debug". The value is then the one the APK's resource table gives, in its default configuration, and the matching *_reference member holds the reference id. When the reference cannot be resolved, the value reads as absent (has_* is 0, or -1) while the *_reference member still holds the id: the attribute is set, but its value is unknown. A *_reference member is 0 for a plain value or a missing attribute.

Member Data Documentation

◆ package

char* DexppManifest::package

The package attribute of <manifest>.

◆ has_version_code

int DexppManifest::has_version_code

1 when android:versionCode is set and known.

◆ version_code

int64_t DexppManifest::version_code

android:versionCode.

◆ version_code_reference

uint32_t DexppManifest::version_code_reference

The reference id of android:versionCode, or 0.

◆ version_name

char* DexppManifest::version_name

android:versionName, or NULL.

◆ has_min_sdk

int DexppManifest::has_min_sdk

1 when android:minSdkVersion is set and known.

◆ min_sdk

int64_t DexppManifest::min_sdk

android:minSdkVersion.

◆ min_sdk_reference

uint32_t DexppManifest::min_sdk_reference

The reference id of android:minSdkVersion, or 0.

◆ has_target_sdk

int DexppManifest::has_target_sdk

1 when android:targetSdkVersion is set and known.

◆ target_sdk

int64_t DexppManifest::target_sdk

android:targetSdkVersion.

◆ target_sdk_reference

uint32_t DexppManifest::target_sdk_reference

The reference id of android:targetSdkVersion, or 0.

◆ permissions

char** DexppManifest::permissions

The name of each <uses-permission>.

◆ permission_count

size_t DexppManifest::permission_count

Number of permissions.

◆ declared_permissions

DexppDeclaredPermission* DexppManifest::declared_permissions

Each <permission> the app declares.

◆ declared_permission_count

size_t DexppManifest::declared_permission_count

Number of declared permissions.

◆ components

DexppComponent* DexppManifest::components

Every component, in manifest order.

◆ component_count

size_t DexppManifest::component_count

Number of components.

◆ launcher_activity

char* DexppManifest::launcher_activity

The launcher activity's name, or NULL.

◆ debuggable

int DexppManifest::debuggable

android:debuggable: 1, 0, or -1 when absent or unknown.

◆ debuggable_reference

uint32_t DexppManifest::debuggable_reference

The reference id of android:debuggable, or 0.

◆ allow_backup

int DexppManifest::allow_backup

android:allowBackup: 1, 0, or -1 when absent or unknown.

◆ allow_backup_reference

uint32_t DexppManifest::allow_backup_reference

The reference id of android:allowBackup, or 0.


The documentation for this struct was generated from the following file: