Add support for autoclear flag for loopdevice

Returning a struct with the File reference instead of just a device path
to make sure autoclear loop device is not automatically cleared once the
attach function returns.

Also add host supported attribute for libdm since the library should
work on the host.

Bug: 375432644
Test: atest libdm_rust.test; atest apkdmverity.test

Change-Id: I223fe2eff056fb6ca86df64e871825f9b04881d7
diff --git a/libs/devicemapper/Android.bp b/libs/devicemapper/Android.bp
index 5332469..6b7f680 100644
--- a/libs/devicemapper/Android.bp
+++ b/libs/devicemapper/Android.bp
@@ -8,7 +8,6 @@
     defaults: ["avf_build_flags_rust"],
     srcs: ["src/lib.rs"],
     edition: "2021",
-    prefer_rlib: true,
     rustlibs: [
         "libanyhow",
         "libbitflags",
@@ -18,16 +17,12 @@
         "libuuid",
         "libzerocopy",
     ],
-    multilib: {
-        lib32: {
-            enabled: false,
-        },
-    },
 }
 
 rust_library {
     name: "libdm_rust",
     defaults: ["libdm_rust.defaults"],
+    host_supported: true,
 }
 
 rust_test {