[scripts] update scripts for android debug

1. change suffix from ".sh" to ".rc"
2. add new helper functions