Question Bricked: Failed to boot into userspace fastboot - ASUS ZenFone 8

Hey there,
a couple of weeks ago I purchased a new smartphone with headphone jack in a reasonable size and it should run LineageOS.
So after a long search, the Zenfone 8 met all requirements.
I wanted to flash LineageOS, but went over several problems. Right now I'm stuck in a fastboot-loop. I cannot describe what I've tried to get things working again, sadly.
Recently I stumbled upon this thread and get stuck in the fastboot loop.
Flashing of boot, dtbo, vendor-boot, vbmeta and vbmeta_system seems to work, but after trying to access fastbootd, I get stuck.
Here's the output:
/run/me/g/s/a/e/payload fastboot flash boot boot.img ✔
Sending 'boot_a' (98304 KB) OKAY [ 2.520s]
Writing 'boot_a' OKAY [ 0.257s]
Finished. Total time: 2.822s
/run/me/g/s/a/e/payload fastboot flash dtbo dtbo.img ✔ 3s
Sending 'dtbo' (8192 KB) OKAY [ 0.212s]
Writing 'dtbo' OKAY [ 0.023s]
Finished. Total time: 0.272s
/run/me/g/s/a/e/payload fastboot flash vendor_boot vendor_boot.img
Sending 'vendor_boot' (98304 KB) OKAY [ 2.514s]
Writing 'vendor_boot' OKAY [ 0.278s]
Finished. Total time: 2.832s
/run/me/g/s/a/e/payload fastboot flash vbmeta vbmeta.img ✔ 3s
Sending 'vbmeta' (8 KB) OKAY [ 0.011s]
Writing 'vbmeta' OKAY [ 0.001s]
Finished. Total time: 0.049s
/run/me/g/s/a/e/payload fastboot flash vbmeta_system vbmeta_system.img
Sending 'vbmeta_system' (4 KB) OKAY [ 0.008s]
Writing 'vbmeta_system' OKAY [ 0.001s]
Finished. Total time: 0.044s
/run/me/g/s/a/e/payload fastboot reboot fastboot ✔
Rebooting into fastboot OKAY [ 0.002s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components
might be unbootable.
I'd be so happy to get this working again.
Thanks in advance!

sonix900 said:
Hey there,
a couple of weeks ago I purchased a new smartphone with headphone jack in a reasonable size and it should run LineageOS.
So after a long search, the Zenfone 8 met all requirements.
I wanted to flash LineageOS, but went over several problems. Right now I'm stuck in a fastboot-loop. I cannot describe what I've tried to get things working again, sadly.
Recently I stumbled upon this thread and get stuck in the fastboot loop.
Flashing of boot, dtbo, vendor-boot, vbmeta and vbmeta_system seems to work, but after trying to access fastbootd, I get stuck.
Here's the output:
/run/me/g/s/a/e/payload fastboot flash boot boot.img ✔
Sending 'boot_a' (98304 KB) OKAY [ 2.520s]
Writing 'boot_a' OKAY [ 0.257s]
Finished. Total time: 2.822s
/run/me/g/s/a/e/payload fastboot flash dtbo dtbo.img ✔ 3s
Sending 'dtbo' (8192 KB) OKAY [ 0.212s]
Writing 'dtbo' OKAY [ 0.023s]
Finished. Total time: 0.272s
/run/me/g/s/a/e/payload fastboot flash vendor_boot vendor_boot.img
Sending 'vendor_boot' (98304 KB) OKAY [ 2.514s]
Writing 'vendor_boot' OKAY [ 0.278s]
Finished. Total time: 2.832s
/run/me/g/s/a/e/payload fastboot flash vbmeta vbmeta.img ✔ 3s
Sending 'vbmeta' (8 KB) OKAY [ 0.011s]
Writing 'vbmeta' OKAY [ 0.001s]
Finished. Total time: 0.049s
/run/me/g/s/a/e/payload fastboot flash vbmeta_system vbmeta_system.img
Sending 'vbmeta_system' (4 KB) OKAY [ 0.008s]
Writing 'vbmeta_system' OKAY [ 0.001s]
Finished. Total time: 0.044s
/run/me/g/s/a/e/payload fastboot reboot fastboot ✔
Rebooting into fastboot OKAY [ 0.002s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components
might be unbootable.
I'd be so happy to get this working again.
Thanks in advance!
Click to expand...
Click to collapse
I used the raw image for the ASUS Zenfone 8 mentioned in your post a lot of times to get my Zenfone up and running again without problems after I broke everything
How did you try to get the raw image installed?
And which version of the raw image do you use?
There are batch files in the raw image zip file to do that:
update_image.sh (for Unix)
or
update_image.bat (for Windows)
In neither of them is a command "fastboot reboot fastboot".
I never used the batch file for Windows (I do not have WIndows) but the batch file for Linux reinstallls the original ASUS Android without problems. Afterwards you can install a custom ROM like OmniROM or LineageOS using the install instructions from these ROMs.
regards
Bernd

Hm, I tried on both Windows and Linux (Manjaro).
I downloaded the raw image from the "How To Guide", but I also downloaded the latest image from Asus today and tried that one.
Then I used payload dumper to extract the images from the payload file.
After that I used the command from the "flash-all"-file from the "How To Guide".
Until the "fastboot reboot fastboot" command I get overall OK-messages, but after the reboot the Zenfone restarts into normal fastboot, and not into fastbootd. Also trying to flash the other images brings me the error message.
Could you please tell me what image zip file you have? Within the ones I have, there are noch update_image files.

sonix900 said:
Hm, I tried on both Windows and Linux (Manjaro).
I downloaded the raw image from the "How To Guide", but I also downloaded the latest image from Asus today and tried that one.
Then I used payload dumper to extract the images from the payload file.
After that I used the command from the "flash-all"-file from the "How To Guide".
Until the "fastboot reboot fastboot" command I get overall OK-messages, but after the reboot the Zenfone restarts into normal fastboot, and not into fastbootd. Also trying to flash the other images brings me the error message.
Could you please tell me what image zip file you have? Within the ones I have, there are noch update_image files.
Click to expand...
Click to collapse
Then it's not a raw image for the phone...
Download the raw image file from here:
https://dlcdnets.asus.com/pub/ASUS/ZenFone/ZS590KS/WW-ZS590KS-31.1010.0410.61-MR0-2204-user-20220422.zip
Unzip the zip file, connect your phone in Bootloader mode, and execute the update_image.sh file from the zip file
(and do NOT mix files from different ZIP files )
The official images from ASUS can not be used for this purpose -- you can later use the official images for updating the installed Android OS but not for the first installation.
regards
Bernd

Wow, with your file it worked flawlessly, million thanks!!!
Apparently I really had the wrong files.
BTW, is there an official website at Asus for the raw files?

sonix900 said:
Wow, with your file it worked flawlessly, million thanks!!!
Apparently I really had the wrong files.
BTW, is there an official website at Asus for the raw files?
Click to expand...
Click to collapse
I don't know .. the raw images are the fallback solution if the installation of a new beta fails.
e.g. the link to the raw image for Android 11 is on this website
Android-12-Beta | ASUS Global
www.asus.com
and the link to the raw image for Android 12 is on this website
Android-13-Beta | ASUS Global
www.asus.com
(at the end of the page in the Section "How to opt out ..."
regards
Bernd

Related

LMY47O 5.1 Factory Image now up at Google's site!

Direct download link:
https://dl.google.com/dl/android/aosp/occam-lmy47o-factory-cae68e81.tgz
md5sum: 293a98009cfbcb5d398c05302a86ee8c
sha1sum: cae68e81d5a1758f92b77520f829400da205111f
Goggle's Factory Images page:
https://developers.google.com/android/nexus/images
Tip for those upgrading without flashing via factory image. After you flash cache.img boot into your custom recovery of choice and wipe the cache partition. Otherwise you're going to be stuck on the lollipop circles for a long time. This is specific to nexus 4.
Sent from my Nexus 7 using Tapatalk
How can i root it ?
Virtxer said:
How can i root it ?
Click to expand...
Click to collapse
You're kidding right?
Yep
Hopefully someone will make a flashable stock rom based off of the images
Sent from my Nexus 4 using XDA Free mobile app
Zehlek said:
Hopefully someone will make a flashable stock rom based off of the images
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
Hi there, long time no see
I was gonna do a flashable version but my pc was acting up again so i'll see if I can do it tomorrow after work if someone else doesn't do it by then :good:
does only me have problem with - remote partition table doesn't exist,when try to install twrp,or this is a comon isue?
i install stock image(unzip it with 7z),install with flash all. everything pass ok. when i turn on usb debuging and try to install twrp with fastboot i get this error.
i try to install stock image manuallu with fastboot. in that case i must to do a factory resset when boot,or phone will stuck with boot. also this pass ok,but fasboot cant install only twrp. old version,new,same error. fastboot recognize nexus,commands working,
Zehlek said:
Hopefully someone will make a flashable stock rom based off of the images
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
I'm using the latest Simple AOSP for Nexus 4 (Android 5.1.0), which was built today, with the LMY47O binary file, no random reboot so far.
Here is everything you need: http://chromloop.com/2015/04/how-to-install-android-5-1-lollipop-custom-rom-nexus-4/
5.0.1 (LRX22C) factory to 5.1.0 (LMY47O) factory
My bootloader was already un-locked. Hold the volume down key and hit the power button to power on the phone into fastboot mode.
Windows 7
Front USB 2.0 ports
7-zip
[TOOL]Updated ADB (version 1.0.32) and Fastboot [16-OCT-14]
http://forum.xda-developers.com/htc-one/general/tool-updated-adb-version-1-0-32-fastboot-t2932160
extract - fastboot_adb(1.0.32)_071114_r21.rar
extract - occam-lmy47o-factory-cae68e81.tgz
extract - occam-lmy47o-factory-cae68e81.tar
Move all of the files into the fastboot_adb(1.0.32)_071114_r21 folder.
Open the folder. Hold down the shift key and right click. Click on "open command windows here"
type in: flash-all.bat or fl and hit the tab key.
FAIL:
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>flash-all.bat
< waiting for device >
sending 'bootloader' (2264 KB)...
OKAY [ 0.094s]
writing 'bootloader'...
OKAY [ 0.281s]
finished. total time: 0.374s
rebooting into bootloader...
OKAY [ 0.000s]
finished. total time: 0.000s
< waiting for device >
sending 'radio' (45537 KB)...
OKAY [ 1.560s]
writing 'radio'...
OKAY [ 2.480s]
finished. total time: 4.040s
rebooting into bootloader...
OKAY [ 0.000s]
finished. total time: 0.000s
< waiting for device >
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 854497332 bytes
error: update package missing system.img
Press any key to exit...
Extract image-occam-lmy47o.zip into the fastboot_adb(1.0.32)_071114_r21 folder.
Run the following commands.
There is no need to update the bootloader and modem. You can see on the screen the current bootloader and modem build were updates from the last step.
Commands found via http://forum.xda-developers.com/nexus-4/general/how-to-how-to-flash-factory-image-t2010312
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img ***took apx 8 mins before seeing anything being written to the screen and phone.***
fastboot flash boot boot.img
fastboot flash recovery recovery.img *** don't do this if you have TWRP installed ***
fastboot format cache
fastboot reboot
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>fastboot flash recovery recovery.img
sending 'recovery' (6956 KB)...
OKAY [ 0.234s]
writing 'recovery'...
OKAY [ 0.390s]
finished. total time: 0.624s
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>fastboot flash boot boot.img
sending 'boot' (6394 KB)...
OKAY [ 0.250s]
writing 'boot'...
OKAY [ 0.374s]
finished. total time: 0.624s
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img
erasing 'system'...
OKAY [ 0.827s]
sending 'system' (834470 KB)...
OKAY [ 50.747s]
writing 'system'...
OKAY [ 46.519s]
finished. total time: 98.140s
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>fastboot flash boot boot.img
sending 'boot' (6394 KB)...
OKAY [ 0.250s]
writing 'boot'...
OKAY [ 0.374s]
finished. total time: 0.624s
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>fastboot flash recovery recovery.img
sending 'recovery' (6956 KB)...
OKAY [ 0.265s]
writing 'recovery'...
OKAY [ 0.374s]
finished. total time: 0.640s
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>fastboot format cache
Creating filesystem with parameters:
Size: 587202560
Block size: 4096
Blocks per group: 32768
Inodes per group: 7168
Inode size: 256
Journal blocks: 2240
Label:
Blocks: 143360
Block groups: 5
Reserved block group size: 39
Created filesystem with 11/35840 inodes and 4616/143360 blocks
erasing 'cache'...
OKAY [ 0.078s]
sending 'cache' (10984 KB)...
OKAY [ 0.437s]
writing 'cache'...
OKAY [ 0.608s]
finished. total time: 1.139s
C:\Users\test\Desktop\fastboot_adb(1.0.32)_071114_r21>fastboot reboot
rebooting...
finished. total time: -0.000s
It took apx 11 mins to boot up. It was optimizing the 100+ apps. All my apps and config settings were there.
Optional....
I powered off and when back into fastboot mode to flash TWRP so I can create a backup image.
http://dl.twrp.me/mako/
fastboot flash recovery twrp-2.8.6.0-mako.img
Use the arrow keys to reboot into recovery mode to boot into TWRP. Do not boot into the system.
Ok, managed to get my laptop working again. Rom is uploading, will post a link to the thread when done :good:
EDIT: Thread link: http://forum.xda-developers.com/nexus-4/development/rom-stock-flashable-rom-t3084656
If you get ANY Errors during Updating via the flash-all script - try to update ADB itself. I was using an old version and got errors until i downloaded and used a new ADB version.
Where is the 5.1.1?
Mirkoitalia said:
Where is the 5.1.1?
Click to expand...
Click to collapse
I don't know. When did you see it last?

[ROM][SOFIA*/RAV*][10][UNOFFICIAL] OmniROM

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Supported devices :
sofia
sofiap
sofiap_ao
sofiar
rav
rav_t
Download (GApps included)
Kernel source
Device tree source
MAJOR BUGS:
you tell me
FLASHING
Boot to fastbootd mode (adb reboot fastboot or fastboot reboot fastboot)
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash product product.img
fastboot flash vbmeta vbmeta.img
fastboot -w (mandatory if coming from stock, warning tho : it will erase all your data)
UPDATE
Boot to fastbootd mode (adb reboot fastboot or fastboot reboot fastboot)
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash product product.img
fastboot flash vbmeta vbmeta.img
fastboot reboot
Telegram support group : [URL]https://t.me/MotoG8Official[/URL]
20200821 Changelog :
- Add support for g8/g fast
- Add LED support
- Add selinux enforced for all
- Safetynet should pass for all devices (can't check my self, let me know)
- Fix crash when turning off wifi hotspot
XDA:DevDB Information
OmniROM, ROM for the Moto G8
Contributors
vache
Source Code: [URL]https://github.com/omnirom/[/URL]
ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Unlocked bootloader
Based On: AOSP
Version Information
Status: Beta
Beta Release Date: 2020-08-28
Created 2020-08-28
Last Updated 2020-08-28
This should be flashable via TWRP. Trying to install via method described only partially installs on A/B filesystem. Download link broken.
swear000 said:
This should be flashable via TWRP. Trying to install via method described only partially installs on A/B filesystem. Download link broken.
Click to expand...
Click to collapse
Since when twrp is mandatory to flash a ROM ?
I don't get what do you mean by partially. And link is working fine.
Edit: my bad, link was broken, updated.
flashed all of this twice and it just boots to twrp and asks for a password not i did flash twrp first from the other forum for the moto g fast
Clothian said:
flashed all of this twice and it just boots to twrp and asks for a password not i did flash twrp first from the other forum for the moto g fast
Click to expand...
Click to collapse
Make sure you have downloaded the build after I updated the link.
About twrp asking for password, expected behaviour after a data format without booting a ROM to populate encryption bits.
Ok so I just flashed back to stock and started over but now it just reboots on repeat I’m going to try to reset everything again and start over
---------- Post added at 06:42 PM ---------- Previous post was at 06:22 PM ----------
Clothian said:
Ok so I just flashed back to stock and started over but now it just reboots on repeat I’m going to try to reset everything again and start over
Click to expand...
Click to collapse
i figured out while flashing its saying no such file or directory on system and product but flashes boot and vbmeta just fine
Clothian said:
Ok so I just flashed back to stock and started over but now it just reboots on repeat I’m going to try to reset everything again and start over
---------- Post added at 06:42 PM ---------- Previous post was at 06:22 PM ----------
i figured out while flashing its saying no such file or directory on system and product but flashes boot and vbmeta just fine
Click to expand...
Click to collapse
You're not in fastbootd mode as detailed in OP.
Debugging
vache said:
Since when twrp is mandatory to flash a ROM ?
I don't get what do you mean by partially. And link is working fine.
Edit: my bad, link was broken, updated.
Click to expand...
Click to collapse
Sending 'boot_a' (65536 KB) OKAY [ 2.481s]
Writing 'boot_a' OKAY [ 0.939s]
Finished. Total time: 3.420s
Sending sparse 'system' 1/2 (781344 KB) OKAY [ 27.651s]
Writing sparse 'system' 1/2 (bootloader) Invalid partition name system
FAILED (remote: '')
Finished. Total time: 27.777s
Sending sparse 'product' 1/2 (781344 KB) OKAY [ 29.659s]
Writing sparse 'product' 1/2 (bootloader) Invalid partition name product
FAILED (remote: '')
Sending 'vbmeta_a' (4 KB) OKAY [ 0.003s]
Writing 'vbmeta_a' (bootloader) WARNING: vbmeta_a anti rollback downgrade, 0 vs 4
OKAY [ 0.010s]
Finished. Total time: 0.014s
swear000 said:
Sending 'boot_a' (65536 KB) OKAY [ 2.481s]
Writing 'boot_a' OKAY [ 0.939s]
Finished. Total time: 3.420s
Sending sparse 'system' 1/2 (781344 KB) OKAY [ 27.651s]
Writing sparse 'system' 1/2 (bootloader) Invalid partition name system
FAILED (remote: '')
Finished. Total time: 27.777s
Sending sparse 'product' 1/2 (781344 KB) OKAY [ 29.659s]
Writing sparse 'product' 1/2 (bootloader) Invalid partition name product
FAILED (remote: '')
Sending 'vbmeta_a' (4 KB) OKAY [ 0.003s]
Writing 'vbmeta_a' (bootloader) WARNING: vbmeta_a anti rollback downgrade, 0 vs 4
OKAY [ 0.010s]
Finished. Total time: 0.014s
Click to expand...
Click to collapse
Something wrong on your side, make sure you're in fastbootd mode and you have the latest fastbootd binary.
Magisk
vache said:
Something wrong on your side, make sure you're in fastbootd mode and you have the latest fastbootd binary.
Click to expand...
Click to collapse
I installed Magisk and TWRP. TWRP is not required to flash all ROMs, it just works better under normal situations.
vache said:
Something wrong on your side, make sure you're in fastbootd mode and you have the latest fastbootd binary.
Click to expand...
Click to collapse
I also have the same problem
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot C:\Users\Desu\Downloads\omni-10-20200823-sofia-rav-IMG\boot.img
target reported max download size of 805261312 bytes
sending 'boot_a' (65536 KB)...
OKAY [ 2.114s]
writing 'boot_a'...
OKAY [ 0.526s]
finished. total time: 2.643s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system C:\Users\Desu\Downloads\omni-10-20200823-sofia-rav-IMG\system.img
target reported max download size of 805261312 bytes
sending sparse 'system_a' 1/2 (786384 KB)...
OKAY [ 27.157s]
writing 'system_a' 1/2...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 27.163s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash product C:\Users\Desu\Downloads\omni-10-20200823-sofia-rav-IMG\product.img
target reported max download size of 805259264 bytes
sending sparse 'product' 1/2 (786384 KB)...
OKAY [ 27.608s]
writing 'product' 1/2...
(bootloader) Invalid partition name product
FAILED (remote failure)
finished. total time: 27.617s
I tried it on a G8 bike and in power both teams make me the same mistake
SilverKaito said:
I also have the same problem
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot C:\Users\Desu\Downloads\omni-10-20200823-sofia-rav-IMG\boot.img
target reported max download size of 805261312 bytes
sending 'boot_a' (65536 KB)...
OKAY [ 2.114s]
writing 'boot_a'...
OKAY [ 0.526s]
finished. total time: 2.643s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system C:\Users\Desu\Downloads\omni-10-20200823-sofia-rav-IMG\system.img
target reported max download size of 805261312 bytes
sending sparse 'system_a' 1/2 (786384 KB)...
OKAY [ 27.157s]
writing 'system_a' 1/2...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 27.163s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash product C:\Users\Desu\Downloads\omni-10-20200823-sofia-rav-IMG\product.img
target reported max download size of 805259264 bytes
sending sparse 'product' 1/2 (786384 KB)...
OKAY [ 27.608s]
writing 'product' 1/2...
(bootloader) Invalid partition name product
FAILED (remote failure)
finished. total time: 27.617s
I tried it on a G8 bike and in power both teams make me the same mistake
Click to expand...
Click to collapse
Are you in fastboot or fastbootd?
To get into fastbootd, you need to type
'fastboot reboot fastboot' in a cmd window while you are in the regular fastboot screen.
Then flash the rom.
Beetle84 said:
Are you in fastboot or fastbootd?
To get into fastbootd, you need to type
'fastboot reboot fastboot' in a cmd window while you are in the regular fastboot screen.
Then flash the rom.
Click to expand...
Click to collapse
you're right I'm already let myself install the rom but it doesn't just start it turns on and turns off
omnirom
OmniROM and twrp works correctly thanks I want to modify the volume of the headphones vendor / etc / mixer_path.xml when I save changes it tells me an error occurred, the changes will not be saved, could you help me thanks
Headphones
swear000 said:
I installed Magisk and TWRP. TWRP is not required to flash all ROMs, it just works better under normal situations.
Click to expand...
Click to collapse
good afternoon onmi rom and twrp root works correctly I want to increase the volume of the headphones vendor / etc mixerpath when saving changes I get an error some solution thanks
Couldn't get this working. Probably because my rav is LATAM distribution (rav, not rav_t). When flashed from fastbootd, I got a bootloop. Thankfully TWRP is working fine, so I could boot stock from the other A/B slot.
Success!
I had a number of issues while flashing this, as follows:
- I flashed TWRP before doing anything to attempt to flash Omni. As it turns out, fastbootd doesn't work correctly with TWRP installed, so I had to restore to stock before trying again.
- The Omni GSI has to be flashed to slot A by doing fastboot set_active a before you try to flash the partitions.
- When flashing the 20200823 build linked in OP, using the instructions listed, I got a "not enough space to resize partition" error. I attempted to resolve this by doing fastboot delete-logical-partition system_a and fastboot delete-logical-partition product_a - this was the wrong thing to do as it caused an issue mentioned earlier in the thread ("no such file or directory" when trying to flash those partitions), and I restored to stock to resolve this.
- I was able to get the partitions flashed by doing them in a different order than listed in OP. I successfully flashed by doing boot, product, system, vbmeta in that order.
- Once the partitions were successfully flashed, rebooting the device caused it to bootloop, showing the Moto logo for a few seconds and immediately rebooting. I resolved this by flashing an older boot.img from the Telegram channel (attached to this post). Flashing the older boot.img with the product, system, and vbmeta from the 20200823 build linked in OP got my device booting.
Thanks to the folks on Telegram for the help in getting this going.
Great work
Fastbootd errors
I cant seem to get any of the files to flash in fastbootd mode
i get this error
remote: No such file or directory
any help would be appreciated
devenkawaler said:
I cant seem to get any of the files to flash in fastbootd mode
i get this error
remote: No such file or directory
any help would be appreciated
Click to expand...
Click to collapse
Have you tried updating your fastboot binary? I used to use minimal adb and fastboot until this device. I had the same issue, and had to update the binary to get it to work properly.

Question Help restoring Stock ROM [SOLVED]

So... I tried to unlock/root my Redmi Note 11 (SPES), and something went wrong. So now I am trying to fix it, restore to the stock ROM to try again.
How I broke it:
1. Unlocked the bootloader.
2. Installed probably the wrong TWRP (I installed twrp-3.6.2-12.1-21.06.22.img from https://razaoinfo.dl.sourceforge.ne...ld/Recovery-Spes/twrp-3.6.2-12.1-21.06.22.img )
3. I tried flashing said img using fastboot (fastboot flash recovery_a <img>, followed by fastboot flash recovery_b <img>, then fastboot boot <img>
4. Got into TWRP, flashed Magisk.
5. Got into ROM. Everything seems to work, I have root. Next day, I realize my bluetooth is not working.
Next day, I tried flashing another TWRP that I found linked in this forum (twrp-3.6.2_12-0-spes-Jabiyeff.img, downloaded from https://forum.xda-developers.com/t/...-redmi-note-11-and-how-do-i-flash-it.4466177/ post #4).
6. After flashing, ROM no longer boots, and just sends me to fastboot.
7. I checked again with fastboot, and.. it seems the recovery partition isn't there?
Code:
C:\adb2>fastboot.exe devices
ff23ad4 fastboot
C:\adb2>fastboot.exe flash recovery twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 796917760 bytes
sending 'recovery' (131072 KB)...
OKAY [ 2.902s]
writing 'recovery'...
FAILED (remote: (recovery_b) No such partition)
finished. total time: 2.909s
C:\adb2>fastboot.exe flash recovery_a twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 796917760 bytes
sending 'recovery_a' (131072 KB)...
OKAY [ 2.828s]
writing 'recovery_a'...
FAILED (remote: (recovery_a_b) No such partition)
finished. total time: 2.835s
C:\adb2>fastboot.exe flash recovery_b twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 796917760 bytes
sending 'recovery_b' (131072 KB)...
OKAY [ 2.805s]
writing 'recovery_b'...
FAILED (remote: (recovery_b_b) No such partition)
finished. total time: 2.812s
C:\adb2>fastboot.exe flash recovery twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 796917760 bytes
sending 'recovery' (131072 KB)...
OKAY [ 2.849s]
writing 'recovery'...
FAILED (remote: (recovery_b) No such partition)
finished. total time: 2.857s
C:\adb2>fastboot.exe boot twrp-3.6.2_12-0-spes-Jabiyeff.img #NOTE: Here I changed the active partition in this TWRP from B to A.
downloading 'boot.img'...
OKAY [ 2.790s]
booting...
OKAY [ 0.367s]
finished. total time: 3.159s
C:\adb2>fastboot.exe devices
ff23ad4 fastboot
C:\adb2>fastboot.exe flash recovery twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 268435456 bytes
sending 'recovery' (131072 KB)...
OKAY [ 2.933s]
writing 'recovery'...
FAILED (remote: No such file or directory)
finished. total time: 2.946s
C:\adb2>fastboot.exe flash recovery_a twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 268435456 bytes
sending 'recovery_a' (131072 KB)...
OKAY [ 2.899s]
writing 'recovery_a'...
FAILED (remote: No such file or directory)
finished. total time: 2.918s
C:\adb2>fastboot.exe flash recovery_b twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 268435456 bytes
sending 'recovery_b' (131072 KB)...
OKAY [ 2.931s]
writing 'recovery_b'...
FAILED (remote: No such file or directory)
finished. total time: 2.943s
C:\adb2>fastboot.exe flash recovery twrp-3.6.2_12-0-spes-Jabiyeff.img
target reported max download size of 268435456 bytes
sending 'recovery' (131072 KB)...
OKAY [ 2.874s]
writing 'recovery'...
FAILED (remote: No such file or directory)
finished. total time: 2.887s
So, I wonder if I should be concerned about not finding a recovery/recovery_a/recovery_b partition (I am pretty sure recovery_a/b where there when I flashed TWRP the first time).
So, I am following now this guide to install the stock ROM: https://xiaomistockrom.com/xiaomi-redmi-note-11
Am I on the right path? I want to check before proceeding, because... right now I have fast boot and can boot into TWRP using it, but if I do things incorrectly from now on, I could brick the device. So I wanted to ask for advice on what I am doing first here.
TIA.
It's fairly difficult to hard brick a device. Most of the time you'll just end up soft bricking your device which is easy to fix as long as you can access bootloader mode. If you want to fully restore your device to default, you can download your stock rom (fastboot version) and flash using miflash.
Also yes, the guide you linked is correct.
Thanks, I managed to solve it.
The fastboot issue went away some time afterwards, and I could boot normally into the ROM, but... my bluetooth stopped working (which is really strange considering I only flashed the recovery partition). I tried flashing the bluetooth partition from the stock ROM's, but that didn't fix it.
So I tried flashing the stock ROM, following the previously linked guide (and that guide, not the guides that came bundled in the downloaded ROM, that one was for a different device, not a Xiaomi phone at all, weird!).
And now, I have bluetooth again. Thanks goodness for Migrate, I should be able to restore the rest of the device swiftly now.

How To Guide [STABLE/STOCK/GSI - Android 13] Redmi Note 10 5G (camellian) + Magisk (NO TWRP)

How to flash Google/Pixel Stock Stable Android 13 on Xiaomi Redmi Note 10 5G (in my case camellian) from any MIUI or any GSI rom without custom recoveries:
Download stock (original/unmodified) boot.img from your current MIUI Version
Download LATEST platform-tools (ADB + FASTBOOT) from Google
Download Magisk (in my case Alpha version works best on newer Androids)
Download Android 13 (stable) GSI (ARM64+GMS - Gapps version) from Google:
-- ARM64 without GMS (Gapps) also works, but upon installing Gapps manually I've gotten Bootloops (I tried serveral versions & Magisk Flashable too)
-- After downloading the GSI, extract system.img (you will be flashing this image) and vbmeta.img (and this image)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Place stock boot.img with downloaded system.img and vbmeta.img in the platform-tools folder
Run CMD in platform-tools folder (by typing CMD in address bar and hitting ENTER) and connect your phone (OFC enable USB debugging)
Run following adb / fastboot commands:
Boot phone in fastbootD (important)
Code:
C:\adb\platform-tools>adb reboot bootloader
C:\adb\platform-tools>fastboot reboot fastboot
Rebooting into fastboot OKAY [ 0.001s]
< waiting for any device >
Finished. Total time: 12.820s
When booted in fastbootD run:
Code:
C:\adb\platform-tools>fastboot set_active a
Setting current slot to 'a' OKAY [ 0.022s]
Finished. Total time: 0.028s
C:\adb\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta_a' (4 KB) OKAY [ 0.002s]
Writing 'vbmeta_a' OKAY [ 0.006s]
Finished. Total time: 0.050s
C:\adb\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta_a' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_a' OKAY [ 0.003s]
Finished. Total time: 0.044s
C:\adb\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta_b' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_b' OKAY [ 0.003s]
Finished. Total time: 0.043s
C:\adb\platform-tools>fastboot flash system system.img
Resizing 'system_a' OKAY [ 0.014s]
Sending sparse 'system_a' 1/12 (262108 KB) OKAY [ 10.316s]
Writing 'system_a' OKAY [ 1.183s]
Sending sparse 'system_a' 2/12 (262120 KB) OKAY [ 10.677s]
Writing 'system_a' OKAY [ 1.087s]
Sending sparse 'system_a' 3/12 (262104 KB) OKAY [ 10.270s]
Writing 'system_a' OKAY [ 0.953s]
Sending sparse 'system_a' 4/12 (262124 KB) OKAY [ 10.131s]
Writing 'system_a' OKAY [ 1.040s]
Sending sparse 'system_a' 5/12 (262124 KB) OKAY [ 10.749s]
Writing 'system_a' OKAY [ 1.083s]
Sending sparse 'system_a' 6/12 (262124 KB) OKAY [ 11.126s]
Writing 'system_a' OKAY [ 1.082s]
Sending sparse 'system_a' 7/12 (262124 KB) OKAY [ 10.528s]
Writing 'system_a' OKAY [ 1.045s]
Sending sparse 'system_a' 8/12 (262128 KB) OKAY [ 10.397s]
Writing 'system_a' OKAY [ 0.947s]
Sending sparse 'system_a' 9/12 (262088 KB) OKAY [ 10.333s]
Writing 'system_a' OKAY [ 1.207s]
Sending sparse 'system_a' 10/12 (262120 KB) OKAY [ 10.717s]
Writing 'system_a' OKAY [ 1.027s]
Sending sparse 'system_a' 11/12 (243488 KB) OKAY [ 9.380s]
Writing 'system_a' OKAY [ 1.433s]
Sending sparse 'system_a' 12/12 (46444 KB) OKAY [ 1.797s]
Writing 'system_a' OKAY [ 0.336s]
Finished. Total time: 139.687s
C:\adb\platform-tools>fastboot flash boot boot.img
Sending 'boot_a' (65536 KB) OKAY [ 2.486s]
Writing 'boot_a' OKAY [ 0.337s]
Finished. Total time: 2.858s
C:\adb\platform-tools>fastboot flash boot_a boot.img
Sending 'boot_a' (65536 KB) OKAY [ 2.340s]
Writing 'boot_a' OKAY [ 0.314s]
Finished. Total time: 2.690s
C:\adb\platform-tools>fastboot flash boot_b boot.img
Sending 'boot_b' (65536 KB) OKAY [ 2.321s]
Writing 'boot_b' OKAY [ 0.317s]
Finished. Total time: 2.671s
Now Reboot to Recovery and WIPE DATA
Code:
C:\adb\platform-tools>fastboot reboot recovery
Rebooting into recovery OKAY [ 0.001s]
Finished. Total time: 0.007s
Reboot and done!
My opinion after one day:
If u like alot of customization it's not for you, you have to install even most basic apps let it's completly stock. But battery life is improved by 35-50% !! I'm using it for over 15 hours and still 30% battery left. Google Cam works great. Performance amazing. Few bugs here and there in the UI but overall pretty stable.
Anyway not a daily driver for everyone yet, needs a bit more polish. Enjoy !!
This looks good. Will it work for camellia?
If u like alot of customization it's not for you, you have to install even most basic apps let it's completly stock.
Click to expand...
Click to collapse
That's the reason I'm still on MIUI. Small things like network speed in status bar is very important to me.
sajalkmr said:
This looks good. Will it work for camellia?
That's the reason I'm still on MIUI. Small things like network speed in status bar is very important to me.
Click to expand...
Click to collapse
I am not sure as I don't have one to test it on, but I don't see why it wouldn't; all other GSI's work so. .
Have in mind that it looks good because of the Lawnchair Launcher (god bless the developer of it, i'm using it over 5 years), otherwise you will get the most basic stock functional android quickstep launcher.
Nice wallpaper. Can you share where I can find it?
iijul said:
Nice wallpaper. Can you share where I can find it?
Click to expand...
Click to collapse
Reddit - Dive into anything
www.reddit.com
iijul said:
Nice wallpaper. Can you share where I can find it?
Click to expand...
Click to collapse
Credit to Mia
What about NFC and Bluetooth working or not?
Kubusi3kk said:
What about NFC and Bluetooth working or not?
Click to expand...
Click to collapse
Yep
Hi,
I just tried this procedure with the latest beta build (Android 13 QPR1 BETA) and it does not boot (it restarts by itself every 30s), I switched back to Lineage OS 19.1
Am I the only one having this problem?
Thanks
doesnt work cannot make calls
NewXiaomiUser said:
Hi,
I just tried this procedure with the latest beta build (Android 13 QPR1 BETA) and it does not boot (it restarts by itself every 30s), I switched back to Lineage OS 19.1
Am I the only one having this problem?
Thanks
Click to expand...
Click to collapse
im having the same problem, can you link me a guide to installing los 19.1?
log:
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot devices
dafi8dfurkmz9dau fastboot
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot set_active a
Setting current slot to 'a' OKAY [ 0.008s]
Finished. Total time: 0.009s
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta "H:\platform-tools_r33.0.3-windows\platform-tools\vbmeta.img"
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta_a' (4 KB) OKAY [ 0.000s]
Writing 'vbmeta_a' OKAY [ 0.003s]
Finished. Total time: 0.130s
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_ "H:\platform-tools_r33.0.3-windows\platform-tools\vbmeta.img"
Sending 'vbmeta_' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_ "H:\platform-tools_r33.0.3-windows\platform-tools\vbmeta.img"
Sending 'vbmeta_' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_a "H:\platform-tools_r33.0.3-windows\platform-tools\vbmeta.img"
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta_a' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_a' OKAY [ 0.003s]
Finished. Total time: 0.013s
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_b "H:\platform-tools_r33.0.3-windows\platform-tools\vbmeta.img"
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta_b' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_b' OKAY [ 0.003s]
Finished. Total time: 0.013s
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot flash system "H:\platform-tools_r33.0.3-windows\platform-tools\system.img"
Resizing 'system_a' OKAY [ 0.010s]
Sending sparse 'system_a' 1/12 (262112 KB) OKAY [ 10.126s]
Writing 'system_a' OKAY [ 1.159s]
Sending sparse 'system_a' 2/12 (262120 KB) OKAY [ 9.476s]
Writing 'system_a' OKAY [ 1.118s]
Sending sparse 'system_a' 3/12 (262112 KB) OKAY [ 9.404s]
Writing 'system_a' OKAY [ 1.213s]
Sending sparse 'system_a' 4/12 (262124 KB) OKAY [ 10.100s]
Writing 'system_a' OKAY [ 1.080s]
Sending sparse 'system_a' 5/12 (262128 KB) OKAY [ 9.308s]
Writing 'system_a' OKAY [ 1.295s]
Sending sparse 'system_a' 6/12 (262124 KB) OKAY [ 9.395s]
Writing 'system_a' OKAY [ 1.147s]
Sending sparse 'system_a' 7/12 (262128 KB) OKAY [ 9.416s]
Writing 'system_a' OKAY [ 1.049s]
Sending sparse 'system_a' 8/12 (262120 KB) OKAY [ 9.430s]
Writing 'system_a' OKAY [ 1.260s]
Sending sparse 'system_a' 9/12 (262088 KB) OKAY [ 10.616s]
Writing 'system_a' OKAY [ 1.113s]
Sending sparse 'system_a' 10/12 (262120 KB) OKAY [ 9.648s]
Writing 'system_a' OKAY [ 1.034s]
Sending sparse 'system_a' 11/12 (260716 KB) OKAY [ 9.342s]
Writing 'system_a' OKAY [ 1.360s]
Sending sparse 'system_a' 12/12 (46712 KB) OKAY [ 1.690s]
Writing 'system_a' OKAY [ 0.308s]
Finished. Total time: 196.646s
H:\platform-tools_r33.0.3-windows\platform-tools>
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot flash boot "H:\platform-tools_r33.0.3-windows\platform-tools\boot.img"
Sending 'boot_a' (65536 KB) OKAY [ 2.401s]
Writing 'boot_a' OKAY [ 0.316s]
Finished. Total time: 2.746s
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot flash boot_a "H:\platform-tools_r33.0.3-windows\platform-tools\boot.img"
Sending 'boot_a' (65536 KB) OKAY [ 2.414s]
Writing 'boot_a' OKAY [ 0.308s]
Finished. Total time: 2.747s
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot flash boot_b "H:\platform-tools_r33.0.3-windows\platform-tools\boot.img"
Sending 'boot_b' (65536 KB) OKAY [ 2.429s]
Writing 'boot_b' OKAY [ 0.309s]
Finished. Total time: 2.764s
H:\platform-tools_r33.0.3-windows\platform-tools>fastboot reboot recovery
Rebooting into recovery OKAY [ 0.000s]
Finished. Total time: 0.002s
H:\platform-tools_r33.0.3-windows\platform-tools>
Hi TedFin,
sure, here is how I flash back LineageOS 19.1:
First of all, I assume you have the ADB and fastboot drivers installed, you can find guides here and there.
Download LineageOS here:
https://sourceforge.net/projects/andyyan-gsi/files/lineage-19.x/lineage-19.1-20221011-UNOFFICIAL-arm64_bvS.img.xz/download
Download stock firmware here:
https://xiaomifirmwareupdater.com/miui/camellian/stable/V13.0.3.0.SKSEUXM/ (choose Fastboot rom)
Extract the Xiaomi stock firware using 7zip or any other compatible software
Reboot your phone in fastboot mode (long press on volume down while booting)
Open a command prompt on the extracted folder and run
Bash:
flash_all.bat
Once completed, your phone should be back on stock rom
Reboot once again in fastboot mode
Then in cmd:
Go to the LineageOS folder
Bash:
cd /d [the folder where you decompressed lineageos]
Reboot in fastbootd
Bash:
fastboot reboot fastboot
Flash LineageOS
Bash:
fastboot flash system lineage-19.1-20220912-UNOFFICIAL-arm64_bgS.img
fastboot flash system_b lineage-19.1-20220912-UNOFFICIAL-arm64_bgS.img
Clean up
Bash:
fastboot reboot recovery
Wipe all then reboot
If you have a boot loop, reboot in Fastboot
Bash:
fastboot flash boot [the stock rom folder]\images\boot.img
fastboot flash boot_b [the stock rom folder]\images\boot.img
Voila!
NewXiaomiUser said:
Hi,
I just tried this procedure with the latest beta build (Android 13 QPR1 BETA) and it does not boot (it restarts by itself every 30s), I switched back to Lineage OS 19.1
Am I the only one having this problem?
Thanks
Click to expand...
Click to collapse
Do you wipe data at the end before reboot?
Hi, thanks for your response,
yes I did it, I also restore the stock firmware before but it does not change anything
NewXiaomiUser said:
Hi, thanks for your response,
yes I did it, I also restore the stock firmware before but it does not change anything
Click to expand...
Click to collapse
try nother gsi. a question: what stock firmware u have installed? i must start from miui13 because have a12 vendor
second. check the active slot. gsi must be installed into primary
third: flash system without erase system partition
forth: reflash boot stock img before reboot
if your phone dont boot and stuck on logo the problem is boot.img or active slot
if your phone boot into recovery wipe data
the bootloops after flashing gsi are caused by boot.img or data that must be wiped
another thing: FLASH VBMETA DISABLING SECURE VERITY CHECK before reboot
the steps for flash gsi are simply. slect the correct gsi and start from the correct stock is important. mut most important is use your brain. i have flashed at lest 5-6 gsi without problems
Hi,
1. Here is the stock ROM I'm using: camellian_eea_global V13.0.2.0 (SKSEUXM)
2. Active slot is A (anyway, I always flash A and B)
3. System partition is erased when flash stock rom. I do not flash after stock
4. I always flash boot (both A and B) after flashing a GSI, tried with stock boot.img and Magisk's
5. After installing a GSI, I always wipe all data in recovery mode
6. flashing vbmeta is part of your process and, of course, I followed it step by step
The phone is not stuck on logo, it just keep restarting again and again without reaching the OS itself (no boot animation)
By the way, I'm able to flash LineageOS or Pixel Experience using the same procedure works without any quirks, this is the only GSI I'm having problem with.
Thanks
NewXiaomiUser said:
Hi,
1. Here is the stock ROM I'm using: camellian_eea_global V13.0.2.0 (SKSEUXM)
2. Active slot is A (anyway, I always flash A and B)
3. System partition is erased when flash stock rom. I do not flash after stock
4. I always flash boot (both A and B) after flashing a GSI, tried with stock boot.img and Magisk's
5. After installing a GSI, I always wipe all data in recovery mode
6. flashing vbmeta is part of your process and, of course, I followed it step by step
The phone is not stuck on logo, it just keep restarting again and again without reaching the OS itself (no boot animation)
By the way, I'm able to flash LineageOS or Pixel Experience using the same procedure works without any quirks, this is the only GSI I'm having problem with.
Thanks
Click to expand...
Click to collapse
I'll try to give you files and help you when I get on my PC today
Sure, no rush, anyway, LOS is pretty stable except I cannot bypass SafetyNet.
Thanks
NewXiaomiUser said:
Sure, no rush, anyway, LOS is pretty stable except I cannot bypass SafetyNet.
Thanks
Click to expand...
Click to collapse
Sorry I forgot about my post, I'll do it now... As for the Safety Net I highly recommend using Alpha (not official) build of Magisk (pay attention to other builds such as Delta and similar "Alpha" builds everywhere; this Telegram Group link is the one and only trusted place where you can find download link-I'll attach latest version down bellow). Every single problem I had with either stock or modified roms; I solved them when I started using it (except when I overdo it with modules which would be my mistake ofc.). The biggest difference is that it is closed-sourced so there is a risk when using it, but it's being maintained by one of the respected people that worked/works on official Magisk.
Next step is of course installing Universal SafetyNet Fix by kdrag0n.
And finally MagiskHide Props Config By Didgeridoohan. After flashing this one you will have to set it up with any terminal (Termux for example) to spoof your device config so the store thinks you're using - in my case Google Pixel 6 Pro. Also in my case the feature "device emulator - 3rd from above" gave me soft brick so be careful. It's easy to set it up as it guides you via terminal (I use first two options and spoofing as Pixel 6 Pro as I said).
Those things are first things I do on a new rom, and yeah I use LSPosed Framework + Zygisk.
No problems and I'm certified in Google Play/Google Games stores even tho I use modified apks to hack multiplayer games.
I'll go and give you all the files so u can try latest generic GSI by Google if you still want, using this guide.

mi a2 and fastboot flash - Error

Hi All,
The issue i am encountering (with my mi a2 ) is the following:
Start: All was working, and i did a restart of the phone;
Effect: The phone did not start up any more and kept hanging on -android one- splash
Analysis: I can still start the phone in fastboot mode, and can still connect with ADB and fastboot
(this is correctly installed and working with my other M2 phones.. also cables are correct and using usb 2 etc..)
Problem: When flashing, every second flash command seems to fail:
example log:
E:\platform-tools>fastboot flash storsec storsec.mbn
Sending 'storsec' (48 KB) OKAY [ 0.011s]
Writing 'storsec' OKAY [ 0.001s]
Finished. Total time: 0.020s
E:\platform-tools>fastboot flash mdtpsecapp_b mdtpsecapp.img
Sending 'mdtpsecapp_b' (1057 KB) FAILED (remote: 'Error flashing partition.')
fastboot: error: Command failed
E:\platform-tools>fastboot flash mdtpsecapp_b mdtpsecapp.img
Sending 'mdtpsecapp_b' (1057 KB) OKAY [ 0.026s]
Writing 'mdtpsecapp_b' OKAY [ 0.001s]
Finished. Total time: 0.031s
E:\platform-tools>fastboot flash mdtpsecapp_a mdtpsecapp.img
Sending 'mdtpsecapp_a' (1057 KB) FAILED (remote: 'Error flashing partition.')
fastboot: error: Command failed
E:\platform-tools>fastboot flash mdtpsecapp_a mdtpsecapp.img
Sending 'mdtpsecapp_a' (1057 KB) OKAY [ 0.035s]
Writing 'mdtpsecapp_a' OKAY [ 0.000s]
Finished. Total time: 0.040s
In theory just repeating the flash commands will get it done; HOWEVER some flashes have bigger images like system
E:\platform-tools>fastboot flash system_a system.img
Sending sparse 'system_a' 1/6 (516064 KB) FAILED (remote: 'Error flashing partition.')
fastboot: error: Command failed
E:\platform-tools>fastboot flash system_a system.img
Sending sparse 'system_a' 1/6 (516064 KB) OKAY [ 11.452s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 2/6 (514680 KB) FAILED (remote: 'Error flashing partition.')
fastboot: error: Command failed
After the first flashed chunk the second part fails and the link between phone and pc hangs; I need to reboot the phone in fastboot again to get control again;
(sadly i cannot directly flash part 2of 6 since its one command)
------------------------------------------
Additional findings:
When i try to boot the twrp image for my phone (below latest version)
E:\platform-tools>fastboot boot twrp-3.7.0_9-0-jasmine_sprout.img
Sending 'boot.img' (32164 KB) OKAY [ 0.738s]
Booting OKAY [ 10.315s]
Finished. Total time: 11.079s
The flash goes well (because its the first flash command) and the phone restarts to boot;
Sometimes it actually boots in the twrp menu but 98% of the times it hangs on the twrp splash screen
Additional findings:
I read something about encryption etc so i tried to wipe stuff (with wipe command)
This always seem to result in a hang on erasing cache
(COULD BE that cache is not used or available in Mi a2??)
E:\platform-tools>fastboot -w
Erasing 'userdata' OKAY [ 0.053s]
mke2fs 1.46.2 (28-Feb-2021)
Creating filesystem with 12285943 4k blocks and 3072000 inodes
Filesystem UUID: 50443726-8896-11ed-ab67-67ab2caed3b8
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done
Sending 'userdata' (260 KB) OKAY [ 0.008s]
Writing 'userdata' OKAY [ 0.001s]
Erasing 'cache' ^C
------------------------------------
ALL in all i cannot get my phone to work anymore since flashing seems to hang every second flash command
This also means i cannot get a working stable STOCK rom put back on my phone;
Does anybody have some ideas or tips on how to fix this?
Personally i think there is something wrong with the memory disk inside the phone? Corrupted? Bad sectors?
Maybe i should look in the direction of formatting something?
All input / help will be appreciated;
Regards
Tom
I assume phone is fully unlocked. Otherwise search for Test-Point / EDL guide.
> When flashing, every second flash command seems to fail
- Try to use another USB 2.x slot, for example in an external USB hub (most modern monitors have one built-in). Note that USB3.x slots are not fully supported with MiA2 drivers.
- Maybe update fastboot.exe with latest platform tools (https://developer.android.com/studio/releases/platform-tools)
- Recheck installed Win64 USB drivers with USBDeview (http://www.nirsoft.net/utils/usb_devices_view.html)
> Sometimes it actually boots in the twrp menu but 98% of the times it hangs on the twrp splash screen
- "Official" TWRP is buggy,
- use the working one by @Nebrassy
[RECOVERY] [UNOFFICIAL] TeamWin Recovery Project
#include /* * Your warranty is now void. * * We are not responsible for bricked devices, dead SD cards, * thermonuclear war or you getting fired because the alarm app failed. Please * do some research if you have any concerns...
forum.xda-developers.com
Downloads for : Xiaomi Mi A2 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
> cache is not used or available in Mi a2
I believe so, yet "fastboot -w" used to work for everybody ... or RAM went south
Have you tried to switch A/B slots to previously installed ROM in TWRP or fastboot?

Categories

Resources