Help Flashing AOSPA or other AOSP ROMs - Xiaomi Mi 4

So i have the phone i used ivans rom once which didn't need any partition but went back to miui.
i want to try AOSPA L but im unable to get the partition to work at all.
I mean i flashed the partition it said system partitioned and all that but it wont let me flash the rom and always aborts.
Could u someone help me with this or give a simple TLDR guide ?
im not a nub to flashing at but this one is frustrating.
i can get CWM on phone.
then flash the partion zip but after that nothing works can someone link me the correct file they used or just a geenral guide would be awesome.
thanks

When you repartition, make sure active partition is system 1 before flashing. Then you can flash on system 1. However, after this, you can switch to TWRP since it supports single partition
Sent from my MI 4 using Tapatalk

LcsZhDrw said:
When you repartition, make sure active partition is system 1 before flashing. Then you can flash on system 1. However, after this, you can switch to TWRP since it supports single partition
Sent from my MI 4 using Tapatalk
Click to expand...
Click to collapse
im getting the update binary scrip error in twrp.

berz said:
im getting the update binary scrip error in twrp.
Click to expand...
Click to collapse
When flashing what?
Sent from my MI 4 using Tapatalk

LcsZhDrw said:
When flashing what?
Sent from my MI 4 using Tapatalk
Click to expand...
Click to collapse
Basically CWM
Flash partition zip, make sure its system 1> flash twrp
then try to flash Paranroid android or many other roms i get error in binary in TWRP similar error in CWM also.
only few roms work like Broken OS and ivans 5.1.1 rest all give same error
when i try to flash tk g apps on broken rom i get insufficient space error but the error doesnt come with broken g apps.
anyway ive given up no will bother with this again when M is officially out.

berz said:
Basically CWM
Flash partition zip, make sure its system 1> flash twrp
then try to flash Paranroid android or many other roms i get error in binary in TWRP similar error in CWM also.
only few roms work like Broken OS and ivans 5.1.1 rest all give same error
when i try to flash tk g apps on broken rom i get insufficient space error but the error doesnt come with broken g apps.
anyway ive given up no will bother with this again when M is officially out.
Click to expand...
Click to collapse
1. What CWM version did you use and where did you get it from?
2. What TWRP version did you use and where did you get it from?
Sent from my MI 4W using Tapatalk

LcsZhDrw said:
1. What CWM version did you use and where did you get it from?
2. What TWRP version did you use and where did you get it from?
Sent from my MI 4W using Tapatalk
Click to expand...
Click to collapse
i forgot but i started with r8 then flashed r11 version and latest version twrp avaialble for mi4.

I used this CWM to repartition:
http://en.miui.com/forum.php?mod=viewthread&tid=32222&highlight=cwm+6.0.5.0

Miui 7 developer Rom
Looking for the miui 7 officially rooted rom for mi4
Xiaomi site doesn't seem to have the developer rom zip anymore ...
Help pls.

aseems said:
Looking for the miui 7 officially rooted rom for mi4
Xiaomi site doesn't seem to have the developer rom zip anymore ...
Help pls.
Click to expand...
Click to collapse
just wait few days for the global rom

Michalko5896 said:
just wait few days for the global rom
Click to expand...
Click to collapse
Will it be rooted?

aseems said:
Will it be rooted?
Click to expand...
Click to collapse
yes, as long as you stick with developer builds

Related

[Q] flash system.img from recovery, please help me

