Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/auxten/libarsc

pure C++ lib of Android resources.arsc Parser
https://github.com/auxten/libarsc

Last synced: about 1 month ago
JSON representation

pure C++ lib of Android resources.arsc Parser

Awesome Lists containing this project

README

        

libarsc
=======

pure C++ lib of Android resources.arsc Parser
almost all code transplanted from aapt
cause i use this just in a small executable, mutexes are removed.
this works very well, i promise

example
=======

resources_content_bin = getResFromApk(apk_path,
&resources_content_bin_len, ARSC);
LOGD("resources content len %d", resources_content_bin_len);

arsc_index = strtoimax(package_label_addr_manifest + 1, NULL, 16);
if (arsc_index == 0u)
{
LOGE("package label index error %s", package_label_addr_manifest);
break;
}

LOGD("package label in manifest %u", arsc_index);

ResTable res(resources_content_bin, resources_content_bin_len, resources_content_bin);
std::vector * label_vec = res.getLabel(true, arsc_index);