قالب وردپرس درنا توس
Home / Tips and Tricks / Beginner's Guide to Installing LineageOS on Your Android Device

Beginner's Guide to Installing LineageOS on Your Android Device



NOTE: Flashing software on a device is "at your own risk." Even if you follow our guide exactly, we can not take responsibility if your device is damaged. Our guide is intended for educational purposes and we make no guarantees of success.


One of the wonderful things about most Android devices is how much choice you have about the OS version to use. If you buy a smart phone with great hardware, but the software does not meet your needs, you can usually install something else (eat it, iOS!).

Read Next: Here is a list of all compatible devices with Lineage OS

Depending on the device, dozens of versions of Android can be installed. Some are created and maintained by a development team, while others have only one developer monitoring all aspects. The best part is that they are all free.

The largest and most popular custom Android experience is LineageOS. LineageOS, formerly known as CyanogenMod (and later only Cyanogen), is a near-exclusive version of Android with additional features that make your device more powerful and customizable.

One of the best features of LineageOS is updating many devices to the latest version of Android ̵

1; even though the updates for the device were long over. Otherwise forgotten smartphones and tablets will be filled with new life.

Installing a new OS on your Android device may seem daunting, but if you break it up into several steps, it's pretty easy. There is also a lot of room for error, so beginners do not have to worry about breaking their devices.

How to do it!

First a primer

Before you all go crazy If you play around with your device's software, you should know some basics. There are some terms and protocols, many of which assume sites and walkthroughs, that you already know what might make things confusing if you do not.

Here is a short glossary of terms that you can refer to later, if you are confused:

  • ROM – Means "read-only memory." This is where the core software of Android lives. LineageOS is often referred to as "custom ROM" because it is a customized version of Android.
  • Flashing – If you overwrite a software with another software, this is called "flashing." This guide describes how LineageOS "flashes".
  • Bootloader – When you turn on a device, the first thing you do is turn on the boot loader, which is responsible for starting other processes. Most Android devices have locked bootloaders – which means you can not change what they do. Fortunately, most bootloaders can be unlocked, so you can flash new software.
  • Recovery – After the bootloader is loaded, the recovery software system starts the operating system (Android). In almost all cases, to start a custom ROM, you will need a custom recovery that is different from the device that your device ships with.
  • Wipe – Different parts of the flashing process cause a "wipe" – deleting data from your device. A full erase removes all operating system files from your device, causing your device to boot to recovery and then paused.
  • Packages – LineageOS, Google apps, custom restores, etc. are usually downloaded to your device in a kind of "package," usually in .ZIP format. In most cases, you can simply assume that "package" is equivalent to "ZIP file".
  • ADB – Represents "Android Debug Bridge". This tool allows communication between a PC and an Android smartphone. In most cases, you will need an ADB on your computer to complete a flash process.
  • Fastboot – This diagnostic tool comes with most Android installations and allows you to flash a new ROM. In general, you access Fastboot via ADB. Some device manufacturers (including Samsung, HTC and some others) use the term "download mode" instead, but the features are relatively similar.
  • Brick – If something goes wrong with a flash, in rare cases this could cause your device to stop working. If your phone does not even turn on, it's as useful as a brick, hence the name. Some people say things like "soft bricks" to make it clear that the device is unusable but may be fixed. It is very difficult to wall a device, and this usually happens only if users do not follow the instructions exactly (note).

LiningOS flashing: The basics

If you have LineageOS (or any device) flashing Custom ROM), there are a number of steps that you almost always have to follow. How to perform these steps – and the tools you need to work with – varies from device to device. Overall, however, the basic steps are the same.

The following is required to flash a ROM:

  • Compatible Android smartphone or tablet
  • USB cable for this device
  • Laptop or desktop with Windows, macOS, or Linux
  • An Internet connection [19659027] Time (this can take an hour or two, depending on how well you are familiar with the technologies used)

