Use direct assignment to replace memcpy

memcpy does not work here.

Test: Telephony sanity tests
Bug: 30954762

Cherry-picked cleanly from:
https://android-review.git.corp.google.com/#/c/421181/

Merged-in: I1e1048fc358bd57df2b230caef16ebf84e255c0a
Change-Id: I1e1048fc358bd57df2b230caef16ebf84e255c0a
(cherry picked from commit dab316622f7459b94f1b4730a3f1266d88f29236)
diff --git a/libril/ril_service.cpp b/libril/ril_service.cpp
index f67575b..a2bede4 100644
--- a/libril/ril_service.cpp
+++ b/libril/ril_service.cpp
@@ -1394,7 +1394,9 @@
                 return Void();
         }
         // safe to copy to geran_bands because it's a union member
-        std::memcpy(&ras_to.bands.geran_bands, bands, ras_to.bands_length * sizeof(uint32_t));
+        for (size_t idx = 0; idx < ras_to.bands_length; ++idx) {
+            ras_to.bands.geran_bands[idx] = (RIL_GeranBands) (*bands)[idx];
+        }
     }
 
     CALL_ONREQUEST(RIL_REQUEST_START_NETWORK_SCAN, &scan_request, sizeof(scan_request), pRI,