[AMS][Bugfix] Fix hang when dumping local cache info.

TransferPipe exploits pipe for IPC. However, it can't be used
for local dump. If data is large enough, writing will get stuck
when buffer is full since reading can't be executed. So directly
dump to target fd instead of using pipe for local dump.

Bug: 270277093
Test: Manual
Change-Id: Ic2f52672fbf9f1797dbafcd71d363be93b3b5f1e
1 file changed