scripts: Fixing some bugs and hello Travis CI

Signed-off-by: Simarpreet Singh <simar@linux.com>
Adding flashing script from xda.dev

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