I have no relevant experience with this either, but I was interested, so I did some googling… Seems it is not possible to root without wiping the device. However, the information provided in the page linked below indicates that you can first backup your system data using adb
, then root the device (wiping the data), and finally restore the backup onto your now rooted device:
However, please note that the linked guide is from 2014, so you may want to do some due diligence to check that the information is still valid in 2022.
Hope this is helpful.