Related
As everyone already knew, MIUI 8 is not only available for China Developer ROM, it's not yet available for Global. I was on Global MIUI 7 Developer, I was very curious about MIUI 8. So, I tried to flash it through TWRP. Before I flash, I backed up all partitions on TWRP.
Fast forward 20 minutes, MIUI 8 flashed properly, but I want to go back to my original Global Developer MIUI 7. So, I tried to restore every partition through TWRP with the backup I did. Every partition restored successfully, except "Firmware". It gives error "extractTarFork() process ended with ERROR: 255"
In recovery log, it shows that "tar_extract_file(): failed to restore SELinux context ubject_r:vfat:s0 to file" for a lot of files.
It booted up normally, but it failed to detect my SIM card. Wifi working, just no SIM. Baseband version unknown, can't enter Phone Status, SIM cards & mobile networks greyed out. Phone tells that Can't get valid Device ID (Invalid Device ID: null)
Anyone did experienced this? Any solution?
Use twrp to restore again , this time exclude the firmware partition (restore all other partition except firmware). After the restoration complete , use MiFlashTool to flash back the Miui 7 stable
heorung said:
Use twrp to restore again , this time exclude the firmware partition (restore all other partition except firmware). After the restoration complete , use MiFlashTool to flash back the Miui 7 stable
Click to expand...
Click to collapse
Thanks for the advise. I've restored everything except firmware, and I'm now downloading the fastboot file to be flashed
heorung said:
Use twrp to restore again , this time exclude the firmware partition (restore all other partition except firmware). After the restoration complete , use MiFlashTool to flash back the Miui 7 stable
Click to expand...
Click to collapse
Unfortunately it didnt help. Still the same after flashing with MiFlashTool
Hello,
i have same problem. Radio works fine but USB not. I cant do fastboot. When android starts and connec to pc phone only chaging.
Have you someone solution?
Thanks
@ImjuzCY
i flash the cm rom, but finger print can not work properly .
so i restored all the partitions by twrp. also got that error. and i restored all the partitions except “Firmware”.
but my phone working properly include sim and usb.
lordrak said:
Hello,
i have same problem. Radio works fine but USB not. I cant do fastboot. When android starts and connec to pc phone only chaging.
Have you someone solution?
Thanks
Click to expand...
Click to collapse
i am pretty sure u have used alka twrp. and it has bug. so my recommendation is to not use this twrp. it may lead your device to end
yogesh1970 said:
i am pretty sure u have used alka twrp. and it has bug. so my recommendation is to not use this twrp. it may lead your device to end
Click to expand...
Click to collapse
what type of bugs does alka have???is cofface twrp better??
yogesh1970 said:
i am pretty sure u have used alka twrp. and it has bug. so my recommendation is to not use this twrp. it may lead your device to end
Click to expand...
Click to collapse
I use alka twrp too, but while twrp should we use?
The official twrp can backup all the partitions.
Sent from my Nexus 7 using Tapatalk
Flash MIUI recovery zip ..it will be proper. Same thing happened to me with twrp alka , firmware restore fails .so what u have to do is restore everything except firmware and then reboot to alka twrp again , wipe everything except internal storage and flash MIUI full recovery rom zip file.
Pranbellam said:
Flash MIUI recovery zip ..it will be proper. Same thing happened to me with twrp alka , firmware restore fails .so what u have to do is restore everything except firmware and then reboot to alka twrp again , wipe everything except internal storage and flash MIUI full recovery rom zip file.
Click to expand...
Click to collapse
can i flash the miui rom by twrp?
paranoia_gu said:
can i flash the miui rom by twrp?
Click to expand...
Click to collapse
Y not..! U can ,the recovery rom zip file BTW
yogesh1970 said:
i am pretty sure u have used alka twrp. and it has bug. so my recommendation is to not use this twrp. it may lead your device to end
Click to expand...
Click to collapse
What's this bug you mentioned? Pls tell more
alka recovery formats the firmware partition and then restoring failed . if it do same with the fastboot partition then u r screwed
yogesh1970 said:
alka recovery formats the firmware partition and then restoring failed . if it do same with the fastboot partition then u r screwed
Click to expand...
Click to collapse
which twrp u recommend then??
Pranbellam said:
Y not..! U can ,the recovery rom zip file BTW
Click to expand...
Click to collapse
Sorry, i don't understand. Original recovery is zip file. So How I can use twrp to recover original FW?
If you have problems with the sensors of your Xiaomi MI8 (camera that does not open, gyroscope, steps not calculated, compass, face unlock etc.), you probably made trouble with the persist partition, doing a wipe via twrp, or with a simple update through updater.
The problem is of a software nature and very simple to solve.
Install the latest version of TWRP, download: (Recovery-TWRP-3.3.1-2-dipper-mauronofrio.img)
Download the persist.img file, for completeness I uploaded the file together with the TWRP. The persist.img file is the most recent one, is the last update of the global stable miui 11 (V11.0.6.0.PEAMIXM, same for china), download: (persist.img V11.0.6.0.PEAMIXM)
Go to recovery twrp
Flash the image persist.img in the / persist partition.
Make a wipe cache and dalvik.
Reboot.
Now the sensors of your mi8 will come back to work.
I will try when back home, if it works, i'll send u a virtual kiss
Dam, really works, thank you very much!!!!!!
ghis94210 said:
I will try when back home, if it works, i'll send u a virtual kiss
Click to expand...
Click to collapse
Let me know.
maxniper said:
Dam, really works, thank you very much!!!!!!
Click to expand...
Click to collapse
You are welcome!
gatsuu said:
Let me know.
You are welcome!
Click to expand...
Click to collapse
I buy the phone and had that camera issue less than 24h after have it lol, you save my phone ?
How to flash this on persist partition. Got error on twrp
SPOCK_VULKAN said:
How to flash this on persist partition. Got error on twrp
Click to expand...
Click to collapse
Download from my link.
Mine is a .img file not .zip. Use it.
The hardware test app says my sensors are working abnormally. But my phone ain't rooted and the bootloader still unlocked.
Doesn't work for me, the file are corrupted when open the .rar, I need help I flash global rom 8.9.20 android P, the sensors dont work and my phone show message activate mi account, I need internet network, cant connect wifi and sim card say "error network ocurred"
rOck4n said:
The hardware test app says my sensors are working abnormally. But my phone ain't rooted and the bootloader still unlocked.
Click to expand...
Click to collapse
It's a bug on miui. Don't worry your sensors is fine. They will fix it on the next update afaik
gatsuu said:
If you have problems with the sensors of your Xiaomi MI8 (camera that does not open, gyroscope, steps not calculated, compass, face unlock etc.), you probably made trouble with the persist partition, doing a wipe via twrp, or with a simple update through updater.
The problem is of a software nature and very simple to solve.
Install the latest version of TWRP, download: (Recovery-TWRP-3.2.3-0918-XIAOMI8-EN-wzsx150)
Download the persist.img file, for completeness I uploaded the file together with the TWRP. The persist.img file is the most recent one, ie the last update of the global stable miui 10 (V10.0.2.0.OEAMIFH, same for china), download: (persist.img V10.0.2.0.OEAMIFH)
Go to recovery twrp
Flas the image persist.img in the / persist partition.
Make a wipe cache and dalvik.
Reboot.
Now the sensors of your mi8 will come back to work.
Click to expand...
Click to collapse
I am in Twrp and going to install persist.img. But I cannot see the option of persist partition. I only have partition option for boot, Recovery, System image, Vendor, Vendor Image. What should I choose?
Dampard said:
I am in Twrp and going to install persist.img. But I cannot see the option of persist partition. I only have partition option for boot, Recovery, System image, Vendor, Vendor Image. What should I choose?
Click to expand...
Click to collapse
TWRP---->install----->install image---->select persist.img----->select persist partition.
If you don't see a persist partition, you must change the recovery.
Use TWRP 3.2.3 0918, you can download it on the first post.
Inviato dal mio MI 8 utilizzando Tapatalk
gatsuu said:
TWRP---->install----->install image---->select persist.img----->select persist partition.
If you don't see a persist partition, you must change the recovery.
Use TWRP 3.2.3 0918, you can download it on the first post.
Inviato dal mio MI 8 utilizzando Tapatalk
Click to expand...
Click to collapse
Thanks!
Manage to enter twrp and flashed. Now all my sensors are back!
Just a note : your twrp.img cannot be boot. I'll just stuck at first screen with logo. What I did was to flash it into recovery.
For example this command doesn't work with your twrp version in the beginning
fastboot boot twrp.img
But this works
fastboot flash recovery twrp.img
then
fastboot boot twrp.img
gatsuu said:
If you have problems with the sensors of your Xiaomi MI8 (camera that does not open, gyroscope, steps not calculated, compass, face unlock etc.), you probably made trouble with the persist partition, doing a wipe via twrp, or with a simple update through updater.
The problem is of a software nature and very simple to solve.
Install the latest version of TWRP, download: (Recovery-TWRP-3.2.3-0918-XIAOMI8-EN-wzsx150)
Download the persist.img file, for completeness I uploaded the file together with the TWRP. The persist.img file is the most recent one, is the last update of the global stable miui 10 (V10.0.2.0.OEAMIFH, same for china), download: (persist.img V10.0.2.0.OEAMIFH)
Go to recovery twrp
Flash the image persist.img in the / persist partition.
Make a wipe cache and dalvik.
Reboot.
Now the sensors of your mi8 will come back to work.
Click to expand...
Click to collapse
Can u explain me how u created the persist.img or where u take it from ? I would like to get it for MIUI 9 8.9.20
ZeNiXxX said:
Can u explain me how u created the persist.img or where u take it from ? I would like to get it for MIUI 9 8.9.20
Click to expand...
Click to collapse
Download a fastboot rom, extract it and find persist.img
Inviato dal mio MI 8 utilizzando Tapatalk
you are my hero @gatsuu)))
thanks to yours, i solved my big problem. Thank you very very much...
hi
This will solve the problem of facdata
Fix
Opens the face of my brother
I have the same problem but in a Mi Note 3, but I cant see the /persist partition.
Any help?
keteflips said:
I have the same problem but in a Mi Note 3, but I cant see the /persist partition.
Any help?
Click to expand...
Click to collapse
You must download a fastboot rom for Mi note 3.
Extract it and find a persist.img, next flash it.
thank you for this precious help
Hi,
i tried to update to OpenKirin RR Beta 3, but flashing failed with fastboot (fastboot flash system C:\Daten\rr3.img.xz)
target reported max download size of 471859200 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 131128796 is not a multiple of the block size 4096
sending sparse 'system' 1/2 (460796 KB)...
error: write_sparse_skip_chunk: don't care size 131128796 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 131128796 is not a multiple of the block size 4096
OKAY [ 10.747s]
writing 'system' 1/2...
FAILED (remote: sparse flash write failure)
finished. total time: 14.841s
Click to expand...
Click to collapse
I had installed magisk with OpenKirin beta2 before. After failed flashing the device tries booting a few times but then it boots to eRevovery.
I tried flashing -kernel-recovery-ramdisk 368 from @JBolho Thread (https://forum.xda-developers.com/honor-9/how-to/emui8-kernel-recovery-ramdisk-stock-t3781347), because i thought something went wrong with the patched boot.img from magisk. But no success. Still bootloops and ended in eRecovery.
Can somebody help?
Thank you
P.S.: I posted this question in https://forum.xda-developers.com/honor-9/development/roms-openkirin-aosp-collection-t3828787/page3 too, but i don't know if somebody reads it there.
You tried to flash the compressed file instead of extracting the img file from it...
JBolho said:
You tried to flash the compressed file instead of extracting the img file from it...
Click to expand...
Click to collapse
Thank you. Rookie mistake. Flashing system now works, but boot ends in eRecovery too.
Saftpresse99 said:
Thank you. Rookie mistake. Flashing system now works, but boot ends in eRecovery too.
Click to expand...
Click to collapse
OpenKirin website where the rom can be downloaded has full installation instructions.
You flashed recovery, ramdisk and kernel from B368, was that the EMUI version you were before?
I would recommend flashing TWRP and re-install B368 with HuRUpdater tool, reboot to stock recovery (not eRecovery), wipe cache and do a factory reset, turn off the device and boot in fastboot mode, flash RROS and reboot again.
JBolho said:
OpenKirin website where the rom can be downloaded has full installation instructions.
You flashed recovery, ramdisk and kernel from B368, was that the EMUI version you were before?
I would recommend flashing TWRP and re-install B368 with HuRUpdater tool, reboot to stock recovery (not eRecovery), wipe cache and do a factory reset, turn off the device and boot in fastboot mode, flash RROS and reboot again.
Click to expand...
Click to collapse
I don't know my EMUI version before. Is it important?
I choose B368, because it was the last version available.
Saftpresse99 said:
I don't know my EMUI version before. Is it important?
I choose B368, because it was the last version available.
Click to expand...
Click to collapse
Of course it's important, the stock kernel, recovery and ramdisk must match the EMUI version installed or it will never boot.
JBolho said:
Of course it's important, the stock kernel, recovery and ramdisk must match the EMUI version installed or it will never boot.
Click to expand...
Click to collapse
What can i do to determine the correct version?
With B360 i can boot and the splash screen from RR3 appears. But after some time the phone restarts into eRecovery. I tried RR2 and phhusson's treble roms , which factory reset and wipe cache. Rom boots but then the device restarts into eRecovery.
Saftpresse99 said:
With B360 i can boot and the splash screen from RR3 appears. But after some time the phone restarts into eRecovery. I tried RR2 and phhusson's treble roms , which factory reset and wipe cache. Rom boots but then the device restarts into eRecovery.
Click to expand...
Click to collapse
Please do what I told you earlier, it's the best way. Flash zxz0O0's TWRP and use HuRUpdater tool to flash EMUI again, get the FullOTA from Firmware Finder of B368 or B369 at the most.
Then do a factory reset and see if it boots properly.
After that go to OpenKirin website and follow instructions carefully.
JBolho said:
Please do what I told you earlier, it's the best way. Flash zxz0O0's TWRP and use HuRUpdater tool to flash EMUI again, get the FullOTA from Firmware Finder of B368 or B369 at the most.
Then do a factory reset and see if it boots properly.
After that go to OpenKirin website and follow instructions carefully.
Click to expand...
Click to collapse
Thanks. Installed twrp, but can't get FullOTA from firware finder: http://pro-teammt.ru/projects/hwff/v2/GetLatestVersion.action Site is down. :crying:
Installing zxz0O0 works but if i try to boot into recovery it stucks on welcome screen. Nothing happens. Log attached.
I tried this twrp: https://forum.xda-developers.com/ho...p-ish-twrp-3-2-1-honor-9-running-gsi-t3818442 and this boots.
Saftpresse99 said:
Installing zxz0O0 works but if i try to boot into recovery it stucks on welcome screen. Nothing happens. Log attached.
I tried this twrp: https://forum.xda-developers.com/ho...p-ish-twrp-3-2-1-honor-9-running-gsi-t3818442 and this boots.
Click to expand...
Click to collapse
You can also flash roms with HuRUpdater using that twrp. The problem now is getting the rom, try to search on other forums as well, like 4pda and such, since FF is down...
JBolho said:
You can also flash roms with HuRUpdater using that twrp. The problem now is getting the rom, try to search on other forums as well, like 4pda and such, since FF is down...
Click to expand...
Click to collapse
Hi,
thank you very much. My device is now working again. Your instructions working very well. I flashed stf-L09c432 B360 with HuRUpdater and device boots. I donwloaded the firware from this site: http://huawei-firmware.com/phone-list/huawei-honor-9
For some reason, Nokia 6.1 Plus X6 has smaller system and vendor partition than Nokia 7 Plus.
Nokia 7 Plus has following size of both partitions:
system_a/b: 3,221,225,472 bytes
vendor_a/b: 1,073,741,824 bytes
Nokia 6.1 Plus X6 has following size of both partitions:
system_a/b: 2,684,354,560 bytes
vendor_a/b: 536,870,912 bytes
Differs of these partition size: 2,147,483,648 bytes, or 2 GB.
This will give you more space for putting your own userdata especially when you're using 4+32 variant Nokia X6.
So what's the point of partition enlargement?
This will allow you flash the same heavily customized ROM like MIUI10 for GSI_SDM660_64 devices.
WARNING: Repartitioning will destroy your userdata, always do backup before proceed!
Here's how:
1. Enter your phone to Download / Fastboot mode.
2. Extract and flash the gpt_both0.bin attached in this topic:
fastboot flash partition B2N-0-339B-gpt_both0.bin
OK, now you've finished repartitioning. You'll need to reinstall DRG-345B-0-00WW-B03 or DRG-347C-0-00CN-B04 full OTA update zip. You can't use stock firmware from https://fih-firmware.hikaricalyx.com/hmd_en.html#drg , otherwise it will revert your partition table back to stock.
To reinstall the payload.bin as fastboot images, please follow this guide:
https://forum.xda-developers.com/no...de-how-to-flash-payload-bin-fastboot-t3918843
For you convenience:
DRG-354H-0-00WW-B03-update.zip can be downloaded from: https://android.googleapis.com/pack.../810351d123009ec07c1cb5857c4707fdeba776ef.zip
DRG-347C-0-00CN-B04-update.zip can be downloaded from: https://ota-filesite.c2dms.com/SWImage/500002275
You must erase userdata otherwise the phone will refuse to boot.
I don't know if this operation will break OTA update, but since the major point is using custom ROM, who cares?
After partition can i flash ota file using boot into twrp??
after partition , can i flash gsi rom without installing stock rom . is it possible ??
rahul387 said:
after partition , can i flash gsi rom without installing stock rom . is it possible ??
Click to expand...
Click to collapse
No you must install stock ROM. Stock ROM contains all the files needed by the GSI to run.
SnapDrag910 said:
No you must install stock ROM. Stock ROM contains all the files needed by the GSI to run.
Click to expand...
Click to collapse
But I can't install payload.bin as a fastboot image..?
It's bohot hard..
rahul387 said:
But I can't install payload.bin as a fastboot image..?
It's bohot hard..
Click to expand...
Click to collapse
Follow the instructions on how properly. Or else just use a custom ROM lmao. I've seen you in erfan's forums and other places to asking for a GSI.
SnapDrag910 said:
Follow the instructions on how properly. Or else just use a custom ROM lmao. I've seen you in erfan's forums and other places to asking for a GSI.
Click to expand...
Click to collapse
You are right.. i was following properly but couldn't complete the whole process .. can you tell me whole process in simple language..
rahul387 said:
You are right.. i was following properly but couldn't complete the whole process .. can you tell me whole process in simple language..
Click to expand...
Click to collapse
Do you have telegram? PM Please.
Script doesn't work...
rahul387 said:
Script doesn't work...
Click to expand...
Click to collapse
Worked perfectly for me just last week. Make sure you have python up to date. The script will warn you if there is still something that needs to be updated. Do it.
See this
rahul387 said:
See this
Click to expand...
Click to collapse
That happened to me once too. Check if you are getting any warnings in the earlier part of the script.
You could also try a payload from a different rom. I know that there are two different ones linked in the post and at least one of the two worked for me.
Hello, I can not upload a ROM stock from the MIUI website in any way by the MiFlash program or by TWRP.
_theos_ said:
Hello, I can not upload a ROM stock from the MIUI website in any way by the MiFlash program or by TWRP.
Click to expand...
Click to collapse
Miflash does not work for me, flash OrangeFox recovery and try to update, this method worked for me without issues miui_MI8LiteGlobal_V10.3.1.0.PDTMIXM_8f2efd3fd2_9.0 global version... this is name of rom and rom must contain system.new.dat.br file and similar files ending with dat, br.....make folder log inside Miflash root folder. This may help
Stefke93 said:
Miflash does not work for me, flash OrangeFox recovery and try to update, this method worked for me without issues miui_MI8LiteGlobal_V10.3.1.0.PDTMIXM_8f2efd3fd2_9.0 global version... this is name of rom and rom must contain system.new.dat.br file and similar files ending with dat, br.....make folder log inside Miflash root folder. This may help
Click to expand...
Click to collapse
I flash orangefox and nothing else gave me further error 7 pops up
_theos_ said:
I flash orangefox and nothing else gave me further error 7 pops up
Click to expand...
Click to collapse
Strange, try to wipe vendors, system etc... and then mount partitions in OrangeFox. Also disable siignature check and other stuff's... try to flash dm-verity disabler first...you can try also Pitch black recovery
Stefke93 said:
Strange, try to wipe vendors, system etc... and then mount partitions in OrangeFox. Also disable siignature check and other stuff's... try to flash dm-verity disabler first...you can try also Pitch black recovery
Click to expand...
Click to collapse
ok thank you for your help