Flashing Lineage OS Error 7 - Xiaomi Mi 5 Questions & Answers

I'm trying to flash Lineage OS to my mi5, I'm very new to this so I don't know exactly what i've done wrong. I get error 7 when i try to flash using twrp. Do I need to update anything?

obg_ said:
I'm trying to flash Lineage OS to my mi5, I'm very new to this so I don't know exactly what i've done wrong. I get error 7 when i try to flash using twrp. Do I need to update anything?
Click to expand...
Click to collapse
You need to flash a MIUI Nougat firmware before flashing Lineage OS. You'll find all the links in Lineage OS thread if you read the instructions carefully.

Wow, fast reply. A lot of guides seem not to mention this. I'll let you know if it works.
Thanks
EDIT: All worked. For anyone who needs help, these are the links i used:
NOTE I REPLACE THE ASTERICK WITH A PERIOD '.' I CANT POST FULL LINKS AS IM TOO NEW
xiaomiadvices*com/download-xiaomi-mi-5-nougat-update-miui-8-2-global-stable-rom/
(I installed through adb sideloading instead)
Downloaded the rom off this page:
xiaomiadvices*com/download-miui-82-global-stable-rom/
Then i installed lineage os like normal as a zip file
Massive Thanks once again!!

obg_ said:
Wow, fast reply. A lot of guides seem not to mention this. I'll let you know if it works.
Thanks
EDIT: All worked. For anyone who needs help, these are the links i used:
NOTE I REPLACE THE ASTERICK WITH A PERIOD '.' I CANT POST FULL LINKS AS IM TOO NEW
xiaomiadvices*com/download-xiaomi-mi-5-nougat-update-miui-8-2-global-stable-rom/
(I installed through adb sideloading instead)
Downloaded the rom off this page:
xiaomiadvices*com/download-miui-82-global-stable-rom/
Then i installed lineage os like normal as a zip file
Massive Thanks once again!!
Click to expand...
Click to collapse
You don't need to flash whole rom. Flashing the firmware it's enough. You can find TWRP flashable firmwares here: https://forum.xda-developers.com/mi-5/development/tool-flashable-firmware-twrp-easy-t3474898

obg_ said:
I'm trying to flash Lineage OS to my mi5, I'm very new to this so I don't know exactly what i've done wrong. I get error 7 when i try to flash using twrp. Do I need to update anything?
Click to expand...
Click to collapse
twrp gives error 7 when it is unable to write to the system partition.
check in recovery if you have mounted the system as read-only.
twrp-->mount-->check box at the bottom.

Related

[Guide] How to Flash Encrypted ROMs on a Decrypted Device (Without Losing Data)

