naz664 / crDroid_gsi

Script and patches for building PHH-Treble based crDroid GSI
136 stars 28 forks source link

Unable to connect to WiFi using Google Setup Wizard and "Couldn't Finish Restoring the Backup" error (FP3) #30

Closed PinkSerenity closed 8 months ago

PinkSerenity commented 10 months ago

I experience these problems when flashing the "slim" image to a Fairphone 3.

During the setup phase, the included Google Setup Wizard can't connect to WiFi. After entering the password, usually some small status text should appear beneath the SSID, like "Connecting", "Connected" or "Saved". But when I try it, nothing happens, and when I click the Network again, the password prompt appears again.

This can be bypassed by accessing the Settings app via ADB and connecting there. However, mobile data can't be activated until the completion of the setup, and both ADB commands and the toggle don't have any effect (the latter reverting to "Off" after a few seconds). This is why trying to proceed the setup without ADB by clicking "Use mobile data instead" will result in an error message about connection issues.

After I connect to WiFi and return to the Setup Wizard, I can proceed as usual. Close to the end, after having already started the restoration of an online backup, the message "Couldn't Finish Restoring the Backup" appears. After the completion of the setup, it becomes apparent that the only thing that has been restored were the installed apps. Neither app data nor settings like saved networks were restored properly.

I will attempt attaching log files as soon as possible.

Additionally, I have tried to find a way around that by flashing GApps packages that include their own Setup Wizard, but to no avail: Somehow, both the "slim" as well as the "vanilla" image didn't leave enough space on the system partition to allow me to flash more apps. Curiously, I was unable to find the files of the original Setup Wizard in order to delete them to free up space.

PinkSerenity commented 10 months ago

I think I could have simply made one log file, but I thought having one after each occurance might make finding the issue(s) a bit easier:

logcat.txt (WiFi connection problem) logcat2.txt (mobile data activation problem) logcat3.txt (restore problem)

The backup used for the restoring process was made before resetting the phone, without additional flashing, so there should be no version difference which could lead to that error.

PinkSerenity commented 9 months ago

During the setup phase, the included Google Setup Wizard can't connect to WiFi. After entering the password, usually some small status text should appear beneath the SSID, like "Connecting", "Connected" or "Saved". But when I try it, nothing happens, and when I click the Network again, the password prompt appears again.

This can be bypassed by accessing the Settings app via ADB and connecting there. However, mobile data can't be activated until the completion of the setup, and both ADB commands and the toggle don't have any effect (the latter reverting to "Off" after a few seconds). This is why trying to proceed the setup without ADB by clicking "Use mobile data instead" will result in an error message about connection issues.

These two still happen on 9.9. The other issue has been fixed. Due to the workaround, it isn't that much of a problem.

PinkSerenity commented 8 months ago

Seems fixed on my end. I haven't tested mobile data yet, but I don't think that would be different.