Wednesday 27 July 2016

[Guide] Step by Step from Stock N910V 6.0.1 to hsbadr's CyanogenMod 13.0




Code:


/*
 *
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 *
 */


Mission Statement



The purpose of this post is to combine the following 4 guides, in an easy to read manner to help people get from a stock Note 4 Version running 6.0.1 to a fully rooted Note 4 running CM13.0
Guides Referenced and Summarized:

[Guide] A noob's guide to Perm Root & TWRP on Verizon Note 4 Retail 5.1.1 (BPA1) http://forum.xda-developers.com/note...-twrp-t3360883
[HOWTO] Bootloader Unlock and Upgrade to Marshmallow [N910V] http://forum.xda-developers.com/note...de-to-t3398144
(no title, sub post #1403, describes going from CPD1 to Jasmine with CPF3 and Firmware/Kernel Patch) http://forum.xda-developers.com/show...postcount=1403
[ROM] [6.0.1] [UNOFFICIAL] CyanogenMod 13.0 [Jul 24, 2016] http://forum.xda-developers.com/note...enmod-t3253973

I will use large chunks from some of these guides, skip some parts not necessary and/or extrapolate/modify on the instructions given within.




Thankx & Achnologments




Main Contributors (I plagiarized, quoted, or sourced)
Robots_Never_Die
hsbadr

Feel like I missed you, it wasn't intentional....PM me and I'll consider adding you, if I feel you actually contributed in some way or I copied your work.




Required Apps (Google Play) All Free




Search for and install these two apps



Required Downloads (note on version numbers: version numbers I specify are ones available at the time I wrote this guide. For most tool grab the newest version, such as Odin/ADB)

  1. Install eMMC Brickbug Check (free) on your phone, and RUN IT. Your CID MUST start with 15. If it doesn't I can't help you, and this guide is not for you.

  2. Install the Samsung USB drivers on your windows PC

  3. Backup your phone, if you don't know how.....google it...And learn how, you will want to backup frequently. Every time you get to a point you can boot up into Android, backup...it's safer for you...I will not remind you again, this is on your head.

  4. Disable Encryption on your phone, both the SD card and Device

  5. Disable Samsung Phone Lockout. YOU MUST DO THIS OR ELSE!!!! (Settings > Security > Reactivation Lock)

  6. Do 2 factory resets on your phone, one after another (hold volume up, home button, power when starting to enter recovery mode where you can reset phone). Not required but if you don't, you'll spend an extra hour or two doing this because Kingroot will crash/fail more often.

  7. Boot up your phone in Download Mode (hold volume down, home button, power)

  8. Open Odin3, Click the AP button and select the file "N910VVRU2BPA1 Full Firmware", once it checks it, goto options and make sure the Re-Partition is NOT selected. Now click start to flash and downgrade to Android 5.1.1.

  9. Turn on your phone, and let it boot up.

  10. Skip everything possible when setting up your phone. Don't even put in a google account, not necessary

  11. Goto Setings and set the following
    • Settings > Security > Reactivation Lock = Disabled (EXTREMELY IMPORTANT, VERIFY)

    • Settings > Security > Unkown Sources = Enabled

    • Settings > Developer Options > USB debugging = Enabled

    • Settings > Developer Options > Verify App via USB = Enabled (should be by default, CHECK)

    • Settings > Lock Screen = None

    • Settings > Display > Turn off Display = 10 Minutes


  12. Plug your phone into your computer via USB, copy the NewKingroot****.apk to your download directory (samsung-sm-N910V\Phone\Download)

  13. Install ADB onto your Windows PC. Select an easy directory such as c:\ADB

  14. Copy the following file directly into the ADB directory
    • samsung_unlock_n4-fix


  15. Open up command line interface. Hold windows key & press R key for run, type in "cmd" press enter. Will open a terminal window for you. Type the following commands:
    • cd\

    • cd adb (or whatever you named your directory where you installed ADB)

    • adb devices


  16. This should return a list of devices you have connected, something like:

    Code:


    List of devices attached
    SerialNum      device



  17. If no devices are displayed, check you have the Samsung USB drivers installed properly.

  18. Type the following command
    • adb push samsung_unlock_n4-fix /data/local/tmp/


  19. Got an error? check your spelling (or copy/paste from me), check you put the file into the ADB directory (not just a link), your phone must be on and screen not locked and check you have usb debugging enabled.

  20. BTW: Do NOT CLOSE the window unless I instruct you to!

  21. Install Kingroot on your phone, which you previously moved into your downloads folder, you can find it via My Files app that comes with phone.

  22. Now run KingRoot. Flip down to the bottom and click "Try It", it will run some quick test then give you a button to try to root your phone.

  23. Wait...Wait...Do not worry if your phone restarts, it will go back into KingRoot automatically on reboot. Just sit back and wait, it may fail multiple times and you may have to re-run Kingroot. Just keep trying . Once it succeeds you must do the following IMMEDIATELY AND AS FAST AS POSSIBLE. Kingroot is HIGHLY UNSTABLE.

  24. On the windows PC, back in the command window you left open. Start Typing.
    • adb shell

    • su

    • cd /data/local/tmp/

    • chmod 777 samsung_unlock_n4-fix

    • chown root.root samsung_unlock_n4-fix

    • ./samsung_unlock_n4-fix


  25. After the last command it may prompt you to type yes, do so immediately. it won't write on the screen but type yes anyway for it to continue. Once it's done it should automatically start to reboot your phone. Unplug it and pull the battery, wait 5 seconds, put battery back in and plug the phone back in.

  26. This was the initial setup for unlocking your bootloader, you now have to run it AGAIN so turn your phone back on. Repeat steps 22-24, after the 2nd time PULL OUT YOUR SD CARD BEFORE TURNING ON YOUR PHONE

  27. Congratulations you now have an unlocked bootloader, you can close the command window on your PC.

  28. The SD card has a restore point for your phone prior to removing your bootlock. Save it if you want, or plug into your phone and format the 18mb partition you are able to. You must format it on a PC before you can use it again in a phone!!!! Will shut your phone off immediately if you put the SD in without formatting that 18mb partition.

  29. Now reboot your phone into download mode (hold volume down, home and power buttons when turning on)

  30. Open Odin App on your PC, Click the "AP" button and select the file twrp-3.0.2-0-trltevzw.tar.md5 (which you downloaded earlier). Once it does it's check, verify that re-partition is NOT selected in options. Now click start to flash twrp bootloader.

  31. Your phone will restart, re-enter download mode. If you missed it pull cable/battery and try again.

  32. Now extract and flash N910VVRU2BPA1_N910VVRU2CPD1_FullFirmware.tar.md5 via Odin, same as you did with twrp. VERIFY THAT RE-PARTITION IS NOT SELECTED IN OPTIONS.

  33. Boot up in recovery mode (hold volume up, home and power when turning on)

  34. now, click the button "Wipe" and on the bottom of the next screen "Swipe to Factory Reset", then reboot your phone.

  35. Now repeat steps 9-12 (NewKingRoot should still be in your downloads, but verify anyway)

  36. Install a clean SD card into the phone.

  37. Now repeat steps 15-25. This time you should only need to run the samsung_unlock_n4-fix file once to break your boot. This is what it typically says on successful bootloader unlock: (if you got this message, pull the battery, cable and SD card. SD card has your recovery point)

    Code:


    root@trltevzw:/ # cd /data/local/tmp/
    root@trltevzw:/ # chmod 777 samsung_unlock_n4-fix                                                <
    root@trltevzw:/ # ./samsung_unlock_n4-fix


    ============================== samdunk unlock 0.0.1 ==============================

     NOTE 3 BETA UNLOCK!!!!!!!!!!!!!

    this application comes with NO WARRANTY (express or implied)
     this binary may not be rehosted, repackaged, one-clicked, etc.
    there is no support provided for this application
    this application has been tested on the Verizon Galaxy S5 only
    it may work on the AT&T Galaxy S5, and possibly other similar Galaxy devices
    there are no compatibility checks, do your research first
    if run on an incompatible phone, it will likely permanently ruin the device
    we STRONGLY advise against running any binary not obtained from the official source
    official source is available at http://github.com/beaups/SamsungCID
    SD card is required, all data on the SD card will be destroyed
    changing to this developer CID may have other implications
    the psn derived from the CID may be used for critical services
    changing this psn may cause unexpected behavior or loss of services
    continue at your own risk, you've been warned


    aboot dev signature research credit to ryanbg
    http://forum.xda-developers.com/member.php?u=766721

    eMMC vulnerability, exploit, and the code you are running by beaups (sean beaupre)
    http://forum.xda-developers.com/member.php?u=711482

    Do you understand the implications of these warnings?

    (Yes/No)

    [+] CID at boot time is/was: 150100523231384d4100657e54fc1200
    [+] dev CID matching, proceeding to unlock
    [+] backing up loaders, this will take a few minutes
    [+] loaders successfully backed up
    [+] success! powering off device, hopefully its not bricked!



  38. Now boot back into download mode

  39. Flash TWRP via Odin again (I'm summarizing greatly now, as you should by now understand this kind of shorthand)

  40. Ok, now boot up into recovery mode (vol up, home, power)

  41. Go through the TWRP menus to create a recovery point. Make note of the directory it creates your recovery point in!!!!

  42. boot up your phone, skip all the setup you can. And extract & copy the ROM folder into your TWRP backups folder on your phone. I hope you noted the location in the last step!

  43. Copy the /JasmineROM_v7.0_N910VVRU2CPF3/ folder to be at the same level as the backup you made

  44. reboot into recovery

  45. Goto restore (DONT do it yet), and check that your JasmineROM is there ready to recover.

  46. Now go back to the main menu, goto wipe. Click the 'Advanced Wipe' button, and wipe the following cache/dalvik/system/data

  47. Now go back to Restore and run the JasmineROM recovery

  48. Now go back to wipe, and wipe the cache/dalvik only this time.

  49. Reboot into download mode

  50. Flash the N910VVRU2CPF3_PartialFirmware_PatechedKernel.tar.m d5.7z file via Odin

  51. Reboot the system, this will take a LONG TIME. WAIT for it.

  52. Once it boots up, skip all the setup again. Copy the CM13, Gapps and XPosed (both zip and apk) to your downloads. Don't unzip anything, not necessary.

  53. Now reboot into recovery go to WIPE and do a factory reset by swiping.

  54. Then goto Install (still in recovery) and install CM13, then Install Gapps.

  55. Reboot your phone, this time you are setting up properly reboot will take a while to optimize your apps depending on Gapps version used. So do all your setup as you want your phone setup. Once that's done, restart the phone in recovery.

  56. Install via TWRP the XPossed.zip file.

  57. Reboot your phone, once on. Navigate via My Files, to downloads and install XPosed.apk


CONGRATULATIONS. You now have a fully Unlocked, Rooted Note 4 Verizon with CryanogenMod 13.0 installed and XPosed Installed.

Now it's 2:56 AM, I've spent the last 3 1/2 hours writing this up, and I'm tired. So if you guys notice any mistakes let me know and I'll correct them tomorrow.



No comments:

Post a Comment