[Updated] Root and TWRP and restore wrong IMEI's and rotating MAC for 7.1.1 Stock Rom

Search This thread

bluiis48

Senior Member
Oct 28, 2015
124
57
Kelowna
Are you trying to load a complete ROM or just TWRP recovery ? Assuming you are just trying to flash TWRP recovery these are the steps. It has been posted in this S7 forum and elsewhere but I will repeat and I hope it helps.
Make sure ADB driver and Mediatek USB Vcom driver is installed and working on Windows PC. (If not see threads in this forum and elsewhere in XDA.
In phone settings, developer options enable USB debugging and OEM bootloader unlock.
Power off phone, DO NOT attach to PC.
In SP Flashtool navigate scatter loading file to the TWRP folder.
The drop-down in SP Flashtool should be "download only"
"recovery should be the only box with a tick mark .
Push the download button then attach turned off phone by USB.
Progress bar on flashtool should turn red, then yellow and then popup a success message.
Phone power button to boot will not work until disconnected from PC.
TWRP should be available in place of stock recovery.
Home/fingerprint button functions as "volume down" to boot to recovery and in TWRP.
2017_10_10_06.59.02.png

Twrp_load.png

Success.jpg
 
Last edited:

Bradco

Senior Member
Sep 8, 2015
580
121
Limoges
Are you trying to load a complete ROM or just TWRP recovery ? Assuming you are just trying to flash TWRP recovery these are the steps. It has been posted in this S7 forum and elsewhere but I will repeat and I hope it helps.
Make sure ADB driver and Mediatek USB Vcom driver is installed and working on Windows PC. (If not see threads in this forum and elsewhere in XDA.
In phone settings, developer options enable USB debugging and OEM bootloader unlock.
Power off phone, DO NOT attach to PC.
In SP Flashtool navigate scatter loading file to the TWRP folder.
The drop-down in SP Flashtool should be "download only"
"recovery should be the only box with a tick mark .
Push the download button then attach turned off phone by USB.
Progress bar on flashtool should turn red, then yellow and then popup a success message.
Phone power button to boot will not work until disconnected from PC.
TWRP should be available in place of stock recovery.
Home/fingerprint button functions as "volume down" to boot to recovery and in TWRP.
View attachment 4298665

View attachment 4298666

View attachment 4298667

I see, all that I know already but thank you anyway :)
 

Bradco

Senior Member
Sep 8, 2015
580
121
Limoges
Can i root this phone with kingo root app ?

I do not recommend it, I tried on a p8000.
Use magisk : it's easy
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Clean flash your rom with spflashtool
copi on your phone the boot.img which is in the .zip of your rom
Installe magisk manager and do this :

Via Magisk Manager (Only support v14.0+):

This method does not need root, and also does not require a custom recovery.
However, you MUST have a stock boot image dump beforehand, and also be able to flash the patched boot image, either through fastboot/download mode or ODIN
Install the latest Magisk Manager
Press Install > Install > Patch Boot Image File, and select your stock boot image file
Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img[.tar]
Flash the patched image boot with spflash tool to your device and reboot.
 
  • Like
Reactions: pardalos

pardalos

Senior Member
Dec 2, 2014
83
14
I do not recommend it, I tried on a p8000.
Use magisk : it's easy
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Clean flash your rom with spflashtool
copi on your phone the boot.img which is in the .zip of your rom
Installe magisk manager and do this :

Via Magisk Manager (Only support v14.0+):

This method does not need root, and also does not require a custom recovery.
However, you MUST have a stock boot image dump beforehand, and also be able to flash the patched boot image, either through fastboot/download mode or ODIN
Install the latest Magisk Manager
Press Install > Install > Patch Boot Image File, and select your stock boot image file
Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img[.tar]
Flash the patched image boot with spflash tool to your device and reboot.
Hey I did root my phone with magisk it's the easiest way to do it because I can't install the drivers on Windows 10. I only managed to install adb and install everything with that.
 

grcd

Senior Member
Dec 29, 2009
133
45
I do not recommend it, I tried on a p8000.
Use magisk : it's easy
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Clean flash your rom with spflashtool
copi on your phone the boot.img which is in the .zip of your rom
Installe magisk manager and do this :

Via Magisk Manager (Only support v14.0+):

This method does not need root, and also does not require a custom recovery.
However, you MUST have a stock boot image dump beforehand, and also be able to flash the patched boot image, either through fastboot/download mode or ODIN
Install the latest Magisk Manager
Press Install > Install > Patch Boot Image File, and select your stock boot image file
Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img[.tar]
Flash the patched image boot with spflash tool to your device and reboot.

Can you clarify the use of this method? If I am only interested in root, not recovery, can I use this to successfully root the phone? Is there a link to detailed instructions?
 

Bradco

Senior Member
Sep 8, 2015
580
121
Limoges
Can you clarify the use of this method? If I am only interested in root, not recovery, can I use this to successfully root the phone? Is there a link to detailed instructions?

To do this you need:
1 . the .zip of stock rom elephone : https://bbs.elephone.hk/thread-13508-1-1.html
2. flash the rom with sp flash tool for clean install
3. boot your phone and copy into the file name boot.img found in the previously flashed zip
4. Install magisk manager : https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
5. after that in magisk manager click install patch boot.img (method that will give you the root)
6. get the new file boot.img patch in the internal storage, copied it on your pc.
7. JUST flash the patchboot.img with scatterfile of the rom with sp flash tool
8. reboot your phone and go to magisk Normally your phone is now rooter without recovery


WARNING : for me after flash the stock ROM i lose my baseband and IMEI. when i use spflash tool i perform a format+download and first of all I flash my IMEI attention for you then y root the phone.
 
  • Like
Reactions: grcd

grcd

Senior Member
Dec 29, 2009
133
45
To do this you need:
1 . the .zip of stock rom elephone : https://bbs.elephone.hk/thread-13508-1-1.html
2. flash the rom with sp flash tool for clean install
3. boot your phone and copy into the file name boot.img found in the previously flashed zip
4. Install magisk manager : https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
5. after that in magisk manager click install patch boot.img (method that will give you the root)
6. get the new file boot.img patch in the internal storage, copied it on your pc.
7. JUST flash the patchboot.img with scatterfile of the rom with sp flash tool
8. reboot your phone and go to magisk Normally your phone is now rooter without recovery


WARNING : for me after flash the stock ROM i lose my baseband and IMEI. when i use spflash tool i perform a format+download and first of all I flash my IMEI attention for you then y root the phone.

Thank you very much. My concern has always been the loss of baseband and IMEI, which is precisely what happened last time I dared do anything to this phone (in that case, a regular reset using the menus, on an unrooted device!). After going through hell to fix it, I am reluctant doing much else for fear of having to go through the process again. But thanks for the help and the detailed steps. I am sure it will be helpful to others as well!
 
  • Like
Reactions: Bradco

Bradco

Senior Member
Sep 8, 2015
580
121
Limoges
Thank you very much. My concern has always been the loss of baseband and IMEI, which is precisely what happened last time I dared do anything to this phone (in that case, a regular reset using the menus, on an unrooted device!). After going through hell to fix it, I am reluctant doing much else for fear of having to go through the process again. But thanks for the help and the detailed steps. I am sure it will be helpful to others as well!


Your welcome, i'm happy if y help you ?
 

Alucard

Senior Member
Jul 2, 2012
1,405
238
Hello download procces doesnt start,i connect by holding down the volume key,doenload red bar starts but after 2 minutes i get an error,any ideas that dont recommend removing the battery?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    I had some trouble to root the Elephone S7 7.1.1 Stock Rom. Therefore here is the short HowTo...

    *** Root and TWRP for Elephone S7 4GB 7.1.1 Stock Rom http://bbs.elephone.hk/thread-12886-1-1.html

    * SP_Flash_Tool download latest version e.g.: SP_Flash_Tool_v5.1720_Win.zip from http://spflashtools.com/category/windows
    * SuperSU download latest version e.g.: SuperSU-v2.82-201705271822.zip from http://www.supersu.com/download
    * Stock Rom download latest version e.g.: s7_4g_20170517133805_v2.3.zip from https://mega.nz/#!Z4AmRRTK!XLyd4O8HaS4B_XVNMdSn5OPX76rXDkOYXVekvn-9lMM
    * TWRP 3.0.3 by Jemmini download latest version e.g.: recovery.img from https://www.dropbox.com/s/b7u3k1mgpppxlyx/recovery.img?dl=0

    * create two folders, one for Stock Rom and one for TWRP
    * unpack Stock Rom and copy MT6797_Android_scatter.txt into TWRP directory

    optional:
    * OpenGAps arm64 / 7.1 / stock download latest version e.g.: open_gapps-arm64-7.1-stock-20170629.zip http://opengapps.org/
    * in OpenGAps zip delete from \GApps\ folder whatever you don't want

    optional:
    * AdAway v2.3 download latest apk from https://labs.xda-developers.com/store/app/org.adaway discussion https://forum.xda-developers.com/showthread.php?t=2190753
    * AdAway systemless hosts download latest version e.g.: AdAway_systemless_hosts_v2.zip from https://www.androidfilehost.com/?fid=24438995911977059

    optional:
    * my_bootanimation.zip
    * change your favorite boot animation in my_bootanimation.zip\system\media\
    * add your own tweaks in my_bootanimation.zip\system\tweaks.prop


    SP_Flash_Tool for Stock Rom:
    * select Download-Agent: SP_Flash_Tool_v5.1720_Win\MTK_AllInOne_DA.bin
    * select Scatter-Loading-File: Stock Rom\MT6797_Android_scatter.txt
    * Firmware Upgrade

    * switch phone off
    * click Download and press "Power" to connect the phone
    * after "Download OK" unplug USB and press "Power" to start phone

    SP_Flash_Tool for TWRP:
    * select Download-Agent: SP_Flash_Tool_v5.1720_Win\MTK_AllInOne_DA.bin
    * select Scatter-Loading-File: TWRP\MT6797_Android_scatter.txt
    * Download Only

    * switch phone off
    * click Download and press "Power" to connect the phone
    * !!! after "Download OK" unplug USB and press "Home + Power" (about 10 seconds) until enter recovery !!!
    * on phone select "recovery" with "Home" and "Vol -" for OK

    * in TWRP select and install
    SuperSu
    optional Open Gaps
    optional AdAway systemless hosts
    optional my_bootanimation.zip
    * reboot (may loop some times)

    tip:
    * "adb reboot recovery" doesn't work
    * therefore switch phone off and press "Home + Power" (about 10 seconds) until enter recovery
    * select "recovery" with "Home" and "Vol -" for OK to enter TWRP

    *** restore wrong IMEI's after update to 7.1.1 Stock Rom http://bbs.elephone.hk/thread-13641-1-1.html

    * Maui META download latest version e.g.: MauiMETA_exe_v9.1724.0.rar from https://www.needrom.com/download/maui-meta-3g-ver-7-1444-0-0/
    * IMEI's from phone box

    Maui META:
    * switch phone off and unplug USB
    * press and hold the "Vol- + Power" Button and connect USB, release the "Vol- + Power" Button and click "Reconnect" (wait until the ball turns yellow)
    * !!! retry if it not works !!!
    * in the selection box scroll to the IMEI download option and select (it will open a new window)
    * copy !!! only the first 14 digits !!! of the 1st IMEI and paste in the IMEI field
    * click the "Download To Flash" button and wait until message "Download IMEI to flash successfully"
    * repeat this two steps for SIM_2
    * close the window, click "Disconnect", unplug USB and restart phone
    * check IMEI's in Settings > About Phone > Status

    *** restore rotating MAC after update to 7.1.1 Stock Rom
    https://androidrookies.com/how-to-change-wlan-mac-address-on-mtk/

    * in Playstore install "Root Explorer"
    * HxD Hex Editor for Windows download latest version https://mh-nexus.de/downloads/HxDSetup.zip

    * in Root Explorer copy \nvdata\APCFG\APRDEB\WIFI to \sdcard
    * now copy WIFI file to Windows and edit with HxD Hex Editor
    * for Your last MAC e.g.: 00:08:22:a8:e3:fb write it in Offset (h) 04 to 09

    00 01 02 03 04 05 06 07 08 09
    06 01 00 00 00 08 22 A8 E3 FB

    * copy WIFI back to \sdcard
    * in Root Explorer copy \sdcard\WIFI to \nvdata\APCFG\APRDEB\ and set permission to 660 (rw-rw—)

    Have Fun
    1
    Yes I will give you my opinion but it will be a while because our customs and mail is very slow. As I remember I had a hard time with TWRP when I loaded the 20170517 stock rom. I finally did a full format with SPflashtool and when it seemed stuck at the boot animation I left it alone for maybe half an hour and it finally came to life so that version of TWRP does work for 7.1.1 for me.
    1
    ok :) I understand, little question about SP flash tool to make a full format you used which option DOWNLOAD ONLY / FIRMWARE UPGRADE or the other so I no longer remember the name ?
    The other is format all + download and that may work for you. It was a while ago, when I went from Android 6 to 7 and I do not want to steer you in the wrong direction. From what I remember I used the format tab on SP Flashtool and pretty much formatted everything. Yesterday I tried for the 0814 OTA by using the clean option in Super SU (which basically uninstalls it ) and flashing the stock recovery for the existing ROM version using SP Flashtool. The OTA would not complete because of a sector mismatch so I flashed TWRP recovery again, which actually rebooted pretty fast then reinstalled the Super SU zip using TWRP. If you want TWRP recovery maybe try it again without formatting anything and give the boot more time. I am not going to bother flashing the complete 0814 ROM until I pass on the phone to my wife because I don't want to go through the app and user credential reloads and fixing the IMEI's and WIFI mac. The Google backup to Drive feature is not available in settings - same for many who are on 7.1.1 even the "name brand" phones.
    1
    I followed the tutorial on first page and it works for me but I am using the 0517 stock rom. I don't think you need to Port TWRP because it does work with the one I posted. If you have time try starting with the 0517 and follow steps on page one. If that works you can try the same with 0814.

    IMPORTANT THOUGHT do you have OEM unlocking (allow the bootloader to be unlocked) enabled in developer options ? This is the first phone where I found that to be necessary.
    1
    Can i root this phone with kingo root app ?

    I do not recommend it, I tried on a p8000.
    Use magisk : it's easy
    https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

    Clean flash your rom with spflashtool
    copi on your phone the boot.img which is in the .zip of your rom
    Installe magisk manager and do this :

    Via Magisk Manager (Only support v14.0+):

    This method does not need root, and also does not require a custom recovery.
    However, you MUST have a stock boot image dump beforehand, and also be able to flash the patched boot image, either through fastboot/download mode or ODIN
    Install the latest Magisk Manager
    Press Install > Install > Patch Boot Image File, and select your stock boot image file
    Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img[.tar]
    Flash the patched image boot with spflash tool to your device and reboot.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone