[Android One (First-Generation) Cross-Device Genera] mrxixar:
Hello everyone,

I wrote this walkthrough to show you how to unlock the bootloader,install custom recovery and gain root privileges on your Android One by using Linux.

Some of the instructions in this guide are not mandatory to accomplish the task but I decided to include them anyway just for informational purposes because this guide is intended for novice users.

This is my personal method and I will provide you with detailed information to avoid mistakes so read carefully and have fun. ;)

Requisites:

*Backup your data before proceeding!

*Android One

*A Linux distro (Debian/Ubuntu/Mint/ElementryOS or etc)

*android_one_root.zip (Download it from http ://goo.gl/B3LjRJ ) [Note: Remove spaces from the link ]

Let's begin. :D

Chapter 1: Developer options, Android debugging & Android Tools

​

Phase 1: Developer options and Android debugging.

Go to Settings > About phone and tap 7 times on Build number to enable Developer options. You will see a little pop-up that says "You have enabled development settings!".

Go back to Settings menu and scroll down to Developer options. Tap on it and then enable Android debugging. You will be asked to allow USB Debugging, confirm by tapping on OK.

​

Phase 2: Installing Android tools (ADB & Fastboot) on Linux. (I'm using Ubuntu 15.04 here)

Open Terminal and run this command to install ADB and Fastboot tools:

sudo apt-get install android-tools-adb android-tools-fastboot

Chapter 2: Unlock the bootloader.

​

In this chapter we will focus on the Linux Terminal rather than the phone. Don't be scared, it will be easy enough and you will have the opportunity to learn something new. :fingers-crossed:

Now you can connect your Android One phone to your computer.

Once your phone has been connected to your pc, open the Terminal and run this command:

adb devices

​

Check the phone. Your computer's RSA fingerprint will be shown and you will be asked to allow USB debugging. Confirm by tapping on OK.

​

Note: If you see offline instead of device, run the adb devices command once again.

If adb devices output looks like this:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
???????????? no permissions

Run these commands:

sudo adb kill-server
sudo adb start-server
sudo adb devices

Put yourphone in Fastboot Mode by running this command:

adb reboot-bootloader

EASY WAY: You can put your phone in Fastboot Mode by holding down Power button and Volume up simultaneously for few seconds (it works either phone on or off).

Commands in Fastboot Mode need Administrator privileges on your pc, that's why we will use sudo.

Run this command to make sure that Fastboot Mode is working correctly:

sudo fastboot devices

​

Next command will unlock the bootloader:

sudo fastboot oem unlock

The phone will reboot and it will restore factory settings. All personal data and settings will be lost.

Once the reboot is complete, download & extarct the "android_one_root.zip" file to your pc.Now copy both "eu.chainfire.supersu.apk" and "update.zip" file to your phones sd card.Then install "eu.chainfire.supersu.apk" in your phone.

Then put the device back in Fastboot Mode by holding down Power button and Volume up simultaneously for few seconds (it works either phone on or off).

Chapter 3: Install Custom Recovery.​

You will find three custom recovery in the archive.Choose one of them. (I'm using TWRP here)

So put the recovery's .img file on your pc's Desktop.

On Terminal, change the current working directory by running this command: (Change Desktop to ypur current working directory)

cd Desktop

nstall TWRP Recovery by running this command: (If you want to flash CWM/PHILZ recovery,just replace TWRP.img to CWM.img/PHILZ.img )

sudo fastboot flash recovery TWRP.img

Now it's time to enter Recovery Mode. To do that, hold down Power button and Volume up.

In TWRP Recovery tap on Install, scroll down to the update.zip archive and select it. Perform a swipe to confirm the installation and lastly reboot your phone.

Once the reboot is complete, go to google play store and install "Root Checker" to check your device root status.

Congratulations, you made it! :)