Not sure if that's the place to ask this (maybe stackOverflow is better), but here we go:
There are plenty of possible commands that you can perform by using ADB. I use many of them on my tiny app-manager alternative app.
I can't find a way to clears the default of a specified app.
I mean the clearing of the app as the default one to handle some actions, as being shown on the "app-info" (AKA "manage-app") screen.
What I've tried
In the past, it seems that it was possible by having a certain permission and some API commands, but it's no longer possible.
A possible workaround would be to disable&enable the app, but that causes weird things to happen on some other apps, for example launchers will remove the app's icon when it becomes disabled.
I've also noticed a file on :
that has some xml tags that include apps, and when I clear-default of an app, it is gone from this file. I don't think that playing with this file would be a good workaround, as things can change over time, and I don't even know if changing it will do anything, especially not in the current session.
If there is no such a command?
Is there any way to do it using root?