commit | 1d4cf131b5ea27df6f19ed0787e0ff8ea53d94b1 | [log] [tgz] |
---|---|---|
author | Sahana Rao <sahanas@google.com> | Fri Jun 19 16:03:49 2020 +0100 |
committer | Sahana Rao <sahanas@google.com> | Fri Jun 19 16:07:45 2020 +0000 |
tree | 2768fe4da2b03e38b0e43c05762fdd1454a24979 | |
parent | 14dbcd22df611b0791f942d376969157eec56d93 [diff] |
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