Fix Ref moved (#1869)
This commit is contained in:
parent
faf99616b4
commit
48363a7e80
|
|
@ -111,7 +111,7 @@ namespace lspd {
|
||||||
|
|
||||||
// Call application_binder directly if application binder is available,
|
// Call application_binder directly if application binder is available,
|
||||||
// or we proxy the request from system server binder
|
// or we proxy the request from system server binder
|
||||||
const auto next_binder = std::move(application_binder ? application_binder : system_server_binder);
|
auto &&next_binder = application_binder ? application_binder : system_server_binder;
|
||||||
const auto [dex_fd, size] = instance->RequestLSPDex(env, next_binder);
|
const auto [dex_fd, size] = instance->RequestLSPDex(env, next_binder);
|
||||||
auto obfs_map = instance->RequestObfuscationMap(env, next_binder);
|
auto obfs_map = instance->RequestObfuscationMap(env, next_binder);
|
||||||
ConfigBridge::GetInstance()->obfuscation_map(std::move(obfs_map));
|
ConfigBridge::GetInstance()->obfuscation_map(std::move(obfs_map));
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,7 @@ namespace lspd {
|
||||||
if (app_binder) {
|
if (app_binder) {
|
||||||
JNI_NewGlobalRef(env, heart_beat_binder);
|
JNI_NewGlobalRef(env, heart_beat_binder);
|
||||||
}
|
}
|
||||||
LOGD("Service::RequestSystemServerBinder app_binder: {}", static_cast<void*>(app_binder.get()));
|
LOGD("app_binder: {}", static_cast<void*>(app_binder.get()));
|
||||||
return app_binder;
|
return app_binder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue