[RECOVERY][ROOT][TWRP-3.2.1] Vernee M5

Search This thread
Aug 3, 2017
41
32
DISCLAIMER
Code:
Your warranty is now void.
I'm not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired, because the alarm app failed. Please
do some research if you have any concerns about features included
before flashing it! YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you.

This is made for Vernee M5 only. Do not use on other devices!


SZ52987.jpg

DmBffc6.jpg


Prerequisites:
  • Way 1: Backup your M5 with MTK flashtool (readback function). You can find the scatter loading file in the attachment. You can also use @77777777777777's unbrick.img, but it does not contain all partitions (e.g. NVRAM/NVDATA, because the information stored there differs on every device and should be kept private (IMEI)).
  • Way 2: Backup your M5 as written here. This only works if your device is already rooted.
  • Unlock your bootloader. You can find @77777777777777 's guide here
  • ADB and fastboot tools
  • An external sd card

Test TWRP before flashing
  • adb reboot bootloader
  • fastboot boot recovery.img
  • There is a little bug in the recovery that does not turn the screen on. After one to two minutes you can press the power button and it will turn on.

Do not decrypt the data partition or delete it if you don't flash a custom rom. If TWRP works for you and you plan to flash it, allow system modifications. This will prevent android from restoring the stock recovery.

Flash TWRP
  • adb reboot bootloader
  • fastboot flash recovery recovery.img
  • fastboot continue

Booting into TWRP
  • adb reboot recovery
  • Using 'reboot to recovery' button in magisk
  • Hold power + volume up if the device is powered off and select recovery

Installing magisk
  • Download magisk and copy it to an external sdcard
  • Once the card is in your device, reboot into recovery. Do not decrypt the data partition! This will cause bootloops. Allow to make system modifications if you haven't done this before because otherwise you will not be able to flash magisk.
  • Flash the zip

Credits:

@77777777777777
Everyone who contributed to this
TeamWin
Magisk developers

Downloads:
 

Attachments

  • MT6750_Android_scatter.txt
    18.5 KB · Views: 1,384
Last edited:
Aug 3, 2017
41
32
Is your bootloader unlocked?
Can you boot it ('Test TWRP before flashing'), or does this fail as well?

If you can boot it, mount the system partition and use the file explorer to find out if there is a file in the system folder called recovery-from-boot.bak
If it is called recovery-from-boot.p, retest twrp but allow system modification. Then twrp will rename this file. After that you should be able to flash and use TWRP.
 

fantom004

Member
Apr 3, 2017
30
4
Vyskytná
Is your bootloader unlocked?
Can you boot it ('Test TWRP before flashing'), or does this fail as well?

If you can boot it, mount the system partition and use the file explorer to find out if there is a file in the system folder called recovery-from-boot.bak
If it is called recovery-from-boot.p, retest twrp but allow system modification. Then twrp will rename this file. After that you should be able to flash and use TWRP.

It works already! :good:
 
  • Like
Reactions: ResurrectedRobot

sergiokdc

New member
Apr 4, 2018
1
0
Need help

Hi, i'm don't understand how to make the root on vernee m5 with texts.. Sorry for bad english, i'm a newbee in the questions.
But any people can make a movie tutorial for root the vernne m5?
Thanks.
 
Aug 3, 2017
41
32
Hi,
@sergiokdc: could you find out what you need to do? If so, did it work?

