I’m a newbie in all this matter and I hope this is the right place to ask this question.
I want to install Lineage OS 15.1 on my new FP2, following these directions: https://wiki.lineageos.org/devices/FP2/install. Worked until incl. step 7.
But when I try to execute step 8, " Place the LineageOS .zip package … on the root of /sdcard", using adb, I get the error message:
“error: device unauthorized.
This adb server’s $ADB_VENDOR_KEYS is not set
Try ‘adb kill-server’ if that seems wrong.
Otherwise check for a confirmation dialog on your device.”
I might have forgotten to enable USB debugging If so, is there any workaround?
Thanks already in advance for your support.
The guide also says right after the ADB part … “You can use any method you are comfortable with.”
You have the phone connected via USB to a computer. Just boot into TWRP, and TWRP will offer Internal Storage and the SD card for file transfer via USB (might need MTP support from your computer’s OS).
If you have a fitting card reader or a microSD-USB adapter (always nice to have when owning cards), remove the SD card from the phone and use the card reader/adapter to transfer files to the card, then put the card back into the phone.
I tried option 2, transferring the zip file via SD card, seemed most practical. Only in TWRP > Install > Select Storage, it won’t let me select Micro SD (also says it has 0MB). So I suppose the FP2 doesn’t recognise the SD Card. Do I first have to reboot the FP2, with the card being inserted? Right into recovery mode again? (How?)
I don’t quite understand opt. nr. 1, sorry. Where does TWRP
Nowadays some cards are formatted with the exFAT filesystem when you buy them. TWRP seemingly can’t handle that currently (but Android can, that’s why it often goes unnoticed).
Backup other important data from the card if there is any, and then use your computer to format the card with the FAT32 filesystem, if possible, and try again.
… means if your computer is prepared for it (e.g. Windows installs drivers for this when you connect the phone to it for the first time), you should be able to transfer files with your computer’s file explorer after booting TWRP.
MTP is just the term for the technology behind it, and TWRP is able to do it.
Micro SD card is formatted correctly (FAT32), but still won’t work.
I managed to transfer the installationzip file to the FP2 via Android File Transfer (thanks for the advice!).
Unfortunately, installation failed twice:
Checking for MD5 file…
Skipping MD5 check: no MD5 file found
Warning: No file_contexts
E3004: This package is for device: FP2; this device is .
E: unknown command [log]
Updater process ended with ERROR: 7 (when unchecking ‘zip signature verification’)
Zip signature verification failed! (with ‘zip sign. verif.’, apparently)
Now this is a different problem; but maybe you have another advice at hand? Or can refer me to another thread where this has been discussed already (otherwise I’ll search anew)?
Card isn’t enabled in “Mount”, but I also can’t enable it.
Just realised that it’s an older TWRP version indeed – even though I did install the newest one, but that was before wiping (could that be the reason?). If I download and install the newest version (again), do I also have to do the wiping again? In the guide, it says to do do a Wipe, Format Data and Advanced Wipe. Could that set it back to the originally installed TWRP version?
But after installing a current TWRP version, you have to reboot right into it to let it make itself resident. Booting Fairphone OS or Fairphone Open OS instead right after installing will most probably result in the OS restoring its own recovery.
In the TWRP install guide, this is “Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don’t follow this step, you will have to repeat the install.”.