1.you need to unlock the device
4. MAC address
Use below code to update the MAC address. Make sure you are updating your own MAC address.
MAC address update is important as you will find difficult to connect through cable and wifi sometimes specifically on MI and xiomi devices