Related
Hey guys, i need help badly, i had a custom rom installed that was working just fine, i decided to get some adw launcher themes, i applied some then it crashed, i have tried to do a factory reset, cache reset, etc... Somehow i cant fix this, i tried installing a whole new rom, still wont work for some reason, i had this phone for a month now and nothing happened , i researched tons of threads and nothing. Hopefully someone here knows how to fix this, if you know how please please please tell me!!
thanks in advance
If the computer recognize the phone you can make a re-flash trought LGMDP
Inviato dal mio LG-P500 usando Tapatalk
what is that? im sorry i am noobish :/ i dont really get it , i need noob insructions
well i can access recovery , but when i flash a rom it gives me the same problem
Go back to your baxkup through recovery. Push powr+vol dwn+home. You get into recovery and then choose restore backup.
Sent from my LG-P500 using XDA Premium App
The only problem is, i didnt make a backup.
mrchamsone said:
The only problem is, i didnt make a backup.
Click to expand...
Click to collapse
m also facing the same problem.
My backup was gone when i partitioned my sdcard.
Stuck at LG logo since yesterday..
mrchamsone said:
Hey guys, i need help badly, i had a custom rom installed that was working just fine, i decided to get some adw launcher themes, i applied some then it crashed, i have tried to do a factory reset, cache reset, etc... Somehow i cant fix this, i tried installing a whole new rom, still wont work for some reason, i had this phone for a month now and nothing happened , i researched tons of threads and nothing. Hopefully someone here knows how to fix this, if you know how please please please tell me!!
thanks in advance
Click to expand...
Click to collapse
1.Copy a rom to your SD card.
2.Go to recovery.
3.If amonra: flash debug format system zip in Mik cm thread.
If cwm recovery : go to advanced and format system.
4. Wipe data cache everything and format your ext partition in menus.
5. Now flash the rom zip.
6. Reboot.
Sent from my LG-P500 using Tapatalk
lekhwani said:
1.Copy a rom to your SD card.
2.Go to recovery.
3.If amonra: flash debug format system zip in Mik cm thread.
If cwm recovery : go to advanced and format system.
4. Wipe data cache everything and format your ext partition in menus.
5. Now flash the rom zip.
6. Reboot.
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
i tried that nothing works, all i can do is access the clock work mod recovery thing.
I have an sd card adapter, i can put my sd card in there, would that hlep?
Any rom i do it doesnt work :/
i have a restore option in the recovery, can someone give me the backup file for the lg optimus one? or would that not work?
thanks in advance.
And im going back to school in a few days so i REALLY have to fix it
mrchamsone said:
i tried that nothing works, all i can do is access the clock work mod recovery thing.
Click to expand...
Click to collapse
if you can access clockworkmod recovery, you should still be able to do what lekhwani said. i dont think you get what hes trying to say, so i will say everything step by step
to get the rom onto your phone, you can do either this (longer):
1. plug you sdcard into your adapter. connect your adapter into your computer
2. on your computer, download a rom and move it to your sdcard under directory /sdcard
3. eject the sdcard and put into back into your phone
or this (faster, easier):
1. boot into recovery and plug your phone into the computer
2. under mounts and storage, select mount usb storage
3. on your computer, download and paste the rom of your choice onto your sdcard under directory /sdcard
(skip to number 5)
4. boot your phone into recovery (home+vol down+power)
5. wipe EVERYTHING (if you want your phone to work, you have to do it; on the first menu you see, select all the options that have the word "wipe" in it; after that go into the advanced menu and wipe everything there). vol up is to go up, vol down is to go down. the menu button is to select
6. go back to the first menu and select install zip from sdcard. then select choose zip from sdcard.
7. select the rom, then hit yes (your rom is now being flashed)
8. reboot
sweetnsour said:
if you can access clockworkmod recovery, you should still be able to do what lekhwani said. i dont think you get what hes trying to say, so i will say everything step by step
to get the rom onto your phone, you can do either this (longer):
1. plug you sdcard into your adapter. connect your adapter into your computer
2. on your computer, download a rom and move it to your sdcard under directory /sdcard
3. eject the sdcard and put into back into your phone
or this (faster, easier):
1. boot into recovery and plug your phone into the computer
2. under mounts and storage, select mount usb storage
3. on your computer, download and paste the rom of your choice onto your sdcard under directory /sdcard
(skip to number 5)
4. boot your phone into recovery (home+vol down+power)
5. wipe EVERYTHING (if you want your phone to work, you have to do it; on the first menu you see, select all the options that have the word "wipe" in it; after that go into the advanced menu and wipe everything there). vol up is to go up, vol down is to go down. the menu button is to select
6. go back to the first menu and select install zip from sdcard. then select choose zip from sdcard.
7. select the rom, then hit yes (your rom is now being flashed)
8. reboot
Click to expand...
Click to collapse
so basically thats like installing a rom?
every rom i do doesnt work, it has the same problem, stuck at the lg logo, i wiped cache, cleared everything. im worried if my phone is bricked :/
when im in the cwm recovery menu, i connect the usb cable and it doesnt recognize it, so i use the adapter, and is it normal if the sd card has absaloutely not even one file on it?
as for now, i wouldnt worry about whether your sdcard has any files on it or not. right now, we should be worried about whether your phone can be fixed. have you tried moving a rom onto your sdcard using the adapter? can you see the rom in recovery?
ok thanks, i am downloading a rom right, now. And yes i can see the rom in the recovery menu
ok so the rom is now on my sd card, what do i do from here?
thanks again
OK, i installed the rom, its stuck at the LG logo AGAIN, how long should i wait for it if its first time booting???
someone please reply , i need to fix it as soon as possible and im trying and nothing works.
mrchamsone said:
Hey guys, i need help badly, i had a custom rom installed that was working just fine, i decided to get some adw launcher themes, i applied some then it crashed, i have tried to do a factory reset, cache reset, etc... Somehow i cant fix this, i tried installing a whole new rom, still wont work for some reason, i had this phone for a month now and nothing happened , i researched tons of threads and nothing. Hopefully someone here knows how to fix this, if you know how please please please tell me!!
thanks in advance
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1060121
Try out this thread..I was able to revive my O1 back(from the LG logo stuck problem) jst an hour ago after following the instructions given there..
does that thread work even if you cant boot your phone? it says you have to connect to usb , can i just connect my sd card in an adapter?
mrchamsone said:
does that thread work even if you cant boot your phone? it says you have to connect to usb , can i just connect my sd card in an adapter?
Click to expand...
Click to collapse
Yeah it worked for me..I was also worried abt that.I jst started from no.8 as i could not go beyond the lg logo..
I jst removed the sdcard and connected the phone and flashed the rom from kdz.
O yeah don't forget to disable lg modem.Refer no.6 of the thread.. to disable it.
Stat from no. 8 of the thread after downloading rom and kdz..
ok thank you so much, 1 problem, i put my sd card in the adapter, it said phone was not found, how do i connect my phone to pc if i cant get to the phone itself?
please reply asap
while i am in cwm recovery usb device is not recognized and it says this in the lg updater, phone not found, i tried to find the lg modem thing to disable it but its not there any help would be gladly appreciated
Thanks
mrchamsone said:
while i am in cwm recovery usb device is not recognized and it says this in the lg updater, phone not found, i tried to find the lg modem thing to disable it but its not there any help would be gladly appreciated
Thanks
Click to expand...
Click to collapse
have you installed the usb drivers?
http://forum.xda-developers.com/showpost.php?p=15960064&postcount=3
Hi guys.
My phone is a international i9300
I've been searching for a problem like mine in the forum for three weeks now and I couldn't find a proper solution.
I just can't flash any rom via CWM anymore...
I can flash roms via ODIN, but when it comes to CWM, it gets stucked at Samsung logo after the install.
I tried:
Wipe cache / Dalvik / factory reset.
before the installation, after the installation, every combination possible.
Tried megawipe and no help.
Changed the kernel, Siyah, Googy, stock...
Changed versions of CWM, touch.
I have now the Phil'z 5.0.15.
I like very much the XXELK4 version from roalex with its MOD, for the call recording and full multiwindow support, but can't flash it anymore, nor any other custom or stock via CWM.
By now I can only have a full stock flashed via odin, or my Omega 46.1, wich I have a full backup.
Another solution could be find a .tar rooted and with the MODS flashable via Odin, but I really wanted to understand what's happening with my recovery.
Thank you all and congrats for the great work with the forum.
In cwm format..
Data
System
Cache
Then go to advanced and wipe dalvik cache
Then flash the rom.
Your cwm is upto date?
andrewwright said:
In cwm format..
Data
System
Cache
Then go to advanced and wipe dalvik cache
Then flash the rom.
Your cwm is upto date?
Click to expand...
Click to collapse
Sorry.
Forgot to include in the original post... I tried that too. Formatted everything
Got the 6.0.6.3
I also tried with the last Philz recovery.
And with previous versions of both too.
Have you tried to go bk to stock,root that firmware then install cwm then flash custom rom? Clean slate start.
Your problem may be a bad file download .
andrewwright said:
Have you tried to go bk to stock,root that firmware then install cwm then flash custom rom? Clean slate start.
Click to expand...
Click to collapse
Yes... didn't work...
JJEgan said:
Your problem may be a bad file download .
Click to expand...
Click to collapse
I'll try to download again, although it's not likely that several files are bad. I tried with so many different roms...
I bought another micro sd of 64gb. Maybe the one I'm using is ruining the files...
There can't be a so huge bug in philz recovery
Try install from internal sdcard, a simple 'Factory Reset before New Rom' no need to mega wipe anything.
Striatum_bdr said:
There can't be a so huge bug in philz recovery
Try install from internal sdcard, a simple 'Factory Reset before New Rom' no need to mega wipe anything.
Click to expand...
Click to collapse
Of course. And I tried with different versions of Philz' and also CWM. It can't be a bug in recovery.
Re-downloaded the revolution 29.0 and the Roalex XXELK4 rooted, copyed directly to internal and flashed... Same problem. Stuck at Samsung logo in boot. I'm begining to think my phone is screwed up. But this is so strange. I can restore my backup with no problems, and also can flash with Odin.
Is there a way to flash a .ZIP ROM in Odin?
Does not make any sense .
What model phone do you have ???
What model firmware are you flashing .
What about basic stock custom roms flashed via CWM ??
Have you booted to Philz recovery mounts and storage format sd card cache system and data then flash rom ??
Agree it is strange Deviating a little from your problem but have you tried flashing anything with TWRP recovery see if the problem persists with that.
JJEgan said:
Does not make any sense .
What model phone do you have ???
What model firmware are you flashing .
What about basic stock custom roms flashed via CWM ??
Have you booted to Philz recovery mounts and storage format sd card cache system and data then flash rom ??
Click to expand...
Click to collapse
I know it doesn't. That's why I'm going crazy.
I uploaded the screenshots with my system specs.
The model is correct, international i9300. Tried to download from the site and also directly from rommanager.
The firmwares I'm trying to flash are stock, but rooted by Roalex. I couldn't find a pure stock .zip for testing with CWM. The firmware I'm using is UBEMH5 from sammobile, wich I flashed via Odin.
Yes... Tried and formatted everything, several times, mounted, unmounted, every possible order...
Almost giving up. :crying:
tallman43 said:
Agree it is strange Deviating a little from your problem but have you tried flashing anything with TWRP recovery see if the problem persists with that.
Click to expand...
Click to collapse
I never used TWRP. Can I flash the same ROM file .zip with it or it requires it's own rom file type?
I'm gonna be out of the country for two days. When I come back I'll give it a try.
Thank you all so far.
ivansaab said:
I never used TWRP. Can I flash the same ROM file .zip with it or it requires it's own rom file type?
I'm gonna be out of the country for two days. When I come back I'll give it a try.
Thank you all so far.
Click to expand...
Click to collapse
It's been a while since i used it last time was when I had a S2 and I used it all the time:good: You can flash any rom with it that cwm can flash (as far as I know) but it had a little trouble restoring backups made with cwm but I think that got fixed.But you can make backups and loads of other things with it I recommend people to try it at least once This won't fix your cwm problem but would be interesting to see if it works
If twrp doesn't work on stock Flash googy Max dualboot kernel and keep stock as primary rom and custom as second rom. Then you have best of both world's :thumbup: also take the pic down with your emei showing :banghead: never ever show this!
What i would do in this situation is .
In recovery format cache system sd card preload .
Flash stock rom via Odin.
Check phone works ok .
Then root / flash philz recovery .
Put custom rom on sd card boot to recovery factory reset .
Then install custom rom watching setup to spot a failure point .
Wait for rom to load 10 mins fails then remove batter replace and factory reset .
Problem solved
Hi folks.
Think I figured out what's going on.
Via TWRP it says the files were corrupted, although the file sizes were identical.
I MD5 checked the files in my computer and they're ok, but when checked already inside my phone or SD they're not.
Instead of copying the files via USB cable I removed the SD card and inserted directly in my laptop slot and copyed the files. MD5 checked and they're ok...
After I tryed again copy via USB and the files were corrupted again.
I think my desktop USB or maybe the Samsung drivers are doing that.
Well, problem solved. I hope this helps other people in future problems.
Thank you all for your help and support. Keep on with the great work.
Mark solved then for other users .
Hi, jd1639 said that if I needed help about my phone, it should be here that I found the answer. So my problem is :
My Galaxy S2 (GT-i9100) won't boot (but I can access recovery mode)
But, I don't know what to do next (wipe data/factory reset doesn't work) and I didn't never set a backup so I can't recover my phone.
Please help
Th3R3dSh4rk74 said:
Hi, jd1639 said that if I needed help about my phone, it should be here that I found the answer. So my problem is :
My Galaxy S2 (GT-i9100) won't boot (but I can access recovery mode)
But, I don't know what to do next (wipe data/factory reset doesn't work) and I didn't never set a backup so I can't recover my phone.
Please help
Click to expand...
Click to collapse
You will need to provide a bit more info for anyone to help. Were you on stock rom? Have you tried to flash a rom? You have root access(custom recovery)? Do you have an external sd card and access to a pc?
noppy22 said:
You will need to provide a bit more info for anyone to help. Were you on stock rom? Have you tried to flash a rom? You have root access(custom recovery)? Do you have an external sd card and access to a pc?
Click to expand...
Click to collapse
My actual rom is :
I9100XXLPQ_I9100OXALPQ_I9100XXLPQ_HOME.tar
I already flashed a rom, my phone is rooted, I have clockworkmod recovery, I have 2 sd card of 8GB (but only 1 slot), yes I have a pc
Th3R3dSh4rk74 said:
My actual rom is :
I9100XXLPQ_I9100OXALPQ_I9100XXLPQ_HOME.tar
I already flashed a rom, my phone is rooted, I have clockworkmod recovery, I have 2 sd card of 8GB (but only 1 slot), yes I have a pc
Click to expand...
Click to collapse
When you say you have already flashed a rom, which rom is that? In the installation process, was it successful(was there any error messages during install) Did you do factory reset, format system, wipe cache & dalvik cache before flashing?
Do you want a stock rom via odin or are you trying to install a custom rom via recovery?
Hi,
I'm using a galaxy s2 gt-i9100 as a spare phone and i thought it would be a good idea to upgrade from CM13.1 to lineage os 14...
Unfortunately that didn"t go well, the phone is not bricked BUT :
1)i can only flash recovery using odin, heimdall says flash ok but recovery never changes, same as when i tried to install the TWRP recovery from a zip file in the CWM 6.0.2.9 recovery
2) flashing from that CWM version a lineage os zip file always resulted in the progress bar to be stuck at the very begining of the process so i updated the phone with a 3GB PIT file to fix the issue.
3) now the same CWM doesn"t want to mount the SD card while it's working perfectly from within the phone or with the phone(using latest stock firmware) on my PC
4) i can"t use that CWM as recovery because i can't use adb sideload or install zip from a file anymore(i guess due to the 3GB PIT file)
So is it possible to have a TWRP recovery flashable with odin for the GT-I9100 ?
Will that TWRP recovery finally allow me to flash the lineage os zip file?
thanks,
NHJ1981 said:
Hi,
I'm using a galaxy s2 gt-i9100 as a spare phone and i thought it would be a good idea to upgrade from CM13.1 to lineage os 14...
Unfortunately that didn"t go well, the phone is not bricked BUT :
1)i can only flash recovery using odin, heimdall says flash ok but recovery never changes, same as when i tried to install the TWRP recovery from a zip file in the CWM 6.0.2.9 recovery
2) flashing from that CWM version a lineage os zip file always resulted in the progress bar to be stuck at the very begining of the process so i updated the phone with a 3GB PIT file to fix the issue.
3) now the same CWM doesn"t want to mount the SD card while it's working perfectly from within the phone or with the phone(using latest stock firmware) on my PC
4) i can"t use that CWM as recovery because i can't use adb sideload or install zip from a file anymore(i guess due to the 3GB PIT file)
So is it possible to have a TWRP recovery flashable with odin for the GT-I9100 ?
Will that TWRP recovery finally allow me to flash the lineage os zip file?
thanks,
Click to expand...
Click to collapse
First--you can't mount sdcard after repit if you didn't format it
Second--repit using 3GB PIT is useless procedure, because you only changed the data partition size, instead repit with a 1GB_3GB.pit to change system partition to 1GB.
Third--to get TWRP 3 you must be on a rom with a kernel that supports isorec recovery, so you should flash a CWM kitkat compatible recovery through Odin and reboot to recovery and flash latest CM11 to get isorec support then reboot to recovery flash TWRP 3.0.2.1 image and then reboot recovery and flash your desired nogut rom and gapps.
If you couldn't understand me, then simply follow this guide
Hello,
thanks for your reply, it was exactly what i was looking for, i wish my Google searches about that matter redirected me to that tutorial.
IT worked brilliantly exept an error regarding formating and mounting of data partition after the use of the PIT file but upon restart, the procedure : 'Go to Wipe -> Advanced wipe,
select Dalvik, Cache, System, System, Data, Internal Storage then Swipe to Wipe, go back to TWRP Home.' completed without any errors.
That old phone is now running nougat.
NHJ1981 said:
Hello,
thanks for your reply, it was exactly what i was looking for, i wish my Google searches about that matter redirected me to that tutorial.
IT worked brilliantly exept an error regarding formating and mounting of data partition after the use of the PIT file but upon restart, the procedure : 'Go to Wipe -> Advanced wipe,
select Dalvik, Cache, System, System, Data, Internal Storage then Swipe to Wipe, go back to TWRP Home.' completed without any errors.
That old phone is now running nougat.
Click to expand...
Click to collapse
Great, happy to help
Enjoy the Nogut taste
Hi,
I wanted to upgrade my i9100 so i used odin 3.04 to flash the kitkat compatible .tar file you mentioned through download mode. The flashing in odin showed no errors but my phone is dead now and doesnt turn on!
Now i can only get into download mode using the key combinations.
What did i do wrong coming from CM9.1 with cwm 6.0.1.2 on it. And how to fix this?
ANDRiMiON said:
Hi,
I wanted to upgrade my i9100 so i used odin 3.04 to flash the kitkat compatible .tar file you mentioned through download mode. The flashing in odin showed no errors but my phone is dead now and doesnt turn on!
Now i can only get into download mode using the key combinations.
What did i do wrong coming from CM9.1 with cwm 6.0.1.2 on it. And how to fix this?
Click to expand...
Click to collapse
Your phone won't boot of course, because the kernel recovery you flashed is a kitkat kernel recovery, just reflash it again with a pit with 1GB system or more and your desired data partition size, all pits are available in repartition guide by saber, after you enter into recovery, you should navigate to mount then "format sdcard" or "format internal sdcard", i don't actually remember the option, then format it and format data and system and cache and dalvik cache, then install the latest cm11 rom to get isorec support, then let it reboot, then reboot to recovery and flash TWRP 3.0.2-1 image from the TWRP 3 thread's download section, then reboot recovery and flash your desired nogut rom and gapps
Just a sec i will give you some links..
Much appreciated. I am really stuck right now.
Can i conclude that when i flash CWM 6.0.1.2 my CM9.1 will be alive and kicking?
I think i want that right now, i postpone the upgrade to the future. Not really comfy right now....
hmmm i can't find the link to CWM 6.0.1.2 for i9100. Thats what i need right now...
ANDRiMiON said:
Much appreciated. I am really stuck right now.
Can i conclude that when i flash CWM 6.0.1.2 my CM9.1 will be alive and kicking?
I think i want that right now, i postpone the upgrade to the future. Not really comfy right now....
hmmm i can't find the link to CWM 6.0.1.2 for i9100. Thats what i need right now...
Click to expand...
Click to collapse
you have to flash a kernel not just a recovery, try dirty flashing your cm9.1 again that should make it boot correctly, and will replace the current recovery with the recovery that comes with the rom
I found my cm9.1. How does dirty flashing works? Can it be done with odin?
Does this erase all my data on my device?
edit:
Do i choose pda or phone when entering cm9.1 in odin. And where to select wipe cache and dalvik cache?
CM11
1.5GB PIT Files or 1GB PIT Files by ELgmal 1GB is enough.
Kitkat compatible recovery
this is for future update
---------- Post added at 04:18 PM ---------- Previous post was at 04:16 PM ----------
ANDRiMiON said:
I found my cm9.1. How does dirty flashing works? Can it be done with odin?
Does this erase all my data on my device?
Click to expand...
Click to collapse
no just flash it in recovery and wipe cache and dalvik, if you had xposed then flash xposed after the rom and wipe dalvik and cache and reboot.
ps: next time you post, please quote my post or mention me in your post so i can reply faster to your post
no it won't delete any data
---------- Post added at 04:45 PM ---------- Previous post was at 04:18 PM ----------
andrimion said:
i found my cm9.1. How does dirty flashing works? Can it be done with odin?
Does this erase all my data on my device?
Edit:
Do i choose pda or phone when entering cm9.1 in odin. And where to select wipe cache and dalvik cache?
Click to expand...
Click to collapse
DON'T USE ODIN, the rom is zip flash it through recovery
The problem is i can't access the data partition in windows explorer so i can not place the cm 9.1 zip file on my device. I can enter the recovery mode though
ANDRiMiON said:
The problem is i can't access the data partition in windows explorer so i can not place the cm 9.1 zip file on my device. I can enter the recovery mode though
Click to expand...
Click to collapse
have you tried with an external sdcard?
you can use an adapter to connect your external sdcard to your pc and copy your rom to
That worked fine. My device is up and running.
Many thanks for your help!
ANDRiMiON said:
That worked fine. My device is up and running.
Many thanks for your help!
Click to expand...
Click to collapse
No problem, glad to help
MigoMujahid said:
First--you can't mount sdcard after repit if you didn't format it
Second--repit using 3GB PIT is useless procedure, because you only changed the data partition size, instead repit with a 1GB_3GB.pit to change system partition to 1GB.
Third--to get TWRP 3 you must be on a rom with a kernel that supports isorec recovery, so you should flash a CWM kitkat compatible recovery through Odin and reboot to recovery and flash latest CM11 to get isorec support then reboot to recovery flash TWRP 3.0.2.1 image and then reboot recovery and flash your desired nogut rom and gapps.
If you couldn't understand me, then simply follow this guide
Click to expand...
Click to collapse
thanks this really helped me, I was struggling to get lineage installed, I had CyAN12 rom before and wasnt easy to move from there
Hello. The problem i have is that when i try to restore( from twrp ) or flash ( from fastboot ) the stock boot.img, I loose wifi and bluetooth completely. I'm trying to get rid of stromguard kenel. The wifi's mac address is 20:00:00:00:00 which is definately not right.:cyclops:
Please Help!!!
p.s. The wifi comes back again if i flash the custom kernel.
choose a firmware
https://forum.xda-developers.com/re...irmware-firmware-miui-9-china-stable-t3697976
flash in twrp
reboot
done
Try flashing the firmware, or flash the rom again (dirty flash)
blitzkid said:
choose a firmware
https://forum.xda-developers.com/re...irmware-firmware-miui-9-china-stable-t3697976
flash in twrp
reboot
done
Click to expand...
Click to collapse
It didn't work. It is still the same.
MyNameIsRage said:
Try flashing the firmware, or flash the rom again (dirty flash)
Click to expand...
Click to collapse
Only flashing the firmware didnt do anything. Im on stock dev rom bro so the only rom flashing i know of is to flash the system.img which will delete every apps and its data and i dont want to do that. Is there any other option?
samuniv said:
Only flashing the firmware didnt do anything. Im on stock dev rom bro so the only rom flashing i know of is to flash the system.img which will delete every apps and its data and i dont want to do that. Is there any other option?
Click to expand...
Click to collapse
What you can do is, that you can clean flash miui,
This will take some time, but is actually much easier and somewhat fool proof.
Firstly make a back-up of data, to miui account,
Then, go to en.miui.com/download from there choose redmi note 4x and download the zip file of miui version you want. Transfer it onto an sd card or a location which can be accessed after the internal storage is wiped. Go to twrp, format data, wipe data, cache, system and dalvik. Now transfer the miui rom file to the device, or to sd card, and flash it, along with lazy flasher. Now reboot, it will say "no os installed" but just reboot. It will take some time to load, but it will boot. Now you can sign in with mi account and you can restore data.