found an easy solution. instead of switch-cases, add home back button support in the manifest for each activity. test on bboxqa and autoqa