When i put
flash_images system /sdcard/system.img
i have error 1 on TRWP recovery
sorry for my English :3
kingspeed said:
When i put
flash_images system /sdcard/system.img
i have error 1
sorry for my English :3
Click to expand...
Click to collapse
I tried several things and never succeded. Tried to make a flashable zip able to flash images, but wont work.
kingspeed said:
When i put
flash_images system /sdcard/system.img
i have error 1 on TRWP recovery
sorry for my English :3
Click to expand...
Click to collapse
You can't flash images from recovery, only zips. You need to use fastboot to flash a system image.
So there isn't any way
kingspeed said:
So there isn't any way
Click to expand...
Click to collapse
Actually, looking at your screenshots I might be wrong. I'm still on 2.8.0 and there is no option to flash images, only zips. But it looks like the version of TWRP you're running does have the option to flash images. I've never seen that before, you learn something new every day I guess. That being the case, I don't know why you would be getting that error. Are you sure you're trying to flash the correct image?
EDIT: I just checked out the TWRP thread, and according to the OP, you can only flash boot and recovery images, not system images. So I guess my original post still stands. If you want to flash a system image, you need to use fastboot. Otherwise, flash a ROM.
http://forum.xda-developers.com/showpost.php?p=47108907&postcount=1
What's the big deal? Why not just use fastboot?
Thank you sir
did you know if anyone modified system.img to .zip ?
just system file without data
for don't delete my app
and again sorry for my English
Fastboot flash system system.img is all you need
oh i didn't read the last one
unfortunately my computer breakdown last night and where i live in syria there isn't a lot of computers
kingspeed said:
oh i didn't read the last one
unfortunately my computer breakdown last night and where i live in syria there isn't a lot of computers
Click to expand...
Click to collapse
Are you unable to boot or something? Can you get a ROM onto your phone and flash that?
no i cann't flash any rom
and now i try to install Miui and flash it on MultiRom
kingspeed said:
no i cann't flash any rom
and now i try to install Miui and flash it on MultiRom
Click to expand...
Click to collapse
What do you mean you can't flash any ROM? Please try and be as clear as possible- if I don't understand what's going on, I can't be of much assistance.
What situation are you in? How did you get into your current situation?
So is your original system wiped? You can't boot into android anymore?
I'm so sorry sir
I have multirom manager , and by mistake I install Miui OS on the primary OS , after 10 seconds i stop it , so the primary KitKat system wiped.
Thanks to god I solved this problem by flash system.img from laptop and flash another recovery by (NRT toolkit ) than open multirom from the primary OS to reinstall last version of kernel and TWRP recovery
If you have the latest twrp you can flash img. If there is an error then the system.img must be corrupt (maybe bad download). Is your multirom up to date?
Sent from my Nexus 5 using XDA Premium App
wangdaning said:
If you have the latest twrp you can flash img. If there is an error then the system.img must be corrupt (maybe bad download). Is your multirom up to date?
Sent from my Nexus 5 using XDA Premium App
Click to expand...
Click to collapse
It was my understanding that you can flash any .img other than system.img. At least that's what it said in the OP of the TWRP thread when I read it the other day.
---------- Post added at 06:56 AM ---------- Previous post was at 06:54 AM ----------
kingspeed said:
I'm so sorry sir
I have multirom manager , and by mistake I install Miui OS on the primary OS , after 10 seconds i stop it , so the primary KitKat system wiped.
Thanks to god I solved this problem by flash system.img from laptop and flash another recovery by (NRT toolkit ) than open multirom from the primary OS to reinstall last version of kernel and TWRP recovery
Click to expand...
Click to collapse
So are you up and running then?
And FYI, stop using toolkits. You should have flashed recovery the same way you flashed system.img, from your laptop with fastboot. Toolkits can cause a lot of problems and if you rely solely on them, you'll never learn how to fix any problems that you may encounter.
Oh, never actually used it, just knew you could flash img files.
Sent from my Nexus 5 using XDA Premium App
Thank you all :* , now everything fine.
just how to install CM 12 on Multirom if was the primary kitkat
i try to install this ,than flash official CM12 but it stuck on logo :3

Unable to update to 12.1

