[Q] Stuck at boot logo after flashing aosp system.img - Nexus 6 Q&A, Help & Troubleshooting

I think the title it explains pretty much.
I build aosp marshmallow from sources, and when I get stuck on the google logo when I flash system, using:
Code:
fastboot flash system system.img
The phone was at 6.0.1 stock, apart from the boot.img which was compiled to be permissive with verity disabled.
Also I've tried to also flash the remaining images produced by the aosp compilation (userdata.img, cache.img, etc) but still no luck.
Any hints on how to make it boot?

Related

Stuck at CyanogenMod

Hi everybody! I wanted a better battery life for my Z1 (1 screen hour at 75% :crying: ) so i flashed the CM11 latest snapshot, (as we all know, the LP builds has a very horrible battery management) and it worked, but when i switched from MX ROM to CM11 i lost my recovery (dual recovery) and it were replaced with CWM, i tried to install TWRP with some apps like Rashr, Flashify, ROM manager, Multirom manager and many others but it wasnt successful, and now im trying to flash a stock build of LP but flashtool gives to me this error:
- root this bundle is not valid -
I tried with a KK build but it was the same result. So I am stuck in CM, i dont know what more can i do... Can anyone help me?
The Bankshooter said:
Hi everybody! I wanted a better battery life for my Z1 (1 screen hour at 75% :crying: ) so i flashed the CM11 latest snapshot, (as we all know, the LP builds has a very horrible battery management) and it worked, but when i switched from MX ROM to CM11 i lost my recovery (dual recovery) and it were replaced with CWM, i tried to install TWRP with some apps like Rashr, Flashify, ROM manager, Multirom manager and many others but it wasnt successful, and now im trying to flash a stock build of LP but flashtool gives to me this error:
- root this bundle is not valid -
I tried with a KK build but it was the same result. So I am stuck in CM, i dont know what more can i do... Can anyone help me?
Click to expand...
Click to collapse
KK custom roms have recovery inside kernel. You have recovery in your FOTA or Recovery partition. The in-kernel recovery won't let you start Fota recovery, no matter what you try to install. Latest LP roms, as well as MM don't have recovery in kernel. So, you want to fastboot an LP kernel that has no recovery: fastboot flash boot boot.img. Then fastboot TWRP: fastboot flash recovery recovery.img. After that, you can boot into TWRP recovery and install whatever you want...
optimumpro said:
KK custom roms have recovery inside kernel. You have recovery in your FOTA or Recovery partition. The in-kernel recovery won't let you start Fota recovery, no matter what you try to install. Latest LP roms, as well as MM don't have recovery in kernel. So, you want to fastboot an LP kernel that has no recovery: fastboot flash boot boot.img. Then fastboot TWRP: fastboot flash recovery recovery.img. After that, you can boot into TWRP recovery and install whatever you want...
Click to expand...
Click to collapse
Thanks a lot! Ill try it

Patching system image unconditionally

I tried to flash android 10 based gsi for my coolpad but after wiping system,the new gsi didnot managed to get flashed.
Since I was using aosp android 9 pie beforehand,so i tried to flash that,which was working before the wipe, but it was also showing errors after errors so i downloaded the stock firmware and tried to flash the rom through twrp but the terminal stuck at patching system image unconditionally.
I tried to flash rom with fastboot and qfil with no success.

Stock boot.img is not booting on boot_b

