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?
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:
,
, , pm disable,
adb shell pm disable com.android.launcher
- adb. , , :
adb shell pm clear package.name.of.app
, , .
adb shell cmd package set-home-activity "package / activity"
reboot adb