Repair Design Furniture

How to restore an android brick at home. How to restore Android after a failed firmware

Each of us loves to play with our Android device. We are talking about new firmware, user interfaces, hacks, ROOT and more. In my opinion, this is the most interesting part of the Android operating system. But sometimes there are unpleasant situations when something went wrong. First of all: don't panic! Unlike iOS, the Android platform is open, so quite often fixing a bug is easier than it seems the first time.

In this guide, we will tell you about the standard steps on how to restore android after unsuccessful firmware. However, depending on your device and the problem, the solution can be quite complicated. Usually, Android devices have unlocked bootloaders and stock files that can be restored. An Android smartphone after an unsuccessful firmware is called a brick.

What is the difference between hard and soft brick?

Before proceeding with the restoration instructions, I want to quickly explain what is the difference between soft and hard bricks. Ask yourself the following question: What can I do with a smartphone when it is a “hard brick”? Most of the time, nothing! You can easily identify a hard brick if it meets the following points:

  1. The smartphone does not turn on.
  2. Your computer does not recognize your smartphone.

A soft brick means the Android device is only half dead. In most cases, something went wrong during the firmware. Many users often face the problem of constant loading or crashes after an unsuccessful firmware. The main solution to this problem is to restore a working version of Android. There are several ways to do this, but most often experts recommend restoring a backup, installing another custom firmware or official firmware.

The easiest solution to the problem: Use the toolkit for your device

Look on the website w3bsit3-dns.com or XDA-forum for a set of tools for your device that will allow you to restore it. Such a set of tools performs the following operations: installs the necessary drivers, downloads the necessary files and restores the smartphone to a working state.

We found a set of tools for the following three devices:

  • Nexus 5 - Download for Windows
  • samsung galaxy S6 - download for Windows
  • Samsung Galaxy Note 4 - Download for Windows

If you haven't found a toolkit for your device, or if you want to do it manually, then make sure you have the latest ADB and FastBoot drivers installed on your computer.

Remember, or rather write down, the location of the drivers on the computer. You will need this a little later.

Android keeps loading after failed firmware

If you can turn on your Android device but the boot is stuck on the logo, it's called a "bootloop". This happens if you have installed firmware that is not suitable for your smartphone. In this case, the device is trying to load something that constantly reloads the system memory. Therefore, the device crashes.

Step 1. Is your device booting up?

  • Yes- Go to step 3
  • Not- Go to step 2

Step 2 Press the specific button combination for your device to enter recovery mode. Typically, the combination consists of a power button and a volume button. Read the article -, or find this information on the Internet.

Did you succeed?

  • Yes- Go to step 3
  • Not- It looks like you have a "hard brick". In this case, you need to contact the experts on the w3bsit3-dns.com forum or XDA-forum.

Step 3 Have you accessed recovery mode or bootloader?

  • Yes- Go to step 4
  • Not- Go to step 2

Step 4 Do you have a Nandroid backup?

  • Yes- Go to step 9
  • Not - Go to step 5

Step 5 Do you still have the old working custom firmware on your device?

  • Yes - Go to step 6
  • Not - Go to step 7

Step 6 Install the old working firmware and reboot the device.

It worked?

  • Yes- Enjoy your working device!
  • Not - Go to step 8

Step 7. Try installing a different custom firmware on your smartphone. Search the Internet for a new firmware and instructions on how to install it. As a rule, you need to download the firmware file to the SD memory card, and then install it through the recovery mode. If the smartphone does not support SD cards, then you can use ADB commands. I will talk about this method a little lower.

Step 8 Are stock firmware files available on the smartphone?

  • Yes- Try to install them. Most stock files have installation instructions.
  • Not- Write on the w3bsit3-dns.com forum. Most likely, your problem has already been encountered by other users.

Step 9 Restore the backup. The device should work again.

Restore Android via custom recovery mode

Sometimes during flashing, custom recovery mode may be overwritten. There are two ways to set a custom recovery mode.

1. You have ROOT rights

  • Install ROM Manager and use it to install ClockworkMod Recovery
  • Install TWRP and use it to install Team Win Recovery Project

2. You do not have ROOT rights

  1. Download the TWRP or CWMR image for your device and save it in the same directory as ADB/FastBoot.
  2. Boot your smartphone into bootloader mode.
  3. Open a command line at Windows computer, and change to the directory where the ADB/FastBoot files are located (we previously asked you to save the location of the drivers on the computer).
  4. Run the following command:

fastboot flash recovery filename.img

where FileName.img is the name of the image you downloaded in step 1.

Custom recovery mode should work again!

How to copy files to or from a device that is stuck on downloading all the time

If your Android device keeps booting but won't turn on completely, there is one way to copy files to or from it. Fortunately, TWRP and CWMR include ADB drivers.

Open a command prompt on Windows or a terminal on a Mac, then navigate to the directory where the ADB/Fastboot drivers are located.

  1. Use the following command to copy files from your computer to your device:

ADB push filename(or folder) directory on your device

Example: ADB push /backup/ /sdcard/ - this command allows you to transfer the backup folder from your computer to the SD card that is built into the device.

  1. Use the following command to copy files from your device to your computer:

ADB get filename(or folder) directory on your computer

Example: ADB get /downloads/ /backup - this command allows you to transfer the "downloads" folder from the Android device to the "backup" folder on the computer.

Now you know how to copy files from a smartphone to a computer, and vice versa.

Final words

I hope you managed to restore android after a failed flashing. There are many ways to get your Android device back in working order. You can leave a comment below if you have any questions, or go to the w3bsit3-dns.com form for more information.

(root access) or , the device stops functioning. This manifests itself in the inability to log into the mobile device and even load the Recovery environment. This state of the phone or tablet is popularly called "brick".

No matter how serious the problem of “bricking” may seem, in most cases you can reanimate the gadget at home. Consider how to restore Android if it has turned into a "brick".

Ways to reanimate Android when "bricking"

There are three effective methods android recovery when they lose their functionality:

  • using the standard recovery environment Recovery;
  • through a computer and special software.

Which method to use directly depends on the state of the system on the device.

Restoring the "brick" through the standard Recovery

If, when trying to enter the working area of ​​the device, there are constant reboots or the phone freezes on the system logo, but the Recovery environment is working, then you are lucky, since you can restore the Android firmware through it. For this you need:

After the reboot, the factory settings should appear on the smartphone. If it didn’t help to fix the problem, we try to reanimate Android after an unsuccessful firmware using a previously created system backup or a firmware file downloaded from the Internet.

Having decided to get root access or perform other potentially dangerous actions, it is recommended to create a full backup of the device. In this case, even after "bricking" you will be able to return all user data and the old firmware.

To restore Android from a previously created backup, you need to do the following:


If you didn’t take care of creating a return point in advance, then you can return Android to work on a tablet or smartphone using the downloaded firmware. In this case, we animate the gadget as follows:

After it was possible to restore the "brick" of Android, the downloaded file can be deleted.

Using custom recovery

If the “bricking” led to the crash of not only the operating system, but also the standard Recovery, then you can restore the system using a custom resuscitation environment - the CWM Recovery program.

Before restoring the “brick” on Android, you need to install the recovery mod on the problem device:


The installation of CWM Recovery will begin, at the end of which the smartphone can be disconnected from the computer and proceed directly to resuscitation:

After performing these steps and rebooting, the phone (tablet) should work.

Resuscitation of the "brick" through a PC and special software

Considering how to restore Android after “bricking”, it is worth noting specialized software developed individually for each manufacturer of mobile devices. So, the FlashTool recovery program is used for Sony gadgets and some other brands, and

Of course, many users have encountered difficulties associated with the incorrect operation of gadgets. Often or freezes due to incorrect actions of the owners. The most common problem is not knowing how to restore a tablet after an unsuccessful firmware. Before running to the service center, let's try to figure out why it does not work.

First of all, or it does not turn on, because an unofficial firmware is installed. The owner will repair the device on his own, as the gadget broke down through his fault. The warranty is void in this case. However, there are those that will help bring the tablet back to life. But before that, you need to determine the nature of the breakdown.

There are two types of failures of unsuccessful firmware. First view characterized the following signs:

  • The tablet does not turn on, more precisely, the splash screen does not light up;
  • After an unsuccessful firmware, some device functions do not work: it does not respond to the sensor, programs freeze, folders and files do not open, the display is mirrored;
  • They appear and disappear, but when connected to a PC, everything remains safe and sound.

A broken tablet is possible if you have one of the above situations. So, for example, the gadgets of Chinese companies are revived by downloading the zero or first firmware, which is traditionally installed upon purchase. But with an Apple tablet, the situation is much more complicated, since it is practically unrepairable at home. It is better to contact the service center immediately after a breakdown. If it concerns other traditional brands, then it will be no more difficult to restore and re-flash them than Chinese counterparts using updates.


The second type of breakdown says the following:

  • The tablet does not turn on or the white screen lights up and immediately goes out;
  • When connected to a PC, files, folders, or not at all are displayed.

A tablet with such problems is usually already dead, but in such a situation you can help.

How to restore the tablet yourself?

First case: the computer sees the device

As already mentioned, the easiest way to restore. To do this, find the manufacturer's official website on the Internet, download updates for your device and install the first firmware. Remember that you need to download exactly the first version, in no case do not use the one that you tried to install before. Before you flash your tablet, it's important to make sure it's fully charged, otherwise problems may arise again.

For traditional brand electronic devices, you first need to find updates and download zero firmware. However, do not immediately install. Before doing this, the firmware file must be renamed to " update .zip" (it is important to write this word correctly, since the execution of the entire further process depends on it). After that, it is placed in the root folder on the flash drive. Exactly file location in our case plays an important role.

Before flashing the tablet, make sure that it is fully charged, insert the USB flash drive and turn on the device (hold down the "volume +" and "power" keys for a few seconds), after turning it on, wait until the installation is completed.

Second case: the computer does not respond to the device

This type of failure after an unsuccessful flashing is much more serious and, most likely, you cannot do without outside help. Not everyone can disassemble the tablet on their own and correctly close the flash memory contacts.

First you need to figure out what happened, because the failure could happen not only in the system, but also in the tablet's memory (for example, in the bootloader). Such restoration takes more time and effort, so it is best to take the tablet to a service center where professionals will take care of it.

However, if you decide to finish the job, then you will need a soldering iron and an LPT programmer (it connects to the chip), after which you need to perform the following steps:

  1. Find and download the tablet scheme;
  2. Find and unsolder the SPI memory (it is responsible for installing the software);
  3. Connect the chip to the programmer and flash it with the old bootloader;
  4. and turn on the tablet, as in the first case.

This method is universal for any tablet, but before you flash the device, you should remember that the circuit boards in each gadget are different, so try to find the one that matches it. After such old programs and files will not remain, so everything will have to be restored.

Some recommendations and cautions when performing repairs

The above method may have some consequences, so be sure to check out how the pros do it.


Problems that often arise when repairing a device:

  • If the system indicates that the memory is corrupted, then before flashing the device, you will have to format it;
  • Correctly install the drivers in the tablet, it may not start up 3 to 6 times, so try, install, remove, etc .;
  • You should close the contacts by pressing the power button, so be careful when making the connection;
  • Pay attention to the legs and contacts, as they may have different kind and close in different ways, so follow the diagram;
  • The PC can see the device only if you hold down the power button on the tablet, so you have to keep the button pressed all the time until the installation is completed;
  • Long USB cords can only interfere with flashing and bringing the tablet back to life, so use a 10-15 cm cord.

Perhaps this is the most important thing to remember. In any case, if something seems incomprehensible or complicated to you, it’s better not to risk it, but to entrust knowledgeable people to restore the tablet after an unsuccessful firmware.

Many of us are familiar with such an operating system as Android. All owners of devices running this shell know that using Android is simple and convenient: your favorite applications, useful functions are always at hand, and the interface is so flexible that you can almost completely change it at your discretion.

"Brick" - what is it?

"Android" began its journey back in 2009, and since then the developers have been promoting and improving the shell, not knowing sleep and rest. Updates and new versions are released regularly. As a rule, a user buys a gadget with an operating system already installed on it, and the firmware of this version (operating system version) remains throughout the entire "life" of the device. But sometimes it needs to be reinstalled due to technical problems or own will user. Then you have to carry your favorite device to a service center, to experienced master, and some are taken for flashing on their own.

Here, many novice users who are familiar with Android are at a level no higher than installing applications with Play market, "grow wings". They, having read various instructions in the vastness of the World Wide Web, they think that reinstalling the OS is a simple matter and that they can handle it themselves. In addition, they will save a certain amount that they would have taken at the service center. But soon such users realize that they exaggerated own forces and complete the flashing properly does not come out.

In this case, there are various scenarios for the development of events. The most unfortunate of them is when the phone turns into a brick. You may have heard this phrase before but didn't understand what it meant. "Bricking", or "bricking", a device means that it partially or completely stops working. That is, it does not turn on, does not respond to pressing buttons or connecting to a computer. Is it possible to restore the brick-"Android"? Of course. Hence the name - a brick, because the functionality of the gadget is now no more than that of a stone, and now you can only crack nuts with it. Bringing the device to such a state is quite difficult, it requires talent. But we hasten to please you - in any case, the device is subject to restoration, if you did not take the idea of ​​\u200b\u200bnuts seriously, and the device itself is safe and sound. So, how to restore the "Android"-brick?

Why can a device become a brick?

In order to understand how to restore an "Android" brick, you first need to understand the mechanism by which the device turns into it. So to speak, go from the opposite. Yes, and once again it would be nice to still prove to users that without physical intervention in the case and internal organization smartphone or tablet cannot be completely "killed" and can be returned to work in the ways that we will discuss below. We will explain plain language. Your device has a recovery console. It is located in internal memory and has no points of intersection with the operating system, that is, they are two independent substances. And even if failures, malfunctions or errors occur during the flashing process, this very console will remain intact and with it you can reinstall the firmware again. In addition, you can backup the OS with all the necessary information to this console.

Don't panic

The question is brewing: "And if there is something wrong with the console itself and it disappears?" Console liquidation is quite rare, but even if it happened, operating system will remain in place, and it will be possible to restore the console from it using special utilities. There are practically no cases when both the console and the operating system “fly away”, you just need to have enchanting luck in order to destroy these two shells at the same time, but recovery is also possible in this version.

How to restore a brick-"Android" at home

If you are good at technology, but for some reason you turned the device into a brick, you can restore it at home. There are several options in which scaling occurs. Let's analyze each case separately.

Unable to login to operating system

That is, the gadget itself shows signs of life, it can be turned on, but the firmware freezes endlessly, resets, or you just see the loading or turning on window on the screen, but in fact nothing happens. First, do not rush to conclusions. For example, people who do not understand how to restore the Chinese Android brick start to panic a few minutes after the power-up screen appears, but such a device needs even more time to “think” than a high-quality device. You can come to the realization that something went wrong only after 10-15 minutes after switching on.

Then your actions are as follows: turn off the device completely and enter recovery mode again (the system console, being in which is an integral part of the flashing itself, so it is hardly necessary to talk about what it is and how to get there). After that, you can try again to install the same firmware as the first time (Install zip from sdcard -> Chooze zip from sdcard) or make a system backup (Backup and restore -> Restore). Please note that if after the first attempt to reflash the device you could not log in, then perhaps the OS itself was of poor quality or not intended for your gadget, and you do not need to "install" it again. Pick up a different version or restore the old one. The same problems can occur if there was not enough battery power to complete the process or memory to install new system(the device model is outdated for the new firmware version).

Unable to enter recovery mode after flashing

There is also such an option that after flashing the OS itself works fine, but it does not go into the console. Everything is fixable and much easier than you think. On the Play Market of the same name, you can find special programs designed to return recovery mode to you. For example, applications such as TWRP Manager or Installer do a great job. If your device is specific and similar utilities did not help you, then there are other ways to restore the "Android" brick of the console mode.

You "killed" both the firmware and the console mode

This happens very rarely, and if you were looking for how to restore the "Android" brick through a computer, then your time has come. You can't do without a PC. You will need to enter fastboot mode and perform a series of simple steps. We do not focus on this point, because each device model has its own way to enter this mode, and it is the type of gadget that determines all further user actions. How to restore "Android"-brick on a tablet? A number of actions are not much different from the procedure with a smartphone.

We told you about how to restore the "Android"-brick. Bring your gadget back to life and use it with pleasure!

fb.ru

Android turned into a brick: device recovery methods

Scaling is a complete or partial loss of functionality of an Android device. Not a single user who flashes a gadget on his own is immune from turning a smart phone into a meaningless “brick”, so the question of how to restore at home arises quite often on various forums.

Correction of the consequences of unsuccessful firmware

If the smartphone is constantly reset at boot or the logo is spinning on the screen for 5-10 minutes, but the system does not start, then technically this is not yet a “brick”. Such a device can be quickly restored through the Recovery menu by flashing it again.

  1. Turn off your phone.
  2. Hold down the volume down key and press the power button to get into the recovery menu.

You have two options - restore a backup if you did it (this is one of the main requirements for flashing), or flash the phone again. To start a backup, go to the "Backup and Restore" section and start restoring the previous system state.

To flash, select the "Install zip from sdcard" section and select the desired operating system file. This method fixes errors that occur when the firmware is incomplete: for example, when the phone turned off while writing files.

The reverse situation is that the firmware starts up, you can’t get into Recovery. This problem is even easier to fix: you can use the TWRP Manager, ROM Installer or ROM Manager applications to return the recovery console. These applications, after installation, determine the model of the smartphone and independently download the required recovery.

If the listed applications did not cope with the task, find the instructions for installing the Recovery Console for your mobile device model.

Restoration of the "brick"

Let's consider a more complicated option, when the smartphone really turns into a "brick" - neither the system nor the Recovery menu starts. It is also possible to restore it at home: for this you need to use the official firmware from the manufacturer. Consider the recovery procedure on the example of a Samsung phone:


Your "brick" will again become a workable device, returning to its original state.

Firmware with Flashtool

This method is suitable for Sony phones, but it can be applied to mobile devices from other manufacturers. You will need:

  • The "brick" itself that you want to restore.
  • Official firmware in FTF format.
  • Flashtool program installed on the computer with firmware drivers.

Before starting work, it is advisable to disable the antivirus and firewall in order to avoid incorrect operation of the Flashtool utility. In addition, when starting to restore the "brick", make sure that the phone is fully charged.


The recovery program will prepare the Android firmware and offer to connect the "brick" to the computer. Hold down the "Volume down" key on the device and connect the phone to the computer.

The Flashtool program must identify the "brick" connected to the computer and run the firmware on it. If the recovery is successful, then at the end of the log you will see the message “Flashing finished”. After that, you can disconnect the phone from the computer and turn it on - Android should start without errors.

Each manufacturer has its own flashing utility, so it's best to look for recovery instructions for a specific phone model that has turned into a "brick". If at home it is impossible to return the device to a working state, then it remains to contact the service center.

recoverit.ru

Android brick recovery

The loss of Android performance on a smartphone or tablet, or the so-called scaling, occurs according to the most different reasons. Most often, this is facilitated by incorrect firmware, which can turn an advanced phone into a useless brick. The question of whether it is possible to restore the gadget yourself is of interest to many users.

How to eliminate the consequences of unsuccessful firmware

If after the logo appears when you turn on the system does not start for several minutes, or the boot is constantly reset, then this is not a “brick” and not everything is lost. To get the launch, you need to go to the Recovery menu from your smartphone and make a new flashing.

To do this, follow these steps:

If the gadget is on, you need to turn it off. Hold down the key with which the volume decreases and the power key. The Recovery menu opens, which offers 2 ways:

  1. restore the backup (this is the main requirement for the firmware, if the phone was flashed, then the backup was also restored). The backup starts running in the Backupand Restore section when you select the previous system position.
  2. flashing - is carried out by selecting the "Install zip fromsdcard" section, in which you need to specify the necessary component of the operating system. This option deals with the correction of incomplete recovery errors, which may occur, for example, due to the phone being turned off at the time of the file writing process.

Another situation may arise: when you start the firmware, you cannot enter Recovery. This is easily fixed: the return of the console to fix the system is carried out by special applications TWRP Manager, ROM Manager or Installer. These applications are designed to determine the gadget model and independently download all the necessary components to run a suitable Recovery.

If none of the above programs fixed the error, you can find instructions for downloading the recovery console for a particular brand of smartphone or tablet.

How to restore a real “brick” Android

We have considered what can be done in case of incomplete loss of smartphone functionality. Now it's time to talk about how to restore a completely “dead” Android when nothing starts. It is not at all necessary to immediately go to the workshop, you can try to start the system at home using simple steps.

What to do, consider step by step:

  1. Install the latest USB drivers from Samsung on your computer.
  2. Download and install the latest version of the Odin app.
  3. Download licensed firmware that is suitable for a specific model and country.
  4. Turn off the “brick”, then press the key that reduces the sound and the “Home” key. After a few seconds, a warning will appear on the screen.
  5. By pressing the button on the phone, which increases the sound, put it into Odin mode.
  6. Connect the gadget to the computer.
  7. Start Odin, press PDA, in it designate the tar.md5 file in the directory with the firmware.
  8. Press the "Start" key, start the recovery, wait for the end of the operation.
  9. Hurray, the “brick” has earned!

How to flash a smartphone with Flashtool

This option is absolutely applicable to Sony phones, however, devices of other brands can be restored in the same way.

What do you need:

  • "brick" Android;
  • licensed firmware in FTF format;
  • Flashtool program installed on the computer, firmware drivers for it;
  • disabled antivirus, firewall, which can react to Flashtool as a virus component;
  • it is enough to charge the phone well so that it does not turn off at the time of recovery.

Step-by-step instructions for recovering via Flashtool

Each manufacturer of gadgets based on the Android OS also has its own utility for flashing. If it happens that the phone or tablet turns into a “brick”, you should first of all choose instructions for your model. If all the above attempts to restore the device were in vain, you should contact a professional workshop.

AndroidKak.ru

Bringing a broken smartphone back to life - "Hacker"

Most of the articles in the X-Mobile column are devoted to hacks and tweaks that require obtaining root rights, modifying the firmware or replacing it with a custom one. However, not every reader is ready to expose their smartphone to such operations, fearing that they can turn the device into a brick or lead to instability in operation. Today I will debunk these myths and show that even in the most stalemate situation, bringing a smartphone back to life is not so difficult.

Let's talk about what it is to “turn a smartphone into a brick” and what other pitfalls a user can expect on the way to changing the system and installing custom firmware. What glitches can be caught at the same time and is it possible to kill a smartphone by flashing it incorrectly? Will you lose the warranty forever or can the smartphone be returned to its previous state? Can custom firmware really let down a smartphone owner at the most inopportune moment and are they worth it?

Myth 1. Incorrect flashing can kill a smartphone

A fall from the fifth floor can kill a smartphone, but not a flashing. The main problem that anyone who wants to flash a smartphone faces is that during the installation of the firmware, a failure can occur, which will lead to its inoperability, and the smartphone will actually turn into a brick.

All this is true, but only on paper. To understand why, it is enough to understand how the smartphone flashing process works and what system components are used. To be able to install third-party firmware on your smartphone, you need to unlock the bootloader (not in all cases), get root and install a custom recovery console (ClockworkMod or TWRP) that can install firmware with any digital signature.

TWRP recovery console

The recovery console is stored in a separate section of the internal NAND-memory and is in no way associated with the installed operating system. After installing a modified version of the console, it will be possible to flash custom firmware or even another OS (Firefox OS, for example). If a failure occurs during the installation of the firmware, the smartphone will not be able to boot it, however, the recovery console will remain in place, and all that needs to be done is to boot into recovery again and reinstall the firmware.

In addition, any custom recovery console contains a backup / restore function that allows you to backup the main firmware and restore it unchanged (with all applications, settings and data) in case something goes wrong. In fact, the smartphone can be returned to its original state.

Before flashing, be sure to make a backup using the custom recovery console You can restore a backup using the Nandroid Manager Android application

You may ask: what happens if there is a failure during the installation of the Recovery Console itself? Nothing, in this case the reverse situation will turn out, when the operating system itself will remain in place, and the console will be lost. To deal with it, just re-flash recovery directly from Android.

Hypothetically, one can imagine a situation where both the firmware and the recovery console are killed (although this is quite difficult to do), but even in this case, the primary bootloader, flashed into the permanent memory of the smartphone, will always remain in place.

Conclusion: it is impossible to kill a smartphone by installing third-party firmware through a custom recovery console. Either recovery or the primary bootloader will always remain in place.

Myth 2. Custom firmware is unreliable

Firmware firmware is different. On the World Wide Web, you can find a huge number of Android assemblies for every taste and color, and most of them are really slag, which can lead to instability in the smartphone and loss of some functionality. Therefore, the first thing to remember is that you should only deal with serious custom firmware developed by large teams of experienced developers. First of all, these are CyanogenMod, Paranoid Android, AOKP, OmniROM and MIUI.

Second. There are two types of firmware: officially supported and ported by third-party developers. The same CyanogenMod, for example, has official version for the Nexus 4 smartphone, but does not have one for the Motorola Defy. But for Defy there is an unofficial port of CyanogenMod 11 from a developer with the nickname Quarx. Their difference lies in the fact that the CyanogenMod team is responsible for the support and proper operation of the first, while the second is Quarx personally. Official firmware versions are usually fully functional, but the correct operation of the latter depends on a third-party developer.

Well, the third. There are stable and development versions of the firmware. Stable versions of CyanogenMod have the index M (CyanogenMod 11.0 M7, for example). This version of the firmware usually does not contain bugs. Development versions (in the case of CyanogenMod, these are daily nightly builds) may contain bugs and are therefore not recommended for everyday use.

Conclusion: if you install a stable official version of the “normal” firmware on your smartphone, the risk of running into bugs is minimal. Everything else is for experimenters.

Myth 3. Software that requires root rights can corrupt a smartphone

In theory, an application with root rights can do anything with the firmware of a smartphone, including erasing it completely. Therefore, with such software, you must be extremely careful. The software that we talk about on the pages of the magazine is completely safe and tested on its own skin. In addition, for all the time I have been using smartphones on Android (and this is since version 1.5), I have never encountered a situation where root-supported software would kill a smartphone.

Software distributed through Google Play, usually fully corresponds to the declared characteristics, and if it led to a brick or left a backdoor in the bowels of the smartphone, it would not last even a week in the store. In any case, here you need to follow the “trust but verify” rule and carefully read the instructions for using root applications.

Myth 4. Root rights make the smartphone vulnerable to viruses

It is not root rights that make a smartphone vulnerable to viruses, but the bugs used to obtain them. Rooting tools and viruses can use the same Android vulnerabilities to gain root permissions, so the mere fact that the device is rooted does not change anything. A well-written virus will not ask for permissions in the standard way, giving away its presence, instead it will take advantage of the same vulnerability to get them stealthily.

Moreover, having root, you get the opportunity to install the latest version of Android (in the form of custom firmware), in which these bugs have already been fixed. Also, do not forget that most custom firmwares allow you to disable root or create whitelists of applications that can use these rights.

Myth 5. A rooted smartphone can fail

Rooting software does four simple things: runs an exploit that allows you to gain root permissions on the system, mounts the /system partition in writable mode, copies the su binary required to gain root rights later on into the /system/xbin directory, and installs a SuperSU or SuperUser application that will take control every time any application asks for root permissions with su.

None of these steps can crash or kill a smartphone. The only thing that can happen is that the exploit will cause a segmentation error and the smartphone will go into reboot, after which it will continue to work normally.

All requests for root rights can be tracked using SuperSU or the built-in custom firmware function
Myth 6. Rooting and installing custom firmware will void my warranty.

The warranty is lost not from the very fact of getting root, but because of its discovery by the service center. Most devices can be unrooted using the Universal Unroot app, or by reinstalling stock firmware using the manufacturer's official app.

There are, however, two exceptions to this rule. The first is the Knox system, which is preinstalled on new Samsung smartphones and tablets such as the Galaxy S4, S5, Note 3 and Note 10.1. Knox provides an increased level of Android security by responding to any firmware modifications and the installation of third-party kernels and firmware. In the event that the user performs these actions, the system sets a trigger that confirms the fact of modification. The trigger is implemented in hardware (eFuse chip), so resetting it to its initial position will not work. On the other hand, it is not entirely clear whether the service center will refuse to repair the device on this basis. Secondly, the eFuse chip is also installed on some other devices (for example, smartphones from LG), and it also allows you to accurately determine whether the smartphone has been rooted or flashed.

If we talk about custom firmware, everything is more complicated. Usually, the flashing operation requires unlocking the bootloader, and this can be done either using special exploits or using the smartphone manufacturer's web service. In any case, the unlocked bootloader will definitely indicate that the smartphone belonged to a far from blonde woman.

On some smartphones, it is possible to lock the bootloader back, but you should learn about this separately, and keep in mind that a newly locked bootloader will most likely receive the Re-locked status, and not Locked, as it was originally (this happens on HTC smartphones, for example). The only exceptions here are smartphones and tablets of the Nexus line, the bootloader of which can be locked and unlocked in three clicks without any dancing with a tambourine, and no one will find fault with anything.

On Linux, ADB and Fastboot can be installed separately from the Android SDK. On Ubuntu: sudo apt-get install android-tools-fastboot. On Fedora: sudo yum install android-tools.

To prevent the Knox system from interfering with root applications, you can disable it using the following command from the terminal: su pm disable com.sec.knox.seandroid.

conclusions

Getting root and flashing a smartphone are absolutely safe operations that cannot corrupt a smartphone for purely technical reasons. The only exception is an attempt to hack the bootloader in order to unlock it. In this case, the eFuse chip (if there is one in the smartphone) may work and block the ability to turn on the smartphone.

Fortunately, today smartphone manufacturers either prefer not to block the ability to turn on a smartphone with a hacked bootloader (by setting a trigger indicating the fact of such an action, as Knox does), or implement a special web service that allows you to painlessly unlock the bootloader with a loss of smartphone warranty. which saves users from having to risk breaking the bootloader.

So, now let's talk about what problems can arise when getting root and flashing and how to deal with them.

Scenario one: after an unsuccessful flashing, the smartphone stopped loading

Unsuccessful flashing can be caused by several factors: the battery is dead, and the firmware is only half full, the firmware turned out to be faulty or intended for a different smartphone model. In the end, the smartphone simply did not have enough space, which can happen when trying to install the latest version of Android on a smartphone three or four years ago.

Outwardly, all these problems usually manifest themselves either in endless resets of the smartphone to the initial logo of the manufacturer, or in the so-called boot-loop, when the loading animation spins on the screen for more than five to ten minutes. There are also problems with the screen (multi-colored ripples) and a non-working touch screen, which also prevent the use of a smartphone.

In all these cases, it is enough to do one simple thing: turn off the smartphone by long pressing the power button, then turn it on with the volume down button held down (some smartphones use a different combination), and after you get into recovery, reinstall the firmware (Install zip from sdcard - > Chooze zip from sdcard) or restore backup (Backup and restore -> Restore). Everything is easy and simple.

Scenario two: firmware works, but recovery is not available

This can happen after a failed installation or update of the Recovery Console. The problem is that after rebooting the smartphone and turning it on with the volume down button held down, a black screen appears, after which the smartphone either resets or hangs.

Solving this problem is not easy, but very simple. You can install the recovery console on the vast majority of smartphones using the TWRP Manager, ROM Manager or ROM Installer applications. They themselves determine the smartphone model, download and flash the required recovery without requiring a reboot. If with their help it is not possible to restore the console, it is enough to find instructions on the Web for installing recovery on your device.

