Device listing: fix device priority on android and get rid of a ton of g_prints

Also note that g_error() immediately exits the application. If you don't want that, g_critical() is a better choice.