Can I use adb to change the default launcher

I installed one of the programs as the default launcher and the default installer, so now I can’t change the default programs, can I change the default programs from android-sdk \ android-sdk \ platform-tools \ adb.exe or remotely shell, How can I do this?

and can I remove the program defaults in java code?

+5
source share
4 answers

You can remove (delete) the default program using ADB by following these steps:

adb uninstall app.package  ..... //for example (com.example.homeapp)

If you do not want to remove the application, here is a quick hack:

  • adb shell
  • am start -a android.intent.action.MAIN

,

  • , . .
+12

, , pm disable,

adb shell pm disable com.android.launcher

+7

- adb. , , :

adb shell pm clear package.name.of.app

, , .

+1

adb shell cmd package set-home-activity "package / activity"

reboot adb

+1
source

All Articles