Adding flashing script from xda.dev

Signed-off-by: Simarpreet Singh <simar@linux.com>