Replace foreach loops with the calls to copy-files am: 011b969d81 am: 7232458e31 am: 1aaba21a59 am: 4be1724c3a

Original change: https://android-review.googlesource.com/c/device/google/raviole/+/1883313

Change-Id: Id8de23ee2a9f435931be10fa404df8bc9cc788af