aosp.py: Make flash image for upstream work