summaryrefslogtreecommitdiffstats
path: root/libnativebridge
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-02-10 15:33:36 +0000
committerNarayan Kamath <narayan@google.com>2015-02-10 15:43:41 +0000
commit484c55b37fdcf93725b621513a41477b924aada1 (patch)
treebb7fd99e04983e74f090d67430e108ef1d60b3e3 /libnativebridge
parented318bff41c4515ca79a11afb97507a452e9fcd3 (diff)
downloadsystem_core-484c55b37fdcf93725b621513a41477b924aada1.zip
system_core-484c55b37fdcf93725b621513a41477b924aada1.tar.gz
system_core-484c55b37fdcf93725b621513a41477b924aada1.tar.bz2
Track renaming of initUnchangeableSystemProperty.
It's now setUnchangeableSystemProperty. Change-Id: Ib42f8ac9f074230dfb7af2eb633e0a536ab7d4b7
Diffstat (limited to 'libnativebridge')
-rw-r--r--libnativebridge/native_bridge.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnativebridge/native_bridge.cc b/libnativebridge/native_bridge.cc
index eab2de0..6fa4b39 100644
--- a/libnativebridge/native_bridge.cc
+++ b/libnativebridge/native_bridge.cc
@@ -360,7 +360,7 @@ static void SetupEnvironment(NativeBridgeCallbacks* callbacks, JNIEnv* env, cons
if (env_values->os_arch != nullptr) {
jclass sclass_id = env->FindClass("java/lang/System");
if (sclass_id != nullptr) {
- jmethodID set_prop_id = env->GetStaticMethodID(sclass_id, "initUnchangeableSystemProperty",
+ jmethodID set_prop_id = env->GetStaticMethodID(sclass_id, "setUnchangeableSystemProperty",
"(Ljava/lang/String;Ljava/lang/String;)V");
if (set_prop_id != nullptr) {
// Init os.arch to the value reqired by the apps running with native bridge.
@@ -368,7 +368,7 @@ static void SetupEnvironment(NativeBridgeCallbacks* callbacks, JNIEnv* env, cons
env->NewStringUTF(env_values->os_arch));
} else {
env->ExceptionClear();
- ALOGW("Could not find initUnchangeableSystemProperty method.");
+ ALOGW("Could not find System#setUnchangeableSystemProperty.");
}
} else {
env->ExceptionClear();