diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-05-08 23:33:14 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-05-08 23:33:14 +0300 |
commit | 27e0fe8e0d6b5a66669f1cb803f6f84aa5053a0b (patch) | |
tree | 5f16b7c09f2c5f2f0bc70fcbaee462573650eb2f /src | |
parent | 9b3c747763463a192d411fa0e7dc9c122c916baa (diff) |
jvm-android: version properties
Diffstat (limited to 'src')
-rw-r--r-- | src/libjvm-android.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libjvm-android.c b/src/libjvm-android.c index 60219db..433dfff 100644 --- a/src/libjvm-android.c +++ b/src/libjvm-android.c @@ -32,7 +32,15 @@ jstring android_os_Build_VERSION_RELEASE(JNIEnv *env, jobject object) { assert(env && object); - return (*env)->NewStringUTF(env, "4.4.4"); + // XXX: android2gnulinux version, but we may need to fake this if apps rely on this + return (*env)->NewStringUTF(env, "1.0"); +} + +jint +android_os_Build_VERSION_SDK_INT(JNIEnv *env, jobject object) +{ + assert(env && object); + return (jint)~0; // Always the latest and greatest, XXX: maybe tunable, as can change app behaviour } jstring |