Trivia:
- Open command prompt - Press Window Key + R, type in "cmd" (without the quotes), and hit enterif you are using windows. Otherwise open terminal.
- Enter fastboot mode - When the phone is off. Hold volume up + power until the "fastboot" screen appears.
- Enter recovery mode - When the phone is off. Hold volume down + power until the you feel a vibration (and the logo of custom recovery appears).
- Backup (Optional) - Unlocking the bootloader will completely wipe all data from the device. This includes apps, settings and even the contents of the internal sdcard (pictures, music, etc.). Copy all important files off the phone onto a PC or upload them to a cloud.
- Driver Installation(for windows users) - Download and install the Universal ADB Driver. Alternatively, use this method.
- Command usage (for mac & linux users) - you need to type ./adb instead of adb and ./fasboot instead of fastboot in commands which will be used later.
- Jolla Store working.
After making sure you are familiar with the above Trivia, go ahead.
To install Sailfish OS, you need to have an unlocked bootloader and a custom recovery. As the current version of Sailfish OS is Alpha, It is recommended to flash it as a secondary rom using MultiROM. This tutorial consists of 4 parts. Feel free to jump to any part if you have already done previous ones.
1. Setup SDK.
2. Unlock Bootloader & Install Custom Recovery+ROOT.
3. Set up MultiROM.
4. Install Sailfish OS.
1. Setting up SDK:
- Get a slimmed version containing only the essential components here.
- Extract the zip and place the android-sdk folder on your desktop.
- To confirm that it is indeed working, open a command prompt window and enter the following commands:
Code:
cd Desktop/android-sdk/platform-tools
adb version
If it displays "Android Debug Bridge version x.x.xx" it is working. If it is gives an error saying that adb is not a recognized command, it has not been successful. Carefully repeat the steps above if this is the case. Close the command prompt window when you are done.
2. Unlocking Bootloader & Install Custom Recovery+ROOT:
- Turn the phone off. Then boot it into fastboot mode by holding volume up + power.
- Connect the phone to your computer via USB, then open a command prompt and type:
Code:
cd Desktop/android-sdk/platform-tools
This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue you must fix your drivers so that your phone is listed under fastboot devices.
- If the phone has been recognized by the command above, proceed to unlocking the bootloader with the following command:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
- After the above command has finished executing, run the following
- The phone will reboot. Wait until the phone has fully booted up into android, then adjust the following settings on the phone:
USB Debugging - On your phone go to Settings > About phone > Tap on Build number 7 times. This will enable Developer options. Now go back to Settings > Developer options > Enable USB debugging
Disable CM Recovery Protection - On your phone go to Settings > Developer options. Then disable the 'Update recovery with system updates' option.
Close the command prompt window and proceed onto the next section of the guide.
- Download the TWRP Recovery and place it here: desktop/android-sdk/platform-tools.
- Download SuperSU zip and copy to your phone.
- Turn the phone off. Then boot it into fastboot mode and connect to computer via USB.
- Open a new command prompt and run the following commands:
Code:
cd Desktop/android-sdk-windows/platform-tools
Code:
fastboot flash recovery twrp-2.8.5.1-bacon.img
- Once the flash has completed, power off the phone and boot into recovery mode.
- Now select Install and choose the SuperSU zip from the location you copied earlier. Swipe to confirm the flash.
- Reboot phone and you should see a new app 'SuperSU' in installed apps. Now you are rooted.
3. Setup MultiROM:
- Download the MultiROM Recovery and place it here: desktop/android-sdk/platform-tools.
- Download MultiROM Zip and copy to your phone.
- Install MultiROM App in your phone. This is to patch the kernel (and trust me, this is the easiest way to make your kernel compatible with MultiROM).
- Open the installed app, (grant the root access when prompted) you should see three checkboxes but ONLY SELECT Kernel and choose your current rom. Click 'Install'. Your kernel will be 'kexec' patched now.
- Turn the phone off. Then boot it into fastboot mode connect to computer via USB.
- Open a new command prompt and run the following commands:
Code:
cd Desktop/android-sdk-windows/platform-tools
Code:
fastboot flash recovery TWRP_multirom_bacon_20150321-00.img
- Once the flash has completed, power off the phone and boot into recovery mode.
- Now select Install and choose the MultiROM zip from the location you copied earlier. Swipe to confirm the flash.
- Reboot phone and you should see a new menu asking to choose which rom to boot.
4. Install Sailfish OS:
Follow the steps mentioned in advanced users section above.