Rooting One Plus One

  1. Install TWRP recovery steps
  2. Install Lineage OS 14.1 based on Android 7 and GApps using the “Install” option on TWRP via sd card. Link to the guide.

A few lessons learnt along the way

  • Ensure the USB wire being used can also transfer data
  • Useful commands:
    1
    2
    3
    4
    5
    6
    adb devices -l
    fastboot devices
    fastboot oem unlock
    fastboot flash recovery /path/on/laptop/recovery.img
    adb push /path/on/laptop/supersu-v2.82.zip /sdcard/
    adb devices -l

It's so easy!!! (Resetting the root password I mean)...

Look at this from Fedora FAQ -

Q:How do I reset my root password?

A: If you've forgotten your root password, and you want to change it, don't worry! It's possible. You need to boot into what's called "single-user mode." You must be _in front of the computer_ to do this -- you _can not_ do it remotely:
  1. Using the instructions in the runlevel question (under the “While You Are Booting the Computer” section), boot into runlevel 1.
  2. Set the new root password with by typing: passwd

And then enter your new root password when asked.
3. Reboot your machine, and you will now be able to log in as root with the new password that you entered.

And here's that runlevel question -** **
  • **While You Are Booting the Computer**:
    1. When you first start your computer, the GRUB screen (where you choose your Operating System) appears. Select the Fedora that you want to boot into, but press the a key instead of pressing Enter.
    2. You will see a line somewhat like the following: kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet

    Add the number of your runlevel to the end of that line, and then press Enter. For example, to boot into text-only mode, the line would look like:

    kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet 3

    You will then boot into the new runlevel this time only.


  • This just shows how easy it is hack into our systems unless we secure our grub!