 Hello and welcome to another tutorial video on flashing free operating systems on mobile phones. Today we are going to flash Replicant on the Samsung Galaxy S3 using a Linux desktop. Replicant is a fork of Linux OS and focuses on being a fully free operating system, meaning that it replaces many of the proprietary firmware and drivers used in Linux OS by pre-software counterparts. If you want to know more about the motivation behind this video you can go on our campaign website upcyclingandroid.org. To install Replicant on our phone we start by going to Devices and looking for a phone model. In this case we have a Samsung Galaxy S3 and here on the device information page we read Replicant installation and need to install Replicant on this phone we should see the recovery installation defined all page. So this starts out by saying that these are the instructions to install the Replicant recovery image and is indeed also part of a larger procedure of installing Replicant but this is the first step. So on the prerequisites we should make sure that we have a phone that is listed with its model number here. In this case we exactly have Samsung Galaxy S3 GT-i 9300 and a personal computer with GNU Linux installed. I already told you that I have a Linux desktop and next we should install Heimdall. I've already installed Heimdall on my PC but if you haven't done so the tools installation page provides you a few examples how to install Heimdall with your package manager. Next we should download the files. So we download the files for a specific Replicant release by going on this link. It later also tells us which files to download. So for one the GPG signing key that has been used to sign the images and also well the recovery image. So we go on this link and we brought to the specific release but if we scroll up we will see that there's indeed a newer release that is 6.0004 and if we now go on the table to our device we will see a couple of images one for the system and one for the recovery. So we are going to download well the GPG signing key which is a file that owns in the browser but we can just save it to a location and next the recovery image which you see I've already downloaded so I don't need to do that again and also the signature file which again owns in the browser but you can just save it and I've also downloaded this already but we can just replace it with a small file. Downloads fast and because we are going to in the recovery flash the system we are already going to download the system files as well. So this should be you already you see that I've already downloaded it so no need to do it again and also the signature file. Next we should check the signature of the recovery image to do this we should import the GPG key to our key ring. So going on this page we see one method is to get the key from the key server and the other one is to import the file that we've downloaded before the GPG key so the problem with the GPG key is that it's out of date and the one in the key on the key server is actually up to date so we are going to get the key from the key server and in our terminal paste this command which imports the key successfully. Now that we've downloaded the key we can check the signature of the recovery key with the following command so we're just going to copy that over and replace the arguments so this should be the image file and this should be the image signature file so this says says says good signature so we're good and we have a file that's not compromised and that is not corrupted a recovery image file that that is. Next we are going to prepare our device as you can see I changed the window configuration so now we have on the left the browser and the and the terminal window and on the right we have a webcam feed showing the phone so in the first step we should make sure that the device is completely turned off and disconnected from usb cable so you go to the phone unlock the lock screen long press the power button and tap power off. Now that the device is turned off we remove the external case next we follow the device specific instructions to boot the phone into download mode so scrolling down we follow the devices under all other devices so in the first step we start the device by holding the volume down select and power button until a warning message appears and then we confirm that we want to boot into download mode using the volume up button and that should be it so volume down select and power now at the warning screen we select volume up and we have the phone and brought we brought the phone into download mode we now connect the phone with the computer using a usb cable and proceed with installing the recovery image so to install the recovery the recovery image we have to issue a heimdall command and since we have a heimdall galaxy s3 phone we copy this command over to the command line and replace the arguments correspondingly this should be recovery the recovery image file and this is one confirm by pressing enter and that's it we successfully flashed the recovery image we now connect the phone with the computer using a usb cable and proceed with installing the recovery image so to install the recovery the recovery image we have to issue a heimdall command and since we have a heimdall galaxy s3 phone we copy this command over to the command line and replace the arguments correspondingly this should be recovery the recovery image file and this as well confirm by pressing enter and that's it we successfully flashed the recovery image now that the phone successfully rebooted into recovery mode we can go ahead and proceed with the remaining installation instructions so we made sure that we obtained a supported device we didn't back up the device because we didn't have any valuable data on it and we installed the recovery image and booted into recovery mode so now it's time to wipe the storage volume partitions so first off we are going to wipe the system partition by selecting advanced and going on wipe system partition and confirming with yes next we are going to wipe the cache and data partitions so first need to go back to the main menu and then clicking selecting factory resets and then wipe data keep media confirming with yes now we go back to the main menu and at the points where we want to install the operating system so in our case we have a computer and it's connected to the phone with USB cable and we also have a command line open so since we've already downloaded the file what remains to be done is actually to to verify the signature on it the signature file and then install the zip file using adb so on the command line let's first verify the system system file so first argument is the signature file second argument is the file name and this tells us it's a good signature so we can go ahead and install the zip partition file using adb side loads and then the file name what we should also do is bring the device into to apply from adb mode so we do this by selecting apply update and apply from adb now back in the command line we are side loading the file so this successfully installed the operating system we go back to the wiki page and indeed installation is complete so the last remaining the two last remaining steps are to factory reset the device so if we go on factory reset and select full factory reset we confirm with yes and now that this is done we go back to the main menu and reboot the device so the backup of the modem partition we can do but in this case we we don't back up the modem partition and just reboot into the system so this successfully installed replicant on the samsung galaxy s3 we are now shown a screen of the setup wizard which is not part of this video to setup the phone um what we shouldn't forget about is to put the case back on and remove the usb cable and that's it i hope you enjoyed this video