./flash_fp6_factory.sh
*** The Fairphone (Gen. 6) flashing script ***
INFO: The procedure will start soon. Please waitâŠ
INFO: The package type is âuser-factoryâ
INFO: You are using a Linux distribution.
INFO: Validating the integrity of the package.
This might take a while. Please waitâŠ
INFO: Validation complete.
WARNING: Flashing this image wipes all user data and settings on the phone.
It will also remove the Google factory reset protection.
Are you sure you want to continue?
Type âYesâ (case sensitive) and press enter to continue: Yes
INFO: Looking for connected device(s)âŠ
INFO: One The Fairphone (Gen. 6) in fastboot mode found (serial number: ********).
And then it got back directly to the prompt, nothing had happened.
I also tried it from the fastbootd mode with the same result.
There was no bin-linux-x86 directory in the zip file, so I copied it over from the eos one.
The README had a Linux section, so that should work.
Probably the problem is that the 15.151.0 Android version is older than the /e/OS version?
Then I should install the latest Android and cannot install the current /e/OS 3.2 any more and have to wait for 3.3 to come out?
The value of rollback index is UPDATED to match ro.build.version.security_patchâs value of the currently installed version, but only if the bootloader is LOCKED.
Since the bootloader is unlocked, it is appearantly not updated, so this would not be the case here?
About the checksum, if the zip-file was corrupt, it would not unzip.
The script itself does a checksum of all files, when I added a line in the script, it aborted.
I ran the script in debugging mode and this is how it ended:
serial_numbers=
++ /home/kees/apps/asdk/fastboot devices
++ grep fastboot
++ grep -oE â
[:alnum:]+â
for sn in $(â${FASTBOOT_BIN}â devices | grep fastboot | grep -oE â
[:alnum:]+â)
++ /home/kees/apps/asdk/fastboot -s ******** getvar product
PRODUCT_STRING=$âproduct: FP6\nFinished. Total time: 0.004sâ
[[ product: FP6
Finished. Total time: 0.004s == FP6 ]]
serial_numbers=â ********â
ANDROID_SERIAL=********
case $(echo â${serial_numbers}â | wc -w | grep -oE â[0-9]+â) in
++ echo â ********â
++ wc -wh
++ grep -oE â[0-9]+â
echo âINFO: One The Fairphone (Gen. 6) in fastboot mode found (serial number: ********).â
DEVICE_FOUND=true
INFO: One The Fairphone (Gen. 6) in fastboot mode found (serial number: ********).
break
is_unlocked
UNLOCKED_STRING=âDevice unlocked: trueâ
CRITICAL_UNLOCKED_STRING=âDevice critical unlocked: trueâ
++ /home/kees/apps/asdk/fastboot -s ******** oem device-info
DEVICE_INFO_OUTPUT=$âFAILED (remote: 'unknown command')\nfastboot: error: Command failedâ
Some error about fastboot, but it worked fine in before commandsâŠ
Executing the /home/kees/apps/asdk/fastboot -s ******** oem device-info command from the prompt worked fine.