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
1 file changed