Redmi 4X: TWRP, LineageOS, Gapps (Cannot update ROM) (nightly) *error* - Xiaomi Redmi 4X Questions & Answers

Hi everyone,
I'm new here though but am a Xiaomi user from the beggining of Xiaomi into devices with Redmi Note 3G Enhanced.
Currently, I own a Redmi 4X and I would like your expert lights please. I've flashed the latest twrp from twrp.me for my santoni device. Then flashed the latest build from LineageOS Official source + Gapps before booting up for first time. Everything was working perfectly until I decided to flash the latest update of LineageOS as I've seen in my updater it was released. So, I downloaded it through the updater and tried to flash it...
I came up with this "Failed to unmount /system (device or resource busy)" after that re-booted to LineageOS and everything was messed up with Google Services & Apps etc. Then I went back to twrp recovery and tried to flash again the rom but I was still getting that message so I understood something am doing wrong. Also santoni has dm-verity enabled which I know something about but just an info. I really wanna stick with LineageOS on my Redmi 4X forever but I'm afraid to flash it again. I've flashed MIUI 10 Beta by fastboot but now I wanna go back to LineageOS forever (addicted).
My only problem is: After successfuly flashing LineageOS and Gapps, I cannot apply (flash) updates to update the ROM to the latest nightly build due to this error above.
Kind regards,
peryson

Try with different recovery. For example with this

Harukey said:
Try with different recovery. For example with this
Click to expand...
Click to collapse
Instead of trying an unofficial recovery, do I have an option to unmount system manually before flashing through Official TWRP?

peryson said:
Instead of trying an unofficial recovery, do I have an option to unmount system manually before flashing through Official TWRP?
Click to expand...
Click to collapse
You can download latest Lineage OS build and dirty flash it (without any wipes) (so you can unmout system parition). And I don't see any issue in using unoffical twrp.

I also have experienced same error once during upgrade "failed to unmount /system"
Eventually I wiped everything and did clean flash from scratch. This is really annoying issue and demonstrates that upgrade system is not 100% reliable for some reason.
I'm not sure however is it Lineage or twrp issue.

Related

lineage

