Default 2 special questions

Good evening guys, after digging through androids and trebuchets code for More than a day, I need your help:
1.) I need to know the method which is responsible for the creation of the choose action/complete action with dialog. Or to be exact: the method which checks whether there is a default action set and doesnt create a dialog.
2.) How do launchers likr Trebuchet, Nova and so on get their icons? I know about the ActivityInfo.loadIcon(pm) method, and i know no other way(except losding the logo which isnt the case) to get a logo. The thing is that i need to modify this method(the method providing the icon). It has to be the loadIcon() thing OR there is some method interrupting the call in the launcher. I studied the trebuchet source because its open source and i thought that the icons may be loaded differently due to the ability to load icon packs, but this isnt the case either.

Gesendet von meinem SM-N9005 mit Tapatalk