Create file as calling package before copying the file

File ownership is determined at the time of file creation. If the file
is created by shell, MediaStore will mark shell as owner of the file. To
avoid this, we now try to create file from test before copying files
using shell command.

Bug: 159412983
Test: atest android.provider.cts.media
Change-Id: Ib31c703632965e59b94403ffe00b206a0bcedf5d
Merged-In: Ib31c703632965e59b94403ffe00b206a0bcedf5d
(cherry picked from commit 1d4cf131b5ea27df6f19ed0787e0ff8ea53d94b1)
1 file changed