The existing logic was mostly ported to the new activity, with the exception of device deletion (and all TODOs).