My name is Andrew and recently I tried to root my Huawei G510 but I couldn't find any tutorial that covered everything from root to custom recovery and custom ROM so I decided to take a few pieces from every post that I saw and to try it.I want to mention that I am on Mac OS X and almost all the solution I found were for Windows which I don't like and I don't have a copy of it.
Firstly you need to root your phone and for that we will use 'Cydia Impactor', an application that is made by [I]saurik[/] which is the creator of cydia.You can download Cydia Impactor from here and it should work on almost any device (and if it doesn't it won't brick your phone or something like that, according to the website).
Download Cydia Impactor.
Open Cydia Impactor.
Plug your phone in your computer and enable USB Debugging (by going to Settings -> Developer Options (turn it on if it is off) -> Android Debugging). ( pic. #1 )
If you don't have Developer Options go to About Phone and press multiple times on Build Number. ( pic. #2 )
Be sure that '# drop SuperSU su to /system/xbin/su' is selected and press Start.
After a few seconds your phone should be rooted, to check if the operation worked install.
this application and press 'Verify ROOT'.You should see 'Congratulations! The device has root access.'
Download the 'Android' archive from the bottom of this post. It contains adb and fastboot for Mac OS X. I also attached an 'Android-ALL' archive that also contains adb and fastboot for Linux and Windows but I am not sure if it works. Also download the latest .img file from here (it's TWRP) and put it in the same folder.
Now we should unlock the boot loader. Fortunately there is an app on the Play Store which will do just that for you. Install it from here.
As their name suggests, smartphones should be … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?