[Honor 3C ROMs, Kernels, Recoveries, & Other Develo] dfahren:
Hi folks,

today is a good day for all you guys who own a Huawei Honor 3C 4G (H30-L02). I was able to compile the source code of TWRP for our phone. So we finally have a working custom recovery. That means no more scratching one's head whether the next full update from Huawei is still rootable or not. You flash SuperSU via TWRP and that's it.

This new TWRP recovery was compiled against the build H30-L02V100R001CHNC17B130. I hope it also works with higher builds up to B138 (the latest).

But before you start to freak out, be sure to read the following:

Disclaimer

Flashing a custom recovery is considered HIGH RISK if you do not know what you are doing. You can easily brick your phone if you flash to the wrong partition, for example.

Furthermore, neither me nor XDA assume any responsibility or liability for failing flashes or bricked devices. If you decide to give this new recovery a shot, you are in charge and control of your phone. If it fails to start after that, tough luck. So think twice if you really want to try something that risky.

Installation

Your phone is connected to your PC with either Linux or Windows and all necessary drivers are installed and working correctly.

You need an unlocked bootloader. Please follow the procedure outlined HERE.

You also have to have root access. To become root you need an app called SuperSU, for instance. I used RootGenius which will also install SuperSU. Only for Windows!

Install apps "busybox" and a terminal emulator. Do not forget to open busybox and install in-app!

Android 4.2+ uses SELinux as base operating system, which means certains files (determined by the phone manufacturer) are secured against manipulation - even if you are root! You need to switch off this protection and remove the file "/system/set_immutable.list". See here how it is done:

Open your terminal emulator and type

su
mount -o rw,remount /system
chattr -R -i /system

Rename the file "/system/set_immutable.list" as you wish.

This step is necessary for TWRP to restore files on the system partition. If you fail to accomplish this step, you won't be able to restore a system image! TWRP will report an error and will leave your phone in a potentially non-bootable state!

Now you need to boot the bootloader of your phone. Connect your phone to your PC, open a shell or command line and type:

adb reboot bootloader

Then you flash the TWRP recovery:

fastboot flash recovery twrp_recovery_h30l02_with_kernel_CHNC17B130.img

You may need the "sudo" command on your Ubuntu Linux distribution prefixed to each adb or fastboot command.

Finally you need to boot to recovery.

IMPORTANT

: Press Vol. up on your phone and don't let go until you see the screen with the boot logo! Failing to do this means your phone will start normal operation and not recovery! While pressing enter this:

fastboot reboot

If everything goes fine, you will see the TWRP curtain and after that the buttons of the TWRP gui.

Source Code

TeamWin Recovery sources on GitHub

TWRP Huawei 3C 4G sources on (later ... maybe on GitHub, I don't know yet.)

Back to Original Recovery

In case something goes wrong, be sure to have the original recovery at hand.

The original recovery is also necessary if you plan to flash regular full updates from Huawei.

Proceed analogously like what was written before.

Switch your phone off. Hold power button until it becomes quiet and dark.

Connect the USB cable to your phone, but don't plug it into your PC yet!!

Press Vol. down and don't let go until you see your phone's boot logo.

Now while pressing Vol. down connect the USB cable to your PC.

The fastboot screen should appear with the green Android.

Type

fastboot flash recovery orig_recovery_h30l02_CHNC17B130.img

This installs the old recovery. Finally, you will issue a "fastboot reboot" and operation is back to normal.

Credits

The developer of TWRP Dees_Troy.

The guy who ported TWRP to the Ascend P7 Surdu_Petru.

This thread for the Galaxy Tab S and the original thread started by Dees_Troy.

Miscellaneous

You have read thus far. That's good because that shows me you are eager to do what is necessary to follow through all of the steps. Please notice the following:

I did not test TWRP recovery for H30-L02 extensively! Backup and Restore should work, but I can't warrant for that!

This port of TWRP is a bit different from the normal TWRP. The latter has iconified buttons at the bottom of the screen. I removed these icons and switched their particular functions to the soft buttons of the phone. So when you touch the back button you will navigate a screen back. You touch the home button and you get to the home screen. You touch the button with the three lines and you will see a console window that is rendered as overlay. Touch the button again and it will disappear.

You might run into bugs. What does that mean? It may mean that you wreck the contents of one or more of your phone partitions which will result in a phone that does not boot any longer. You have been warned. So be sure you have a backup of all your valuable user data somewhere and a full original UPDATE.APP that's valid and applicable for your H30-L02.

Issues

none to report yet.

Downloads

The new TWRP recovery.

The old recovery by Huawei.

Happy backup-ing and restoring!

Please report back any errors in this thread. Thanks!

DFahren