Fix cp(1) for files in /proc.

Also modernize the Android-specific hacks.

Bug: https://code.google.com/p/android/issues/detail?id=70793

(cherry picked from commit 1dc64f7a46a9cbac4a90c2cb7445fbbb7c5c8193)

Change-Id: Icacb20e735ec4ab3a93889f06a8d7b1a917f6b16
2 files changed