Giter Club home page Giter Club logo

native-harness-target's People

Contributors

adrivillab avatar calebfenton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

native-harness-target's Issues

Creating a Java VM fails on Android 7.1.

i try to create java vm on android 7.1 with this code.

void *librt_dso = dlopen("libart.so", RTLD_NOW);
void *libandroid_runtime_dso = dlopen("libandroid_runtime.so", RTLD_NOW);

the result of the operation was program directly abort. i try to find JNI_CreateJavaVM() use this code:

JNI_CreateJavaVM_t JNI_CreateJavaVM;
    JNI_CreateJavaVM = (JNI_CreateJavaVM_t) dlsym(RTLD_DEFAULT, "JNI_CreateJavaVM");
    if (!JNI_CreateJavaVM) {
        return -2;
    }

still returns null.

is there any other solution?

Not being able to use FindClass JNI method for third party libs on Android Pie

Currently when trying to instantiate the Cryptor instance, the JNI call returns null when trying to find the correct class:

  printf(" [+] Finding Cryptor class\n");
  jclass cryptor_class;
  cryptor_class = (*env)->FindClass(env, "org.cf.nativeharness.Cryptor");
  if (cryptor_class == NULL) {
    printf(" [!] Couldn't find Cryptor on the class path\n");
    return -1;
  } else {
    printf(" [+] Found Cryptor class: %p\n", cryptor_class);
  }

Is this a new addition/mitigation added recently? Willing to help on a PR with some pointers in the right direction to look

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.