[Miscellaneous Android Development] MLX:
Hi all! Now we can root our Sunny 2 phones!

I'd make a TWRP port for this device (adb enabled) so we can just sideload the Magisk installer.

History:

After some time having a Wiko Sunny 2 phone, I'd search a lot and didn't find any method for rooting this little thing.

Then I had the idea to mod the stock recovery to allow test keys and then flash anything, tried to do that and didn't work.

Another idea came to my mind: port TWRP from another phone with same chipset. Started my search for a SPD7731c device with working TWRP and after some time found some guy who made a TWRP port for his "Selecline S6S4IN3G" device and as it had the same chipset it worked. Just gathered the recovery.img from the stock rom (thanks Wiko for giving it on they web page) and unpacked it with carliv image kitchen, replaced the stock ramdisk with TWRP's one and just modded some things inside it (default.prop and the init.rc files). As the vold.fstab is the same, didn't need to modify it.

After some testing, the only problem remaining is that the touch doesn't work well (it receives touch input all the time, even if not touched) but it's enough to get our Sunny2's rooted via ADB and magisk's zip.

REQUIREMENTS:

A PC (or another phone with OTG support, if you use a phone then you'll also need an adb binary compiled for ARM)

ADB, Fastboot and drivers: https://drive.google.com/open?id=1N38jqQqX87dEKsBIgDb_9MC-k43YUi85

TWRP image: https://drive.google.com/open?id=1DZhL6RckvzQyxGCq2Yy64Cqnpnnm1Ofp

Stock recovery image (in case something goes wrong you can revert to this): https://drive.google.com/open?id=1spaFc1sqqjFdwzt9cYDfSO_KVh1aYuh5

Magisk ZIP (can be latest or this zip): https://drive.google.com/open?id=1-OPU1JycSr8nVyAGfdkhdajn8Uap_0dl

ROOT PROCESS:

1. While on Android, go to Settings>About this device and toch 7 times Build number (this will enable Developer Options)

2. Now go back to Settings and then Developer options>Enable OEM unlock and USB debugging.

3. Connect the device to the PC and install the correct driver (for doing this just open Device Manager and force the install of Android Composite ADB Interface on your unrecognized device (should be called SUNNY2)).

4. Open a CMD/Terminal and type this:

adb reboot-bootloader

5. Now type

fastboot flash recovery path/to/twrp-suny2.img

and after that just

fastboot reboot

.

6. Now the phone will start, just type in CMD/Terminal

adb reboot recovery

and you will boot into TWRP.

7. Okay, this TWRP has a buggy touch so just use ADB to install the magisk zip:

adb shell twrp sideload

, then

adb sideload path/to/magisk.zip

and finally

adb reboot

.

8. Nice, now Magisk should be installed. Now with root access, happy modding!

Some things to note:

1) In this guide I did everything via ADB, never booted to recovery or fastboot using button combinations. Why? Simple, on my device I didn't find the correct combinations.

2) You can use TWRP also for factory resetting or installing anything, but via ADB only (as the touch doesn't work properly).

3) If you need any help with this device just PM me!

I hope this guide will be useful for anyone.

CREDITS:

This guy for his work on porting TWRP to his device

Magisk team for his work on making root as simple as flashing a ZIP!

AndroidMTK website for hosting the ADB installer which

I just mirrored!