Skip to content

auxten/libarsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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<std::string> * label_vec = res.getLabel(true, arsc_index);

About

pure C++ lib of Android resources.arsc Parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published