Hi there,
I've been rooting phones since Android 2, but lately it has been quite a challenge.
What I did so far:
Unpack new Xiaomi MI A2 (jasmine) device
Enabled Developer, USB debugging, OEM unlock in Android settings
Code:
fastboot oem unlock
Code:
fastboot flash boot_b TWRP-3.2.3-jasmine-20180804.img
TWRP ran fine. However, started with boot_a again.
OTA updated (about 6 times) to the newest version (Android 10, QKQ1.190910.002 V11.0.12.0.QDIMIXM)
Code:
fastboot flash boot_b twrp-3.4.0-0-jasmine_sprout.img
TWRP started only to the splash screen (showing "teamwin" and "Recovery Project 3.4.0-0"). Why is TWRP not starting properly?
Downloaded the stock fastboot image V11.0.12.0.QDIMIXM from https ://xiaomifirmwareupdater.com/archive/miui/jasmine/ and flash the stock boot.img via
Code:
fastboot flash boot_b jasmine_global_images_V11.0.12.0.QDIMIXM_10.0/images/boot.img
(my goal is to later patch it with Magisk and then install the patched version). However, the stock boot.img just hangs forever on the androidone screen. Why is the stock boot.img not starting properly?
I haven't used the Mi Unlock app and I didn't do an "fastboot flashing unlock_critical" yet. Is this necessary? What do I have to do to make the boot images work?
floydsen said:
Hi there,
I've been rooting phones since Android 2, but lately it has been quite a challenge.
What I did so far:
Unpack new Xiaomi MI A2 (jasmine) device
Enabled Developer, USB debugging, OEM unlock in Android settings
TWRP ran fine. However, started with boot_a again.
OTA updated (about 6 times) to the newest version (Android 10, QKQ1.190910.002 V11.0.12.0.QDIMIXM)
TWRP started only to the splash screen (showing "teamwin" and "Recovery Project 3.4.0-0"). Why is TWRP not starting properly?
Downloaded the stock fastboot image V11.0.12.0.QDIMIXM from https ://xiaomifirmwareupdater.com/archive/miui/jasmine/ and flash the stock boot.img via (my goal is to later patch it with Magisk and then install the patched version). However, the stock boot.img just hangs forever on the androidone screen. Why is the stock boot.img not starting properly?
I haven't used the Mi Unlock app and I didn't do an "fastboot flashing unlock_critical" yet. Is this necessary? What do I have to do to make the boot images work?
Click to expand...
Click to collapse
why do you feel you must use boot images ...the tried and working method for "jasmine" is to boot custom recovery and then flash magisk zip ( root only ) ..or...flash custom recovery installer zip which will flash recovery to both a/b slots.. then flash magisk
to properly boot you need to overcome stuff like secure boot and force encryption
if you aren't planning on custom roms just boot twrp to flash magisk
or
flash installer zip for recovery and wipe everything including formatting data to remove encryption and boot directly to recovery to install custom rom
twrp custom recovery had problems with decryption on stock rom ...secure boot won't allow booting modified images ..
lastly remember on jasmine there is no recovery partition..so everything is in the boot image ..magisk and recovery ..so everytime you flash stock , stock boot overwrites these changes and should flash everything again
tbh that's why i converted to wayne to get old partition layout as the A/B story pissed me off
KevMetal said:
why do you feel you must use boot images ...the tried and working method for "jasmine" is to boot custom recovery and then flash magisk zip ( root only ) ..or...flash custom recovery installer zip which will flash recovery to both a/b slots.. then flash magisk
to properly boot you need to overcome stuff like secure boot and force encryption
if you aren't planning on custom roms just boot twrp to flash magisk
or
flash installer zip for recovery and wipe everything including formatting data to remove encryption and boot directly to recovery to install custom rom
twrp custom recovery had problems with decryption on stock rom ...secure boot won't allow booting modified images ..
lastly remember on jasmine there is no recovery partition..so everything is in the boot image ..magisk and recovery ..so everytime you flash stock , stock boot overwrites these changes and should flash everything again
tbh that's why i converted to wayne to get old partition layout as the A/B story pissed me off
Click to expand...
Click to collapse
Ok. So I'm back to Stock image jasmine_global_images_V11.0.12.0.QDIMIXM_10.0 by executing "flash_all.sh". You are saying I should "simply boot". You mean:
Code:
fastboot boot TWRP-3.4.0-0-jasmine_sprout-for_V11.0.12.0.img
right? That doesn't work, it won't boot. How do I overcome secure boot and force encryption?
floydsen said:
Ok. So I'm back to Stock image jasmine_global_images_V11.0.12.0.QDIMIXM_10.0 by executing "flash_all.sh". You are saying I should "simply boot". You mean:
right? That doesn't work, it won't boot. How do I overcome secure boot and force encryption?
Click to expand...
Click to collapse
yes im saying that but post a pic of the error ...why or how doesn't it boot ..
if it is the official twrp just dump it and look for the unofficial Russian one or one modified by Nebrassy or use Orange fox and or Pitch black ..official is broken last time i checked
also the name of that looks like one hell of a job ..shorten it to
recovery.img or twrp.img
fastboot boot recovery.img
but first run
fastboot getvar all
& also run fastboot flashing unlock_critical
but most importantly get another recovery
& i don't want to insult your intelligence but after flashing stock did you check to make sure bootloader was still unlocked and that dev settings was activated and that adb was toggled to on and that you authorised adb again
basicall after stock boot device and do the above ..plug in usb ..toggle adb ..authorise ..run adb devices ..if you see your device ..adb reboot bootloader ..fastboot devices ..see your device ..fastboot getvar all ..see bootloader is unlocked ..fastboot flashing unlock_critical if not done yet ...make sure to do ALL the above again after data gets wiped.....put twrp in adb folder ( MUST BE UNOFFICIAL RUSSIAN OR MODUFIED BY NEBRASSY ..rename to revovery.img ...fastboot boot recovery.img .. use file manager to put magisk.zip on internal then flash ..then reboot to rooted phone with stock recovery ...
Sent from my wayne using XDA Labs
KevMetal said:
why do you feel you must use boot images ...the tried and working method for "jasmine" is to boot custom recovery and then flash magisk zip ( root only ) ..or...flash custom recovery installer zip which will flash recovery to both a/b slots.. then flash magisk
to properly boot you need to overcome stuff like secure boot and force encryption
if you aren't planning on custom roms just boot twrp to flash magisk
or
flash installer zip for recovery and wipe everything including formatting data to remove encryption and boot directly to recovery to install custom rom
twrp custom recovery had problems with decryption on stock rom ...secure boot won't allow booting modified images ..
lastly remember on jasmine there is no recovery partition..so everything is in the boot image ..magisk and recovery ..so everytime you flash stock , stock boot overwrites these changes and should flash everything again
tbh that's why i converted to wayne to get old partition layout as the A/B story pissed me off
Click to expand...
Click to collapse
KevMetal said:
yes im saying that but post a pic of the error ...why or how doesn't it boot ..
if it is the official twrp just dump it and look for the unofficial Russian one or one modified by Nebrassy or use Orange fox and or Pitch black ..official is broken last time i checked
Sent from my wayne using XDA Labs
Click to expand...
Click to collapse
Of course it is the official one. OMFG twrp-3.4.0-0-jasmine_sprout.img is broken (freezes on the TWRP splash screen), but version 3.3.1 seems to work. That's a relief, so I will try to flash magisk now. Although, I think I will need to do the decryption thing for jasmine first, but I guess I'll follow https://www.the***********.com/install-twrp-recovery-root-xiaomi-mi-a2-a2-lite/ mostly
floydsen said:
Of course it is the official one. OMFG twrp-3.4.0-0-jasmine_sprout.img is broken (freezes on the TWRP splash screen), but version 3.3.1 seems to work. That's a relief, so I will try to flash magisk now. Although, I think I will need to do the decryption thing for jasmine first, but I guess I'll follow https://www.the***********.com/install-twrp-recovery-root-xiaomi-mi-a2-a2-lite/ mostly
Click to expand...
Click to collapse
jajaja well now you know ...be careful ...some "official" roms are also more buggy than unofficial ones for Jasmine/Wayne..
LOS is an example ..so be forewarned .. if you like android 1 i guess stock rooted is a smart option to keep updates and keep device certified for google stuffs . .
alternativeky go FULL custom rom because stock and custom recovery is just a pain and not worth the hassle on an A/B treble device flashable by fastboot ..just boot the recovery when if ever needed
fyi ..you can flash magisk and it will boot ...if you don't try changing the recovery ..so you can have stock rooted with magisk without rcustom recovery...* recommended by me if you only wamt stock with root
Sent from my wayne using XDA Labs
All good now, thanks for your help! I just flashed Magisk (and also TWRP) and everything works nicely! I will need to get some experience, but I'll keep in mind that I maybe want to get rid of the TWRP recovery. Finally security testing is fun again. Thx!

Question No recovery image in stock rom?

I just found that there is no recovery.img in stock rom and xiaomi.eu rom.
Is recovery image replaced with other image in xiaomi devices?
Thanks in advance.
Android 11 hidden reco partition
Just like LG G8, rec is integrated into boot, which means refreshing boot will lose TWRP. Unless the boot already contains

Flashing GSI ROM

Hello, I come with a problem when installing the GSI ROM, after installing the system image, flashing vbmet, even the kernel and disabling / data with the fastboot -w command, the phone has a bootloop, please help in solving the problem, the image is installed on A only, arm64
try to flash permissive: https://forum.xda-developers.com/t/mod-kernel-permissive-patcher-for-android.3506338/

Categories

Resources