[Q] Root/CWM/TWRP - Wiko Lenny 2 (5.1.1, MT6580M)

Search This thread

Haldi4803

Senior Member
Oct 14, 2010
4,138
1,689
Amazon Fire HD 8 and HD 10
Xperia XZ2
I've got an OTA update.
Does Root persist?
Or anyone already updated and can confirm same root method working?
uploadfromtaptalk1460089348792.jpguploadfromtaptalk1460089357727.jpg

Gesendet von meinem LENNY2 mit Tapatalk
 

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
I've got an OTA update. Does Root persist? Or anyone already updated and can confirm same root method working?

Gesendet von meinem LENNY2 mit Tapatalk
No root will certainly not persist! However, if you have flashed a custom recovery on your phone, the OTA will fail...you need stock recovery and stock boot image/kernel in order to install OTAs.

Sent from my Nexus 7 using XDA Free mobile app
 

Cobmaster

Senior Member
Oct 18, 2011
315
112
Lecco
Samsung Galaxy S10+
OnePlus 7
I've got an OTA update.
Does Root persist?
Or anyone already updated and can confirm same root method working?
View attachment 3711454View attachment 3711455

Gesendet von meinem LENNY2 mit Tapatalk

You can try Flashfire from Chainfire, it has a feature for detecting ota updates and keeping root though I didn't tried it yet, cause I don't have any update in the software updates app, but you can try it. Just remember to keep a full backup from CWM just in case something goes wrong and report here and in the G+ Flashfire community.
 

keminekoo

Member
Sep 8, 2015
31
16
27
As long as you have root (through kingroot at least), you can download Flashify from Google play store, download recovery.img to your phone and flash it using app above. Remember to select "disable recovery flash" when prompted so it won't flash stock again.

Also I'm on the newest update v18 (at least for my country, dunno if there is any newer) and either replacing boot.img or using kingroot works without problem. Root works. (Just trying to get xposed to work on stock kernel.)

@ whoever whants to have working xposed (it worked for me at least) loook at those posts: 1 & 2, install busybox and reboot phone. After that you can download "Device Controler" from PlayStore and check if SeLinux is Permissive if yes, then you should be able to install xposed without bootloop.
 
Last edited:
  • Like
Reactions: Haldi4803

Drvaggensberg

Senior Member
Apr 25, 2014
76
6
25
Lisbon
soundcloud.com
oh nvm i fixed it but still... cant install xposed.... the softwares dat should put selinux changing between enforced and permessive say i dont have selinux enabled on my device xD what should i do?
 

keminekoo

Member
Sep 8, 2015
31
16
27
Phone rooted with KingRoot, then changed to SuperSu using SuperSuME, then download "Terminal Emulator" from Play Store and do this:
Code:
su
mount -o remount,rw /system
mkdir /system/su.d
echo "#!/system/bin/sh" > /system/su.d/permissive.sh
echo "echo 0 > /sys/fs/selinux/enforce" >> /system/su.d/permissive.sh
chmod 755 > /system/su.d/permissive.sh
Then just check if its permissive with Device Control or somethign
 

Rexus1

Senior Member
Jul 10, 2014
62
11
I have created new kernel with fixed status bar and root support :D
This kernel got the latest kernel changes from wiko too :)

kafu53.png


207s3tw.png
 

Attachments

  • boot-new.img
    6.5 MB · Views: 368
Last edited:

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
Phone rooted with KingRoot, then changed to SuperSu using SuperSuME, then download "Terminal Emulator" from Play Store and do this:
Code:
su
mount -o remount,rw /system
mkdir /system/su.d
echo "#!/system/bin/sh" > /system/su.d/permissive.sh
echo "echo 0 > /sys/fs/selinux/enforce" >> /system/su.d/permissive.sh
chmod 755 > /system/su.d/permissive.sh
Then just check if its permissive with Device Control or something
Noob questions:

  • Why is it necessary to move the sh file to a new directory? SUPERsuME does not do it automatically or is this something needed specially for Wiko phones? I've never had to do this with other phones on which I executed SuperSuME.
  • Why is it necessary to make this Su file permissive?
  • What will happen if you DON'T run those lines of code to make Su permissive?


I'm eager to learn about this.

Sent from my Nexus 7 using XDA Free mobile app
 
Last edited:

keminekoo

