yashsingh1/xdaforums huggingface dataset:
[Android Software Development] zogu:
Hey, don't be scared, first thing.

You can flash it on many ways, i recommend you this way:

enter settings, enable developer options

in developer options enable oem unlocking

power off your phone.

press and hold volume up and power.

you will enter mode where you have to choose recovery, fastboot and some other mode (forgot).

with volume up change to fastboot, with volume dowb confirm

you probably already know to enter fastboot, but can't hurt :)

Now when phone is connected in fastboot mode, type fastboot oem unlock

THIS WILL DELETE ALL DATA INCLUDING INTERNAL SDCARD

IMPORTANT: boot phone once till ask for setting new device, don't flash anything before you reach once welcome screen after oem unlock.

enter fastboot again

type fastboot boot {name-of-6gb-twrp}.img

you will enter recovery

from recovery enter wipe, format data, type yes

from recovery go to reboot, and reboot in fastboot mode

type again fastboot boot {name-of-6gb-twrp}.img

Your pc will recognize phone as MTP device, transfer magisk and recovery.img

now you can just flash magisk and if you want to flash recovery permanently choose flash img in install and flash recovery.img

If you do all this with sp flash tool, you will not have to oem unlock phone, but you still need to format data because data partition is encrypted if phone is booted at least once before magisk is flashed.

But for sp-flash tool procedure is:

flash only twrp with scatter for 6gb

enter recovery once

now from recovery flash again recovery (but this can be difficult with encrypted data, put img in /cache with adb push and install img from cache, you can also flash magisk like this, phone will be rooted, but you will never be able to access files in /data, something like adb push twrp.img /cache and adb push magisk.zip /cache, and then just install)

If you want full working twrp format data from twrp.

---------- Post added at 10:34 AM ---------- Previous post was at 10:32 AM ----------

