Can I use adb to change the default launcher program?
you can remove (Uninstall) the default program you set using ADB by doing this :
adb uninstall app.package ..... //for example (com.example.homeapp)
If you don't want to remove the app .. here is a quick hack to do it:
- adb shell
- am start -a android.intent.action.MAIN
That way you will have a picker with all apps on your devices that listens to Main Action
- Choose any home screen app you want . then go to settings and set it as default.
adb shell cmd package set-home-activity "package/activity"
adb reboot
For system apps you can't uninstall, use pm disable as in
adb shell pm disable com.android.launcher