After a factory reset or when you switch to a new device, log in to
your Google account on the device and enable Account sync to
restore the data on the phone.
Factory reset
Note:
1. Restoring factory settings will wipe all app data, contacts, text
messages, and so on. Backup important data before a factory
reset.
2. If "Erase internal storage" is enabled, ensure that all important
files, such as photos and documents in the phone and local
backup, have first been copied to another device.
Operating guidelines:
1. Settings > System settings > Back up and reset > Reset
phone
2. Tap Reset phone
3. Enter passcode (If passcode is enabled)
4. Wait till the factory reset is complete