Most custom ROMs for the OnePlus 5 are now supporting encrypted devices only. However, some users choose to keep their device in a decrypted state for MultiROM support and for other reasons. If you follow the steps below, you can flash any encrypted ROM on your decrypted device (without losing data) and your device will remain decrypted! I found this information in one of the many threads I've read (I don't remember which one) and thought I'd post it here to help others and for easy reference. Enjoy!
Follow These Steps:
1. Boot into TWRP
2. Wipe caches, data, and system partitions
3. Flash encrypted ROM
4. Flash GApps
5. Flash Magisk
6. Flash no-verity-op5.zip (not created by me)
7. Reboot
8. Enjoy!
If you closely follow the instructions above, you can enjoy any ROM on your decrypted OnePlus 5 and have the best of both worlds! :highfive:
Note 1: If device gets stuck at OnePlus boot animation after following all of the steps above, hold the power button for 10 seconds to turn off device. Power the device back on and it will boot successfully into the ROM.
Note 2: Some ROMs are not compatible with MultiROM without the inclusion of additional commits by ROM developer.
After wipes, its Flash ROM.. Flash optional Kernel.. Flash Gapps.. Flash No-verity.. Flash optional root (magisk or SuperSU).. Flash optional Viper4Arise?
Is this confirmed working? Has anyone actually tried the process and confirmed that any data on the phone's internal storage is there?
Ph0enix_216 said:
Is this confirmed working? Has anyone actually tried the process and confirmed that any data on the phone's internal storage is there?
Click to expand...
Click to collapse
Tested it yesterday with aosip and all data are on internal storage. Flashed validus today without no-verity-op5.zip and it worked too. Didn't lose data on internal storage...
Gesendet von meinem ONEPLUS A5000 mit Tapatalk
Ph0enix_216 said:
Is this confirmed working? Has anyone actually tried the process and confirmed that any data on the phone's internal storage is there?
Click to expand...
Click to collapse
Yes, I have followed these steps to flash MANY encrypted ROMs on my decrypted device.
Confirmed to work successfully! :good:
Creeper36 said:
After wipes, its Flash ROM.. Flash optional Kernel.. Flash Gapps.. Flash No-verity.. Flash optional root (magisk or SuperSU).. Flash optional Viper4Arise?
Click to expand...
Click to collapse
I've found that flashing SuperSU (instead of Magisk) on encrypted ROMs often ends in a bootloop on my decrypted device. Flashing Magisk seems to be a requirement.
Not working for me. Tried with AICP release from 9/11. Wiped caches, system, data. Flashed rom. flashed gapps (tried stock/full/micro). Flashed magisk (also tried without). -> Bootloop
//edit
sorry i think i misunderstood the post. i thought i can flash decrypted roms on encrypted device xD is that possible too?
nico2195x said:
sorry i think i misunderstood the post. i thought i can flash decrypted roms on encrypted device xD is that possible too?
Click to expand...
Click to collapse
No, I believe your device must be decrypted to flash decrypted ROMs.
Thanks for this! Do you know who we should thank for the zip? If there's an original thread for it?
DunamisMaximus said:
Thanks for this! Do you know who we should thank for the zip? If there's an original thread for it?
Click to expand...
Click to collapse
You are very welcome! Unfortunately, I do not know who originally created the verity zip. It has been passed around on XDA by many people.
DunamisMaximus said:
Thanks for this! Do you know who we should thank for the zip? If there's an original thread for it?
Click to expand...
Click to collapse
sjamie said:
You are very welcome! Unfortunately, I do not know who originally created the verity zip. It has been passed around on XDA by many people.
Click to expand...
Click to collapse
The original zip was modified for making FBE optional by @snowwolf725. Click here to visit his original thread.
I have a quick question. I just unlocked the Bootloader on my Plus 5 and installed TWRP 3.1.1-1 and Magisk 14.0 on it. The firmware is 4.5.0 as I didn't let it update at all and did all this to the device upon first bootup. I did not decrypt.
I've tried installing latest RR release (final for N cheeseburger) and the install stops with errors. I tried a different rom in the same Android version (7.1.2) and get same results. MD5 checks out on both downloads.
Do I have to flash the latest OnePlus 5 update (full OTA 4.5.10) before flashing a 7.1.2 rom? And should I decrypt my device for easier flashing?
If no one answers, I completely understand and will search some more but this seems to be a cloudy subject that gets many different answers and I thought I would post it here. Thank you all in advance.
Sent from my Nexus 6 using XDA Premium HD app
shadowstep said:
The original zip was modified for making FBE optional by @snowwolf725. Click here to visit his original thread.
Click to expand...
Click to collapse
And there's a thread I started for using FDE.
It works with most ROMs...
https://forum.xda-developers.com/oneplus-5/development/op5-disk-encryption-enabler-op5-t3672477
glockman4519 said:
I have a quick question. I just unlocked the Bootloader on my Plus 5 and installed TWRP 3.1.1-1 and Magisk 14.0 on it. The firmware is 4.5.0 as I didn't let it update at all and did all this to the device upon first bootup. I did not decrypt.
I've tried installing latest RR release (final for N cheeseburger) and the install stops with errors. I tried a different rom in the same Android version (7.1.2) and get same results. MD5 checks out on both downloads.
Do I have to flash the latest OnePlus 5 update (full OTA 4.5.10) before flashing a 7.1.2 rom? And should I decrypt my device for easier flashing?
If no one answers, I completely understand and will search some more but this seems to be a cloudy subject that gets many different answers and I thought I would post it here. Thank you all in advance.
Click to expand...
Click to collapse
Yes.. U need to flash the latest firmware and then flash roms.. There's a thread for firmware.. Flash the whole zip would again give you stock recovery and you have to re do the fastboot stuff so makes no sense..
arjunarora said:
Yes.. U need to flash the latest firmware and then flash roms.. There's a thread for firmware.. Flash the whole zip would again give you stock recovery and you have to re do the fastboot stuff so makes no sense..
Click to expand...
Click to collapse
In addition to what is stated here, if you flash Magisk immediately after flashing the full firmware zip (no rebooting between steps), TWRP won't get replaced with the stock recovery. This is a great time saver!
Any method to get oxygen os as a secondary ROM with multirom?
dakotah2468 said:
Any method to get oxygen os as a secondary ROM with multirom?
Click to expand...
Click to collapse
Yes, I've read that is possible. No, I don't know how to do it. :laugh:
sjamie said:
Yes, I've read that is possible. No, I don't know how to do it. :laugh:
Click to expand...
Click to collapse
Darn, well thanks for the reply
I just wanted to thank you for this thread. All of the information you provided helped me immensely. I was struggling with this device and flashing roms at first but one I unencrypted it, with your guide, everything worked great. I was going to leave it encrypted for easier flashing since most all the roms for this device are encrypted only. But I was having more issues than ever. And many, of the posts in here have also answered quite a few questions I had. This should be a pinned tread.
Anyways thank you again. Your thread is a must read for anyone with an Opo5.
"Chance Favors the Prepared"
dakotah2468 said:
Any method to get oxygen os as a secondary ROM with multirom?
Click to expand...
Click to collapse
Have you tried flashing OxygenOS, the no-verity zip and Magisk?
glockman4519 said:
I just wanted to thank you for this thread. All of the information you provided helped me immensely. I was struggling with this device and flashing roms at first but one I unencrypted it, with your guide, everything worked great. I was going to leave it encrypted for easier flashing since most all the roms for this device are encrypted only. But I was having more issues than ever. And many, of the posts in here have also answered quite a few questions I had. This should be a pinned tread.
Anyways thank you again. Your thread is a must read for anyone with an Opo5.
"Chance Favors the Prepared"
Click to expand...
Click to collapse
Thanks for the feedback and I'm glad this thread could provide you the guidance you needed.

