Persist Flashing Sagit - Xiaomi Mi 6 Questions & Answers

I can't flash persist with adb commands and I don't find persist flashable twrp. Can you help me?

Related

[SOLVED] Preventing Recovery Overwrite On System/normal Boot

After moving my Mi6 from EU ROM to Global Stable 8.2.2.0, I realised that MIUI has now programmed either the boot.img or system.img to overwrite recovery partition on every "normal"/system boot.
So much for unlocking the bootloader...
Although the source system.img has a recovery-from-boot.p file, but it appears to be different from the stock recovery.img file. Attempting to replace it with the TWRP image or removing it entirely (and flashing the rebuilt system.img) results in boot failure (see below for more information).
Does anyone know:
where the "protected" recovery image may be found? and/or
how to repack/rebuild a system.img which will not cause a boot hang?
Note that I have rebuilt it "correctly" (as "correct" as I know) using the properly extracted file_contexts (as extracted from the file_contexts.bin) from the initrd.img from inside the boot.img using the command:
Code:
make_ext4fs -s -T -1 -S file_contents -L system -l <size of partition> -a system system.img <mount point>
I have tried both a blind fastboot flash system system.img, and also a standard "clean" flash using the MiFlash tool (after ensuring that the correct MD5, CRC and sparse CRC strings are edited in the various files, of course).
Thanks!
fastboot flash recovery TWRP.img
That's the solution.
And if you flash a MIUI rom with TWRP simply flash twrp.img without Reboot under TWRP, after rom.zip flash. That's all
reb00tz said:
After moving my Mi6 from EU ROM to Global Stable 8.2.2.0, I realised that MIUI has now programmed either the boot.img or system.img to overwrite recovery partition on every "normal"/system boot.
Click to expand...
Click to collapse
dennis46419 said:
fastboot flash recovery TWRP.img
That's the solution.
And if you flash a MIUI rom with TWRP simply flash twrp.img without Reboot under TWRP, after rom.zip flash. That's all
Click to expand...
Click to collapse
Hi @dennis46419,
Thanks for replying. I have always done that upon forced reboot by the MiFlash tool (i.e. the moment it powers off for a reboot, I put it right back into fastboot mode to flash TWRP again, then directly boot with the TWRP.img).
As mentioned, I believe the new global stable ROM actually overwrites recovery on every boot.
Have you experienced this (i.e. when using the global stable ROM)?
OK, seems I missed the solution as already provided by @TheStrix:
https://forum.xda-developers.com/showpost.php?p=72620133&postcount=2
But the instruction (which I missed because I downloaded directly from the TWRP site) was already here: https://forum.xda-developers.com/showpost.php?p=72620133&postcount=2

[SOLVED] Need help! Lost IMEI and signal