I'd like to install lineageOS, on muiu 8 now, twrp and rooted. When i was on muiu 7 twrp said system was encrytped, now it says its succesfully decrypted in twrp with default password. Can i now just flash normally the lineageOS zipfile from twrp or do i need additional steps to install it ?
My TWRP has said "Successfully decrypted" since MIUI 8 (can't remember what it said in MIUI 7)
I flashed Lineage after wiping system and it worked fine for me. Perhaps I got lucky though?

Not able to install any Android 9.0 based ROM's

I dont know if this is the right place to post this issue,sorry if this violates any rules
Recently I've shifted to custom roms on my device.I've always wanted to use one of those 9.0 ROM's.I tried 2 flavours-Pixys and Havoc.Both based off 9.
I tried flashing it with TWRP 3.2.1-0,as soon as I installed and rebooted it shows me Decryption failed and proceeded to factory reset my device.I had to repair my phone's file system to EXT4 to correct it and install an 8.1 based rom
Since I thought it might have to do something with TWRP, I tried RedWolf Recovery and tried installing Pixys and Havoc only to return to the same "Decryption Failed" issue.
Is there something different that I am doing?Can anyone help me in this regard.
Also,Im not able to install Magisk, recovery shows me Error-1 Couldnt mount vendor partition.What's the solution to this?
Did you tried another recovery? Try Batik Recovery!
Anirudh15 said:
I dont know if this is the right place to post this issue,sorry if this violates any rules
Recently I've shifted to custom roms on my device.I've always wanted to use one of those 9.0 ROM's.I tried 2 flavours-Pixys and Havoc.Both based off 9.
I tried flashing it with TWRP 3.2.1-0,as soon as I installed and rebooted it shows me Decryption failed and proceeded to factory reset my device.I had to repair my phone's file system to EXT4 to correct it and install an 8.1 based rom
Since I thought it might have to do something with TWRP, I tried RedWolf Recovery and tried installing Pixys and Havoc only to return to the same "Decryption Failed" issue.
Is there something different that I am doing?Can anyone help me in this regard.
Also,Im not able to install Magisk, recovery shows me Error-1 Couldnt mount vendor partition.What's the solution to this?
Click to expand...
Click to collapse
Hey there, how about u try to install Pitchblack twrp the latest one and install Pixel experience pie riva, it can be used for rolex also because the developer make the rom to unified for both rolex and riva. Then install the magisk after that. I've been using pixel experience pie for a month and it is so far so good.
Amir_espie said:
Hey there, how about u try to install Pitchblack twrp the latest one and install Pixel experience pie riva, it can be used for rolex also because the developer make the rom to unified for both rolex and riva. Then install the magisk after that. I've been using pixel experience pie for a month and it is so far so good.
Click to expand...
Click to collapse
Sure,will give it a go
An update
I installed Batik recovery.Magisk could be flashed but Im still getting the decryption unsuccessful message when I install Pixys
Solved Magisk Error!
I've been using Pixys OS on my Redmi 4A and it works fine smoothly. I recommended to clean wipe before installing. Android Pie us amazing and I've installed stable version. Do backup before clean wipe.
For Magisk I recommended this: https://freaksterism.blogspot.com/2018/10/solved-cannot-mount-vendor-magisk.html?m=1
It worked for me. Also go through this step before any custom ROM. Do let me know the status
Anirudh15 said:
An update
I installed Batik recovery.Magisk could be flashed but Im still getting the decryption unsuccessful message when I install Pixys
Click to expand...
Click to collapse
to solve decryption unsuccesful message, format data (Wipe>Format Data) after installing the rom, make sure you backup your internal storage coz Format Data will also ERASE the internal storage. This how i got over the decryption unsuccessfull message. hope this helped.
You have two problems.
Anirudh15 said:
Also,Im not able to install Magisk, recovery shows me Error-1 Couldnt mount vendor partition.What's the solution to this?
Click to expand...
Click to collapse
You need to flash the twrp separated vendor version by my friend Offain https://androidfilehost.com/?fid=962187416754475993
The other problem with the decryption:
You must enter in the twrp press wipe and format data. Type yes and then reboot into twrp again. After that flash the rom and gapps and you will not have the decryption problem again
Anirudh15 said:
I dont know if this is the right place to post this issue,sorry if this violates any rules
Recently I've shifted to custom roms on my device.I've always wanted to use one of those 9.0 ROM's.I tried 2 flavours-Pixys and Havoc.Both based off 9.
I tried flashing it with TWRP 3.2.1-0,as soon as I installed and rebooted it shows me Decryption failed and proceeded to factory reset my device.I had to repair my phone's file system to EXT4 to correct it and install an 8.1 based rom
Since I thought it might have to do something with TWRP, I tried RedWolf Recovery and tried installing Pixys and Havoc only to return to the same "Decryption Failed" issue.
Is there something different that I am doing?Can anyone help me in this regard.
Also,Im not able to install Magisk, recovery shows me Error-1 Couldnt mount vendor partition.What's the solution to this?
Click to expand...
Click to collapse
I had the same problem. Its because your phone is encrypted. The only solution I found is to boot the device into fastboot and using command: [fastboot format userdata] on PC. This will wipe all data off your phone so do backup. It removes encryption and now you can install any custom rom.
Decrypt ur phone first then flash, use twrp vendor
athish said:
to solve decryption unsuccesful message, format data (Wipe>Format Data) after installing the rom, make sure you backup your internal storage coz Format Data will also ERASE the internal storage. This how i got over the decryption unsuccessfull message. hope this helped.
Click to expand...
Click to collapse
Format Data was the only thing that worked for me. First backup everything on your mass storage.

Flashing problem on Chinese version K20 Pro (raphael)

Hello there,
I'm using the Xiaomi.eu latest Beta rom ATM. I'm trying to flash other roms (like lineage OS 17.1 for example) but it seems to reboot to fastboot everytime. I've tried doing a clean flash, formatting data, dirty flashing. Nothing seems to help it boot into the new rom.
Clearly I'm doing something wrong. If I try flashing the recommended Chinese vendor firmware (stable version), I get an error 7..but my TWRP is up to date as recommended.
If anyone has any idea where I'm going wrong, that would help a lot.
Thanks
therightperson_630 said:
Hello there,
I'm using the Xiaomi.eu latest Beta rom ATM. I'm trying to flash other roms (like lineage OS 17.1 for example) but it seems to reboot to fastboot everytime. I've tried doing a clean flash, formatting data, dirty flashing. Nothing seems to help it boot into the new rom.
Clearly I'm doing something wrong. If I try flashing the recommended Chinese vendor firmware (stable version), I get an error 7..but my TWRP is up to date as recommended.
If anyone has any idea where I'm going wrong, that would help a lot.
Thanks
Click to expand...
Click to collapse
Don't know what your doing wrong, but this is my failsafe method should nothing else work.
Flash the latest Chinese 11.0.5 fastboot ROM. Make sure you don't lock the bootloader if using the Mi Flash Tool.
Boot into MIUI once to allow it to finalise the install, you don't need to do the initial phone setup once it boots into MIUI.
Boot into fastboot and install TWRP. I recommend the latest from mauronofrio which should be 3.1.1-32
Boot immediately into TWRP. I use the volume up button while powering up the phone.
Perform a factory reset in TWRP (using the swipe button), then format data (need to type 'yes' to confirm).
Reboot into TWRP using the TWRP boot menu, this ensures the newly formatted data partition is correctly mounted.
Copy over the ROM you want and GApps if needed, then flash.
Boot into your new ROM, everything should be OK. Then boot back into TWRP to install Magisk if you want root.
Yep that seems to have done the trick. At first I was getting frustrated because I thought I was downloading the right Chinese ROM, turns out I was downloading the recovery version instead of the fastboot one.
I think it wasn't working because I was on the beta channel. Switching over to the stable channel meant I had to go through a fastboot flash apparently. I've seen this before on my OP3.
Got lineage OS loaded, thanks for your help!

boot failed on galaxy m20

i tried to flash project sakura 5.1 with latest twrp which shows succeeded on terminal but it doesn't boot into system instead it booted into bootloader. i tried with older twrp and older versions of project sakura too, nothing worked. but the another rom called HariRom based on oneUI3.1 successfully flashed and booted normally to system. also i tried with another custom recovery called orangefox, which shows the boot cannot be located as error for all version of project sakura. can somebody help me with it?? i wish to install project sakura 5.1
ChapagainAB said:
i tried to flash project sakura 5.1 with latest twrp which shows succeeded on terminal but it doesn't boot into system instead it booted into bootloader. i tried with older twrp and older versions of project sakura too, nothing worked. but the another rom called HariRom based on oneUI3.1 successfully flashed and booted normally to system. also i tried with another custom recovery called orangefox, which shows the boot cannot be located as error for all version of project sakura. can somebody help me with it?? i wish to install project sakura 5.1
Click to expand...
Click to collapse
[EOL][ROM] [11] Project Sakura 5.1 [OFFICIAL] | VANILLA
does this rom have a working aod for samsung galaxy a40?
forum.xda-developers.com
Follow from here
Kenora_I said:
[EOL][ROM] [11] Project Sakura 5.1 [OFFICIAL] | VANILLA
does this rom have a working aod for samsung galaxy a40?
forum.xda-developers.com
Follow from here
Click to expand...
Click to collapse
i followed that in my first try which didnt worked and after that i tried other recoveries and versions of sakura . that didnt helped.
my phone is not rooted by the way
How to fix bootloops after coming from OneUI 3.x ports
1) Boot to TWRP
2) Download this vendor image
3) Install --> Flash image --> select image --> select vendor
4) Flash Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip from here
5) Flash the ROM.zip
i did installed vendor img but didnt find the option to wipe vender. and also i have tried installing dm-verity zip too. idk what that did but it was installed successfully and still didnt booted to system
Kenora_I said:
How to fix bootloops after coming from OneUI 3.x ports
1) Boot to TWRP
2) Wipe Vendor
3) Download this vendor image
4) Install --> Flash image --> select image --> select vendor
5) Flash Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip from here
6) Flash the ROM.zip
Click to expand...
Click to collapse
Actually no need i removed it.
So wiping vendor is in advanced wipe area in twrp. Dont reboot after it.
Then flash the image like i said.
Then flash the dm verity thing then flash the rom.zip
Kenora_I said:
So wiping vendor is in advanced wipe area in twrp. Dont reboot after it.
Then flash the image like i said.
Then flash the dm verity thing then flash the rom.zip
Click to expand...
Click to collapse
@Haridhayal i did installed it to my phone. version 5.2 actually. but its lagging, its overheating than stock rom while gaming. And mainly it crashes whenever i try to add security lock neither of the security option works . and i played call of duty mobile for some time and it quit automatically after some like 10 to 15 min. also the camera UI is terrible altho it captured well. and my phone did support fast charging on stock rom which now doesnot supported by project sakura. it takes almost 4-5 hours to get fully charged. what the hell happened with that?
ChapagainAB said:
@Haridhayal i did installed it to my phone. version 5.2 actually. but its lagging, its overheating than stock rom while gaming. And mainly it crashes whenever i try to add security lock neither of the security option works . and i played call of duty mobile for some time and it quit automatically after some like 10 to 15 min. also the camera UI is terrible altho it captured well. and my phone did support fast charging on stock rom which now doesnot supported by project sakura. it takes almost 4-5 hours to get fully charged. what the hell happened with that?
Click to expand...
Click to collapse
So it worked? It booted?
Yes, some features arent supported for some custom ROMs. Keep in mind custom ROMS won't perform like stock. Stock ROMS are made by people with the correct tools and 100% knowledge about the specific phone you are using sooooo....

