only register jni for ClatCoordinator on T+
(Clat was mainlined in Android T) Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ic30b89c809adc95606795bdd9309169559070c89
This commit is contained in:
parent
c41291ba48
commit
a2b6ea189d
1 changed files with 5 additions and 5 deletions
|
|
@ -22,8 +22,8 @@
|
|||
namespace android {
|
||||
|
||||
int register_com_android_server_TestNetworkService(JNIEnv* env);
|
||||
int register_com_android_server_connectivity_ClatCoordinator(JNIEnv* env);
|
||||
int register_com_android_server_BpfNetMaps(JNIEnv* env);
|
||||
int register_com_android_server_connectivity_ClatCoordinator(JNIEnv* env);
|
||||
int register_android_server_net_NetworkStatsFactory(JNIEnv* env);
|
||||
int register_android_server_net_NetworkStatsService(JNIEnv* env);
|
||||
|
||||
|
|
@ -38,15 +38,15 @@ extern "C" jint JNI_OnLoad(JavaVM* vm, void*) {
|
|||
return JNI_ERR;
|
||||
}
|
||||
|
||||
if (register_com_android_server_connectivity_ClatCoordinator(env) < 0) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
|
||||
if (register_com_android_server_BpfNetMaps(env) < 0) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
|
||||
if (android::modules::sdklevel::IsAtLeastT()) {
|
||||
if (register_com_android_server_connectivity_ClatCoordinator(env) < 0) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
|
||||
if (register_android_server_net_NetworkStatsFactory(env) < 0) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue