Rizin
unix-like reverse engineering framework and cli tools
axml_resources.h File Reference
#include <rz_types.h>

Go to the source code of this file.

Variables

const char * ANDROID_ATTRIBUTE_NAMES []
 
size_t ANDROID_ATTRIBUTE_NAMES_SIZE = RZ_ARRAY_SIZE(ANDROID_ATTRIBUTE_NAMES)
 

Variable Documentation

◆ ANDROID_ATTRIBUTE_NAMES

const char* ANDROID_ATTRIBUTE_NAMES[]

A list of all public resources from frameworks/base/core/res/res/values/public.xml:

const data = JSON.parse(require('xml2json').toJson(require('fs').readFileSync('public.xml').toString())) const resources = data.resources.public.filter(e => e.type === 'attr')

const resourceMap = {}
for (const resource of resources) {
resourceMap[parseInt(resource.id, 16)] = resource.name
}
const base = parseInt(resources[0].id, 16)
const last = parseInt(resources[resources.length - 1].id, 16)
for (let i = base; i <= last; i++) {
if (resourceMap[i]) {
console.log(`\t"${resourceMap[i]}",`)
} else {
console.log('\t"null",')
}
}
lzma_index ** i
Definition: index.h:629
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
Definition: sflib.h:133
#define const
Definition: ansidecl.h:240

Definition at line 34 of file axml_resources.h.

Referenced by dump_element().

◆ ANDROID_ATTRIBUTE_NAMES_SIZE

size_t ANDROID_ATTRIBUTE_NAMES_SIZE = RZ_ARRAY_SIZE(ANDROID_ATTRIBUTE_NAMES)

Definition at line 1596 of file axml_resources.h.

Referenced by dump_element().