slight refactor to reduce lines of code, no logical changes
adding -noClearData option to avoid calling shell pm clear on app

(running installedApp over and over causes confusion in our app when the data is cleared)