DFU restore will remove the passcode but not activation lock (iCloud/AppleID password). If the phone isn't signed into iCloud then the DFU restore will work perfectly, if it's still signed in then it will need to be removed from the device list by the original person who set it up before the restore will work.I have a friend who just received an iPad that was a gift back, they want to factory reset it, but don't know the passcode. Can this be done by connecting the iPad to a laptop through iTunes or is there another way to do it?
Passcode is the least of their worries. If it wasn’t erased, the person who gave it to them probably didn’t remove their Apple ID either, and it’ll be under Activation Lock.I have a friend who just received an iPad that was a gift back, they want to factory reset it, but don't know the passcode. Can this be done by connecting the iPad to a laptop through iTunes or is there another way to do it?