A list of proposed rules put out by the U.S. Copyright Office would make jailbreaking devices like smartphones and smart speakers completely legal, if adopted. Jailbreaking, or circumventing DRM, is currently in a legally grey area. If these rules are implemented, then people could create their own tools to jailbreak a device for repair purposes. However, jailbreaking tools could not be distributed under these rules.
https://www.notebookcheck.net/U-S-Copyright-Office-may-make-circumventing-DRM-jailbreaking-for-repair-purposes-legal-sort-of.346461.0.html