Pierre LeBaux
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Rooting OnePlus 2 1. This guide is based on [very detailed but dated guide on oneplus forums](https://forums.oneplus.net/threads/24-06-2016-oneplus-2-how-to-unlock-bootloader-flash-twrp-root-nandroid-efs-backup-and-more.345478/). Here is [secondary guide](https://forum.xda-developers.com/oneplus-2/general/guides-how-to-guides-beginners-t3146568) and a [tutorial video from oneplus guys](https://www.youtube.com/watch?v=KZaajUEybNM) if you are ever in doubt. As per usual, there is a chance you will destroy your phone in a process - if you do, it is your own responsibility. But you can message me on reddit if there is something unclear here. 2. Downloads: 1. [15 Second ADB 1.4.3](https://forum.xda-developers.com/showthread.php?t=2588979) (Recommended) 2. [TWRP for OPO2](https://dl.twrp.me/oneplus2/), used latest [3.1.1](https://dl.twrp.me/oneplus2/twrp-3.1.1-0-oneplus2.img.html) (2017-05-18) recommended minimal 3.0.2-1 (2016-06-14) 3. [SuperSU v2.74-2-beta](https://androidfilehost.com/?fid=24591000424939898) (recommended) don't use latest because [this](https://www.reddit.com/r/oneplus/comments/56p53s/what_are_the_alternatives_to_chainfire_supersu/d8l9he3/), use max. version [2.76](https://s3-us-west-2.amazonaws.com/supersu/download/zip/UPDATE-SuperSU-v2.76-20160630161323.zip) (ZIP not APK) 1. Optional but **highly recommended**: Replace SuperSU with Magisk. More active development, offers more. 4. [Open Google Apps](http://opengapps.org/) (ARM64, 8.0) - If you want "ok google" detection you need at least NANO, recommended MINI. 5. Your desired ROM goes here. I'm using [LineageOS-15.0OP2 third beta build](https://forum.xda-developers.com/oneplus-2/development/rom-lineageos-15-0-t3668056) from 11/2017. Check for [updates or other ROMs](https://forum.xda-developers.com/oneplus-2/development). 3. pc: Installed ADB (Y/Y/Y) 4. phone: Enable USB debugging, Enable OEM Unlocking, Enable Advanced Reboot 5. phone: Fastboot entered from bootloder NOT from VOLUP+POWER 6. pc: Open c:\adb "shift+rightclick" open powershell here 7. cmd: fastboot devices (if there is short serial number, you are good to go) 8. cmd: fastboot oem unlock 9. cmd: fastboot reboot 10. phone: Skip through first time phone setup, then enable everything that is in step 4) 11. phone: Power off, boot into fastboot (VOLUP+POWER) 12. pc: Rename twrp-3.1.1-0-oneplus2 to twrp.img, copy that file to c:\adb 13. cmd: fastboot flash recovery twrp.img 14. phone: Power off, VOLDOWN+POWER to enter TWRP 15. twrp: Reboot > System (don't install twrp app) 16. phone: Is everything working? Good. Now repeat 14) 17. twrp: Backup > Select all partitions > Perform Backup (../twres/languages/en-US.xml error is **not** an issue) 18. win: Copy the backup from the phone (path: \ONE A2003\Internal Storage\TWRP\BACKUPS\95c7fa27) 19. pc: Archive it with 7zip to OPO2_STOCK_NANDROID_BACKUP__201711.7z (From 2800 to 933Mb on highest compression) 20. Don't wipe the phone yet, copy Magisk-v14.0.zip from your PC to TWRP folder on phone 21. twrp (VOLDOWN+POWER): Install > Open TWRP folder, select Magisk-v14.0.zip and swipe to install. Reboot to system. 22. system: Install [Terminal Emulator for Android](https://play.google.com/store/apps/details?id=jackpal.androidterm) (Jack Palevich) and open the app. 23. system: We are going to backup **modemst1.bin** and **modemst2.bin** (why? Find Making and EFS backup on [this page](https://forums.oneplus.net/threads/24-06-2016-oneplus-2-how-to-unlock-bootloader-flash-twrp-root-nandroid-efs-backup-and-more.345478/#post-12644728).) ``` su dd if=/dev/block/mmcblk0p17 of=/sdcard/modemst1.bin bs=512 dd if=/dev/block/mmcblk0p18 of=/sdcard/modemst2.bin bs=512 ``` 24. At this point you have rooted phone and all backups. Congrats! 25. Save OPO2_STOCK_NANDROID_BACKUP__201711.7z and 2 modemst files somewhere safe (on PC). 26. pc: Now we are going to install custom ROM. Copy these files from PC to TWRP folder in phone storage: 1. lineage-15.0-20171018-BETA-4.0-oneplus2.zip 2. Magisk-v14.0.zip (or if want SuperSU, copy UPDATE-SuperSU-v2.76-20160630161323.zip) 3. open_gapps-arm64-8.0-nano-20171021.zip 27. twrp: Wipe > Advanced Wipe > Select Dalvik + System + Data + Cache > Swipe to Wipe 28. twrp: Install > Open TWRP folder > Select Lineage ZIP, click add more ZIPs, select Magisk, add more ZIPs, add gapps. Swipe to FLASH. Watch your phone ascent to heaven. Also watch for errors, the whole installation might take few minutes, depends on version of gaaps you chose. Click reboot. The first boot is going to take time, don't freak out. At this point you are all done. If something was not clear and you want to improve this guide for other users, I'm lebaux using gmail, if you catch my drift. You can also message me on reddit. Bellow are some of the settings that are bit hard to locate (buttons) and some personal tweaks keeping it as vanilla as possible. 29. As someone from Czech Republic, I need to turn on converting of special characters to simple ones (řýů=ryu... etc). 1. app: Messages > Settings > Advanced > Use Simple Characters 30. I need to remind Google Calendar, that weeks start at Monday. Settings > General > Start of the week. 31. Download my local area in Google Maps, so it wont eat up data when I am travelling. 32. As a Google fanboy, I wanted to have the pixel launcher, so I use [Launcher3](https://forum.xda-developers.com/android/apps-games/launcher3-pixel-launcher-features-t3620972) as I find it best. If you find better one, let me know. 33. Sounds and buttons: 1. Go to Settings > System > Buttons if you want to change somehow obsolete menu button to Recent apps switcher. 2. Go to Settings > System > Alert Slider > Swap buttons - I am used to this from previous phones. 3. Go to Settings > System > Sound > Advanced > Vibrate on tap if you want to get rid of button vibrations. 4. Go to Settings > System > Sound > Phone ringtone > Use phobos for subtle, yet audible ringtone. 5. Go to Settings > System > Sound > Notofication sound > Use selenium if you want very subtle notification. 6. Go to Settings > System > Sound > Alarm > Really what works for you, as you might guessed i like subtle. Argon/Neon. 34. You are all done, your OPO2 is running fast as fuck and life is nice again. If something was not clear and you want to improve this guide for other users, I'm lebaux using gmail, if you catch my drift. You can also message me on reddit.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully