Support preserving dangling and external symlinks in snapshot

dangling symlinks are sometimes intended. For example, files within device image may points to device paths instead of host paths, which appear as dangling symlinks on the host. Preserving these links allows adevice integration tests to snapshot device symlinks.

Test: atest atest_unittests
Bug: 336913044
Change-Id: I2ce94953d17937fc4fc7341fdc461d130ec7c81e
2 files changed