You should reset your Android device and erase all of your personal data before you sell it, trade it in, or give it away.
If you want to manually update your Android device, you can find available updates in the Settings app.