From c9fa93f4e892ea06c0c4f8a5270a90161ae4516d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 13 Jun 2024 01:28:35 +0000 Subject: [PATCH] snapuserd: Don't statically link outside of ramdisk. Also, remove snapuserd from the vendor ramdisk since this isn't used anymore. Bug: 345158294 Test: ldd snapuserd_ramdisk and system/bin/snapuserd apply full OTA on aosp_cf Change-Id: I2c2ad1458d67a8449c548e22660f523ba9c86849 --- fs_mgr/libsnapshot/snapuserd/Android.bp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/fs_mgr/libsnapshot/snapuserd/Android.bp b/fs_mgr/libsnapshot/snapuserd/Android.bp index 649309de1..f04020549 100644 --- a/fs_mgr/libsnapshot/snapuserd/Android.bp +++ b/fs_mgr/libsnapshot/snapuserd/Android.bp @@ -145,14 +145,6 @@ cc_defaults { ], include_dirs: ["bionic/libc/kernel"], - system_shared_libs: [], - - // snapuserd is started during early boot by first-stage init. At that - // point, /system is mounted using the "dm-user" device-mapper kernel - // module. dm-user routes all I/O to userspace to be handled by - // snapuserd, which would lead to deadlock if we had to handle page - // faults for its code pages. - static_executable: true, } cc_binary { @@ -165,10 +157,10 @@ cc_binary { "libsnapuserd_client", ], ramdisk_available: false, - vendor_ramdisk_available: true, + vendor_ramdisk_available: false, } -// This target will install to /system/bin/snapuserd_ramdisk +// This target will install to /system/bin/snapuserd_ramdisk // It will also create a symblink on /system/bin/snapuserd that point to // /system/bin/snapuserd_ramdisk . // This way, init can check if generic ramdisk copy exists. @@ -184,6 +176,15 @@ cc_binary { vendor_ramdisk_available: false, ramdisk: true, symlinks: ["snapuserd"], + + system_shared_libs: [], + + // snapuserd is started during early boot by first-stage init. At that + // point, /system is mounted using the "dm-user" device-mapper kernel + // module. dm-user routes all I/O to userspace to be handled by + // snapuserd, which would lead to deadlock if we had to handle page + // faults for its code pages. + static_executable: true, } cc_defaults {