If you’re allowed to do any maintenance you want on the physical components of something you own, then you should be allowed to do any maintenance you want on the software components of something you own.
It’s not hacking (in the sense of “unauthorized intrusion”) if you own it or have authorization to do it from the owner of it.