So today I saw that the 12.1 update is downloaded and asking me to install it. But, when I do try installing it the screen is stuck at the Cyanogen Recovery.
The usual options in recovery screen are displayed, why isn't the OS updating?
FYI - My OPO is rooted and also has TWRP recovery installed. I also tried disabling the Update Cyanogen Recovery option but the same option.
Any assistance would be great
SagarRox said:
So today I saw that the 12.1 update is downloaded and asking me to install it. But, when I do try installing it the screen is stuck at the Cyanogen Recovery.
The usual options in recovery screen are displayed, why isn't the OS updating?
FYI - My OPO is rooted and also has TWRP recovery installed. I also tried disabling the Update Cyanogen Recovery option but the same option.
Any assistance would be great
Click to expand...
Click to collapse
You can't flash the OTA with TWRP recovery. You can either flash the stock recovery and then install the OTA, or you can download the full ROM zip and flash that with TWRP.
Heisenberg said:
You can't flash the OTA with TWRP recovery. You can either flash the stock recovery and then install the OTA, or you can download the full ROM zip and flash that with TWRP.
Click to expand...
Click to collapse
Heisen
Sorry, a little question (and sorry to the OP)
Ive try to install the ota manually (i was rooted with twrp) flashing back the cm recovery, but it doesnt work still.
So ive flash the twrp 2.8.6 (for the baseband not installing prolems) and downloaded the full rom file, flashed in twrp without any wipes... Its all ok now, should i have problems with this method?
The baseband is 241,is correct?
Thx for helping
L.
lollaz said:
Heisen
Sorry, a little question (and sorry to the OP)
Ive try to install the ota manually (i was rooted with twrp) flashing back the cm recovery, but it doesnt work still.
So ive flash the twrp 2.8.6 (for the baseband not installing prolems) and downloaded the full rom file, flashed in twrp without any wipes... Its all ok now, should i have problems with this method?
The baseband is 241,is correct?
Thx for helping
L.
Click to expand...
Click to collapse
You shouldn't have any issues.
Heisenberg said:
You shouldn't have any issues.
Click to expand...
Click to collapse
Hi,
I am facing the same issue while updating the official update. I tried updating using the Cyanogen recovery but it is giving a failed error: "Unable to open the zip file" something like this. i have downloaded the 305 Mb update again manually but of no use.
Please help on this.
TIA
Nav07 said:
Hi,
I am facing the same issue while updating the official update. I tried updating using the Cyanogen recovery but it is giving a failed error: "Unable to open the zip file" something like this. i have downloaded the 305 Mb update again manually but of no use.
Please help on this.
TIA
Click to expand...
Click to collapse
Are you currently on the build directly before this one?
Heisenberg said:
Are you currently on the build directly before this one?
Click to expand...
Click to collapse
Dear, i am frankly not a techie. I am using the stock (default) RAM only. Would be great if you can help on this
Nav07 said:
Dear, i am frankly not a techie. I am using the stock (default) RAM only. Would be great if you can help on this
Click to expand...
Click to collapse
You don't need to be a techie to know that the updates must be taken in order. Go to Settings>About Phone, take screenshots of the info there and post here so I can see please.
Heisenberg said:
You don't need to be a techie to know that the updates must be taken in order. Go to Settings>About Phone, take screenshots of the info there and post here so I can see please.
Click to expand...
Click to collapse
Currently the Cyanogen version is 12.0-YNG1TAS2I3, OS version is 5.0.2, Build number is LRX22G
Nav07 said:
Currently the Cyanogen version is 12.0-YNG1TAS2I3, OS version is 5.0.2, Build number is LRX22G
Click to expand...
Click to collapse
You're on the right version. The zip must be getting corrupt during the download or something.
Heisenberg said:
You're on the right version. The zip must be getting corrupt during the download or something.
Click to expand...
Click to collapse
I have manually downloaded the zip file again apart from the Official update but it is still not getting through
Can anything else be done on this?
Nav07 said:
I have manually downloaded the zip file again apart from the Official update but it is still not getting through
Can anything else be done on this?
Click to expand...
Click to collapse
Try downloading the full zip from here:
https://www.androidfilehost.com/?fid=24052804347802356
Flash that with recovery.

Touch not working in mi4i on custom roms.......

touch is not working in any custom rom......
plzzzz help....
thnx in advance...
only in custom rom? rollback to official rom then...
Account removal
Deleted
How to revert back to miui 6 stable?I have the same issue..I failed to do so with twrp recovery.plz help me
Sent from my Mi 4i using XDA Free mobile app
prabhuvignesh said:
How to revert back to miui 6 stable?I have the same issue..I failed to do so with twrp recovery.plz help me
Sent from my Mi 4i using XDA Free mobile app
Click to expand...
Click to collapse
download the fastboot rom from - http://en.miui.com/download-263.html
flash it via fastboot .
should i need to unroot the device?
should i unroot the device for fastboot recovery?
prabhuvignesh said:
should i unroot the device for fastboot recovery?
Click to expand...
Click to collapse
u want miui6 , right ?
download the file in the link i gave , download and flash it via MI pc suite - http://en.miui.com/thread-92720-1-1.html
Mi 4i custom rom issue
maykuj said:
touch is not working in any custom rom......
plzzzz help....
thnx in advance...
Click to expand...
Click to collapse
I am getting the same problem that custom roms are not responding on Mi 4i device after installation. However, Infinitive OS Custom Rom is working fine.
Also, you may rollback to original mi 4i rom. Some time you will see the msg busy device; then plz wait for some time. You will that rom will install successfully.
Touch Will work
maykuj said:
touch is not working in any custom rom......
plzzzz help....
thnx in advance...
Click to expand...
Click to collapse
Hi maykuj, even i had a same problem when i flashed a custom rom, after trial and errors.....solution is simple.
Download stock 6.6.1 rom from miui website. flash it then instal any custom rom. your touch will work..
[/COLOR]install any stable rom using twrp and do a complete wipe of system, dalvik, cashe and data and install any custom rom.. it will intall without any issues
tip: those who r facing problem in installtin stable stock using twrp... to go mount and unmount only system partition..
then go to intall and choose the stable version and do a install.. it will get install without problems..
let me know if it works for all.. it worked for me 3 times without any issues.
anuj0sharma said:
[/COLOR]install any stable rom using twrp and do a complete wipe of system, dalvik, cashe and data and install any custom rom.. it will intall without any issues
tip: those who r facing problem in installtin stable stock using twrp... to go mount and unmount only system partition..
then go to intall and choose the stable version and do a install.. it will get install without problems..
let me know if it works for all.. it worked for me 3 times without any issues.
Click to expand...
Click to collapse
i have tried this thing but itz not getting solve same problem touch not working.
.Cyrus.mhatre said:
i have tried this thing but itz not getting solve same problem touch not working.
Click to expand...
Click to collapse
Check if the hardware is like another mi4i not have that problem and if not so we have cases like the redmi 2 there are several that have different hardware

