Created
July 5, 2017 07:16
-
-
Save mattermon/4c1962326929f089992a9846fde18b4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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