It doesn't really work like this, especially for newer, encrypted devices. For things like this all you actually need is to install TWRP (custom recovery mode) on the device, and make a backup that you can then restore later. Flashing recovery requires you to have OEM unlocking enabled in developer settings, and initially wiping your data, so it can access userdata partition correctly.
Â
Alternatively, you could do a full backup using ISP method, but that's overkill. Malware and safety isn't that big concern on Samsung Android devices since you can always write factory firmware using Odin and have a clean device.











