revert device-bricking changes