Skip to content

Instantly share code, notes, and snippets.

@mattermon
Created July 5, 2017 07:16
Show Gist options
  • Save mattermon/4c1962326929f089992a9846fde18b4b to your computer and use it in GitHub Desktop.
Save mattermon/4c1962326929f089992a9846fde18b4b to your computer and use it in GitHub Desktop.
fp = dlopen(soPath, 1);
if(fp){
onloadPtr = dlsym(fp, "JNI_OnLoad");
if(onloadPtr && onloadPtr(v17, 0) >= 65543){
printf("so load successfully");
}else{
printf("error wihle calling JNI_OnLoad");
}
}else{
printf("error while openning so");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment