OnePlus 5 - Official firmware



Rep: (927)
Oneplus 5 - Official Firmware
PictureA5000
Description | Discussion пїЅ | Purchase пїЅ | Accessories пїЅ | Marriage and Repair пїЅ | Owners Club пїЅ | Camera talk пїЅ | Modification and decorations | power usage пїЅ | Unofficial firmware пїЅ | Official firmware пїЅ


Important information!
Attention! Recently, the automatic OS update algorithm has changed. Now the inclusion of vpn or proxy does not affect the speed of the arrival of OTA.

  • Any actions to prepare for the firmware and / or reflash the smartphone, it is desirable to do when the battery is not less than 50%.
  • You can not close the bootloader (fastboot oem lock) when the custom recovery is installed. Otherwise - a brick.
  • Before you make a backup or reflash the phone, you need to remove all types of locks (finger, pin, password, etc.).
  • All that you do - at your own peril and risk!
    About Android Pay


Drivers and Utilities
Official firmware
Oxygen OS (international)
Hydrogen OS (only china)
Instructions


Firmware
Root
Recovery STOCK / TWRP
Useful
Poll
Attached Image



There is no curator in the subject. If there is a user in the subject who wants to become a Curator and the correspondingRequirements for candidates, he can apply by creating a new topic in the sectionI want to be curator(having previously studiedRules and recommendations for curators).
Prior to the appointment of the curator, on filling caps, please contactmoderatorssection through a buttonPictureunder the messages to which you want to add links.


Post has been editedesleer - 13.11.20, 22:07
Reason for editing: OxygenOS 10.0.1



Rep: (1945)
Romaz09 @ 07.22.17, 23:32*
then it can be Russified and put the gaps according to the instructions from 3T?

You can Russify anything. A long, tedious, a lot. About 20–30 apk.
Gaps also seem to roll quietly. I can be wrong. Put as a system and use. Ruth is all affairs.
Do you ask this from the experience of using Chinese brands? Do you think this firmware is better, by analogy with Xiaomi global – china?



Rep: (128)
* alex706 They update security patches every 3 months. The next patch will be from the 1st of August. This is a normal practice. And they have already abandoned 1 + 2 for quite a while, updates are coming out for a long time, they don’t fit in every 3 months. That release security patches is not clear when it is not clear what date.

* romaz09 , Try, tell us too. Probably yes, it will.

Post has been editedxx_i_xx - 23.07.17, 08:35



Rep: (146)
* EugenKnock ,
Hydra prettier to be honest)* bob3k ,
Ga Xiaomi got me the firmware, so I switched to 1 + 5. And yet, on both mi5, the battery died for a year. At 20-25% smart smartly cut down.
PySy according to the instructions from 3T requires only the root and 1 prog which itself Russifies* xx_i_xx ,
Fair? I'm afraid smart kill



Rep: (4)
Comrades, tell me the best wayqualitativelyswitch from Hydrogen to Oxygen after receiving a phone from aliexpress.

After reading the topic for myself, I determined 2 ways, between which I choose:
1) download the latest firmware from the official site to your phone, flash through the gear and make a full reset (possibly via recovery)
2) The same is through the Adb sideload according to the instructions from the header



Rep: (927)
* ViKinGs_Alive ,
Pepvy way is easier, the second is better.



Rep: (324)
* Scaracheno , more precisely, only the 2nd method and will give 100% result without subsequent questions why the glitches ..



Rep: (132)
connect the smartphone to the PC in order to make sure that the drivers are installed correctly

plz tell me exactly what should happen when you connect your phone to a PC?



Rep: (0)
* Tigger ,
Let me try to answer your next question immediately :)
You go in
Menu =>Settings =>For developers =>USB configuration (you must first activate this menu in the settings ...)
Then when you connect the device to the computer, the booklet is exactly thatMTR the mode you chose in advance.
I hope correctly understood why you are asking all this :)



Rep: (5)
There is some option to save the root and remove the security warning at the start of the phone, who knows? : rolleyes:



Rep: (2791)
M
Offtop in the subject stop. Offtop deleted.



Rep: (0)
* Sokratez , I have not yet ruled my device, can you show me a screenshot about what you wrote there? :)



Rep: (4)
* EugenKnock This is when you turn on the phone. The message that the bootloader is not blocked
Attached Image