Rom : Lineage os 15.1 for nash

HELLO FRIENDS, I come to share the unofficial Rom Lineage Os 15.1 for our Moto Z2 Force Nash
developed by the great Erfanoabdi
Mod Edit: link removed
OP please PM me once things are fixed.
Everytime I try to install it, I get updater process ended with ERROR: 255. What am I doing wrong
Can not be flashed. Error 255
robdevil said:
Can not be flashed. Error 255
Click to expand...
Click to collapse
Does the error apply to the 3 builds he has?
desudecchi said:
Does the error apply to the 3 builds he has?
Click to expand...
Click to collapse
yes
I see the build was pulled. Did anyone have issues with mobile data not working?
robdevil said:
yes
Click to expand...
Click to collapse
I searched the forum,the error seems to be related with TWRP(32/64bit)
What about....
https://updater2.invisiblek.org/nash
davehasninjas said:
What about....
https://updater2.invisiblek.org/nash
Click to expand...
Click to collapse
I clicked it, but it doesn't open for me. Anyone else try it?
desudecchi said:
I clicked it, but it doesn't open for me. Anyone else try it?
Click to expand...
Click to collapse
I just got home from work and I'm getting the same error. Google cache can pull the site up, but I still can't download the file. Maybe too much traffic? Hopefully someone who downloaded it can post a mirror.
EDIT: It's downloading for me now.
EDIT 2: Downloaded it and uploaded to my Google Drive. Here's a link for anyone having trouble:
https://drive.google.com/uc?id=1qgcJXgnk3ExWXT3D9VBjPM3gNFP4hCb7&export=download
This file is working because the others give an error in the installation.
mhdepaula said:
This file is working because the others give an error in the installation.
Click to expand...
Click to collapse
No idea, haven't installed it myself, it's still pretty early on, I'm in no rush and am OK waiting for it to become more stable personally. Just trying to help those who wanted it.
update link
I can not install this with the same error !!
There are just boot.img and system.img in lineage.zip.
You cannot install it by twrp.
fastboot?
devilyuan said:
There are just boot.img and system.img in lineage.zip.
You cannot install it by twrp.
fastboot?
Click to expand...
Click to collapse
does our twrp not have the ability to flash .img files?
I would steer clear of this rom for now until we have a *fully* working TWRP. Currently flashing an A/B OTA will break things, not to mention you probably don't have firmware on your other slot, so you're risking potentially bricking your device.
Trust me, I'm the one who got Lineage running on this thing. Wait for a bit, there will be a thread with more information soonish.
Thread closed. OP please PM me once things (TWRP, workaround) are fixed.

Huawei P10 Softbricked/No OS