The following steps are usually used to flash a ROM: [19659032] Install required computer software (usually ADB)

  • Download packages (ROM, recovery, apps, etc.)
  • Back up and prepare device
  • Unlock bootloader
  • Custom Flash Recovery
  • Custom Flash ROM
  • ] [19659027] Restart and Personalize
  • Each step creates the next one. You install the software first because it accesses the bootloader of the device. You then unlock the boot loader because it is accessing the restore, and change the restore to a custom restore because the ROM is burned. Then you flash the ROM and on and on. This is a very linear process.

    One incredibly important fact that you should consider is that this process almost always requires deletion of your personal information. Unlocking the bootloader always results in a data format.

    Against this background be sure to perform steps 3 and before making any changes to your device. If something goes wrong after unlocking the bootloader, there is no way to get the phone back to its original state. Instead, your phone will revert to the factory defaults as you did when you first turned it on.

    Another thing to keep in mind: Normally, lifting the bootloader will void the warranty of your device . Devices typically record an unlocked boot loader, so the company will notify you when you unlock and re-lock it. If something goes wrong and you give it to the OEM, there is a good chance it will not help you if you see the bootloader unlocked.

    Step 1: Install the required software

    Some rare With these devices, you can flash new ROMs without having to connect a computer first. However, the vast majority of devices require access to a PC running Windows, Mac OS, Linux, or even Chrome OS. This can be a ten-year-old laptop or a powerful desktop – flashing a ROM does not require a lot of processing power.

    Usually, ADB is the needed software. Google hosts and manages ADB so there are no virus or malware concerns when downloading and installing the program.

    You can visit for explicit instructions on how to download and install ADB for your computer platform. It does not take long and the instructions are very simple.

    If you have ADB installed, you can access it from a command prompt on Windows or a terminal window on Linux and macOS. This may seem daunting, but do not worry: the commands are easy to copy and paste.


    Pro Tip: You may be hanging your Android device to your computer to connect to ADB. In this case, be sure to use the USB cable that came with the device. If you do not have access to it, use a high quality, short and thick cable. Inexpensive cables, each for $ 1, can cause blinking problems. Do not use it.

    Step 2: Download Packages

      LineageOS

    To obtain LineageOS On your device, you must first verify that your device is compatible with the ROM. Go to the LineageOS wiki and search for the device to flash.

    LineageOS supports the most popular devices of almost all major manufacturers. If you do not have a very unpopular or cheap budget device, you can probably install at least one version of LineageOS.

    When you get to the list of files associated with your device, you may be wondering which one to download. Just download the file that has the latest upload date.

    If you downloaded the file to your computer, you can leave the LineageOS site. However, you do not just need the LineageOS package. You'll also need the custom recovery package and the Google Apps package.

    The most popular custom recovery is referred to as TeamWin Recovery Project, or TWRP for short. You can download TWRP for your device by visiting the TWRP website and doing a search.

    It is imperative that you locate the accurate model of your device before downloading TWRP or LineageOS. There are many variants of the Samsung Galaxy S5 and thus many versions of TWRP and LineageOS with the label Galaxy S5. Make sure you match exactly.

    You also need a Google Apps package. If you do not install them at the end of the flash process, Google products will not appear on your device at boot time, including the Google Play Store. You can not install the apps later, you must install them during the original flash memory.

    Get the appropriate Google apps for your device here or here. For information about choosing the Google Apps package you need, see the LineageOS Installation Guide for your specific device.

    When you have downloaded these three packages, move the files to the same location as the .adb files installed in the previous step. Rename them to simpler things. For example, the name of the TWRP file is very long and difficult (twrp-3.2.2-1-xxxx.img). Change it to TWRP.img. This makes it easier to find the files later and also saves you from entering command lines.

    Rename each downloaded file as follows:

    • twrp-xxx-x-xxxx.img > TWRP .img
    • lineage-xx.x-xxxxxx-nightly-xxxx-signed .zip > LINEAGE.zip
    • open_gapps-xxxxx-xxxxxxxxxxxxxxx.zip > > >] GAPPS.zip

    Do not forget to put them in to move the ADB folder (for Windows this is% USERPROFILE% adb-fastboot platform-tools). Once all files are organized, you are ready for the next step!


    Pro Tip: Your device has a code name that LineageOS, TWRP, and GApps use for identification. The code name appears in the list of LineageOS compatible devices – use this option to search for compatible packages. So you can always download the right one!

    Step 3: Back Up and Prepare Device

    There are many different ways to secure your device. There are free and paid apps in the Google Play Store, as well as free and paid software for PCs.

    There is no right way to secure your device. Find out which method works best for you and create a backup.

    A good way to secure your device is to use helium. When you connect your phone to the Helium desktop client, you can back up pretty much anything on your phone to your computer without having to roust your device before.

    Follow these steps to back up your device Use Helium or watch some YouTube videos to guide you through the process.

    After you've backed up everything, you'll need to do two steps on your device before proceeding to the next step: Enable USB debugging and OEM unlocking Two switches in the settings area of ​​your device that are hidden in a section called "Developer Options."

    Perform a Google search for "Access Android Developer Options [your device name here]" for instructions on how to access these two switches (usually usually) You'll have to spend a number of times with your Android build Tap number in Settings. Once you have access to developer options, you can enable both USB debugging and OEM unlocking. If the OEM unlock does not exist, do not worry: just make sure USB debugging is enabled.

    When you have completed all the necessary steps, connect your device to the computer with a good USB cable. Your phone may receive a notification asking if you trust the computer. Confirm that you trust the connection and exit the settings. Drivers may be installed on your computer, which is normal.

    You are ready for the next step!


    Pro Tip: Do not skip anything in this step. This stuff is here for a reason. It can take hours to reinstall all your apps, log in to all your accounts, and browse all your photos. You also do not want to risk losing important data. Be sure!

    Step 4: Unlock the Boot Loader

    The steps to unlock your device's bootloader vary depending on the make and model of your smartphone or tablet. Some OEMs make the process incredibly easy, while others intentionally make it difficult (or even impossible).

    So, this step depends heavily on your device, making it difficult to give explicit directions that everyone can benefit from. Here is a general introduction!

    To make your life easier, visit XDA Developers and find the forum for your device. Search the threads and see if other users have successfully unlocked the bootloader. If everyone else seems to have problems, everything is fine.

    There are several reasons why you may find other users having problems with the bootloader. It could be that the device is too new, so no one has yet determined the process. It may also be that the boot loader is protected and can not be unlocked or difficult to unlock. Samsung is notorious for that.

    If you are certain that the boot loader can not be locked, go to for the LineageOS installation guide for your particular device. There you will find step-by-step instructions for unlocking the bootloader.

    Remember: This will erase your device's data.

    In most cases, connect the bootloader by connecting your device to your computer, a USB cable, and then run some ADB and fastboot commands to unlock the smartphone or tablet:

    • On ADB command to make sure your device is properly connected.
    • An ADB command to reboot the device in fastboot mode (see glossary above))
    • A quick start command to verify that the device is in quick start mode and properly connected.
    • A quick start command to unlock the bootloader.

    If you are on Windows, an error may occur when you follow the steps listed on the Bootloader page of your device. The problem could be that the prompt is not in the right place. At the command prompt, type the following command (see above):

      cd% userprofile%  adb-fastboot  platform-tools 

    After you connect your device to the computer, you must first execute an ADB command, to ensure proper connection (see above):

      ADB Devices 

    If no devices are listed after running this command, check your Android device. You may see:

    Click the "Always allow" box and click OK. This should solve the problem, but reissue the adb devices command just to be sure.

    If you experience some problems after successfully connecting to ADB and rebooting in fastboot mode, it probably means that you need to update the drivers on your computer computer. Do a Google search for "[device name here] Drivers" and download and install the latest version.

    If you did, you should be able to successfully unlock the boot loader. After the bootloader is unlocked, the device will reboot and the Android setup will start as if it had been reset to factory settings.

    Before proceeding to the next step, make sure you enable USB debugging again . Take the first step to set up your device, and then enable USB debugging again. After factory reset, this may have been disabled. Therefore, be sure to follow the same steps as before (turning on the power, connecting to the computer, etc.).

    If your bootloader is unlocked, you can go to step 5.


    Pro Tip: YouTube is your friend! A quick YouTube search shows you how to unlock your device's bootloader. Look at this and this whole process will probably be so much easier!

    Step 5: Flash a Custom Recovery

      The Logo for the TeamWin Recovery Project (TWRP)

    Now the bootloader is unlocked, it's time to flash something on your device. That's a big step! You flash software onto your smartphone or tablet, drastically changing how your device works.

    You have already downloaded the appropriate custom recovery from the TWRP website in step 2. If you have not already done so, look here for the TWRP file that fits exactly to your device model .

    As last warning: Flashing the wrong custom recovery on a device can lead to a brick error. Make absolutely sure that the TWRP file you downloaded matches the model of your device . They were warned.

    When you have completed all the settings, start ADB from a command prompt and run the following commands:

      ADB Devices 

    As before, the above command ensures that your device is properly connected to your computer , Then run the following command:

      ADB Reboot Bootloader 

    This command also allows you to enter fastboot mode as before. Then run the following command:

      Fastboot Devices 

    Performs one final check before the Flash verifies that your device is connected and Fastboot is ready. Finally, run the following command:

      Fastboot Restore TWRP.img 

    Check out the following screenshot to see what it all should look like:

    You should use the LineageOS instructions for your specific instructions read device to make sure that these are the correct commands.

    When ADB and Quick Start are complete, restart the device in recovery mode. This usually involves a series of hardware keystrokes. When booting the OnePlus 5 into recovery mode, you must turn off the power and then turn it on again while holding down the volume down button. Search a Google search for the steps required to boot your device in recovery mode.

    Because you flashed TWRP just about your original restore, your device boots into TWRP when you press the specific hardware buttons you found with Google. You will first be greeted by the screen below:

    This information only informs you that using TWRP will confuse the software on your phone. If you do not use the "Swipe to Allow Modifications" button, you will never be able to boot into TWRP – and will never receive a ROM flash. We came here for that, so swipe the button to the right! The following screen appears:

    If you have booted your device in TWRP, you are ready for the next step: LineageOS blink!


    Pro Tip: There is an option to watch numerous YouTube videos and online tutorials to create a custom recovery. In fact, there is probably a specific video for your device! Look in Google for "Flash TWRP on [device name here] video" and see if you can see if someone else is going through this process, so you have a better idea of ​​what to do.

    Step 6: Flash LineageOS

    You are downloading the corresponding LineageOS file to your computer in step 2. However, the file does not help us much on your computer – it has to be on the device itself.

    Usually, you just boot into Android and move the file to your device after connecting the USB cable from your computer. However, you can not boot into Android because you have not installed it yet!

    But do not worry – ADB can do all the necessary file transfers. Before doing so, make sure that there are no leftovers from your previous version of Android.

    On the TWRP main menu, tap Wipe, and then Format Data . TWRP warns you that this is a serious business, but since you made a backup in step 3, you do not have to worry (or?). Follow the TWRP instructions and complete the formatting process.

    After you receive the message "Successful", press the Back button until you are back on the wipe page. Tap Advanced Wipe and you will see a series of check boxes. When an item is highlighted, that portion of the disk is deleted. You want to mark the first three fields: Dalvik / ART Cache System and Cache . Leave all others deactivated.

    Swipe from left to right over the slider marked [Wipe to Wipe] . The wiping process begins.

    Once done, you can flash LineageOS. If the device is still in TWRP mode, connect it to your computer with the USB cable. Launch a command prompt or terminal window in the ADB folder, run a device scan, and then press the push command to move your LineageOS file to your device's internal memory.

    The command looks like this: [19659102] adb push LINEAGE.zip / sdcard /

    After typing this and pressing Enter, ADB begins to move the LineageOS file to your device. This can take some time, and sometimes there is no progress bar to see how fast it is going. Wait at least five minutes before touching anything. You may receive a notification that a file has been moved:

    On your device, go back to TWRP's main menu and tap Install . Your device will display a list of available files. The LineageOS package should be one of them. Tap the file name and you will be taken to a screen with three options: You want to swipe to confirm the flash .

    TWRP flashes LineageOS on your device and then say that it succeeds. You then have two options: Clear Cache / dalvik or Reboot System . Do not beat either! Instead, press the Home button on the screen.

    Now that you've flashed LineageOS, you're ready for the penultimate step.


    Pro Tip: If your LineageOS file is not pressed Make sure that the file is in the same computer directory as ADB. If the LineageOS package is on your desktop and ADB is in its own folder, ADB will not know where the file is when you type its name. All files that you transfer and flash should be in the same folder as the ADB program. If you are confused, go back to step 2.

    Step 7: Flash necessary applications

    You've come a long way! They are so close to being done. Sie verfügen über einen nicht gesperrten Bootloader, eine benutzerdefinierte Wiederherstellung und eine Neuinstallation der neuesten Version von LineageOS.

    Das einzige, was Ihnen fehlt, sind Google-Apps wie der Google Play Store, die Google Play Services, Gmail und Google Maps. Sie werden die ZIP-Datei von Google-Apps, die Sie in Schritt 2 heruntergeladen haben, auf dieselbe Weise wie LinlineOS-geflasht.

    Wenn Ihr Gerät in TWRP gebootet und mit Ihrem Computer verbunden ist, öffnen Sie eine ADB-Eingabeaufforderung und – noch einmal – ADB-Geräteprüfung durchführen. Geben Sie dann den folgenden Befehl ein:

     adb push GAPPS.zip / sdcard / 

    Normalerweise ist Ihr Google-Apps-Paket größer als Ihr LineageOS-Paket. Daher kann dieser Push noch länger dauern als der erste Push, den Sie im vorherigen Schritt ausgeführt haben . Geben Sie einfach Zeit!

    Sobald der Push abgeschlossen ist, greifen Sie zu Ihrem Gerät und führen Sie die gleichen Schritte aus, die Sie zuvor ausgeführt haben:

    Tippen Sie auf Installieren> Google-Paket suchen> Tippen Sie auf Confirm Flash

    Nachdem diese Schritte ausgeführt wurden, beginnt der Flashing-Vorgang.

    Tippen Sie nach Abschluss des Vorgangs auf . Cache abwischen / dalvik warten Sie einen Moment und drücken Sie dann Reboot System. Ratet mal, Ihr Gerät führt einen Neustart in LineageOS durch!


    Pro Tipp: Wenn Sie Ihr Gerät rooten möchten, können Sie in diesem Stadium (vor dem Neustart in System) auch eine Root-Datei flashen. Es gibt mehrere Root-Methoden und -Dateien für verschiedene Geräte, daher werde ich hier nicht weiter darauf eingehen. Wenn Sie Root-Zugriff haben möchten, ist dies die perfekte Gelegenheit, um auch diese Datei zu flashen.

    Schritt 8: Neustart und Personalisierung

    Ihr erster Start in LineageOS wird einige Zeit dauern – geben Sie sich Zeit. Sie haben gerade ein neues Betriebssystem installiert und möchten es nicht übertreiben!

    Wenn der erste Startvorgang länger als 15 Minuten dauert, liegt ein Problem vor. Führen Sie einen harten Neustart durch, indem Sie den Netzschalter gedrückt halten, bis das Gerät neu startet. Lass es versuchen, noch einmal zu booten. Wenn es immer noch nicht startet, blinkt etwas nicht richtig, gehen Sie also zurück zu Schritt Sechs und beginnen Sie erneut.

    Das erste, was Sie bei einem erfolgreichen Start feststellen werden, ist eine neue Startanimation, bei der die drei Kreise des Lineage-OS-Logos auf einer gekrümmten Linie stehen in der oben genannten GIF.

    Nach Abschluss des Startvorgangs befinden Sie sich auf dem Startbildschirm von Android. Dort wählen Sie Ihre Sprache aus, fügen Ihr Google-Konto hinzu, stellen eine Verbindung mit Wi-Fi usw. her. Dies ist alles sehr ähnlich dem, was Sie zuvor gemacht haben, als Sie Ihr Gerät zum ersten Mal erhalten haben, so dass es keine Überraschungen geben sollte.

    Sobald Sie den Startbildschirm erreicht haben, sind Sie offiziell fertig – Sie haben LineageOS auf Ihrem Gerät! Jetzt gehen Sie zu YouTube, um alle nützlichen Funktionen dieser neuen Android-Version kennenzulernen.


    Pro-Tipp: Dies ist eine gute Gelegenheit, alle in Schritt 3 gesicherten Apps wiederherzustellen . Sie können sie auch manuell erneut herunterladen, wenn Sie diesen Schritt übersprungen haben. Wir werden uns in ein paar Stunden mit Ihnen unterhalten.

    Abschließende Gedanken

    Abhängig von Ihrem Gerät gibt es außer LineageOS wahrscheinlich noch viele andere benutzerdefinierte ROMs. Nun, da Sie wissen, wie man ein ROM flashen kann, können Sie Flash-fröhlich werden und alle möglichen neuen Geschmacksrichtungen ausprobieren. Sie müssen lediglich ROMs finden, die der Modellnummer Ihres Geräts entsprechen, und dann die Schritte 6 bis 8 wiederholen. Sie müssen den Bootloader nicht entsperren oder eine benutzerdefinierte Wiederherstellung erneut installieren.

    Sie müssen jedoch eine Sicherungskopie erstellen Ihr Gerät erneut. Vergessen Sie diesen wichtigen Schritt nicht!

    Wenn Sie benutzerdefinierte ROMs ausprobieren und entscheiden, dass Sie sie nicht mehr mögen, ist es sehr einfach, zum ursprünglichen ROM Ihres Geräts zurückzuwechseln. There’s a different set of instructions for flashing back to stock, but the essence is essentially the same. Do some Googling to figure out how to flash your particular device back to its factory defaults by searching for “flash [device name here] back to stock.”

    I hope this guide has been helpful to you! If you get stuck, ask some questions in the comments and someone will surely help you out!

    NEXT: 13 best Android emulators for PC and Mac




    Source link