Hi People, I'm a Moto G5 (XT1676) user. After unlocking bootloader, rooting, flashing ROMs, etc. I "broke" my phone and now mi IMEIs are 0 and lost my phone signal.
I've been reading posts of older versions (Moto G1, G3) that people seem to fix this problem by flashing oher phone's back up of fsc, hob and dhob partitions. The problem is that in my Moto G5 only fsc partition appears.
I'm not expert and don't understand too much , I'm just asking for your help please, my phone turned into a tablet .
Do anyone of you guys know what partition do I have to fix in this phone?
Can you upload a back up of those partitions for me please?
Flashing those partitions on other versions of the phone seem to fix signal problem leaving IMEI = 0, I just need my signal back.
Something that I don't know if is relevant is that when I messed up flashing things, reading posts around internet I used some commands that I think modified "persist" and "misc" partitions.
Can anyone upload those just in case too?
Sorry if something is wrong, english is not my native language.
Please help me!
EDIT!!:
I've managed to revive my phone restoring someone's persist backup from twrp, "Backup & Restore partitions" doesn't work. The file I used to fix this problem is in this link: https://mega.nz/#!Yd82hSZZ!vdmbqAG0bQhNyR5g95KOrZjVvBw2QDrirpOwhD96gPc
The only file i needed was the persist backup in that .rar
It's no my partition, I've found it around internet, searching everywhere, but it worked.
Thanks for all the people that tried to help me!
IMEI stayed 0 but my mobile signal is back!!
How to restore that partition?:
1-Install TWRP.
2-Go into Backup and make a backup of any partition there. This will create a partition folder inside TWRP folder.
3-Copy the persist backup I've shared into that backup folder.
4-Boot into twrp, restore and select persist.
5-Restore.
6-Flash stock rom again for your device.
I hope that this help anyone in the same situation. This works for Moto G5 Plus too from what I've been reading.
It would be nice if people comment their results so we can help others.
Attention!: This doesn't fix IMEI, it stays 0 but mobile signal is back.
Good Luck and thanks!
flash stock rom via fastboot
never play around with partitions unless you know what you are doing - simply typing in commands without knowing their meaning will likely muck up your device
find your stock rom firmware via the power of google
Open a command/terminal prompt where you have fastboot (if you have added fastboot to the environmental settings you can run it from any location)
The commands you will likely need are
Code:
fastboot flash partition gpt.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk0
fastboot flash system system.img_sparsechunk1
fastboot flash system system.img_sparsechunk2
fastboot flash system system.img_sparsechunk3
fastboot flash system system.img_sparsechunk4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
I have included fastboot in the link below - You will also need to download and install the moto usb drivers if you have not already done so
Platform-tools Download
TheFixItMan said:
flash stock rom via fastboot
never play around with partitions unless you know what you are doing - simply typing in commands without knowing their meaning will likely muck up your device
find your stock rom firmware via the power of google
Open a command/terminal prompt where you have fastboot (if you have added fastboot to the environmental settings you can run it from any location)
The commands you will likely need are
Code:
fastboot flash partition gpt.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk0
fastboot flash system system.img_sparsechunk1
fastboot flash system system.img_sparsechunk2
fastboot flash system system.img_sparsechunk3
fastboot flash system system.img_sparsechunk4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
I have included fastboot in the link below - You will also need to download and install the moto usb drivers if you have not already done so
Platform-tools Download
Click to expand...
Click to collapse
I've already tried flashing stock rom but the problem is still there, I've also tried some custom roms too without success.
I know is my fault, I touched where I didn't have to.
I don't know what else to try, I think flashing other's back up partitions is my last shot.
I don't know if you are a Moto G5 user, but if you are, can you share those partitions to me?
Thanks for your reply.
Your gonna need an EFS / QCN backup. Do you know how to set the modem to diagnostic mode?
SvenRL said:
Your gonna need an EFS / QCN backup. Do you know how to set the modem to diagnostic mode?
Click to expand...
Click to collapse
From what I've been reading Moto G doesn't have a EFS partition, I've found in other forums that Moto G4 series have that data in "Persist" partition, and that partition is the one i've been touching..
That's why I'm asking if someone can backup that partition and share to me.
There is an app that does the job "Partitions Backup & Restore", I think you need root to use it.
I need that Persist backup just to try fix my phone, if you have Moto G5, can you help me with that?
Yes I know how to set it into diagnostic mode. (I've been trying apps and programs that in that mode fix qualcomm devices without success).
Thanks for your reply!
Can someone please help me with a "persist" partition backup please? I really need help.
Hi Jerito. Sorry to take a few days to reply to your PM. Been away.
Not sure i can help with this one as am not knowledgeable about copying particular partitions.
About the most comprehensive rebuild i have ever done was what i posted about doing it file by file and if i was in your situation, well, thats what i'd try.
Can you somehow extract the partition you are after out of a ROM??
I'll do you a qcn backup, wait till early hours of Monday morning. I'm curious cause i have the same issue with my lenovo P2, no persist partition, but I think the persist partition is created from the fsg partition
astmacca said:
Hi Jerito. Sorry to take a few days to reply to your PM. Been away.
Not sure i can help with this one as am not knowledgeable about copying particular partitions.
About the most comprehensive rebuild i have ever done was what i posted about doing it file by file and if i was in your situation, well, thats what i'd try.
Can you somehow extract the partition you are after out of a ROM??
Click to expand...
Click to collapse
No problem, the best way I've found of doing a back up of that partition is through the app I've mentioned "Partition Backup and Restore", I will watch your post!
SvenRL said:
I'll do you a qcn backup, wait till early hours of Monday morning. I'm curious cause i have the same issue with my lenovo P2, no persist partition, but I think the persist partition is created from the fsg partition
Click to expand...
Click to collapse
Ok, I'll be waiting, thanks both!

persist.img

Hi all op3 users,
Is there any twrp which supports persist partition ? So we could flash persist.img from stock rom to fix some problems with sensors for example .
We can flash persist.img in fastboot mode
fastboot erase persist
fastboot flash persist persist.img
fastboot reboot
But we have only ota.zip . Were can we find full roms for OnePlus 3 ? I mean roms which you can install with qpst/qfil or with msmdownloadtool
mar.ur said:
Hi all op3 users,
Is there any twrp which supports persist partition ? So we could flash persist.img from stock rom to fix some problems with sensors for example .
We can flash persist.img in fastboot mode
fastboot erase persist
fastboot flash persist persist.img
fastboot reboot
But we have only ota.zip . Were can we find full roms for OnePlus 3 ? I mean roms which you can install with qpst/qfil or with msmdownloadtool
Click to expand...
Click to collapse
What i have learnt that you can flash persist.img in fasboot mode if your android version is 6.0 with unlocked bootloader and root access..
I was facing same issue and was getting "FAILED (remote: Partition flashing is not allowed)" but after flashing 6.0, i was able to erase and flash persist fastboot mode.

Question Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40 brick

So for context I messed up and flashed to boot twrp and now I'm trying to my phone gets out of fastboot but i cant...
So what i did was: "fastboot flash boot_a twrp.img" and "fastboot flash boot_b twrp.img" and now it is stuck on fastboot... so I tried to flash_all.bat from V13.0.8.0.SKHEUXM and V13.0.9.0.SKHEUXM and both gave me this error when this line was executed:
fastboot flash super images\super.img error: cannot load 'images\super.img'
By the way I can still flash twrp into boot and it works but gives many error on mount metadata and root...
So I could use some help to unbrick this phone thank you...
Try the command fastboot continue
Try flashing your ROMs' boot.img in Fastboot.
This tool can dump the individual IMG-files from ROM ZIPs:
[Windows] Payload Dumper GUI - dump boot.img and other img files from payload.bin.
Hello there. Was bored and decided to make a gui that dumps Payload.bin file for easy flashing. Tested on Lineage OS 18 Payload.bin Result: Credits: Based on vm03 payload_dumper script. Github: Payload_dumper.py...
forum.xda-developers.com
Your problem with not being able to run flash_all.bat might be a something with your PC, the SDK Platform Binaries (outdated version?), your USB-cable, your USB-port, or maybe you just need to disconnect/reconnect.
I recommend OrangeFox Recovery: https://orangefox.download/device/alioth
The recovery.img from the ZIP can be booted with fastboot boot recovery.img
Thank for the help guys but I din't try miflash tool tried it and it worked

Failed to mount system_ext (block device required)

I rooted my op7t and i am on official oxygen os 10 with latest twrp 3.7.0 and magisk installed. It is having this error i don't know why. Someone kindly explain and help.
I flashed twrp using fastboot flash recovery recovery.img and tried flashing in both boot as well using :
fastboot flash recovery_a recovery.img
fastboot flash recovery_b recovery.img

Categories

Resources