Upgrade lfi-runtime to dbe02592c0e860ffce90bbe76a7c1a2f37ef6750

This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update external/lfi/lfi-runtime
For more info, check https://cs.android.com/android/platform/superproject/main/+/main:tools/external_updater/README.md

I additionally added liblog as a shared library for logging.

Bug: 491482999
Bug: 491542512
Test: TreeHugger
Test: lunch blazer-trunk_staging-userdebug && m
Test: Flashing local build and checking logcat
Test: atest MctsMediaV2TestCases -- --module-arg MctsMediaV2TestCases:instrumentation-arg:codec-prefix:=c2.android.inproc.opus.decoder
Change-Id: Id575347faab5fbe8f210f68feb27ead10248cd77
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..35477b3
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,216 @@
+// Copyright (C) 2026 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.
+
+cc_library_static {
+    // This library must be separate since it uses callback.S, which will create
+    // callback.o. liblfi also creates a callback.o from callback.c. If the two
+    // libraries are combined it causes a conflict.
+    name: "liblfi-core-s",
+    include_dirs: [
+        "external/lfi/lfi-runtime/core",
+    ],
+    arch: {
+        arm64: {
+            srcs: [
+                "core/arch/arm64/callback.S",
+                "core/arch/arm64/runtime.S",
+                "core/arch/arm64/trampoline.S",
+            ],
+        },
+        x86_64: {
+            srcs: [
+                "core/arch/x64/callback.S",
+                "core/arch/x64/runtime.S",
+                "core/arch/x64/trampoline.S",
+            ],
+        },
+        riscv64: {
+            srcs: [
+                "core/arch/riscv64/callback.S",
+                "core/arch/riscv64/runtime.S",
+                "core/arch/riscv64/trampoline.S",
+            ],
+        },
+    },
+    visibility: [":__subpackages__"],
+    min_sdk_version: "apex_inherit",
+    apex_available: [
+        "com.android.media.swcodec",
+    ],
+}
+
+cc_defaults {
+    name: "lfi-runtime-defaults",
+    include_dirs: [
+        "external/lfi/lfi-runtime/core/include",
+        "external/lfi/lfi-runtime/linux/include",
+    ],
+    cflags: [
+        "-Wno-gnu-zero-variadic-macro-arguments",
+        "-Wno-unused-parameter",
+        "-fno-delete-null-pointer-checks",
+        "-fno-strict-aliasing",
+        "-fno-strict-overflow",
+        "-fvisibility=hidden",
+    ],
+    shared_libs: [
+        "liblog",
+    ],
+}
+
+cc_library {
+    name: "liblfi",
+    defaults: ["lfi-runtime-defaults"],
+    srcs: [
+        "core/arch_asm.c",
+        "core/box.c",
+        "core/boxmap.c",
+        "core/core.c",
+        "core/ctx.c",
+        "core/error.c",
+        "core/extalloc.c",
+        "core/log.c",
+        "core/mmap.c",
+        "core/trampoline.c",
+        "linux/buf.c",
+        "linux/cwalk.c",
+        "linux/debugger.c",
+        "linux/elfload.c",
+        "linux/elfsym.c",
+        "linux/fd.c",
+        "linux/host.c",
+        "linux/linux.c",
+        "linux/list.c",
+        "linux/path.c",
+        "linux/perf.c",
+        "linux/proc.c",
+        "linux/sys_minimal.c",
+        "linux/sys/sys_arch_prctl.c",
+        "linux/sys/sys_brk.c",
+        "linux/sys/sys_exit.c",
+        "linux/sys/sys_exit_group.c",
+        "linux/sys/sys_lfi_pause.c",
+        "linux/sys/sys_mmap.c",
+        "linux/sys/sys_munmap.c",
+        "linux/sys/sys_none.c",
+        "linux/thread.c",
+        "linux/trampoline.c",
+    ],
+    cflags: [
+        "-DCONFIG_ENABLE_DYLD=1",
+        "-DCONFIG_MAX_FUTEXES=512",
+        "-DHAVE_ARC4RANDOM_BUF",
+        "-DHAVE_GETAUXVAL",
+        "-DHAVE_GETENTROPY",
+        "-DHAVE_GETRANDOM",
+        "-DHAVE_MEMFD_CREATE",
+        "-DHAVE_R_DEBUG",
+        "-DHAVE_SYSINFO",
+        "-DHAVE_SYS_FUTEX",
+        "-DHAVE_SYS_GETDENTS64",
+        "-DHAVE_SYS_MEMFD_CREATE",
+        "-DSYS_MINIMAL",
+    ],
+    target: {
+        android_arm64: {
+            srcs: [
+                "core/arch/arm64/callback.c",
+                "core/arch/arm64/regs.c",
+                "linux/arch/arm64/sys.c",
+            ],
+            include_dirs: [
+                "external/lfi/lfi-runtime/core/arch/arm64",
+                "external/lfi/lfi-runtime/linux/arch/arm64",
+            ],
+        },
+        android_x86_64: {
+            srcs: [
+                "core/arch/x64/callback.c",
+                "core/arch/x64/regs.c",
+                "linux/arch/x64/sys.c",
+            ],
+            include_dirs: [
+                "external/lfi/lfi-runtime/core/arch/x64",
+                "external/lfi/lfi-runtime/linux/arch/x64",
+            ],
+        },
+        android_riscv64: {
+            srcs: [
+                "core/arch/riscv64/callback.c",
+                "core/arch/riscv64/regs.c",
+                "linux/arch/riscv64/sys.c",
+            ],
+            include_dirs: [
+                "external/lfi/lfi-runtime/core/arch/riscv64",
+                "external/lfi/lfi-runtime/linux/arch/riscv64",
+            ],
+        },
+    },
+    arch: {
+        x86_64: {
+            enabled: false,
+        },
+    },
+    whole_static_libs: [
+        "lfi-verifier",
+        "liblfi-core-s",
+    ],
+    export_include_dirs: [
+        "linux",
+        "linux/include",
+        "core",
+        "core/include",
+    ],
+    visibility: [
+        ":__subpackages__",
+        "//external/libopus:__subpackages__",
+        "//build/soong:__subpackages__",
+        "//frameworks/av/media/module/libapexcodecs:__subpackages__",
+    ],
+    min_sdk_version: "apex_inherit",
+    apex_available: [
+        "com.android.media.swcodec",
+    ],
+}
+
+cc_binary {
+    name: "lfi-run",
+    defaults: ["lfi-runtime-defaults"],
+    srcs: ["tools/lfi-run/main.c"],
+    static_libs: [
+        "liblfi",
+    ],
+    arch: {
+        x86_64: {
+            enabled: false,
+        },
+    },
+}
+
+cc_binary {
+    name: "lfi-ubench",
+    defaults: ["lfi-runtime-defaults"],
+    srcs: [
+        "tools/lfi-ubench/lib.c",
+        "tools/lfi-ubench/main.c",
+    ],
+    static_libs: [
+        "liblfi",
+    ],
+    arch: {
+        x86_64: {
+            enabled: false,
+        },
+    },
+}
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..0ab5541
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,21 @@
+# This project was upgraded with external_updater.
+# Usage: tools/external_updater/updater.sh update external/lfi/lfi-runtime
+# For more info, check https://cs.android.com/android/platform/superproject/main/+/main:tools/external_updater/README.md
+
+name: "lfi-runtime"
+description: "The LFI runtime is responsible for loading sandboxes and handling host calls."
+third_party {
+  license_type: NOTICE
+  last_upgrade_date {
+    year: 2026
+    month: 3
+    day: 12
+  }
+  homepage: "https://github.com/lfi-project/lfi-runtime"
+  identifier {
+    type: "Git"
+    value: "https://github.com/lfi-project/lfi-runtime"
+    version: "dbe02592c0e860ffce90bbe76a7c1a2f37ef6750"
+    primary_source: true
+  }
+}
diff --git a/MODULE_LICENSE_MIT b/MODULE_LICENSE_MIT
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_MIT
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..2e8f086
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1 @@
+include platform/system/core:main:/janitors/OWNERS
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/config.h