# enable usb debugging
# root the phone with https://github.com/topjohnwu/Magisk
# download https://developer.android.com/studio/releases/platform-tools
adb root
adb shell
find / -name "*mmssms*"
exit
adb pull /PATH/TO/mmssms.db /PATH/TO/DESTINATION/FOLDER
Or simple, with apk: https://apkpure.com/sms-backup-restore/com.riteshsahu.SMSBackupRestore