Keeps booting in twrp even lineage os is installed

I installed lineage os 18.1 on my redmi 8, whenever I try to boot into the system it redirects me to twrp. What do I do?
ArthurNobody said:
I installed lineage os 18.1 on my redmi 8, whenever I try to boot into the system it redirects me to twrp. What do I do?
Click to expand...
Click to collapse
which los did you install? usually when it redirects to twrp something was skipped. did you format data? was the flashing successful?
fonzacus said:
which los did you install? usually when it redirects to twrp something was skipped. did you format data? was the flashing successful?
Click to expand...
Click to collapse
I have the same problem, i did format data and the flash was successful, also internal storage has just a bunch of folders with corrupted names after the flashing
aale01 said:
I have the same problem, i did format data and the flash was successful, also internal storage has just a bunch of folders with corrupted names after the flashing
Click to expand...
Click to collapse
id suggest not installing any a9 or a10 roms (aside from miui mods) as their trees are unstable, a11 has good support most of the time. los a11 was also very buggy from the start
[ROM][11.0][UNOFFICIAL][LineageOS 18.1] for Redmi 8(olive)
would like to share my device tree from scratch from 0 to hero for redmi 8 olive i left developing that phone for a while 2day sharing my device tree for lineage 18.1 along with the rom . rom based on latest miui vendor prebuilt Your warranty...
forum.xda-developers.com
there are plenty more stable alternatives now
encrypted (random names) are usually due to an unsupported
recovery on a12. in a normal boot they should work just fine
Xiaomi protect their device from custom rom or custom recovery and some time device go to hardbrick and stock on fastboot mode
So every time you want to install a custom rom after successful to install(dirty flash better) the rom first go beck to twrp menu and format system and dalvik cache then go to install>install image>select twrp img file>install
Then go to reboot>reboot to recovery
Then reboot to system
Hi,
I got the same problem with my samsung S9.
lineage allready worked fine. But then i decided to install the gapps and therefore i had to swipe the rom (according to a video). Whatever. So afterall i had nothing on the phone and had to install lineage again.
The first time then in odin i forgot to click away the check at "automatic recovery". I donĀ“t know if that was my mistake.
Anyway, i repeated Odin, twrp and the installing of lineage. And allways when i reboot it after installing, lineage shows its surface and i can type in my pin. 1 or two seconds. And then a window "reboot into fabrique settings" appears and its rebooting back into twrp again.
What could that be?

Categories

Resources