api-impl: stubs and fixes for latest WhatsApp version

This commit is contained in:
Pierre-Hugues Husson
2024-10-28 19:06:17 +01:00
committed by Julian Winkler
parent 09a38f9a28
commit c81442321e
35 changed files with 261 additions and 1 deletions

View File

@@ -297,6 +297,14 @@ JNIEXPORT jintArray JNICALL Java_android_os_Process_getPidsForCommands
JNIEXPORT jlong JNICALL Java_android_os_Process_getPss
(JNIEnv *, jclass, jint);
/*
* Class: android_os_Process
* Method: is64Bit
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_android_os_Process_is64Bit
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,10 @@
#include "../generated_headers/android_os_Process.h"
JNIEXPORT jboolean JNICALL Java_android_os_Process_is64Bit(JNIEnv *env, jclass this)
{
#ifdef __LP64__
return 1;
#else
return 0;
#endif
}