MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / IsVersionAndMagicValid

Method IsVersionAndMagicValid

Bcore/src/main/cpp/dex/dex_file_loader.cc:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool DexFileLoader::IsVersionAndMagicValid(const uint8_t* magic) {
166 if (StandardDexFile::IsMagicValid(magic)) {
167 return StandardDexFile::IsVersionValid(magic);
168 }
169 if (CompactDexFile::IsMagicValid(magic)) {
170 return CompactDexFile::IsVersionValid(magic);
171 }
172 return false;
173}
174
175bool DexFileLoader::IsMultiDexLocation(const char* location) {
176 return strrchr(location, kMultiDexSeparator) != nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected