Custom ROMS don't work on my device, how do I restore MIUI? - Redmi Note 8 Pro Questions & Answers

Hello, unfortunately I've tried flashing Pixel Experience and LineageOS along with the vendor.img from the PE thread but they both don't boot up (infinite loading screen). Also the official TWRP doesn't work for me, but the unofficial one by wzsx150 (LR team) does work.
The problem now is that I cannot restore MIUI back. I've tried restoring all the backups I made prior flashing any vendor or custom ROM (except for the Data partition) but it does not boot, so I have downloaded the EU firmware from the official website and tried to flash it. These are the steps I follow:
-Wipe System, Vendor, Data, Internal Storage, Cache, Cache / Dalvik
-Flash MIUI zip
-Enter fastboot
-Re-apply anti-brick fix
-Flash vbmeta.img (taken from the official MIUI zip) with following command:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
And this is what I get:
When I first turn on the device, I get the Redmi logo for about 20 seconds, then it reboots automatically. At the startup, TWRP automatically boots instead of System.
How do I fix it?
One last thing: I have the EEU version, idk if that's the root of all the problems I had.

Vexx_zerozero said:
Hello, unfortunately I've tried flashing Pixel Experience and LineageOS along with the vendor.img from the PE thread but they both don't boot up (infinite loading screen). Also the official TWRP doesn't work for me, but the unofficial one by wzsx150 (LR team) does work.
The problem now is that I cannot restore MIUI back. I've tried restoring all the backups I made prior flashing any vendor or custom ROM (except for the Data partition) but it does not boot, so I have downloaded the EU firmware from the official website and tried to flash it. These are the steps I follow:
-Wipe System, Vendor, Data, Internal Storage, Cache, Cache / Dalvik
-Flash MIUI zip
-Enter fastboot
-Re-apply anti-brick fix
-Flash vbmeta.img (taken from the official MIUI zip) with following command:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
And this is what I get:
When I first turn on the device, I get the Redmi logo for about 20 seconds, then it reboots automatically. At the startup, TWRP automatically boots instead of System.
How do I fix it?
One last thing: I have the EEU version, idk if that's the root of all the problems I had.
Click to expand...
Click to collapse
This thread may help you:-
https://forum.xda-developers.com/redmi-note-8-pro/how-to/flashing-ota-fastboot-rom-tgz-xiaomi-t3993359

doop said:
This thread may help you:-
https://forum.xda-developers.com/redmi-note-8-pro/how-to/flashing-ota-fastboot-rom-tgz-xiaomi-t3993359
Click to expand...
Click to collapse
Well, I think I'm in condition n.1 "Can'boot to home screen but you can still enter recovery mode. Then download the firmware update.zip to install it via recovery mode.". As you can see, I've already tried flashing MIUI. It doesn't boot.

Vexx_zerozero said:
Well, I think I'm in condition n.1 "Can'boot to home screen but you can still enter recovery mode. Then download the firmware update.zip to install it via recovery mode.". As you can see, I've already tried flashing MIUI. It doesn't boot.
Click to expand...
Click to collapse
Seeing as you have already tried that I would move onto the flashing via fastboot or miflash method.

Hello. I'll close the thread here for now, as an user helped me to install Pixel Experience successfully. Thanks a lot for the help!
(for those who have problems with custom roms, in short: after flashing the zip file, go to the Advanced tab in the unofficial TWRP and choose "Close AVB2.0" and then "RM Encrypt". Apply both of these fixed with ALL the boxes checked for both options. Done!).

Related

OnePlus 3 bootloader defaulting to recovery

Hello,
I am having a problem where my phone is only, as far as I can tell, willing to boot into recovery. From the system, doing a normal reboot ends up in recovery, from powered off it goes into recovery, rebooting from recovery to system ends up back in the recovery, and the fastboot menu's "Continue" option goes reboots to recovery. The only way I can get into the system is to boot via fastboot -- i.e.,
Code:
fastboot boot boot.img
Where boot.img is the one packaged with the rom I am currently running.
This is not convenient because I need to connect it to a computer!
Is there some way to tell the bootloader to not boot recovery by default?
I have tried simply flashing the boot.img from above with:
Code:
fastboot flash boot boot.img
Which doesn't have any noticeable effect.
I suspect I broke something last night kicking around. I flashed the Open Beta 10 Modem & Firmware, then flashed the Open Beta 10 recovery, before changing my mind and installing TWRP 3-28 and Resurrection Remix v5.8. Somewhere in there, fastboot -w got run, but I don't think I did anything else potentially destructive.
Thanks for reading!
Hmm... Try install boot into recovery partition and recovery into boot? I know it's sound like a joke, but it will probably help you while u wait for a beter solution or just solution to repair that problem.
Anyway - maybe try flash old MM firmware?
A solution for me...
For anyone who rolls along and sees this in the future, my fix was:
0. Take a backup of sdcard AND data -- Step 2 will wipe data and sdcard without asking
1. Download the official recovery for the OnePlus 3
2. Use fastboot to boot (I didn't even have to flash) the official OnePlus 3 recovery AGAIN: WARNING: This step wipes all data without asking for confirmation!!!
I have now installed TWRP-3.0.4.0 and Resurrection Remix v5.8.1-20170202 and everything seems to be working just fine.
Thanks to @sylviohneto for finding this fix here: https://forum.xda-developers.com/oneplus-3/help/critical-bootloader-boot-recovery-fresh-t3530283
I had same problem so for that just take nandroid backup of data and while in turn copy it to pc and any other backup of data you need then format all the partions and reinstall rom and restore data... And if your lock screen have security then check Google you will have to delete a file called locscreen.db from file manager in twrp to access your phone

[Guide] Flashing Treble images and going back to EMUI

Index
Booting fastboot
-- Software way via Android Debug Bridge
Connect your phone to your computer and issue command:
Code:
adb reboot bootloader
-- Hardware way via bootloader function
Hold volume down button. Connect the USB-C cable.
Flashing images
Issue commands while on fastboot:
For recovery images (ex. eRecovery, TWRP):
Code:
fastboot flash recovery_ramdisk [I]recoveryimage.img[/I]
For system images (ex. EMUI 8, Pixel Experience):
Code:
fastboot flash system [I]systemimage.img[/I]
Booting recovery
-- Software way via Android Debug Bridge
Connect your phone to your computer and issue command:
Code:
adb reboot recovery_ramdisk
-- Hardware way via bootloader function
Hold volume up button while the phone is booting. Make sure cable isn't plugged in.
Backup EMUI data partition
This is important as without this, you won't be able to go back to EMUI.
Flash kilroystyx's TWRP via fastboot
Boot to recovery
Backup data partition (Backup > Tick Data, Swipe to backup)
Copy the backup to your computer after the backup finishes
(from the TWRP folder on the root of internal storage)
Installing a Treble based ROM
Flash stock recovery via fastboot
Wipe data and cache via eRecovery
Flash the ROM image to system via fastboot
Reboot to system
Going back to EMUI
• Via the backup you have done
Flash EMUI system
Flash stock recovery
Boot to recovery
Touch Wipe data/factory reset
Touch Wipe cache partition
Touch Reboot to system
Without letting it boot to system, boot to fastboot
Flash kilroystyx's TWRP
Reboot to system, let it boot completely
Reboot to recovery
Copy backed up EMUI data to internal storage
Start restoring
Reboot to system
• Via full stock firmware files
Copy FOTA and UDF to the root of your external SD card
FOTA: Full OTA (update.zip) / UDF: Data Update (update_data_full.zip)
Flash KingOfMezi's TWRP
Reboot to recovery
Wipe Dalvik, cache, system, data, internal storage
Flash FOTA and UDP respectively
Flash stock recovery via fastboot
Touch Wipe data/factory reset
Touch Wipe cache partition
Touch Reboot to system
If you have modified ramdisk or kernel flash the stock images of them as well.
You can download kilroystyx's TWRP, here.
You can find more information about going back to stock via firmware files and download KingOfMezi's TWRP, here.
After you boot up a custom system, you will not be able to boot kilroystyx's or KingOfMezi' TWRP.
If you need TWRP at that moment, use dil3mm4's Treble TWRP.
This TWRP cannot manage your data and files. You can use ADB, or use your external SD card to flash files.
Stock firmware files are here. All you need are system, recovery_ramdisk and ramdisk images.
Extract the UPDATE.APP from the ZIP file. You can extract the partition images by Huawei Update Extractor.
If you have any other questions, feel free to join our group. You can ask anything without hesitation.
If i follow your guideline, when i revert back to EMUI, TWRP cannot mount system.
It's weird cause i did flash a lot of treble roms and went back to stock several times before but not with your method.
Every time i go back to stock i got a different problem to troubleshoot due to encryption i think.
The best way i found:
Going back to EMUI
Wipe data and cache via stock recovery
Flash stock system image via fast boot
Let the system boot to the setup wizard
Flash Pretoriano80's TWRP via fastboot
Restore the backup
Wipe Dalvik and Cache
Letzen said:
You can download Pretoriano80's TWRP image here.
After you boot up a custom system, you will not be able to boot Pretoriano80's propertiary TWRP.
If you need TWRP at that moment, use dil3mm4's Treble TWRP.
This TWRP cannot manage your data and files. Use your external SD card to flash files.
Stock firmware files are here. All you need are system, recovery_ramdisk and ramdisk images.
Extract the UPDATE.APP from the ZIP file. You can extract the partition images by Huawei Update Extractor.
If you have any other questions, feel free to join our group. You can ask anything without hesitation.
Click to expand...
Click to collapse
which firmware is for ane-lx3?
i can't go back to stock recovery.
I'm using aosp treble images, i've an ANE-LX1
Someone can help me?
---------- Post added at 11:42 AM ---------- Previous post was at 11:40 AM ----------
i can't go back to stock recovery.
I'm using aosp treble images, i've an ANE-LX1
Someone can help me?
---------- Post added at 11:43 AM ---------- Previous post was at 11:42 AM ----------
I've an ANE-LX1 and i'm using aosp treble image.
I can't go back to stock emui, can someone help me?
U need to flash a stock system.img
Then flash the stock recovery
mchtt said:
U need to flash a stock system.img
Then flash the stock recovery
Click to expand...
Click to collapse
from where can we get stock system image.img and the stock recovery?
fbh59 said:
from where can we get stock system image.img and the stock recovery?
Click to expand...
Click to collapse
Find the complete firmware of your device and download the update.zip.
both are extracted from UPDATE.APP that is inside the update.zip
Unzip UPDATE.APP from the .zip file, then with the "Huawei Update Extractor" open the UPDATE.APP file and the files you need should appear and you're done, you can extract them
Is there a reason, why this guide only mentions
fastboot flash system systemimage.img
Click to expand...
Click to collapse
while the "official" one (https://www.xda-developers.com/flash-generic-system-image-project-treble-device/) mentions
fastboot -u flash system name_of_system.img
Click to expand...
Click to collapse
and
fastboot erase system
Click to expand...
Click to collapse
(before)
?
Cause you need to full wipe after a different system flash ?
I suggest:
- flashing system.img
- flash stock recovery
- full wipe
must unlock bootloader or no please reply thankx
i flash download Huawei P20 Lite-ANE-LX1 8.0.0.144(C432).zip
extracting and flash fastboot mode YES
Yes you have to unlock your bootloader.
mchtt said:
Yes you have to unlock your bootloader.
Click to expand...
Click to collapse
I cant unlock bootloader dc unlocker is error 375
How unlocking bootloader please reply bro
Hi, I have a couple of questions.
Firstly, why can't you flash images from TWRP? On the OpenKirin website it says they don't support it at all. Is it TWRP's fault or Huawei's? On my P9 lite I had a while back it worked perfectly.
Secondly, I would like to know what the difference is between the TWRP versions. Is there no support for backups on KingofMezi's one?
Thanks!

Are these steps correct to flash custom rom in 2020?

-use miunlock to unlock bootloader
-put phone on fastboot mode
-type 'fastboot flash antirbpass dummy.img'
-type 'fastboot flash recovery twrp-3.3.1-0-whyred.img'
-type 'fastboot reboot'
-reboot to recovery using phone
-copy gapps & custom rom to phone
-wipe system, data, dalvik, cache
-flash rom
-flash gapps
-reboot
I am currently on MIUI Global 9.5.19.0 with locked bootloader.
Is this method correct? I dont know which guide is outdated right now and which is not. Sorry if this is asked too many times.
Yes this is correct but i want to make some changes in your guide
1. Use orange fox recovery as it is better than twrp and it won't give u any error which u may encounter using twrp.
2. U can use fastboot boot *recovery* to push recovery file and flash its zip after entering recovery (it doesn't need any kind of dummy file flash)
3. Wiping vendor is also there
Thank you
oh ok so basically these are the edited steps to follow now:
-use miunlock to unlock bootloader
-put phone on fastboot mode
-boot twrp using 'fastboot boot XYZ.img'
-flash orange fox zip from twrp
-reboot to orange fox recovery from twrp
-wipe system, data, dalvik, cache, vendor
-flash latest firmware
-flash custom rom
-flash gapps
-flash magisk
-reboot
correct?
thanks a lot btw!
? correct and u can use 9.4.25 firmware as it is best (atleast for me)
Should I follow the same procedure if my phone is on 11.0.3.0?
scarednewbie said:
Should I follow the same procedure if my phone is on 11.0.3.0?
Click to expand...
Click to collapse
Now most of the customs support the new pie firmware.
1. Unlock bootloader.
2. Reboot to bootloader
3. Boot to orangefox recovery using
fastboot boot recoveryname.img
4. Copy the orangefoxrecovery.img(extract the orangefox zip) to device storage using the booted orangefox in step 3.
5. Flash orangefox permanently from the copied img file using the booted recovery.
4. If you are planning to use miui don't reboot without flashing magisk. It may reset the recovery to default miui recovery.
6. Enjoy flashing custom roms after wiping(not formating) system, data, cache, vendor etc. No need to format data if you need file ssystem encryption. Formating data from recovery will remove encryption.
niyas90 said:
Now most of the customs support the new pie firmware.
1. Unlock bootloader.
2. Reboot to bootloader
3. Boot to orangefox recovery using
fastboot boot recoveryname.img
4. Copy the orangefoxrecovery.img(extract the orangefox zip) to device storage using the booted orangefox in step 3.
5. Flash orangefox permanently from the copied img file using the booted recovery.
4. If you are planning to use miui don't reboot without flashing magisk. It may reset the recovery to default miui recovery.
6. Enjoy flashing custom roms after wiping(not formating) system, data, cache, vendor etc. No need to format data if you need file ssystem encryption. Formating data from recovery will remove encryption.
Click to expand...
Click to collapse
Orange fox recovery has aggressive stock recovery deactivation so magisk is not necessary

Question Cannot flash TWRP from Fastboot, TWRP reboot shows Slot A/B, dont know what to do

Ive already flashed a few phones, but this is the first time that Ive got CMD error "FAILED (remote: (recovery_a) No such partition)". So I booted twrp.img, falshed ArrowOS and TWRP from within TWRP and it said something about Slot A and B, which I dont understand ... some guide also said to Format Data, which I did, and then I just could boot into TWRP in Slot A, and no OS on Slot B, which rebooted me into Slot A. I couldnt find any info about this and I dont know what to do. Anybody knows how to properly flash TWRP and custom ROMs please ?
Start fresh by flashing stock MIUI rom through fastboot and proceed from there
1 Boot once into MIUI and reboot into fastboot
2 fastboot boot twrp.img (from platform tools folder)
3 Flash custom rom like ArrowsOS with inject twrp option checked
4 Reboot recovery
5 Format Data by typing "yes"
6 Reboot to system
7 Done
Follow the TWRP install instructions by fastboot boot TWRP.img
advanced, install TWRP
It should then reboot and TWRP will be installed
Then proceed as above by flashing a ROM e.g ArrowOS with TWRP inject.
Then reboot TWRP and wipe data
Use "fastboot boot TWRP.img" to temporarily boot TWRP.
You can install TWRP by using "Install to Ramdisk" inside TWRP and selecting TWRP.img
Cvenda said:
Ive already flashed a few phones, but this is the first time that Ive got CMD error "FAILED (remote: (recovery_a) No such partition)". So I booted twrp.img, falshed ArrowOS and TWRP from within TWRP and it said something about Slot A and B, which I dont understand ... some guide also said to Format Data, which I did, and then I just could boot into TWRP in Slot A, and no OS on Slot B, which rebooted me into Slot A. I couldnt find any info about this and I dont know what to do. Anybody knows how to properly flash TWRP and custom ROMs please ?
Click to expand...
Click to collapse
Did you manage to fix it? I got into the same problem, I could only fix it downloading the most updated version of adb/fastboot. I don't remember where I downloaded it, but it was what solved this problem for me.
pedrowood said:
Did you manage to fix it? I got into the same problem, I could only fix it downloading the most updated version of adb/fastboot. I don't remember where I downloaded it, but it was what solved this problem for me.
Click to expand...
Click to collapse
well Iam still confused about that Slot A/B thing, but since Ive probably bricked my phone, I flashed the fastboot ROM through MiFlasher and I havent tried flashing TWRP or custom ROM since, there are some things I really like about MIUI so Iam gonna see which ROM Iam gonna choose in the future
Cvenda said:
well Iam still confused about that Slot A/B thing, but since Ive probably bricked my phone, I flashed the fastboot ROM through MiFlasher and I havent tried flashing TWRP or custom ROM since, there are some things I really like about MIUI so Iam gonna see which ROM Iam gonna choose in the future
Click to expand...
Click to collapse
Slot A and B refer to Project Treble, where there are 2 separate partitions. 1 for OEM like Samsung and other for core Android OS. That way Google can update the OS partition with security updates without having to wait for Samsung to implement those security update into their version of Android, as was the case before Galaxy S9. Needless to say, this way security updates get pushed out way faster, because there is no need to wait an entire year (I'm looking at you Samsung) for OEM to finally implement it. Hope this clears things up for you.
Milan-XDA said:
Slot A and B refer to Project Treble, where there are 2 separate partitions. 1 for OEM like Samsung and other for core Android OS. That way Google can update the OS partition with security updates without having to wait for Samsung to implement those security update into their version of Android, as was the case before Galaxy S9. Needless to say, this way security updates get pushed out way faster, because there is no need to wait an entire year (I'm looking at you Samsung) for OEM to finally implement it. Hope this clears things up for you.
Click to expand...
Click to collapse
reason for slots
Robert314 said:
Follow the TWRP install instructions by fastboot boot TWRP.img
advanced, install TWRP
It should then reboot and TWRP will be installed
Then proceed as above by flashing a ROM e.g ArrowOS with TWRP inject.
Then reboot TWRP and wipe data
Click to expand...
Click to collapse
there is a slight problem with this ... I cannot upload any file to the phone, because I have wiped Data, so there is no folder that I can access from the PC, so I can only sideload .zip files, and most of the .zip files just doesnt work for some reason, only ArrowOS, but not the PixelExtended, nor CrDroid ... I cannot even sideload TWRP.img to install it into ramdisk
EDIT: after sideloading ArrowOS and booting TWRP using "fastboot boot twrp.img", I can access internal storage, so I uploaded twrp.img into /sdcard/Download folder, installed it into ramdisk, rebooted to Recovery and now successfully flashing CrDroid ROM that I uploaded to /sdcard/Download
Cvenda said:
there is a slight problem with this ... I cannot upload any file to the phone, because I have wiped Data, so there is no folder that I can access from the PC, so I can only sideload .zip files, and most of the .zip files just doesnt work for some reason, only ArrowOS, but not the PixelExtended, nor CrDroid ... I cannot even sideload TWRP.img to install it into ramdisk
Click to expand...
Click to collapse
You can adb transfer files in TWRP. You could also use a USB stick connected via OTG cable
Robert314 said:
You can adb transfer files in TWRP. You could also use a USB stick connected via OTG cable
Click to expand...
Click to collapse
its behaving so randomly ... I often get error kInstallDeviceOpenError, even tho I successfully installed that ROM at least one time ... I dont know which slot (A/B) to use and when ... now I have ArrowOS in slot A and CrDroid ins lot B, and I cannot flash anything from booted TWRP.img ... Iam gonna try to install TWRP into ramdisk again from USB OTG
Cvenda said:
its behaving so randomly ... I often get error kInstallDeviceOpenError, even tho I successfully installed that ROM at least one time ... I dont know which slot (A/B) to use and when ... now I have ArrowOS in slot A and CrDroid ins lot B, and I cannot flash anything from booted TWRP.img ... Iam gonna try to install TWRP into ramdisk again from USB OTG
Click to expand...
Click to collapse
In order to wipe the super partition (both A/B and data) flash Xiaomi.eu and then wipe data
Robert314 said:
In order to wipe the super partition (both A/B and data) flash Xiaomi.eu and then wipe data
Click to expand...
Click to collapse
how exactly should I proceed ? flash fastboot stock ROM with MiFlasher, boot into bootloader, boot twrp.img, wipe data, and then what ? which slot do I choose ? should I install TWRP into ramdisk, reboot into recovery and then flash custom ROM ?
Cvenda said:
how exactly should I proceed ? flash fastboot stock ROM with MiFlasher, boot into bootloader, boot twrp.img, wipe data, and then what ? which slot do I choose ? should I install TWRP into ramdisk, reboot into recovery and then flash custom ROM ?
Click to expand...
Click to collapse
ROM: xiaomifirmwareupdater.com/archive/miui/alioth/
Mi Flash: xiaomiflashtool.com
ADB & Fastboot: developer.android.com/studio/releases/platform-tools
TWRP: https://forum.xda-developers.com/f/xiaomi-poco-f3-xiaomi-mi-11x-redmi-k40.12161/?prefix_id=33
Clean Install of Xiaomi.eu ROM:
Flash Stock ROM with Mi Flash
Boot System once (to create /data)
Boot TWRP from Nebrassy or @Vasishoth
Flash Xiaomi.eu ROM
Format Data & Dalvik Cache
dreamytom said:
ROM: xiaomifirmwareupdater.com/archive/miui/alioth/
Mi Flash: xiaomiflashtool.com
ADB & Fastboot: developer.android.com/studio/releases/platform-tools
TWRP: https://forum.xda-developers.com/f/xiaomi-poco-f3-xiaomi-mi-11x-redmi-k40.12161/?prefix_id=33
Clean Install of Xiaomi.eu ROM:
Flash Stock ROM with Mi Flash
Boot System once (to create /data)
Boot TWRP from Nebrassy or @Vasishoth
Flash Xiaomi.eu ROM
Format Data & Dalvik Cache
Click to expand...
Click to collapse
in case of flashing custom ROM, are the steps same ? just instead of Xiaomi.eu ROM I flash PE, or CrDroid ? and should I format data and dalvik also or wipe data (that option where I need to type YES) ? Ive found official guide for flashing CrDroid, but Iam stuck st booting animation for 30 minutes
Cvenda said:
in case of flashing custom ROM, are the steps same ? just instead of Xiaomi.eu ROM I flash PE, or CrDroid ? and should I format data and dalvik also or wipe data (that option where I need to type YES) ? Ive found official guide for flashing CrDroid, but Iam stuck st booting animation for 30 minutes
Click to expand...
Click to collapse
Go into TWRP and press wipe then format data (type yes).
regedit12345 said:
Go into TWRP and press wipe then format data (type yes).
Click to expand...
Click to collapse
I have stock rom in slot A (bootable and working) and custom rom in slot B (stuck at booting animation), and I should format data while being in slot A right ?
Cvenda said:
I have stock rom in slot A (bootable and working) and custom rom in slot B (stuck at booting animation), and I should format data while being in slot A right ?
Click to expand...
Click to collapse
Doesn't matter. Just select format data > yes > reboot to system
regedit12345 said:
Doesn't matter. Just select format data > yes > reboot to system
Click to expand...
Click to collapse
sooo what seemes to work for me now is, that I formated data, then flashed PE ROM from OTG and booted into it without any problems

Question [HELP] What did I wrong? Flashing TWRP + ROM + GApps + Magisk

I would be very thankfull, if you could help me with my problem.
After unlocking my bootloader successfully, I re-enabled USB Debugging in MIUI and booted into fastboot mode.
From there I booted the latest "twrp-3.7.0_12-0-munch.img"
1. Which is the correct way to install TWRP permanently (or after an TWRP update)?
https://twrp.me/xiaomi/xiaomipocof4.html
"Flash Current TWRP" or "Install Recovery Ramdisk"?
[Edit] Flash Current TWRP
To remove encryption it is necesarry to "Format Data" before? or after? ROM flash. When I do that, all TWRP settings are gone (language, vibration off, 24h clock). Are these settings not stored permanent?
[Edit] after flashing rom.zip
2. When I want to flash ROM + GApps, do I need to reboot the recovery for switching partitions?
I flashed "Spark-13.1-Official-munch-20221025.zip" and "NikGapps-core-arm64-13-20220908-signed.zip". I can boot SparkOS, but there are no Gapps installed. The flashing process was skipped.
Thank's for your help!
11insomnium said:
I would be very thankfull, if you could help me with my problem.
After unlocking my bootloader successfully, I re-enabled USB Debugging in MIUI and booted into fastboot mode.
From there I booted the latest "twrp-3.7.0_12-0-munch.img"
1. Which is the correct way to install TWRP permanently (or after an TWRP update)?
POCO F4 / Redmi k40s
Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...
twrp.me
"Flash Current TWRP" or "Install Recovery Ramdisk"?
To remove encryption it is necesarry to "Format Data" before? or after? ROM flash. When I do that, all TWRP settings are gone (language, vibration off, 24h clock). Are these settings not stored permanent?
2. When I want to flash ROM + GApps, do I need to reboot the recovery for switching partitions?
I flashed "Spark-13.1-Official-munch-20221025.zip" and "NikGapps-core-arm64-13-20220908-signed.zip". I can boot SparkOS, but there are no Gapps installed. The flashing process was skipped - you can see that in the photos added.
3. In TWRP "Backup" there is no system partition (>photo). I'm not sure, if I accidentally wiped it. And in "Mount" the system isn't checked. Is that normal?
I can boot to fastboot, recovery and system. Please tell me right steps to flash/wipe/format without errors.
I added some TWRP logs.
Thank's for your help!
Click to expand...
Click to collapse
1. after fastbooting TWRP use Flash Current TWRP. No format data.
2. SparkOS needs global firmware to be flashed first, then reboot to recovery, then flash ROM, then format data.
There is a version with Gapps already included, working fine.
@UniNick
1. Flash Current TWRP is the prefered Installation Method from official site. Do I need to reflash TWRP after each ROM flash to survive? When formating data after ROM flash, the TWRP setting are also deleted (no more TWRP folder in internal storage).
2. My Poco F4 was shipped with MIUI Global 13.0.3.0 (SLMEUXM). So I downloaded and flashed Europe V13.0.7.0.SLMEUXM from https://xiaomifirmwareupdater.com/firmware/munch/
Baseband version is now higher.
I know there is a Gapps Version of SparkOS, but I don't know which Google apps are included and I just need a minimum of the package. Therefore I asked how to flash Gapps after ROM.zip, that both are on the same A/B partition.
I already had to reset/flash the "V13.0.5.0.SLMMIXM_20220815.0000.00_12.0_global" with MI Flash tool, because I had no access to Internal Storage with my PC to copy files on Poco F4.
11insomnium said:
@UniNick
1. Flash Current TWRP is the prefered Installation Method from official site. Do I need to reflash TWRP after each ROM flash to survive? When formating data after ROM flash, the TWRP setting are also deleted (no more TWRP folder in internal storage).
2. My Poco F4 was shipped with MIUI Global 13.0.3.0 (SLMEUXM). So I downloaded and flashed Europe V13.0.7.0.SLMEUXM from https://xiaomifirmwareupdater.com/firmware/munch/
Baseband version is now higher.
I know there is a Gapps Version of SparkOS, but I don't know which Google apps are included and I just need a minimum of the package. Therefore I asked how to flash Gapps after ROM.zip, that both are on the same A/B partition.
I already had to reset/flash the "V13.0.5.0.SLMMIXM_20220815.0000.00_12.0_global" with MI Flash tool, because I had no access to Internal Storage with my PC to copy files on Poco F4.
Click to expand...
Click to collapse
1. yes because most ROMs now bring their own recovery
2. Spark includes like a basic Gapps package
UniNick said:
1. yes because most ROMs now bring their own recovery
2. Spark includes like a basic Gapps package
Click to expand...
Click to collapse
I will try it again tomorrow. Thanks!
After a lot of research I still have some questions. Many users have trouble understanding it when the installation instructions do not list all the steps.
I have read these flashing instruction on the XDA NikGApps page:
Flashing Instructions for A/B devices (Clean Flash is recommended)
Flash Rom in Slot A, Flash twrp, reboot to recovery
Flash Rom in Slot B, Flash twrp, reboot to recovery
Flash NikGapps
Flash Debloater (Optional)
Reboot
So I thought, that this would be the steps:
### First Install / Clean Flash ###
- fastboot boot TWRP image
- in TWRP select "Flash Current TWRP" under "Advanced"
- flash firmware
- reboot recovery (is this reboot necessary before flashing ROM ??)
- wipe > factory reset (recommended or not ??)
- flash ROM (current Slot A > flashing to inactive slot B)
- flash twrp.img in boot partition + (check the box "Flash to both slots" ??)
- go to "Reboot" and change slot
- flash ROM (current Slot B > flashing to inactive slot A)
- flash twrp.img in boot partition + (check the box "Flash to both slots" ??)
???
(optional for GApps)
- flash GApps
Error: Could not mount /system
- format data
- flash twrp.img (again necessary ??) + (check the box "Flash to both slots" ??)
- boot to system + install Magisk.apk
- in Magisk: patch boot.img
- reboot recovery
- flash magisk_patched.img in boot partition + (check the box "Flash to both slots" ??)
- reboot to system
11insomnium said:
After a lot of research I still have some questions. Many users have trouble understanding it when the installation instructions do not list all the steps.
I have read these flashing instruction on the XDA NikGApps page:
Flashing Instructions for A/B devices (Clean Flash is recommended)
Flash Rom in Slot A, Flash twrp, reboot to recovery
Flash Rom in Slot B, Flash twrp, reboot to recovery
Flash NikGapps
Flash Debloater (Optional)
Reboot
So I thought, that this would be the steps:
### First Install / Clean Flash ###
- fastboot boot TWRP image
- in TWRP select "Flash Current TWRP" under "Advanced"
- flash firmware
- reboot recovery (is this reboot necessary before flashing ROM ??)
- wipe > factory reset (recommended or not ??)
- flash ROM (current Slot A > flashing to inactive slot B)
- flash twrp.img in boot partition + (check the box "Flash to both slots" ??)
- go to "Reboot" and change slot
- flash ROM (current Slot B > flashing to inactive slot A)
- flash twrp.img in boot partition + (check the box "Flash to both slots" ??)
???
(optional for GApps)
- flash GApps
Error: Could not mount /system
- format data
- flash twrp.img (again necessary ??) + (check the box "Flash to both slots" ??)
- boot to system + install Magisk.apk
- in Magisk: patch boot.img
- reboot recovery
- flash magisk_patched.img in boot partition + (check the box "Flash to both slots" ??)
- reboot to system
Click to expand...
Click to collapse
Little bit complex.
Try this guide:
Reboot to recovery (twrp or ofox), I prefer boot recovery by fastboot, command is `fastboot boot rec.img` (You can download from orangefox official website)
Flash firmware (Optional)
Flash rom
Flash gapps (if flashed vanilla build)
Format data
Reboot to system
psklf said:
Little bit complex.
Try this guide:
Reboot to recovery (twrp or ofox), I prefer boot recovery by fastboot, command is `fastboot boot rec.img` (You can download from orangefox official website)
Flash firmware (Optional)
Flash rom
Flash gapps (if flashed vanilla build)
Format data
Reboot to system
Click to expand...
Click to collapse
I'm not sure if GApps will be installed in the same slot if I flash it directly after the ROM.zip.
I have to reflash TWRP/OrangeFox before formating data and booting to system or it will be lost when I boot back to recovery.
When updating the ROM, the recovery is flashing it to inactive slot. Do I need to click through the (google) setup again, or is this data stored in another partition? When do I need to reflash GApps?
flash ROM.zip
wipe cache + dalvik
reflash recovery
reflash magisk_patched
reboot system
11insomnium said:
I'm not sure if GApps will be installed in the same slot if I flash it directly after the ROM.zip.
I have to reflash TWRP/OrangeFox before formating data and booting to system or it will be lost when I boot back to recovery.
When updating the ROM, the recovery is flashing to inactive slot. Do I need to do the (google) setup again, or is this data stored in another partition? When do I need to reflash GApps?
flash ROM.zip
wipe cache + dalvik
reflash recovery
reflash magisk_patched
reboot system
Click to expand...
Click to collapse
About GApps maybe this is the right way ...
flash ROM
flash recovery itself( w/ orangefox there is a checkbox)
reboot to recovery
flash gapps
Please bear with me, as this is my first A/B device and I'm quite confused about the flashing procedure.
I successfully unlocked bootloader and flashed TWRP.
I tried to install A13 SparkOS vanilla + Basic NikGapps. Like @11insomnium said in the 1st post, ROM was installed fine, but Gapps package was not. I tried what @psklf says, no good... Each time I try to flash the Gapps package I get a message that /system size is 0KB, and of course the setup process is skipped due to lack of space...
On a side note, when flashing the ROM, step 1/2 completes fine, but on step 2/2 I get some errors about failing to access /system, /system_product, /vendor etc... However, as I said, ROM boots fine afterwards...
Am I missing something? Or is flashing the integrated Gapps ROM version the way to go?
@11insomnium did you manage to sort this out?
@hammerheadache I'm still using the GApps version 20221113, but recently I updated my device to latest OFox recovery (R11.1_2_A12) and A13 firmware (V14.0.2.0.TLMEUXM). The result was that my fingerprints were deleted and I could't save new ones, so I reflashed the old version (V13.0.7.0.SLMEUXM).
I think you missed the reboot to recovery. This should work for you:
- flash ROM
- flash recovery
- reboot to recovery
- flash NikGapps
- reboot to system
Edit: Maybe this will also help you:
https://wiki.orangefox.tech/en/guides/flashing
I haven't completely understood it yet either
hammerheadache said:
Please bear with me, as this is my first A/B device and I'm quite confused about the flashing procedure.
I successfully unlocked bootloader and flashed TWRP.
I tried to install A13 SparkOS vanilla + Basic NikGapps. Like @11insomnium said in the 1st post, ROM was installed fine, but Gapps package was not. I tried what @psklf says, no good... Each time I try to flash the Gapps package I get a message that /system size is 0KB, and of course the setup process is skipped due to lack of space...
On a side note, when flashing the ROM, step 1/2 completes fine, but on step 2/2 I get some errors about failing to access /system, /system_product, /vendor etc... However, as I said, ROM boots fine afterwards...
Am I missing something? Or is flashing the integrated Gapps ROM version the way to go?
@11insomnium did you manage to sort this out?
Click to expand...
Click to collapse
I have read in EROFS ROMs like Spark or PE it's problematic to flash GApps or microG as the system is read-only. Also applies to some Magisk modules as well.
amn1987 said:
I have read in EROFS ROMs like Spark or PE it's problematic to flash GApps or microG as the system is read-only. Also applies to some Magisk modules as well.
Click to expand...
Click to collapse
Thanks for the info. That explains why there are ROM versions with GApps included.

Categories

Resources