How to overcome error 7 in TWRP recovery

Hi everyone.....I am new to rooting world....I rooted my one plus one last week.......Once rooted I was in cm 13.1...Then I switched back to cm 12.0 that is lollipop 5.0.2 by flashing the zip file..From then on if I try to flash any other rom,TWRP recovery provides error 7(Not able to install that particular zip file)......So i watched Youtube videos and saw answers in xda forums like deleting the asserts and rezipping the rom....Even then I am getting the same error
I am currently using latest TWRP recovery....Please anyone provide the solution .......Thanks in advance
anamadheeya said:
Hi everyone.....I am new to rooting world....I rooted my one plus one last week.......Once rooted I was in cm 13.1...Then I switched back to cm 12.0 that is lollipop 5.0.2 by flashing the zip file..From then on if I try to flash any other rom,TWRP recovery provides error 7(Not able to install that particular zip file)......So i watched Youtube videos and saw answers in xda forums like deleting the asserts and rezipping the rom....Even then I am getting the same error
I am currently using latest TWRP recovery....Please anyone provide the solution .......Thanks in advance
Click to expand...
Click to collapse
You need to upgrade to Cos13.1.x(latest stock firmware) for flashing new roms.
Mr.Ak sir , I am not been able to flash cm 13 rom..When flashing that also it displays error7.....Is there any other alternative options...Please help me..,.only thing I am able to flash is cm 12.0....Apart from that no rom is flashing
Mr.Ak said:
You need to upgrade to Cos13.1.x(latest stock firmware) for flashing new roms.
Click to expand...
Click to collapse
Mr.Ak sir , I am not been able to flash cm 13 rom..When flashing that also it displays error7.....Is there any other alternative options...Please help me..,.only thing I am able to flash is cm 12.0....Apart from that no rom is flashing
anamadheeya said:
Mr.Ak sir , I am not been able to flash cm 13 rom..When flashing that also it displays error7.....Is there any other alternative options...Please help me..,.only thing I am able to flash is cm 12.0....Apart from that no rom is flashing
Click to expand...
Click to collapse
You'll have to flash stock Cos13.1x(not cm13) from fastboot mode(not TWRP).
anamadheeya said:
Hi everyone.....I am new to rooting world....I rooted my one plus one last week.......Once rooted I was in cm 13.1...Then I switched back to cm 12.0 that is lollipop 5.0.2 by flashing the zip file..From then on if I try to flash any other rom,TWRP recovery provides error 7(Not able to install that particular zip file)......So i watched Youtube videos and saw answers in xda forums like deleting the asserts and rezipping the rom....Even then I am getting the same error
I am currently using latest TWRP recovery....Please anyone provide the solution .......Thanks in advance
Click to expand...
Click to collapse
Which version of TWRP are you using?
psxda97 said:
Which version of TWRP are you using?
Click to expand...
Click to collapse
3.1.1-0
Mr.Ak said:
You'll have to flash stock Cos13.1x(not cm13) from fastboot mode(not TWRP).
Click to expand...
Click to collapse
Sir, is their any guide in XDA forum regarding flash of cos13.1x.????Sorry if I am troubling you
anamadheeya said:
3.1.1-0
Click to expand...
Click to collapse
https://dl.twrp.me/bacon/twrp-2.7.0.0-bacon.img.html
try with this version. Let me know how it goes
psxda97 said:
https://dl.twrp.me/bacon/twrp-2.7.0.0-bacon.img.html
try with this version. Let me know how it goes
Click to expand...
Click to collapse
Again same error
anamadheeya said:
Again same error
Click to expand...
Click to collapse
I'm Sorry. That is wrong version. Try 2.8.6. I guaranty it will work.
anamadheeya said:
Sir, is their any guide in XDA forum regarding flash of cos13.1x.????Sorry if I am troubling you
Click to expand...
Click to collapse
If it didn't work here is the link you're asking for.
Let me know whether flashing TWRP 2.8.6 solved the problem
psxda97 said:
I'm Sorry. That is wrong version. Try 2.8.6. I guaranty it will work.
If it didn't work here is the link you're asking for.
Let me know whether flashing TWRP 2.8.6 solved the problem
Click to expand...
Click to collapse
Sorry had been busy in work so was not able to reply.....Thx TWRP 2.8.6 solved the problem by just removing the assert in update script of the zip file...Thanks for ur valuable suggestion
.

