add flash method to twrp and cwm