@triumfanto: As said above, please do not do a factory reset with this recovery if you do not flash a custom rom.
However, it now happened :( . Please try to restore your device with MTK flashtool using @77777777777777's unbrick.img. You can find it here. Please let me know if it worked for you. If you need further help, do not hesitate to ask for it.

Yours,

ResurrectedRobot
 
  • Like
Reactions: triumfanto

RenoRex

Member
Aug 30, 2016
5
0
I have a question

can you help me please before unlocking the bootloader how can I make a backup of the imei
 
Aug 3, 2017
41
32
can you help me please before unlocking the bootloader how can I make a backup of the imei

For backuping IMEI you need the scatter file and MTK flashtool.

You start flashtool and select the scatter file.
Then you go to the readback option and add entries for the nvdata and nvram partitions.
You can find the values for size etc in the scatter file.
Then you turn your phone off and start the readback.
Connect the powered off phone to your computer and wait until it finishes.

Yours,

ResurrectedRobot
 
  • Like
Reactions: RenoRex

RenoRex

Member
Aug 30, 2016
5
0
For backuping IMEI you need the scatter file and MTK flashtool.

You start flashtool and select the scatter file.
Then you go to the readback option and add entries for the nvdata and nvram partitions.
You can find the values for size etc in the scatter file.
Then you turn your phone off and start the readback.
Connect the powered off phone to your computer and wait until it finishes.

Yours,

ResurrectedRobot

ResurrectedRobot thank you very much for the response with this version of SPFlash Tool v5.1744 I can use the scatter file
 

20180503

New member
May 3, 2018
2
0
DISCLAIMER
Code:
Your warranty is now void.
I'm not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired, because the alarm app failed. Please
do some research if you have any concerns about features included
before flashing it! YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you.

This is made for Vernee M5 only. Do not use on other devices!


SZ52987.jpg

DmBffc6.jpg


Prerequisites:
  • Way 1: Backup your M5 with MTK flashtool (readback function). You can find the scatter loading file in the attachment. You can also use @77777777777777's unbrick.img, but it does not contain all partitions (e.g. NVRAM/NVDATA, because the information stored there differs on every device and should be kept private (IMEI)).
  • Way 2: Backup your M5 as written here. This only works if your device is already rooted.
  • Unlock your bootloader. You can find @77777777777777 's guide here
  • ADB and fastboot tools
  • An external sd card

Test TWRP before flashing
  • adb reboot bootloader
  • fastboot boot recovery.img
  • There is a little bug in the recovery that does not turn the screen on. After one to two minutes you can press the power button and it will turn on.

Do not decrypt the data partition or delete it if you don't flash a custom rom. Only allow system modifications on a flashed TWRP!

Flash TWRP
  • adb reboot bootloader
  • fastboot flash recovery recovery.img
  • fastboot continue

Booting into TWRP
  • adb reboot recovery
  • Using 'reboot to recovery' button in magisk
  • Hold power + volume up if the device is powered off and select recovery

Installing magisk
  • Download magisk and copy it to an external sdcard
  • Once the card is in your device, reboot into recovery
  • Flash the zip

Credits:

@77777777777777
Everyone who contributed to this
TeamWin
Magisk developers

Downloads:

BAD TUTORIAL!

Following the exact steps mentioned got my device in a loop after flashing recovery. TWRP kept asking for a decryption password and the device wouldn't boot in system mode. Basic wiping or system formatting wouldn't work within TWRP since it could not mount the partitions. I ended up using fastboot to try and format what I could, which didn't fix anything (might have been stupid, but this shouldn't be happening anyway).

FORTUNATELY, at least the unbrick tutorial (https://xdaforums.com/showpost.php?p=75570725&postcount=94) works, and I had created a backup for nvdata and nvram before attempting all of this. So, right now, at least I have a working phone again (google service keeps crashing, but that's not as much of an issue).

So, summarizing, if you are reading this thread and thinking about installing TWRP on your M5, thing again and perhaps wait until there's a custom ROM available, so more people will attempt and report these issues.
 
Aug 3, 2017
41
32
BAD TUTORIAL!

Following the exact steps mentioned got my device in a loop after flashing recovery. TWRP kept asking for a decryption password and the device wouldn't boot in system mode. Basic wiping or system formatting wouldn't work within TWRP since it could not mount the partitions. I ended up using fastboot to try and format what I could, which didn't fix anything (might have been stupid, but this shouldn't be happening anyway).

FORTUNATELY, at least the unbrick tutorial (https://xdaforums.com/showpost.php?p=75570725&postcount=94) works, and I had created a backup for nvdata and nvram before attempting all of this. So, right now, at least I have a working phone again (google service keeps crashing, but that's not as much of an issue).

So, summarizing, if you are reading this thread and thinking about installing TWRP on your M5, thing again and perhaps wait until there's a custom ROM available, so more people will attempt and report these issues.

Hi,

I'm sorry to hear it did not work for you.
I admit some parts in the tutorial are ambiguous making it possible to run into your issue.
I'll update the tutorial in order to prevent this during the next hours. I hope it will work four you then.

Yours,

ResurrectedRobot
 

20180503

New member
May 3, 2018
2
0
Hi,

I'm sorry to hear it did not work for you.
I admit some parts in the tutorial are ambiguous making it possible to run into your issue.
I'll update the tutorial in order to prevent this during the next hours. I hope it will work four you then.

Yours,

ResurrectedRobot

Sorry for being a little heated, I felt like my device was lost at some points.

Now I see you mentioning that system modification should be allowed (and sure, at first I dismissed it, just like the decryption), but isn't the entire point of Magisk the fact that it is systemless? Why does keeping it read-only cause problems?

I think I'll be keeping my phone stock for now (well, aside from the bootloader), until there's a good custom ROM available at least. Coming from another phone that ran Lineage causes some disappointments, but the only big issue with stock Vernee is the shutter sound.

FORTUNATELY, at least the unbrick tutorial (https://xdaforums.com/showpost.php?p=75570725&postcount=94) works, and I had created a backup for nvdata and nvram before attempting all of this. So, right now, at least I have a working phone again (google service keeps crashing, but that's not as much of an issue).

In case anyone else is in this same situation, installing the update given by the manufacturer (http://www.vernee.cc/products/m5/rom/) restored Google functionality. It's mind-boggling how much functionality is broken when Google is not working.
 
Last edited:
Aug 3, 2017
41
32
Now I see you mentioning that system modification should be allowed (and sure, at first I dismissed it, just like the decryption), but isn't the entire point of Magisk the fact that it is systemless? Why does keeping it read-only cause problems?

To be honest, I do not know much about magisk except a few basics.
If you allow system modifications in TWRP a file that automatically restores the stock recovery after reboot is being renamed in order to keep TWRP.
However, this does not refer to the magisk installation issue. In some special cases the system partition is being changed when installing magisk (e. g. addon.d support) but this should
only happen when using custom roms. So I can not really tell you why you ran into this issue because is should, as you said, not happen.

If somebody knows more about magisk, please tell us.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    DISCLAIMER
    Code:
    Your warranty is now void.
    I'm not responsible for bricked devices, dead SD cards,
    thermonuclear war, or you getting fired, because the alarm app failed. Please
    do some research if you have any concerns about features included
    before flashing it! YOU are choosing to make these modifications, and if
    you point the finger at me for messing up your device, I will laugh at you.

    This is made for Vernee M5 only. Do not use on other devices!


    SZ52987.jpg

    DmBffc6.jpg


    Prerequisites:
    • Way 1: Backup your M5 with MTK flashtool (readback function). You can find the scatter loading file in the attachment. You can also use @77777777777777's unbrick.img, but it does not contain all partitions (e.g. NVRAM/NVDATA, because the information stored there differs on every device and should be kept private (IMEI)).
    • Way 2: Backup your M5 as written here. This only works if your device is already rooted.
    • Unlock your bootloader. You can find @77777777777777 's guide here
    • ADB and fastboot tools
    • An external sd card

    Test TWRP before flashing
    • adb reboot bootloader
    • fastboot boot recovery.img
    • There is a little bug in the recovery that does not turn the screen on. After one to two minutes you can press the power button and it will turn on.

    Do not decrypt the data partition or delete it if you don't flash a custom rom. If TWRP works for you and you plan to flash it, allow system modifications. This will prevent android from restoring the stock recovery.

    Flash TWRP
    • adb reboot bootloader
    • fastboot flash recovery recovery.img
    • fastboot continue

    Booting into TWRP
    • adb reboot recovery
    • Using 'reboot to recovery' button in magisk
    • Hold power + volume up if the device is powered off and select recovery

    Installing magisk
    • Download magisk and copy it to an external sdcard
    • Once the card is in your device, reboot into recovery. Do not decrypt the data partition! This will cause bootloops. Allow to make system modifications if you haven't done this before because otherwise you will not be able to flash magisk.
    • Flash the zip

    Credits:

    @77777777777777
    Everyone who contributed to this
    TeamWin
    Magisk developers

    Downloads:
    2
    well done Thanks !
    Flashing TWRP 3.2.1 With Flashify Also Working !


    ---------- Post added at 04:33 AM ---------- Previous post was at 04:08 AM ----------

    Rom Works Good ! (speed)
    1. flash Twrp with flashify
    2. backup in TWRP standaard + metadata,nvram,oeminfo
    4. wipe system in TWRP
    5. flash Rom
    6. wipe charge
    Reboot.
    back to TWRP
    wipe dalvick + charge
    install Google installer
    https://www.mediafire.com/folder/5cktosto3siv8/playstore google installer
    playstore works

    What rom? the one inside unbrick.img? It seems different from the stock (eg. the navbar)

    ---------- Post added at 09:47 AM ---------- Previous post was at 09:42 AM ----------

    If someone absolutely need to use the stock ROM without data encryption, follow these steps:
    1. As always BACKUP YOUR NVRAM/NVDATA
    2. Boot in the stock recovery, and wipe user data and cache
    3. Reboot to the bootloader, and boot TWRP (there is no need to have it flashed, but if you want..)
    4. Once in TWRP, flash Magisk, now reboot.

    From now on, your stock rom will be unencrypted, and you will be able to perform operations to /data in TWRP.

    Cheers.
    1
    Is your bootloader unlocked?
    Can you boot it ('Test TWRP before flashing'), or does this fail as well?

    If you can boot it, mount the system partition and use the file explorer to find out if there is a file in the system folder called recovery-from-boot.bak
    If it is called recovery-from-boot.p, retest twrp but allow system modification. Then twrp will rename this file. After that you should be able to flash and use TWRP.

    It works already! :good:
    1
    Hi,
    @sergiokdc: could you find out what you need to do? If so, did it work?

    @triumfanto: As said above, please do not do a factory reset with this recovery if you do not flash a custom rom.
    However, it now happened :( . Please try to restore your device with MTK flashtool using @77777777777777's unbrick.img. You can find it here. Please let me know if it worked for you. If you need further help, do not hesitate to ask for it.

    Yours,

    ResurrectedRobot
    1
    that looks like some derivate of the rom i made..
    please see here -> [vernee M5] [CUSTOM STOCK MOD ROM] [180609-1-BETA-FIXED] 3lm ROD

    If someone should prefer the original Gapps to the microG ones, please delete these folders:
    - /system/app/nlpBackendDejavu
    - /system/app/nlpBackendNominatim
    - /system/priv-app/microGDroidGuard
    - /system/priv-app/microGmsCore
    - /system/priv-app/microGServicesFramework

    Then install one of the packages from Open GApps according to your needs.
    No need for the installer-app ;)
    It's almost 4 A.M, and sir, you've got my attention.

    Sent from my Vernee M5 using XDA Labs