add a function to jni layer to get the page size