Hey community,
i googled a lot and searched a lot here, didnt help.
Basically i wiped everything using TWRP by accident... Now i dont have any OS on my P10... I can still go to fastboot mode, erecovery and normal recovery...
any ideas what to do? i already tried dloading the correct firmware, it didnt work.
BaumFX said:
Hey community,
i googled a lot and searched a lot here, didnt help.
Basically i wiped everything using TWRP by accident... Now i dont have any OS on my P10... I can still go to fastboot mode, erecovery and normal recovery...
any ideas what to do? i already tried dloading the correct firmware, it didnt work.
Click to expand...
Click to collapse
https://forum.xda-developers.com/p10/how-to/guide-manual-updgrade-to-update-oreo-t3758286
Did it help, what @glehel posted?
I want to know, because I want to provide this guide also for fixing problems like you have ... or had.
Use dload forced method with first before using scripts.
Just download the correct firmware for your device, if you know the firmware-version you had, use the exact one, because it was approved for installation:
http://pro-teammt.ru/firmware-database/?firmware_model
Extract the the update.zip and put the update.app into a folder called dload on your sdcard.
Start you phone while holding all 3 buttons, this will launch th dload process.
This way you maybe safe some time.
LwannaCM said:
Just download the correct firmware for your device, if you know the firmware-version you had,
Click to expand...
Click to collapse
Is there a way to retrieve the exact name of the installed stock firmware? For my VTR-L09C432 there are multiple versions listed (like 360, 365, etc). Also I am wondering what's the difference between FullOTA-MF / OTA-MF / FullOTA-MF-PF, etc.
tadeussenf said:
Is there a way to retrieve the exact name of the installed stock firmware? For my VTR-L09C432 there are multiple versions listed (like 360, 365, etc). Also I am wondering what's the difference between FullOTA-MF / OTA-MF / FullOTA-MF-PF, etc.
Click to expand...
Click to collapse
No, you can´t check your version, but if you choose an older firmware, you should be fine. Afterwards you can update to a newer version.
The only problem might be, if you already had oreo installed, then you should use it again for restore, because the partitionlayout changed from nougat to oreo.
All version named B1XX are Nougatfirmwares
All version named B3XX are Oreofirmwares.
Choose a FULLOTA for updates, the others are just incremental and won´t help you in your case.
To be exact you should use a FullOTA-MF-PV. The PV stands for public version and all other firmwares are just internal builds from huawei.
LwannaCM said:
Lot's of great information
Click to expand...
Click to collapse
Thanks alot, this was exactly the information I was looking for!
BaumFX said:
Hey community,
i googled a lot and searched a lot here, didnt help.
Basically i wiped everything using TWRP by accident... Now i dont have any OS on my P10... I can still go to fastboot mode, erecovery and normal recovery...
any ideas what to do? i already tried dloading the correct firmware, it didnt work.
Click to expand...
Click to collapse
If you don't want to go back to stock firmware, you also have the option of custom roms such as Lineage OS or one of the others in this forum.
If you go with stock firmware, I suggest you make a Nandroid back-up before you flash TWRP. You can easily do this by booting into twrp instead of flashing (eg: fastboot boot twrp.img). After creating and copying the back-up to your PC, you can proceed with flashing twrp and never have to worry about the softbricking again =).
BaumFX said:
Hey community,
i googled a lot and searched a lot here, didnt help.
Basically i wiped everything using TWRP by accident... Now i dont have any OS on my P10... I can still go to fastboot mode, erecovery and normal recovery...
any ideas what to do? i already tried dloading the correct firmware, it didnt work.
Click to expand...
Click to collapse
Good evening, try this: https://forum.xda-developers.com/mate-9/how-to/funky-huawei-erecovery-solution-100-t3620165, it really works, I rescue my P10 from a hard brick

Cant find .zip file in twrp

I have a huge problem right now, I cant find .zip file in twrp for evolution x rom that i wanted to install. I wiped the partitions, and the rom is nowhere to be found. I am a noob in this, but I followed the steps, I did transfer the rom to internal shared storage, did everything as i suppose, but I cant transfer the rom from my pc while im in twrp.
PLEASE HELP
Groove18 said:
I have a huge problem right now, I cant find .zip file in twrp for evolution x rom that i wanted to install. I wiped the partitions, and the rom is nowhere to be found. I am a noob in this, but I followed the steps, I did transfer the rom to internal shared storage, did everything as i suppose, but I cant transfer the rom from my pc while im in twrp.
PLEASE HELP
Click to expand...
Click to collapse
Which version of twrp are you using? Find latest version. You have to decrypt memory first. Search google or forum mi a2 how to.
mariosenta said:
Which version of twrp are you using? Find latest version. You have to decrypt memory first. Search google or forum mi a2 how to.
Click to expand...
Click to collapse
I found out what the problem was, I was using twrp 3.3.1 I believe, but I should have used 3.2.3 because I was coming directly from stock, and also there was an extra adb command to type, and after that everything was fine. Evo x 3.5 installed, so far extremely satisfied with the looks of this rom, performance and features.
Groove18 said:
I found out what the problem was, I was using twrp 3.3.1 I believe, but I should have used 3.2.3 because I was coming directly from stock, and also there was an extra adb command to type, and after that everything was fine. Evo x 3.5 installed, so far extremely satisfied with the looks of this rom, performance and features.
Click to expand...
Click to collapse
I'm using unofficial 3.3.1-5. Glad you managed to fix the problem. :highfive:

Troubles with custom rom

Guys, I decided to install custom firmware, but I met a bunch of problems.
I chose this recovery https://4pda.ru/pages/go/?u=https:/...4690/fsdownload/krdcaHlb9/TWRP_A30&e=94266802 and installed it through One, the recovery is loading, everything is fine. Then I decided to install Lineage OS 17.1 (https://w3bsit3-dns.com.ru/forum/index.php?showtopic=948701&view=findpost&p=90491345), BUT after a successful installation of the image it loads me into recovery again, and in the reboot section it says "no os installed ". At the moment, I can’t install any os - he writes that it is successful but eventually reboots into recovery. I will be glad to any help or advice.
dude same here , i tried flashing arrowOS and pixel EXperience but no OS installed shown ..i think its because TWRP doesn't support on android 10 cause on TWRP you can't change the option "mount system as read". this one is the first problem and there are so many else...
i tried many options, flashing new TWRP as well but RIP.
Yeah, i found it out too. Ive flashed stock through odin and this works fine. Now will search for the right recovery. Maybe somebody leave link here
I found temporary solution.https://4pda.ru/forum/dl/post/18912044/twrp_for_andr.10.tar
You should flash it in odin like usual twrp, then format data, reboot to recovery and flash magisk debug(https://4pda.ru/forum/dl/post/18911692/magisk-debug.zip) . Works fine.
And you must be registred to be allowed to download from there else you get an error
NegilisticBluesman said:
I found temporary solution.https://4pda.ru/forum/dl/post/18912044/twrp_for_andr.10.tar
You should flash it in odin like usual twrp, then format data, reboot to recovery and flash magisk debug(https://4pda.ru/forum/dl/post/18911692/magisk-debug.zip) . Works fine.
And you must be registred to be allowed to download from there else you get an error
Click to expand...
Click to collapse
dude first link is giving me errors....can you plz share an updated link, i too want to flash custom ROM
btw which custom ROM are u using, i heard pixel Experience and Lineage OS are some good ones.
luke martinez said:
dude first link is giving me errors....can you plz share an updated link, i too want to flash custom ROM
btw which custom ROM are u using, i heard pixel Experience and Lineage OS are some good ones.
Click to expand...
Click to collapse
https://4pda.ru/forum/index.php?showtopic=948701&view=findpost&p=94153866
Im using Lineage os 17.1, there are two bugs: mtp(but in twrp it works) and when u are using bluetooth headset incoming call's sound will go through speaker
NegilisticBluesman said:
https://4pda.ru/forum/index.php?showtopic=948701&view=findpost&p=94153866
Im using Lineage os 17.1, there are two bugs: mtp(but in twrp it works) and when u are using bluetooth headset incoming call's sound will go through speaker
Click to expand...
Click to collapse
hey man, its again giving me download error :crying::crying:can you give me another download link to TWRP for Andriod 10?? Thanks
btw system partition type for GSi rom - A or A/B ??:fingers-crossed:
You must be registred at this forum or u wont be allowed to download. A or A/B? I dont know about this.
NegilisticBluesman said:
You must be registred at this forum or u wont be allowed to download. A or A/B? I dont know about this.
Click to expand...
Click to collapse
sorry i don't know russian..can you please upload that TWRP to google drive or any other site
Hey bro help me by uploading twrp here.
Forum is completely russian and moreover i can't make account or download anything cause even CAPTCHA are in Russian language.
EDIT: IGNORE IT ,I MADE AN ACCOUNT SOMEHOW!!! THANKS FOR NOT REALLY HELPING ME FOR ASKING FOR SO LONG!:highfive:
luke martinez said:
Hey bro help me by uploading twrp here.
Forum is completely russian and moreover i can't make account or download anything cause even CAPTCHA are in Russian language.
EDIT: IGNORE IT ,I MADE AN ACCOUNT SOMEHOW!!! THANKS FOR NOT REALLY HELPING ME FOR ASKING FOR SO LONG!:highfive:
Click to expand...
Click to collapse
if u still need here is completly working twrp for samsung a30: https://drive.google.com/file/d/1fnXYqD_lyogDbjx9MnJ51cM2PmMoImc4/view?usp=sharing:highfive:

Categories

Resources