INNER CODE UNIT · C++

cpu_abilist_offset

tiann/FreeReflection · library/src/main/cpp/art.cpp:96

        int cpu_abilist_offset = targetSdkVersionOffset - vector_string_size;
        void *cpu_abilist_address = ((char *) runtime + cpu_abilist_offset);

        auto cpu_abi_list_ = reinterpret_cast<std::vector<std::string>*>(cpu_abilist_address);

        bool correct = false;
        for (auto itr = cpu_abi_list_->begin(); itr != cpu_abi_list_->end(); itr++) {
            std::string value = *itr;
            LOGV("value : %s", value.c_str());
            if (strcmp(value.c_str(), "x86") == 0) {
                correct = true;
                break;
            }
        }
        if (correct) {
            targetSdkVersionCorrect = true;
            break;
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…