In reality, it's okay to install Linux on your computer, change the computer components like the hard drive for instance as well as to install the custom ROM on your Android. According to the YouTube comments, there are actually some corrections like the new law prohibits the ISPs from monitoring your activities unless you're suspected of doing something illlegal and the fact that you're allowed to modify the device if you're the owner of it unless the modification opens doors to something illegal like removing DRM for instance. It's obviously illegal to circumvent the DRM ptotections of the software or hardware in the first place.
Sideloading of Android apps isn't prohibited by that new law in Mexico so the businesses don't need to worry about that. What the law prohibits is the illegal stuff like the kind of modification that opens doors to such illegal stuff in the first place. One notorious example involves the illegal sales of devices containing Kodi with illegally pre-bundled stuffs. It's basically one definition of piracy in my opinion. Another thing to note is that flashing custom roms on an Android phone with locked bootloader is sort of illegal as it is considered circumventing DRM protections although not all Android phones come with that feature. Why would the manufacturers come up with such protections for the Android phones in the first place?
The video by Switched To Linux has like tons of things to mention about but even then, the information in the video is partially accurate. Not to mention that the original articles are in Spanish which the tech YouTubers put in the links in the video description.