aosp.py: Fix arch and type issue in flash_image

Use targets_arch and targets_type instead of devices_arch and devices_type for flash_image.
As targets_xxx is for non-concrete device, while devices_xxx is for real device.