Coder Social home page Coder Social logo

Bad dex magic dex about mariana-trench HOT 4 CLOSED

facebook avatar facebook commented on April 27, 2024
Bad dex magic dex

from mariana-trench.

Comments (4)

Securee avatar Securee commented on April 27, 2024

I resolved this issued by:
1、set up the development environment
2、before re-compiled the redex, add dex version 39 support in the redex\libredex\DexLoader.cpp
static void validate_dex_header(const dex_header* dh,
size_t dexsize,
int support_dex_version) {
bool supported = false;
switch (support_dex_version) {
case 39:
supported = supported ||
!memcmp(dh->magic, DEX_HEADER_DEXMAGIC_V39, sizeof(dh->magic));

case 38:
supported = supported ||
!memcmp(dh->magic, DEX_HEADER_DEXMAGIC_V38, sizeof(dh->magic));

3、modify the default support dex version to 39 in the source/MarianaTrench.cpp
void MarianaTrench::run(const program_options::variables_map& variables) {
...
context.stores = init(
boost::join(system_jar_paths, ","),
options.apk_directory(),
options.dex_directory(),
/* balloon / true,
/
support_dex_version */ 39);
4、build the mariana-trench

from mariana-trench.

arthaud avatar arthaud commented on April 27, 2024

Redex might not support version 39. Please open an issue at https://github.com/facebook/redex

from mariana-trench.

downright-ux avatar downright-ux commented on April 27, 2024

We were able to get that working, Thank you.

from mariana-trench.

firmianay avatar firmianay commented on April 27, 2024

I have the same problem, is there an update?

from mariana-trench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.