Modified /frameworks/base/services/jni part