ROM Manager allows you to install recovery in two taps
Scenario three: neither firmware nor recovery is available

To be honest, it is difficult for me to imagine such a scenario, but, as practice shows, it is quite real. There are two ways to get out of this situation: use fastboot to upload recovery to your smartphone, or use a tool from the manufacturer to install stock firmware. We will take a closer look at the second method in the next section, and I will talk about fastboot here.

Fastboot is a tool that works directly with the primary bootloader of the device and allows you to upload firmware to your smartphone, recover and unlock the bootloader (in Nexus devices). Fastboot support is available in many smartphones and tablets, but some manufacturers block the ability to use it. So you will have to consult the Internet about its availability.

To access fastboot, you will need drivers and the Android SDK. When they are installed, open the command line, go to the SDK installation directory, then to the platform-tools directory, turn off the smartphone, turn it on with the volume buttons held down (both) and connect it with a USB cable to the PC. Next, you need to find the recovery image in .img format for your device and run the command:

$ fastboot flash recovery image.img

Or even force the smartphone to download recovery without actually installing it:

$ fastboot boot image.img

In the same way, you can flash the official firmware update:

$ fastboot update update-file.zip

You can find a recovery suitable for your device either on the TWRP website or in the XDA-Developers and w3bsit3-dns.com forums.

In this section, I will talk about ways to return a smartphone to a clean drain, no matter what state it is in. These instructions can be used both for scratching a smartphone and for removing traces of rooting and flashing. Unfortunately, I can't talk about all the possible models, so I'll focus on the four most popular flagships: Nexus 5 (I call this sample), Galaxy S5, LG G2 and Sony Xperia Z2.

Nexus 5 and other Google phones

Restoring Nexus devices to their original state is easier than any other smartphone or tablet. In fact, it is so simple that there is not even anything to talk about. In fact, all you need to do is install the ADB / fastboot drivers (on Linux you don't even need them), download the firmware archive and run the script. Step by step, the whole operation looks like this:

  1. Download and install the Android SDK.
  2. Download the archive with the firmware for the desired device from the Google website.
  3. Turn off the device, turn it on with the volume buttons pressed (both) and connect using a USB cable.
  4. Unpack the archive with the firmware and run the flash-all.bat (Windows) or flash-all.sh (Linux) script and wait for the operation to complete.
  5. We launch the command line, go to the directory with the Android SDK, then platfrom-tools and execute the fastboot oem lock command to lock the bootloader.

For those who are wondering what the script does, here is a list of commands:

Fastboot flash bootloader bootloader-DEVICE-NAME-VERSION.img fastboot reboot-bootloader fastboot flash radio radio-DEVICE-NAME-VERSION.img fastboot reboot-bootloader fastboot flash system system.img fastboot reboot-bootloader fastboot flash userdata userdata.img fastboot flash recovery recovery.img fastboot flash boot boot.img fastboot erase cache fastboot flash cache cache.img

Galaxy S5

So Galaxy smartphone S5 is a little more complicated, but overall pretty simple. This time you will need the Samsung Odin application, with which the smartphone will be flashed. Sequencing:

  1. Download and install the latest Samsung USB drivers from here.
  2. Download and install the latest version of Odin from here.
  3. We go to the site samfirmware.com, enter the SM-G900F model in the search, find the firmware marked Russia, download and unpack.
  4. We turn off the smartphone and turn it on with the volume down and "Home" buttons held down, wait five seconds until a warning message appears.
  5. Press the volume up button to put the smartphone into Odin mode.
  6. We connect the smartphone using a USB cable.
  7. We launch Odin, press the PDA button and select the file with the tar.md5 extension inside the directory with the unpacked firmware.
  8. Press the Start button in Odin and wait until the firmware process is completed.

As I said, this operation will return the smartphone to its original state, but will not reset the trigger set by the Knox system (if it was in the standard firmware). Therefore, the service center may refuse to repair.


Odin in person Odin is even in the mobile version
LG G2

Restoring the LG G2 to its factory state will also not cause any problems. The number of steps in this process is somewhat larger, but in themselves they do not require special training and knowledge. So, what to do to return the factory firmware to the G2:

  1. Download and install ADB Driver Installer from here.
  2. Download the official firmware (Europe Open 32G or Europe Open) from here.
  3. Download and install LG Mobile Support Tool and FlashTool (goo.gl/NE26IQ).
  4. Turn off the smartphone, hold down the volume up button and insert the USB cable.
  5. Expand the FlashTool archive and run the UpTestEX.exe file.
  6. In the window that opens, select Select Type -> 3GQCT, Phone Mode -> DIAG, in the Select KDZ file option, select the firmware downloaded in the second step.
  7. Press the CSE Flash button at the bottom of the screen.
  8. In the window that opens, click Start.
  9. In the next window, select the country and language and click Ok.
  10. We are waiting for the end of the firmware, and then turn off and turn on the smartphone.

This is all. But keep in mind that, just like with Samsung, the smartphone will still be rooted, and this cannot be fixed.

Sony Xperia Z2

Now about how to return the Sony Xperia Z2 smartphone to the factory state. As in the previous two cases, this will require stock firmware and the official firmware utility. You run the utility on your PC, connect your smartphone with a USB cable, and start the update process. Step by step it looks like this:

  1. Download and install ADB Driver Installer from here.
  2. We reset the smartphone to factory settings.
  3. Download and install the Flash Tool from the official Sony website and the latest firmware from here.
  4. Copy the firmware file to the C:/Flashtool/Firmwares directory.
  5. We turn off the smartphone and turn it on while holding down the volume down and "Home" keys.
  6. We connect the smartphone to the PC using a USB cable and run the Flash Tool.
  7. Press the button with the lightning bolt icon in the Flash Tool. In the window that opens, select Flashmode, double-click on the firmware in the list that opens.

In many smartphones, the unlocked bootloader will not allow you to update over the air.

In 90% of cases, unlocking the bootloader will delete all data from the smartphone, including the memory card.

Flashing a smartphone, and even more so getting root access, is not at all such scary and dangerous operations as they might seem at first glance. If you do everything right and do not resort to tools that unlock the smartphone's bootloader bypassing the manufacturer's tools, you will not be able to corrupt the smartphone. Yes, in some cases you will have to tinker to get everything back in place, but is it better to use a locked smartphone that does not allow you to do half of the things that it is capable of, or to take full control of the device? After all, reinstalling Windows on a PC doesn't scare anyone.

www.xakep.ru

Restoring Android "brick"

There are cases when, after trying to install custom firmware on Android, unlock Superuser rights (root access) or delete system data, the device stops functioning. This manifests itself in the inability to log into the mobile device and even load the Recovery environment. This state of the phone or tablet is popularly called "brick".

No matter how serious the problem of “bricking” may seem, in most cases you can reanimate the gadget at home. Consider how to restore Android if it has turned into a "brick".

Ways to reanimate Android when "bricking"

There are three effective methods for restoring Android when it loses its functionality:

  • using the standard recovery environment Recovery;
  • through custom recovery;
  • through a computer and special software.

Which method to use directly depends on the state of the system on the device.

If, when trying to enter the working area of ​​the device, there are constant reboots or the phone freezes on the system logo, but the Recovery environment is working, then you are lucky, since you can restore the Android firmware through it. For this you need:


After the reboot, the factory settings should appear on the smartphone. If Hard Reset did not help fix the problem, we try to revive Android after an unsuccessful firmware using a previously created system backup or a firmware file downloaded from the Internet.

To restore Android from a previously created backup, you need to do the following:


If you didn’t take care of creating a return point in advance, then you can return Android to work on a tablet or smartphone using the downloaded firmware. In this case, we animate the gadget as follows:

  1. Download the firmware file for your Android device model to your PC. This should be done only from trusted sources.
  2. We take out the memory card from the device and connect it to the computer through the card reader.
  3. Copy the downloaded file there.
  4. We return the micro sd to the phone.
  5. We enter Recovery and select the item marked in the figure.
  6. Specify the path to the firmware and start resuscitation.

After it was possible to restore the "brick" of Android, the downloaded file can be deleted.

Using custom recovery

If the “bricking” led to the crash of not only the operating system, but also the standard Recovery, then you can restore the system using a custom resuscitation environment - the CWM Recovery program.

Before restoring the “brick” on Android, you need to install Modrkaveri on the problem device:

The installation of CWM Recovery will begin, at the end of which the smartphone can be disconnected from the computer and proceed directly to resuscitation:

After performing these steps and rebooting, the phone (tablet) should work.

Resuscitation of the "brick" through a PC and special software

Considering how to restore Android after “bricking”, it is worth noting specialized software developed individually for each manufacturer of mobile devices. So, the FlashTool recovery program is used for Sony gadgets and some other brands, and Odin is used for Samsung.

Let's restore the functionality of the "brick" using Odin:


The process of automatic system recovery will begin, after which you can again enjoy your working device.

This time I will show you how to install stock firmware on your Samsung Galaxy smartphone or tablet, that is, restore the state of a new device. This method will also allow you to revive your gadget after an unsuccessful installation of custom firmware or get rid of problems that have arisen with the operation of the device. You can also update your device to the latest software if you can't wait for the over-the-air update. Everything is completely safe!

This method involves using the most convenient Odin utility for Windows. Don't worry if you don't know her. With the step-by-step instructions below, you will learn everything you need to successfully restore via Odin. It is worth noting that all data stored in the internal memory of the device will be erased, so save it on your computer before you start. You can also back up sms, contacts, media files and more by following our guide.

How to prepare for Samsung Android device recovery process:



So, are you all set? Have you installed the drivers and restarted your computer? Have you unpacked the archives of the Odin program and the firmware? Is your smartphone/tablet charged? Then let's get started! Carefully follow my instructions and in 15 minutes you will receive a device with a freshly installed software.

How to restore stock firmware on any Samsung device:

Step 1: Launch Odin on your computer.

Step 2: Translate mobile device to Download Mode. To do this, turn it off, and then hold down the buttons in turn “Volume Down”, "Home" And "Nutrition". Then press the button once “Volume Up”, to continue.

Step 3: Connect your gadget to your computer with a USB cable.

Step 4: When in the Odin program a blue light lights up opposite the connected port, click on the button "AP" and select the firmware file that you should have downloaded in advance.

Step 5: It takes a few minutes for the Odin utility to check the firmware. When it's ready, press the button "Start" located at the bottom of the window.

Step 6: After the process is completed, the device will reboot automatically.

Step 7: In a few minutes, you should see the initial setup screen, where you need to select the interface language, connect to the network, add an account, and so on.

That's all! Now your gadget has stock software installed, which will receive official updates over the air.