Rep: (356)
* waalkman
Isn't it?OnePlus 3 / 3T - Official firmware



Rep: (2791)
* Tresk
No, not it. According to the instructions we are talking about how to remove the check dm
This menu will always be, for such is the condition after unlocking the bootloader.



Rep: (3)
Who uses the headset works fine for you?
I have plantronics ml20, it works fine on samsung and aple, on oneplus 5 it constantly falls off



Rep: (7)
* Tahallus , I use this Chinese is not the original normal flight can you have a feature of the headset.
Attached Image


Post has been editedlesanglier - 25.07.17, 14:27



Rep: (1)
Opened the bootloader, put, twrp, supersu, respectively, android pay stopped working, now magisk does not stand up for this configuration, I try to wash different versions through twrp, but always during the installation process there is an error, a sieve?



Rep: (345)
General instructions for getting root on the stock firmware for beginners or a beginner’s root user guide for OnePlus 5 / 5T

This manual describes such aspects as: installing drivers (and also troubleshooting problems with them), opening the bootloader, installing recovery TWRP, getting root rights, and more.

Foreword
In general, I will be brief ... This instruction is intended for beginners and not only, it will allow you to get root without any special difficulties, because everything you need and even more is in this post.

Theory
1.What is the operating system?
It so happened, any operating system (Android is not an exception) is built from three basic components:
  • Bootloader - checks the system (compliance of hardware and software) before launching the kernel.
  • Kernel - a set of commands and executive scripts, also contains drivers.
  • Interface - A utility or set of utilities for interacting with the user’s kernel and vice versa. It includes: GUI (graphical interface of interaction), connecting interface components with the kernel, etc.
All this together is the operating system.

2. What is root and why is it needed?
Let's look at the concept of "operating system administrator".
Any file on the disk always has three basic permissions:
  • R / W (Full access to read and change the contents of the file / folder)
  • RO (Read access to the file / folder, changing the content is prohibited)
  • NA (Cannot access file / folder contents)
Because of the fear, before some inappropriate, and some will be able to access system files and / or personal information, it was decided to distribute the so-called "permissions". For example - we create a user (account) "Vasya Pupkin". With the one who goes under his registration data will be full access (if it did not limit his computer / network administrator) to its folders and files, but not having the user's rights "Administrator" on the computer, our dear MR. Pupkin will not be able to even change the screen resolution!
From this it follows that it is an account with full R / W access to the entire system that has the ability to make any changes in its core and / or work with other important components of the operating system.
Android is based on the Linux kernel. On NIX-type systems, the “Administrator” account is referred to as the “root user”, in English - root user or abbreviated - root.
As we said earlier, in the operating system based on the Linux kernel there is such a thing as a super user, super user, also known as root user, who has full access to the components of the operating system, including the kernel.
Android is no exception, although a bit "neutered." One of the effects of this "castration" is the removal of the local super-user, that is, the complete absence of an account with full access in the system (for the sake of the user's safety, as they say). For one reason or another, we want to get it. We make manipulations, "sew" SuperSU or Magisk and voila, the necessary changes were made, our super-user account was created / activated.

3. Types of root and the difference between them.
As we already know, our super-user account was created / activated, and for this, certain changes were made to the system. Namely - some files were added that contain a certain program code, which allows us to use these privileges.
As we know, when updating the system by air (OTA), the update script checks the integrity of the system image and, depending on this, gives or does not give us the opportunity to update the system. In the presence of files confirming the presence of root-rights in the system, our OTA-Updater on many devices either does not work, or leads to incomplete / incorrect installation of the update and, as a result, to the "brick" (not with us, with us or the root will fly off , or the OTA update is simply not installed).
To understand this better, consider the two options for getting root-rights:
  • System root - changes are made directly to the system, bypassing the kernel. In our case, the application for managing root rights is installed in the / system / app folder, a binary file is installed in the system and several symlinks are created.
  • Unsystemable root (Systemless root) - changes are made to the kernel, allowing the system to initiate the image of SU.IMG when starting the system, which is in / DATA. After loading the system in the root directory, we see the / SU folder, which, according to the tree structure (placement of folders and files inside), partially repeats the structure of the / System folder structure. In these folders, the necessary files are stored, without getting into system folders. Unsymptic root was invented and implemented with Android 6.0. The idea was in creating the opportunity to make OTA-updates without losing root rights. In fact, this does not happen, changes in the kernel disappear, as the kernel is overwheed when OTA update.

As for our device, the main utility to get root is Magisk. Magisk (haphazard) - a new development, the main chip, which is the ability to hide root rights from banking applications and not only.

4.What is recovery?
This question suggests itself for a long time.
Where to us to "attach"? Recovery is part of what? What does it affect? What influences him?
Recovery is a separate micro-under-operating system that uses our bootloader and has its own interface.
Basic versions of recovery (for example, those with firmware), although they have very limited functionality, are also very powerful tools that have access to many areas of our main operating system, Android, and allow you to perform actions on them WITHOUT logging into the operating system itself. For example, delete the contents of the / Cache or / Data sections.
More advanced versions of recovery (CWM, TWRP, Philz, etc.) have advanced functionality, which, together with access from the outside, gives us a very powerful tool.
For example, we can edit system files, delete passwords, save / restore entire system partitions without being in the system.
Note: with the help of some manipulations in recovery, the device can be brought to complete disrepair. Therefore, it is desirable to understand what we are doing and why.
Short Recovery TWRP FAQ
It is imperative to read further questions! : rtfm:

5. The result or what gives root? (main points)
Among the advantages are the following:
• accessing and modifying system files and applications
• the ability to install many applications that require root for their work
• installation of third-party firmware and mods
• remove pre-installed programs and other garbage
• activation of many additional features of Android
• increase in productivity and autonomy
• ad blocking
• distribution of the Internet without restrictions
• Viper4Arise (best sound)
What are the disadvantages and dangers of obtaining superuser rights?
• it deprives you of a guarantee (in fact, all signs of this operation can be eliminated)
• it will be slightly more difficult to receive OTA updates


Practice
Well, we got to practice!I want to notify you that everything you do, you do at your own peril and risk. And as it is known on the fence, "it is also written."
So, it is important to remember that the firmware can be successful only if you perform all the suitable music: hemp:
Therefore, first of all we turn it on.Attached filePre-Revolutionary SovСЈtchik - Witte need to exit. Mp3(7.29 MB)

0. Installing drivers
If you already have ADB and Fastboot drivers and utilities installed, then go on to the next item.

I have windows
The most correct and smooth drivers are already uploaded to the phone and you can try to install them as follows:
1) Connect the phone to the computer
2) In the curtain of notifications, turn on: "Transfer files via USB"
3) Go to My Computer \ Windows Explorer, go to "OnePlus drivers", right-click and select "Open in new window"
4) Open "OnePlus_USB_Drivers_Setup.exe"
5) In the language selection field, leave English and click "OK"
6) Wait until the installation is completed and click "Finish"
7) Restart the computer

I have macOS
The most correct and smooth drivers are already uploaded to the phone and you can try to install them as follows:
1) Connect the phone to the computer
2) In the curtain of notifications, turn on: "Transfer files via USB"
3) Go to My Computer \ Windows Explorer, go to "OnePlus drivers", right-click and select "Open in new window"
4) Open "AndroidFileTransfer (OSX) .dmg"
5) Make the installation
6) Restart the computer

I have Linux, Ubuntu, ...
The world of Linux is vast and diverse; over the course of more than 20 years, there have been many variations of assembled ready-made operating systems - distributions.
Moreover, some distributions are descendants of others - this is called based (based). Therefore, roughly speaking, all distributions can be divided into several types:
a) Debian-based, all distributions are based on Debian and almost always have * .deb format packages
b) RPM-based, where development went from Red Hat, their packages have the format * .rpm
c) Other, they may have their own package formats and so on.
Accordingly, each of these types has its own package managers for managing packages in the system, for Debian-based it is basically apt package manager, for RPM-based, it is basically a rpm package manager.
Packages are almost the same as packaged in * .exe installers in Windows, but they have their own characteristics. Package managers manage packages in the system, namely: download from their repositories (global world repositories), install, update, delete packages.
For example, for a Debian-based distribution, the command in the terminal would be:
$ sudo apt-get install android-tools-adb
and then fastboot:
$ sudo apt-get install android-tools-fastboot



1.Open the bootloader
}-)Attention ! Achtung! Alarm! Unlocking the bootloader will delete all data from your phone! Make backup copies of the required in advance! Alarm! Achtung! Attention !}-)

If Your Highness does not know about the developer mode
1) Go to "Settings" and select the section "About the phone."
2) Then scroll down and see the “Build Number”, tap on it seven times.
3) After the seventh tapa, the system will inform the user that he has become a developer.
4) We go back and see the developer mode.

1. On the phone, go to "Options for Developer" and enable "Factory Unlock" (as in the screenshot), also check the "Debug USB" option, it should be enabled:
Attached Image
You can also enable the advanced reboot option and reboot into Bootloader (Fastboot).
2. Enter Fastboot mode, for this you need:
  • Turn off the phone.
  • Press the volume key up and the power key, after a few seconds, the screen should say "fastboot" or "fastboot mode".
  • Connect the phone to the computer using a USB cable (preferably the original one that comes with the phone).
  • I have Windows 10 Creators Update and above
    Then open the command window: open the folder where the ADB is located, for example C: \ Android>in the free space of the window, press Shift + Right mouse button>"Open power shell window". In the command window write the command:
    CMD
    Go to the "last point" in this list.

    I have another OS
    Then open the command window: open the folder where the ADB is located, for example C: \ Android>in the free space of the window, press Shift + Right mouse button>"Open command window".

  • At the command prompt, enter the following code:
    fastboot devices
    This command will show the list of connected phones.
    If the serial number of your phone is highlighted, you can proceed
    Attached Image

    If not, you need to check the connection of the phone / driver.

Attention! Further actions will delete all data from the phone, be careful!

3. Enter the following into the console:
fastboot oem unlock
On the phone, we confirm the unlocking in the menu that appears (control in that menu is carried out using the volume and power keys), selecting the topmost item - "YES".
4. Next, your phone will restart, you will need to go through the initial configuration of the phone.
5. Activate developer mode again and enable the "Debug USB" option.
Important ! You can not block the bootloader (fastboot oem lock) when recovery TWRP is installed, otherwise there will be a brick!

2. Installing TWRP recovery and getting root rights
It is not recommended to install SuperSU, as it does not work correctly on Oreo.
Do not forget to enable the display of file extensions!
In order to enable the display of file extensions in Windows, open the control panel (switch the "View" item on the right at the "Icons" instead of the "category"), and select "Folder Settings" (in order to open the control panel in Windows 10, use the right click menu on the Start button). In the folder settings window that opens, click the View tab and in the Advanced Settings field, find the "Hide extensions for registered files" field (this item is at the bottom of the list). Remove the mark from the specified item and click OK.

Download the latest version of TWRP to your computerfor 5orfor 5T, put the file in the command line utilities folder: adb.exe, fastboot.exe and rename it to twrp.img
Enter Fastboot mode, for this you need:
  • Turn off the phone.
  • Press the volume key up and the power key, after a few seconds, the screen should say "fastboot" or "fastboot mode".
  • Connect the phone to the computer using a USB cable (preferably the original one that comes with the phone).
  • I have Windows 10 Creators Update and above
    Then open the command window: open the folder where the ADB is located, for example C: \ Android>in the free space of the window, press Shift + Right mouse button>"Open power shell window". In the command window write the command:
    CMD
    Go to the "last point" in this list.

    I have another OS
    Then open the command window: open the folder where the ADB is located, for example C: \ Android>in the free space of the window, press Shift + Right mouse button>"Open command window".

  • At the command prompt, enter the following code:
    fastboot devices
    This command will show the list of connected phones.
    If the serial number of your phone is highlighted, you can proceed
    Attached Image

    If not, you need to check the connection of the phone / driver.

Enter:
fastboot flash recovery twrp.img

Use the volume buttons to select the item "Recovery" and briefly press the on / off button once. Now your task is to wait until the question described below appears.
  • A screen will appear asking you if you want to allow system modification (If you want to allow system modification?). Swipe right to allow changes.
  • Download the latest version of Magiskfrom here.
  • Throw the Magisk on the phone, install the zip in twrp.
  • Open Magisk Manager, give root rights, enable hide and non-system hosts in the settings of Magisk.
  • Reboot your phone.
  • Open Magisk Manager and check that the SafetyNet tab has passed.
  • Go to the next item.


3.Backup EFS. Very important!
-What is it for ?
-It will allow you to restore parameters such as: IMEI, S / N, GPSID, WIFIMAC, BTMAC, etc. in case of their loss. Without these parameters, the phone turns into an almost useless thing.
EFS backup
1. So, first we installterminal emulatoron the smartphone and in the terminal we write:
su

2. Give root rights and write further:
dd if = / dev / block / sdf1 of = / sdcard / modemst1.bin bs = 512

dd if = / dev / block / sdf2 of = / sdcard / modemst2.bin bs = 512

3. 2 modemst1.bin and modemst2.bin files will be created in the sdcard root,save it to your computer or to the cloud and keep it while your phone is in your hands .

I have crashed EFS, how can I recover it?
1. We get our previously copied modemst1.bin and modemst2.bin, copy them to the folder where ADB and Fastboot are installed
2. Enter Fastboot mode, for this you need:
  • Turn off the phone.
  • Press the volume key up and the power key, after a few seconds, the screen should say "fastboot" or "fastboot mode".
  • Connect the phone to the computer using a USB cable (preferably the original one that comes with the phone).
  • I have Windows 10 Creators Update and above
    Then open the command window: open the folder where the ADB is located, for example C: \ Android>in the free space of the window, press Shift + Right mouse button>"Open power shell window". In the command window write the command:
    CMD
    Go to the "last point" in this list.

    I have another OS
    Then open the command window: open the folder where the ADB is located, for example C: \ Android>in the free space of the window, press Shift + Right mouse button>"Open command window".

  • At the command prompt, enter the following code:
    fastboot devices
    This command will show the list of connected phones.
    If the serial number of your phone is highlighted, you can proceed
    Attached Image

    If not, you need to check the connection of the phone / driver.

3. Next, enter:
fastboot flash modemst1 modemst1.bin

fastboot flash modemst2 modemst2.bin

Reboot the phone:
fastboot reboot

You can disconnect the cable from the phone and enjoy your device. Good luck to all and direct hands.

4. I did everything, it turned out, but I do not know which applications / mods / utilities should I put
Everything that is listed here is exclusively my IMHO, i.e. This is a complete set of applications / mods / utilities that I need for normal (convenient) work, however, I will try to be as unbiased and objective as possible. If any of the following does not work for you, then before writing an angry message to me in QMS, I strongly recommend that you familiarize yourself with the topic of software that is not working for you.
  • Solid Explorer File Manager- minimalistic and stable file manager.
  • Zarchchiver- A very powerful tool for working with archives.
  • Drivedroid- a very good thing for sys. admin. Allows you to mount images and use the phone as a bootable usb-drive.
  • AdAway- the best ad blocker. The basis of his work is the automatic editing of the hosts file.
  • Macrodroid- the most functional and usable "automator".
  • Termux- just a good terminal, with the ability to conduct several sessions simultaneously.
  • Toggle Network Type 5.0- A very handy widget for quickly switching the type of network (2G, 3G, 4G).
  • Viper4Arise- the best audio mod, the heir to ViPER4Android. In fact, it is a system equalizer.
  • TTL Master- allows you to bypass the ban on tetering your operator. It works only with kernels that support ttl change in iptables.
  • YouTube ad-free- I recommend to install the nodpi version.

Lastly, I want to say that I highly recommend you not to use: Xposed, Greenify, Naptime, Titanium Backup, ForceDoze, MicroGMS, various cleaner'y, Disable Service etc.


Afterword
If you are reading this, then I conclude that you have successfully gained root, so now you love me: D and not only:
If you think that the post needs to be supplemented or there are mistakes in it, knockto mein QMS.


Post has been editedmr.quatto - 17.03.18, 18:22



Rep: (12)
I apologize if the question is insanely stupid, just the first phone on the android, and you can get the root without unlocking the bootloader and installing a custom trvp? I just want to get root only for installing more interesting software, and custom firmware and the like are not very interesting to me



Rep: (12)
Can I just use King root or analogues? Just as far as I understand, it is impossible to kill the phone just by getting the root, but playing with the bootloader and TRWP is even possible. Thanks in advance for your reply.


Full version    

Help     rules

Now: 13.01.21, 15:06