Due to a missing "else" the logic to activate a device administrator was immediately falling through into the logic to remove it. As a result, the add was immediately countermanded by a remove.
Due to a missing "else" the logic to activate a device administrator was immediately falling through into the logic to remove it. As a result, the add was immediately countermanded by a remove.