Member
Sep 8, 2015
31
16
27
Noob questions:

  • Why is it necessary to move the sh file to a new directory? SUPERsuME does not do it automatically or is this something needed specially for Wiko phones? I've never had to do this with other phones on which I executed SuperSuME.
  • Why is it necessary to make this Su file permissive?
  • What will happen if you DON'T run those lines of code to make Su permissive?


I'm eager to learn about this.

Sent from my Nexus 7 using XDA Free mobile app

Welp, those commands are just to make selinux permissive in lollipop. Not much to do with supersume. I was digging after that since even after changing kingroot to supersu I got bootloop when I was trying to install xposed. So basically you want to do this to get Xposed working, it wont work without premissive selinux at least on lollipop.
 
  • Like
Reactions: CVAngelo

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    So here is kind of tutorial how to install CWM, how to get this phone rooted and how to flash ROM if something fails. I'm not so good at writing that kind of things and additionally my English is not that good as it could be but I think that you will be able to understand this and do those things right way. If I missed something or stuff... tell me. And oh.. yeah... GL&HF! :)

    Disclaimer: I AM NOT RESPONSIBLE FOR BRICKING YOUR DEVICE OR IF YOU DEVICE DECIDES TO GO FOR A WALK AND STARTS TO BURN EVERY SINGLE TREE IN YOUR TOWN OR KILL YOUR NEIGHBOR'S DOG.

    CAUTION: Before you start doing anything, think and do backup of your apps, data, text messages, wifi passwords etc. If anything fails during flashing, you will end up flashing new rom so you will loose every single app/icon/text message/site.

    G9JwzRV.png


    1. First of all - drivers
    Code:
    http://www.needrom.com/download/mtk-driver-auto-installer-v5-1453-03/

    2. ROM in case of any fail so you can get your phone back to game
    Code:
    https://mega.nz/#!IVNiVRqC!Q4hNfgIqzeCxw3Hopy_jS7zovL1oGtop3Ip2pmpWgDI

    3. SP Flash Tool, to flash CWM and eventually ROM if something goes wrong
    Code:
    http://www.needrom.com/download/sp-flash-tool-v5-1424-00/

    4. CWM Recovery, thanks to @hanuma
    Code:
    https://www.dropbox.com/s/pwamryql8omb1kd/CWM_Recovery_Lenny2.rar?dl=0

    5. Backup of ported boot.img for CWM, thanks to @Willstetictac
    Code:
    https://www.dropbox.com/s/8toxyskcv6k6lws/lenny2bootbackup.zip?dl=0
    5a. Or if you preffer using SP Flash Tool for that...
    Code:
    https://www.dropbox.com/s/shhcxvxkzqcuic5/boot.zip?dl=0

    6. Flashable zip with SuperSu and binaries
    Code:
    http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

    7. ADB & Fastboot - since you have root, everything can go wrong. With this you can take logcat to track any error and for any other stuff.
    Code:
    http://forum.xda-developers.com/showthread.php?t=2588979

    CbQiEIc.png


    So first of all, you probably want to put everything you downloaded in one place to easy access:
    HWhkFng.png

    After that you should install MTK drivers and reboot your PC. Till windows 7 it should work without any problems, as for windows 8/8.1/10... you probably need to boot into mode with disabled driver signature (I don't have any of them so you need to google it).

    When all drivers are installed, open SP Flash Tool.
    Now you have two ways. Install boot.img using CWM (that's how I installed it and I'm 100% sure it will work this way) or flash boot.img using SP Flash Tool.

    Install boot.img using CWM

    1. Make sure you have MTK_AllInOne_DA.bin in first field.
    2. Click on the "Scatter-loading" button, go to place where you extracted CWM and select MT6580_Android_scatter.txt file.
    3. Make sure you have ticked only one selection - recovery - and its path is correct.

    Now, connect your phone to PC and do the following things.
    1. Put BETA-SuperSU-v2.52.zip on your SDcard/phone memory and remember its path.
    2. In root folder of your SDcard/phone memory, create folder called: clockworkmod
    3. Open this folder and inside of it create next one called: backup
    4. Now in second window extract lenny2bootbackup.zip. You will find there folder called: adv_2016-01-08-07-47-38. Put it in backup folder which you created before.
    2fjnQRm.png




    Flash boot.img using SP Flash Tool

    1. Make sure you have MTK_AllInOne_DA.bin in first field.
    2. Click on the "Scatter-loading" button, go to place where you extracted CWM and select MT6580_Android_scatter.txt file.
    3. Make sure you have ticked recovery (blue color on the photo) and its path is correct.
    4. Now check boot and click empty field under Location. New window will pop up. Go to location where your custom boot.img is (the one, single file you downloaded from Download section) and select it. Once again, make sure its path is correct.

    Now, connect your phone to PC and do the following things.
    1. Put BETA-SuperSU-v2.52.zip on your SDcard/phone memory and remember its path.
    2. That's it! You can disconnect phone.

    x4HW3gK.png

    tO1jkwl.png


    After you are done with making folders and putting things there, disconnect your phone from computer and turn it off.
    Don't connect it yet!
    Instead... go to SP Flash Tool and check once again if anything is as it should be (Picture for reference - SETTING UP part).
    When you checked and everything is right, press Download button and connect your phone to PC (still turned off!).
    If you have sounds in windows, you should hear *blink* sound which means that PC detected your phone and SP Flash Tool should start installing files to your phone.
    When it's done, you will see little windows with green circle in it - confirmation that file is already flashed.
    Now unplug your phone from PC and start it into Recovery Mode.
    To do this you need to hold VOLUME UP + POWER buttons till WIKO logo will pop out.
    If everything was done right, you should see CWM menu.

    If you were using CWM method to install boot.img

    Using Vol UP / Vol Down / Power (as OK button) (You can also use touch buttons of you phone. Left one as back and middle as select) select Backup/Restore and then Advanced Backup Restore.
    Since you remember where your clockworkmod/backup/ folder is select right path (Advanced Restore from /sdcard (phone memory) or Advanced Restore from /sdcard1 (sdcard).
    If you selected the right option, you will see backup folders to select. Take the one with adv_2016-01-08-07-47-38. It should be the only one you have.
    After you did that, check Restore boot (it will show (+) next to it) and select Start restore.
    Couple of seconds later you will get menu again and confirmation at the bottom of the screen that restoring is done.
    Now go back to main menu of CWM and select Install zip.
    Now again, point to the direction where your BETA-SuperSU-v2.52.zip is and click on it. It will ask you if you are sure that you want to flash it. Choose Yes
    Wait moment and there you go! Now go back to main menu of CWM -> Power Menu -> Power Off.
    It will say that ROM may flash recovery, select Disable recovery flash option and second, it will ask you if you want to root phone (You already did that flashing SuperSU. Using option from recovery wont work and since you flashed SU, it may cause troubles. Select No.


    If you were using SPFT method to install boot.img

    Using Vol UP / Vol Down / Power (as OK button) (You can also use touch buttons of you phone. Left one as back and middle as select) select Install zip.
    Now point to the direction where your BETA-SuperSU-v2.52.zip is and click on it. It will ask you if you are sure that you want to flash it. Choose Yes
    Wait moment and there you go! Now go back to main menu of CWM -> Power Menu -> Power Off.
    It will say that ROM may flash recovery, select Disable recovery flash option and second, it will ask you if you want to root phone (You already did that flashing SuperSU. Using option from recovery wont work and since you flashed SU, it may cause troubles. Select No.

    Now your phone should reboot and you will see SuperSU icon in your drawer.
    Now go to Play Store and search for app Root Checker. Download it, run it, click verify. If it's green and says that you are rooted, well.. then you are rooted and you can change everything until you get bootloop! :)

    cIIbWKL.png


    Something went wrong or you want to get rid of root and you need to flash ROM to make your phone work again?
    Ok. Fine. Sure. There you go!
    As you might know, we need SP Flash Tool. Yes! Open it.
    Now click on Scatter-loading button, point to folder where you extracted LENNY2_V14 ROM and choose MT6580_Android_scatter.txt file.
    If everything goes right, every position should be checked like on picture below.
    NFxwmSM.png

    Now make sure your phone is charged. If is turn off your phone but don't connect it yet to PC. If not, charge it! (Offline charging is working so.. do it!)
    Now click on Download button in SPFT and then do it. Connect it. Turned off.
    If your Windows has sounds, you will hear *blink* sound and SPFT will start installing files.
    Don't you dare to disconnect your phone while it's busy with installing. You will probably brick it.
    When installing is done, you will hear *blink* sound again, which means that Windows disconnected your device, and you will little window with green circle in it which means that flashing is done.
    Now you can disconnect your phone from USB and turn it on. It will take a while, 5-15 minutes maybe. After that, you should be able to configure your phone and use it as you want.


    PS
    There is possibility that status bar will not change colors in apps as it does in normal Lollipop ROM, instead it will remain white or black. It still will be transparent on Desktop, tho. I guess it's fault of ported boot.img since with stock boot.img it's working fine. But there is workaround.
    You will need Xposed Installer, Xposed Framework (xposed-v79-sdk22-arm.zip) from this thread
    Code:
    http://forum.xda-developers.com/showthread.php?t=3034811
    and Flat Style Colored Bars from Google Playstore.
    Code:
    https://play.google.com/store/apps/details?id=com.bocharov.xposed.fscb

    Install Xposed app -> reboot to Recovery and flash xposed-v79-sdk22-arm.zip -> reboot phone. (It will take a while since android has to update a lot of files from Xposed. It will restart couple of times, don't be scared.)
    Now open Xposed and go to Modules -> Check Flat Style Colored Bars module and restart phone.
    After that, status bar will change colors again. Sadly they wont be tinted since it's free version of module so at light colors there will be black icons instead of white.

    If we speak of Xposed... GravityBox [LP], Flat Style Colored Bars, Greenify - they work for sure as I tested them. Viper4android works too if someone likes to use it.
    Also... as for messing with system folders/files I recommend Root Explorer 3.3.7 since Root Browser or familiar apps will crash. I don't know why and maybe that was just on my phone...​


    Thanks to:
    @hanuma for porting CWM and sharing Lenny's ROM.
    @Willstetictac for giving us ported boot.img which gives us ability to root our phone.
    @Chainfire for making SuperSU.
    @CVAngelo for giving us tips and helping us with rooting our device.
    Everyone who tested every stuff in this thread.

    5
    Since there is no way to root this phone using known root apps or MTK Droid Tools (which won't even make proper scatter file) is there at least some CWM / TWRP available? MTK DT says there is a way to root this phone from CWM but I have no idea where to look for it. I found something for Doogee x5 which has MT6580 (without M) but I'm afraid of doing it, I'm not sure how much different MT6580 and MT6580M are :(

    Root it with the KingRoot app. Don't forget that you must turn USB Debugging on BEFORE you attempt to root it. Once it is rooted, leave USB Debugging on. Also, you should then install Busy Box X from the Play Store. Run Busy Box X and elect to install the busybox.

    Then install Flashify from the Play Store. Flashify will not work properly unless you completed the installation of busybox in the system. With Flashify, you can back up the stock boot image (also referred to as the kernel image) and the stock recovery image. Save a copy of the back up files on your computer for safekeeping.

    Then go back to MTK Droid Tools (make sure USB Debugginh is still on). Now select the Root, Backup, Recovery tab. Then click on the big button that says "Recovery and Boot." This will make the custom recovery for you. During the process, you will be asked to select the boot image file. Just point to the backup you made of the BOOT image from Flashify.

    When the MTK Droid is done its thing, you will now have a CWM recovery for your phone. You will find it in the subfolder called "recovery" under the MTK Droid Tools folder. You will also find a "boot patched" image. You can now flash the new CWM recovery image and the new boot image to your phone by copying those files to your SD card and using Flashify to flash the images. Be careful! Do not make a silly error such as flashing the recovery image to the boot partition or you will soft-brick your phone. Flash recovery image to recovery and boot image to boot.

    Don't forget to thank me by clicking the Thanks button if I have helped you. And feel free to follow up with any questions.
    4
    Update to V18 & Root

    Update to Wiko Lenny 2 Lollipop V18 and Root

    Success and user data/apps preserved...
    3
    my lenny 2 is rebooting for 2h10 min.... is this normal? i am rebooting after the installation of the "xposed-v79-sdk22-arm.zip" file....

    Don't think so. It should boot instantly or after max 5 minutes and show "Android is updating apps x of x" and while this, it will reboot couple of times. I guess something went wrong and you probably should flash rom again and then try to do it once again. Root & xposed I mean. And it's better to go in CWM to power option -> turn off and then turn on the phone. I saw somewhere on forum that this CWM sometimes has problems with some of options and it ends in bootloop.