Sorry didn`t understand, for what device, Vernee, Le or Xiaomi and what model :) ?
[Android Software Development] xen2001:
Xiaomi Note 4 stuff...

Sorry, discussion threading style on this forum sucks big time, the most annoying is the anti-spam gizmo...

I think it was you who wrote that has Oreo on Redmi Note 4? Well, for a few hours I toyed with the idea that

I could go this way too.... meantime I have read stories of tens of souls, who could not unlock the damn phone....

while I found an index to all Redmi Note 4 sources. here: https://xdaforums.com/redmi-note-4/...dmi-note-4-t3551512/post70898101#post70898101

I am not sure I want to risk it... the idea that I have to ask them to give me the key for something that is already mine...is simply tough to absorb.

But Xiaomi is not the only one guilty of this fascist/communist practice: https://android.gadgethacks.com/how-to/5-best-phones-for-rooting-modding-0175988/
[Android Software Development] obiwan2:
You will enter recovery

NO...phone is rebooting normally...not into recovery !

I did now: adb reboot recovery

This brought up the TWRP screen on the phone

from recovery enter wipe, format data, type yes

Did it....shows the following lines:

Updating partition details...

...done

Unable to mount storage.

Full SELinux support is present.

Failed to decrypt data.

Formatting Data using make_ext4fs...

You may need to reboot recovery to be able to use data again.

Updatng partition details...

...done.

from recovery go to reboot, and reboot in fastboot mode

Gone back to TWRP REBOOT

What to select ? I have SYSTEM / POWER OFF / RECOVERY and BOOTLOADER
[Android Software Development] zogu:
You sure that .img is in the same folder where fastboot is and that you type name correctly? i always rename to rec.img, it is faster. What is output on pc in terminal?

If you are sure, then something is wrong with image.

Try to boot once image for 4gb, just boot will not change anything.
[Android Software Development] Jetteroh:
Why you are not writing/asking in that thread?

Now I'm writing here. With ADB tools more easy the steps as #zogu wrote.

I stored the procedure for myself in a file (and updated the recovery filename for 6GB, maybe it helps ):

============

ADB should be installed on computer

FASTBOOT:

1) Switch on with Vol+ & Power button till small menu came up ([Recovery Mode]/[Fasboot Mode]/[Normal Mode]);

2) Use Vol+ to select [Fasboot Mode] than use Vol- to OK;

3) Now phone in Fastboot mode. Plug in to the computer;

4) (If ADB not installed install it!)

5) Go to the ADB directory. Open DOS window (run the CMD.exe);

?6) Run >adb devices

?(* deamon started succesfully * - important to show this up)

7) Run >fastboot devices

(important to show a device code with "FASTBOOT" at the end)

8) Run >fastboot flash boot boot_encryptable_mix2.img //on the other boot.img written 4GB, so this can be good, but need to verify

9) Run >fastboot flash recovery Recovery_twrp_Vernee_Mix2_Pro.img //this TWRP for 6GB version.

10) Run >fastboot oem reboot-recovery

(The phone restart in TWRP)

This for root in TWRP:

11) Choose Wipe/ Advanced /Format DATA type Yes to confirm. When it finishes from Main menu choose Reboot then recovery.

12) Choose Wipe/ Advanced /Format DATA again type Yes to confirm When it finishes from Main menu choose Reboot then recovery.

13) Choose Wipe/ Advanced and select cache and Dalvik swipe to confirm When it finishes from Main menu choose Reboot then recovery.

14) Now install Magisk v15.2 official //as written in the Modding thread

You must install from Play store the Busybox apk into system/bin or /xbin directory

============
[Android Software Development] obiwan2:
There is no FORMAT DATA under Wipe / Advanced

I can only see:

Dalvik / ART Cache

System

cache

data

Internal Storage

Micro SDCard

A blue button "Repair or Change Filesystem"

and

Swipe to Unlock

Should i first install this boot_encryptable_mix2.img Imagefile ???
[Android Software Development] zogu:
Don't worry about unlocking. They approve after 5 minutes. And then you have to wait 72 hours, official explanation is if someone stole your phone that you have time to remotely locate, delete data or whatever.

And yes, i'm using oreo, Cardinal Aosp rom and it is fully working, fast, without any bugs and google camera is perfect.

---------- Post added at 11:28 AM ---------- Previous post was at 11:26 AM ----------

you don't have this:

http://xiaomitips.com/media/2016/07/Format-Data-TWRP.png

Don't flash any other recovery if this booted
[Android Software Development] obiwan2:
I have this Screen, but not "Format Data" under "Wipe"

Jetteroh posted: 11) Choose Wipe/

Advanced

/Format DATA type Yes to confirm

Sorry...can't do screenshots at this time :)
[Android Software Development] zogu:
No, no, just click this format data, not under advanced. Who will remember everything...
[Android Software Development] obiwan2:
Ok...i will do this...

Next question....you wrote:

enter fastboot again

type fastboot boot {name-of-6gb-twrp}.img

you will enter recovery

from recovery enter wipe, format data, type yes

from recovery go to reboot, and reboot in fastboot mode

Do you mean: From recovery go to reboot, select recovery ? There is nothing called Fastboot......
[Android Software Development] zogu:
I think it is written bootloader. Reboot bootloader. Sorry :)
[Android Software Development] obiwan2:
I did this "Format Data" now two times and the red messages are not displayed anymore:

Updating partition details...

...done

Unable to mount storage.

Full SELinux support is present.

Failed to decrypt data.

Formatting Data using make_ext4fs...

You may need to reboot recovery to be able to use data again.

Updatng partition details...

...done.

Is it now neccessary to install this image: boot_encryptable_mix2.img ??

Do I need this to root my phone ?
[Android Software Development] zogu:
Now reboot to bootloader and boot exactly the same recovery which you booted first time, in which you are now.

And when you enter this recovery transfer again this image using mtp and flash it from install, choose img it will ask what image is this, choose recovery and then before reboot flash magisk and you are done.
[Android Software Development] obiwan2:
Sorry but I don't understand these steps....

TWRP is now on the phone and I can boot into it using "adb reboot recovery"

What to do then ? :confused::confused:
[Android Software Development] zogu:
If you can access data partition from twrp then just install magisk and you are finished.

If you can't format data once more time, from twrp reboot to recovery and then install magisk
[Android Software Development] obiwan2:
So that means copying Magisk.zip from my PC to the internal storage of the phone and installing it via TWRP / Install

Do i need this boot_encryptable.img imagefile ?

Right ?
[Android Software Development] zogu:
No, just flash magisk, nothing more.
[Android Software Development] obiwan2:
I will try it in a few minutes :angel::fingers-crossed:

Many many thanks to you and Jetteroh for the extensive help and above all for the big patience with me !!! :good::good::good:

Absolutely perfect !!!

Now I have TWRP installed and my Vernee Mix 2 is rooted successfully !!!

1.000.000.000.000 times THANK YOU !!!
[Android Software Development] steve_69:
I am totaly lost.

Yesterday y new mix2 arrived and I tried rooting with kingroot - no success.

so googled for other choices and found xn logos TWRP . so I flashed that and rebooted into TWRP. BUT the mix2 did no longer remember my unlockpattern and refused to boot into OS with the massage : bootloader unlocked , device no longer trusted. it kept on booting back to TWRP, where I could not interact incause of the pattern-failure.

I then tried sth stupid. The flashtool offered a procedre called fix encryption (or so), and after flashing that, I lost my OS. Now only TWRP is on board and a rest of 774mb on storage.

Today I tried flashing stockrom with SP_Flash_Tool_v5.1628_Win but ended up with a BROM ERROR.

Now if I try Ghost45s method, adbInstaller does not copy anything and ends in an error, too. Bad luck?
[Android Software Development] zogu:
Can you still enter twrp?
[Android Software Development] steve_69:
Yes, and I can boot into fastboot mode.

Another problem is : driver have been installed on my win 7 PC, but adb does not install.
[Android Software Development] taiki84:
Anyone have solved the GPS
[Android Software Development] Jetteroh:
Have you tried https://www.xda-developers.com/gps-lock-faster-xdatv/?

I used that to create a GPS.conf under /system/etc/ and now looks faster.
[Android Software Development] taiki84:
Yes I've try but it's not very good. I see the fix is really good when screen off but loosed when on.

What rom do you use
[Android Software Development] zogu:
Go to wipe and then click format data. In advanced wipe system and cache.

Reboot to recovery again and flash official OTA zip downloaded from vernee.cc in TWRP. It must work.
[Android Software Development] Jetteroh:
Fw 20171215 4GB version

Sent by Tapatalk from my MIX 2
[Android Software Development] steve_69:
Okay, I copied ota zip on sdcard and installed stockrom. When I try to boot into system, massage appears : device no longer trusted, and boots back in TWRP.:confused:
[Android Software Development] zogu:
Flash from twrp magisk and try to boot.

If it does not help (it will not) , flash from twrp stock recovery. Choose install, then click on flash image and choose recovery-verified.img from stock firmware, just copy to internal memory.

Magisk is important to restore twrp from flasfire, device not trusted is because phone is oem unlocked, it is not important.

You need stock recovery to finish process of oem unlock and it will work after that.
[Android Software Development] steve_69:
Thanks, all done, phone boots into system and is rooted. But TWRP is gone - I'd like to flash exposed...
[Android Software Development] zogu:
Install flashfire or flasify from playstore and flash twrp.

I think you can install exposed directly from flashfire, it will reboot in it's own mode and flash any zip.
[Android Software Development] panossd:
please help...!!!!!! i own vernee mix 2 6gb version and when i unlocked the bootloader a message appears on boot :device unlocked and not trusted and the next screen is sth like recovery but keeps writing no command.. i tried with sp flash tools but on scatter file a message appears: status scatter file invalid .... any help please?????????????????? any way, even flashing a twrp recovery or sth.. i want to just revive my phone
[Android Software Development] MSD-Amadeus:
New TWRP 3.2.1 compiled by MDSTWRP

https://www.movilesdualsim.com/tema/twrp-3-2-1-vernee-mix-by-mdstwrp.187584/#post-2113425
[Android Software Development] zogu:
This is from source or port?

If it if from source we can expect some custom rom ;)
[Android Software Development] Jetteroh:
This is an "orange" message 'cause your phone unlocked, lesser secure than unlocked phone. No problem, there are written, it will wait 5 sec and it will continue with TWRP or System boot as you wanted.

Sent by Tapatalk from my MIX 2

---------- Post added at 11:19 AM ---------- Previous post was at 11:17 AM ----------

Sorry: *lesser secure than locked phone

Sent by Tapatalk from my MIX 2
[Android Software Development] panossd:
the phone does not boot normally no matter how long i wait..it bootloops the android with the exclamation mark showing no command..also, there is nao adb driver installed in my computer, therefore, i cannot flash stock rom with sp tools..any idea how can i get in bootlaoder??? i cannot boot my phone at all..it seems like there is no recovery installed nor i can ente fastbood mode..
[Android Software Development] Jetteroh:
With ADB driver there are easy to flash boot.img and recovery.img . Why you didn't installed?

If Vol+ and Power nor Vol- and Power not working than read back, #sogu and others wrote lot of information about unbricking.

Sent by Tapatalk from my MIX 2
[Android Software Development] zogu:
You need PC.

Enter fastboot mode (volume up +power and then choose fastboot with volume up, confirm with volume down), boot twrp (fastboot boot nameoftwrpimage) and flash ota from twrp. Yo will have stock rom with stock recovery after that.

No way without pc.

If you can't make drivers to work, download and burn some linux on flash drive and install on linux android tools
[Android Software Development] panossd:
can you send me those drivers through email??? for windows 10 or windows 7.. my computer run MacOSx
[Android Software Development] zogu:
Did you try on osx:

Install homebrew

ruby -e "$(curl -fsSL [url]https://raw.githubusercontent.com/Homebrew/install/master/install)"[/url]

Install adb

brew cask install android-platform-tools

Start using adb

adb devices
[Android Software Development] MSD-Amadeus:
It's from my development group.

No sources are needed to compile TWRP.

It would be nice to have sources, this vernee mix2 is very encrypted.
[Android Software Development] panossd:
No Luck
[Android Software Development] zogu:
But type fastboot devices, not adb devices.
[Android Software Development] panossd:
i copy pasted the commnads on terminal but yet no success..

the command that contains url, i get an errror message of bad request 404

i might have access to windows pc, is there sth i can do from there???
[Android Software Development] panossd:
all i get is a bootloop of this
[Android Software Development] zogu:
Sorry, xda parsed pastet text

Command should be:

ruby -e "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/install)"

Just add https:// before raw.github.

Or delete url and /url in [] in post before

For windows you have adb drivers and fastboot everywhere
[Android Software Development] panossd:
There is no way i can install the drivers on windows..i have tried any drivers ,from several websites, but the pc cannot recognize the device as it is in this state ( the android with the exclamation mark!)

thank you all for your help
[Android Software Development] caobe:
Works like a charm on my Vernee Mix 2 4GB, and support themes!

Thank you MSD-Amadeus.
[Android Software Development] MSD-Amadeus:
It is not all my merit, but it is appreciated.
[Android Software Development] steve_69:
Try any alternativ PC. Or try change settings for permission to install drivers without windows verifying.

I had same issues with my win 7 partition, but could do the trick on win10.

And, if done, don't forget to grap twrp and boot. encrypted from the new thread (Vermeer mix2 modding) ;)

---------- Post added at 03:36 AM ---------- Previous post was at 03:23 AM ----------

What Do you mean, Supports Themes?

You think, it is different from

http xdaforums.com/android/software-hacking/vernee-mix2-4-6gb-modding-thread-t3730598?
[Android Software Development] steve_69:
You can prove adb and fastboot being installed by connecting another device and cmd “adb device“, or “fastboot device“.
[Android Software Development] panossd:
i have performed that already..
[Android Software Development] sicksand:
I have flash the twrp 3.2.1 recovery but it asked for password, and did enter the correct password still it said wrong password. How could resolve this? I have unlock the bootloader. Now can i have the stock recovery and flash it again? Is it okay?
[Android Software Development] Jetteroh:
Did you unlock the data partition already? If not this password is about the unlocking and the user cant know that. You should wipe the data (and lost the informations you installed)

Sent by Tapatalk from my MIX 2
[Android Software Development] verneenewb:
Can anynone please send me the modem file for IMEI repair?

I need to repair my IMEI with Maui Meta and I need the original modem file in order to do that. But without root access I can't get into the folder where it is located. Can someone with a rooted vernee mix 2 with the official rom please send me the modem file? It should be located in the /system/etc/mddb folder and start with either "BLPG" or "MDDB" and it should end with "ltg_n" as far as I have read online. Many thanks.
[Android Software Development] Chinaphonearena:
Thanks Zogu. Have tried system mode. This causes a soft brick, System will not boot. Will continue to test further.

---------- Post added at 12:29 PM ---------- Previous post was at 12:22 PM ----------

Yes, there is something very "funky" going on. Okay, I understand problems with working with the /system, but successfully copying something there and then it disappears few minutes later? This was not a one time occurrence; I repeated the test several times. All explorers saw the files. Within a few minutes, then gone.

Again, I must apologize for jumping the gun. Cleopatra was only going on my reports. In my opinion, her TWRP is not the issue, there is something else very odd happening here. Regards to all.

---------- Post added at 12:38 PM ---------- Previous post was at 12:29 PM ----------

Direct link to TWRP: http://www.mediafire.com/file/diuf3bic6snyiv9/Cleopatra_TWRP_MIX_2_def.rar
[Android Software Development] zogu:
At least we know that system is writable from recovery. Probably kernel check system image and does not allow boot.

We need repacked flashable kernel which allow system modification.
[Android Software Development] MSD-Amadeus:
good job

Now I can put links,This would be to create scater:

https://www.needrom.com/download/mtk-scatter-builder-helper/

It is not reliable 100% you have to compare

and this for preloader:

http://www.dailymotion.com/video/x62r0e7
[Android Software Development] ghost45:
Hi Amadeus, but this tool is like the Russian mtk droid tools?

That old tools do not saw the mtk cpu 64 bit..
[Android Software Development] MSD-Amadeus:
if it works in 64 bits.

I have tested in 5.1, but I do not know in 7.0.
[Android Software Development] zogu:
[MENTION=5595493]Chinaphonearena[/MENTION] Can you try to flash lazy flasher to disable verity? If it works it is easy to rebuild boot image with lazyflasher...

https://build.nethunter.com/android-tools/no-verity-opt-encrypt/no-verity-opt-encrypt-6.0.zip

I don't think that phone has some kind of backup partition, it just keep changes in ramdisk and never write anything to system partition. When os try to sync ramdisk and actual filesystem, it just can't write and files disappear.
[Android Software Development] ghost45:
[MENTION=371528]Everybody[/MENTION],

i pubblish the 1° file of 2 of the Firmware rebuilded

[MENTION=3924647]bigrammy[/MENTION],

in Post #4 i pubblish the scatter file with errors in partition start and end to SYS26 to SYS30 i supposed.

I can't able to test and verify exactly without right root..

Unfortunatly the sgdisk not run without right root.

[MENTION=8746259]MSD-Amadeus[/MENTION], the apk MTK scatter not run with this device or need right root.

The version 4 go in crash and close the app ...see only some general informations.
[Android Software Development] MSD-Amadeus:
There is no need for root permissions, I have only used mtkscatter, not 4.0.

You have to restart the phone to see the scatter.

If it does not work, it will be due to an incompatibility with 7.0.
[Android Software Development] ghost45:
Hi Amadeus,

thanks for your support but seems both are incompatibles with this device ...after try to make scatter the app go down in crash!

[MENTION=371528]Everybody[/MENTION],

the firmware rebuilded in on #3 tested with flash throught fastboot in my device.

and needrom of course!

In #4 is written the scatter file with mistakes that i can't able to check and modify without right root !
[Android Software Development] bigrammy:
I tried to follow the thread but I am a little confused :eek:

Please remember I do not have this device so I am unable to test anything. :(

1. Do you still have a problem with the Scatter file. :confused:

Are you saying it works but fails while backing up sys26 to sys30 and if so do all the other sys* backup without error?

Edit your system cache and userdata partitions according to these.

Do not edit beyond the userdata partition SYS28.

Note: Backing up userdata can cause issues with SPFlashtool due to it's size so it's best to use TWRP for that. :good:

I would leave the Userdata partition_size untouched but I have edited it according to readout from fastboot. If it gives errors use the default size of 0xc0000000.

If you need a clean userdata you can use this empty .img HERE

partition_index: SYS26
partition_name: system
file_name: system.img
is_download: true
type: EXT4_IMG
linear_start_addr: 0xe800000
physical_start_addr: 0xe800000
partition_size: 0xf4800000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
is_upgradable: true
empty_boot_needed: false
reserve: 0x00

- partition_index: SYS27
partition_name: cache
file_name: cache.img
is_download: true
type: EXT4_IMG
linear_start_addr: 0x103000000
physical_start_addr: 0x103000000
partition_size: 0x1b000000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
is_upgradable: false
empty_boot_needed: false
reserve: 0x00

- partition_index: SYS28
partition_name: userdata
file_name: userdata.img
is_download: true
type: EXT4_IMG
linear_start_addr: 0x11E000000
physical_start_addr: 0x11E000000
partition_size: 0x32000000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
is_upgradable: false
empty_boot_needed: false
reserve: 0x00

Regarding TWRP and problems with root

You must FORMAT data TWICE a simple wipe is not enough it seems nowadays.

Follow this procedure in this exact order and should solve most problems.

1. Install TWRP and then boot directly to recovery not system.

2. Choose Wipe/ Advanced /Format DATA type Yes to confirm. When it finishes choose Reboot then recovery.

3. Choose Wipe Advanced Format DATA again type Yes to confirm When it finishes choose Reboot then recovery.

4. Choose Wipe and select cache and Dalvik swipe to confirm.

5. Now install SuperSU v2.82

6. Reboot to System.

You will see the boot logo then it will stop and reboot again this is normal.

Wait for the phone to fully boot up this can take 10 > 15 mins