modify script for AOSP version