Android Pie libra by @Kenga

https://androidfilehost.com/?fid=11410963190603852543
Here latest rom by @kenga
Give our support :highfive::good:
Damn those are great news. Thank you for keeping this device alive.
Hope I will get my screen replacement soon, so I can test this.
Sent from my Redmi Note 5 using Tapatalk
I wonder how to flash it:crying:
Just like "ordinary" flash custom rom or any new tips for flash this rom ??
rianawirawan said:
Just like "ordinary" flash custom rom or any new tips for flash this rom ??
Click to expand...
Click to collapse
Unfortunately, i failed flash this rom. ERROR 7 and when i was deleted "assert...", invalid zip happened
rianawirawan said:
Unfortunately, i failed flash this rom. ERROR 7 and when i was deleted "assert...", invalid zip happened
Click to expand...
Click to collapse
Still error 7
rianawirawan said:
Still error 7
Click to expand...
Click to collapse
upgrade twrp
celrau said:
upgrade twrp
Click to expand...
Click to collapse
Right now, i'm using 3.1.1 -1 btw
It's latest twrp ver from official
This ROM is running smoothly on my device guys :angel:
rianawirawan said:
Right now, i'm using 3.1.1 -1 btw
It's latest twrp ver from official
Click to expand...
Click to collapse
There is a 3.2.x around. If you don't want to bother go in the zip, /META-INF/com/google/android/ and delete the first lines (the ones starting with "assert") from updater-script, save and flash again.
celrau said:
There is a 3.2.x around. If you don't want to bother go in the zip, /META-INF/com/google/android/ and delete the first lines (the ones starting with "assert") from updater-script, save and flash again.
Click to expand...
Click to collapse
I did it, but still error 7
rianawirawan said:
I did it, but still error 7
Click to expand...
Click to collapse
Flash this file after you flash the ROM, and don't forget to flash the Gapps
cacafaruq said:
Flash this file after you flash the ROM, and don't forget to flash the Gapps
Click to expand...
Click to collapse
"Flash this file after flash the ROM" ?? U mean flash "this file" before flash the ROM, right ?
Because when i'm flashing the ROM, it said error 7.
Or I must update twrp using Vovan77's twrp ??
cacafaruq said:
Flash this file after you flash the ROM, and don't forget to flash the Gapps
Click to expand...
Click to collapse
On the contrary, forget about gapps. Why promote spyware when there's a lot of good open source software for all practical purposes? Unless there is a particular need for some google app because of job or something . F..k gapps. Besides, a lot of people complain about very good roms 'because they didn't know better and flashed gapps right away.
^ true
Finally, the one and only is update twrp from Vovan77's twrp. Thank you.
rianawirawan said:
Finally, the one and only is update twrp from Vovan77's twrp. Thank you.
Click to expand...
Click to collapse
This
rianawirawan said:
This
Click to expand...
Click to collapse
First day, this Pie is better than Oreo build. Thank you so much. Feels snappy and very good for daily driver.
How it's doing after a week of usage? Can you recommend it for 7.1 replacement?
Does it work with lollipop bootloader?

Categories

Resources