summaryrefslogtreecommitdiff
path: root/libs/binder/IServiceManagerFFI.cpp
diff options
context:
space:
mode:
author Parth Sane <parthsane@google.com> 2024-04-22 14:21:07 +0000
committer Parth Sane <parthsane@google.com> 2024-06-20 10:17:34 +0000
commit56a0471ed60e551925dfc8d76cb061ffa8d10122 (patch)
tree33fcbf6d48abc9d08351b130c8a6371ba3e942c0 /libs/binder/IServiceManagerFFI.cpp
parent9f0a7d383bfa8fae53d9e362179b38d8be3f8d13 (diff)
Add a BackendUnifiedServiceManager wrapper
This can be directly used by java and rust ffi Test: atest aidl_integration_test Bug: 333854840 Flag: EXEMPT refactor Change-Id: I12c3730a89422bf08ab723a82888431f291bd7b3
Diffstat (limited to 'libs/binder/IServiceManagerFFI.cpp')
-rw-r--r--libs/binder/IServiceManagerFFI.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/libs/binder/IServiceManagerFFI.cpp b/libs/binder/IServiceManagerFFI.cpp
new file mode 100644
index 0000000000..7d4d7dc063
--- /dev/null
+++ b/libs/binder/IServiceManagerFFI.cpp
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#include <android/os/IServiceManager.h>
+
+#include <BackendUnifiedServiceManager.h>
+#include <binder/IServiceManagerFFI.h>
+
+namespace android::impl {
+sp<android::os::IServiceManager>
+getJavaServicemanagerImplPrivateDoNotUseExceptInTheOnePlaceItIsUsed() {
+ return getBackendUnifiedServiceManager();
+}
+
+} // namespace android::impl