Install and open Terminal Emulator, and enter this:
That's it! The phone will reboot and create an on-device backup. You don't have to ever do it again as its not wiped by recovery or Odin flashes.
In the event of imei loss enter this to restore:
Credit to docholiday
Sent from my SGH-T999 using Tapatalk