[Android General] ale5000:
Did you ever get "This device was reset. To continue, sign in with a Google Account that was previously synced on this device."?

Italian version: "Questo dispositivo è stato reimpostato. Per proseguire, accedi a un account Google già sincronizzato con il dispositivo."

It is a new protection on some phones starting from Android 5.1.

If you have resetted the password of your account after a factory reset it won't accept it also if it is correct.

IMPORTANT: Do not use this guide if the phone isn't yours.

After various attempts I was able to unlock it. Tested on Huawei with Android 5.1.1 but it possibly works also on other configurations with minor changes.

Requirements:

- The locked phone (obviously)

- Internet on the phone with the SIM or Wireless

- A normal USB cable

- A PC with adb installed

Procedure:

1) Start the phone and go all the steps until you see the hated message

2) Now tap on the place where you usually instert the mail so the keyboard will appears

3) Hold the Swipe icon on the keyboard until "Huawei Swipe" is opened

4) Tap on Help, then Version, then Swipe

5) Tap on www.swype.com

6) Tap on Browser, then select always

7) Now search: nova launcher 4.0.2 apk

8) Download the one from apkmirror

9) Go in the downloads on the browser, tap on com.teslacoilsw.launcher-4.0.2-40200-minAPI16.apk and install it

10) After the installation open it and now you can access Android (although is temporary)

11) Now go in the settings, then tap "info about the phone" and tap 7 times on "serial number" to enable developers options.

12) In the developers options enable Debug USB

13) Connect the phone to the pc

14) On the pc run: adb devices

15) On the phone it should ask to accept the pc, tick the options to keep the setting and accept it (if you don't get it then you have done something wrong)

16) On the phone open the browser and search kinguser, download the one from http://kinguserapk.com/download.html, install and open it

17) On the phone complete the procedure to get root access and set the options to consent root access to adb (sometimes the software give and error about this, try various options because we absolutely need this)

18) On the pc run:

adb shell
su
rm /data/system/locksettings.*
rm /data/system/*.key
rm /data/system/accounts.db
rm /data/system/sync/accounts.xml
rm /data/system/sync/status.bin
rm /data/data/com.google.android.gm/databases/*
rm /data/data/com.google.android.gsf/databases/*
rm /data/data/com.google.android.gms/databases/*
rm /data/data/com.google.android.talk/databases/*

19) On the phone go in the settings then go in the app list and terminate all these:

Google Account Manager
Google Backup Transport
Google One Time Init
Google Partner Setup
Google Service Framework

20) On the phone go in the account and add a Google account (if you have done everything correctly it don't show the annoying messages) and leave it syncing

21) Now restart the phone and re-do the setup wizard but now instead of asking for a Google account it will auto-login (this step is essential)

22) In the real world scream outside the window about your success and you are done, this is the most important step ;)