Add automatic run event, collect app name and package name