Can't flash ROM on Pixel 1 (Sailfish)? - Android Q&A, Help & Troubleshooting

So I'm pretty new to the forums, and pretty new to the rooting scene in general, but I'd like to think I have a general idea what I'm doing (barely)
I'm trying to flash LineageOS on to my Pixel, and each time after flashing the ROM, I get stuck in a bootloop and can only access the bootloader, or I can access TWRP if I use "fastboot boot twrp.img"
Here's the tutorial I've followed to get root, I've followed it to a T:
-Flash stock image from google of whatever version you are going to be running (I went with ppr2 sailfish (as i have the pixel 1))
-Fastboot to twrp (I used version 3.2.3-1-sailfish)
-Flash TWRP.zip (NEXT STEPS ARE WHAT MADE THE DIFFERENCE)
-Do not just hit reboot after installing. Press the back button and go to the home screen of twrp again.
-Clcik the reboot there and click "Do Not Install" this is in reference to the TWRP application with which you don't want to install
-Now turn back off your device and go into twrp again
-Flash magisk 16.7 (NEXT STEPS ARE ALSO WHAT MADE THE DIFFERENCE)
-Do not hit reboot right after you intsall it or will be in a boot loop
-Go back to home screen, hit reboot then hit power off
-Wait a few seconds thens turn that ***** on.
Click to expand...
Click to collapse
And I've followed the directions directly from Lineage on how to flash the ROM. I've also tried flashing the verified boot signer afterwards, I've tried installing a different kernel that supposedly disables "dm-verity" (which seems like it might be the issue but I'm not sure)
I've tried changing the boot parameters from 'b' to 'a' with "fastboot set_active a"
I've tried numerous different steps and each time it's the same process. I get stuck in the bootloop with the bootloader, so I flash the stock image, then reinstall TWRP, Reinstall Magisk / Root, then try to install Lineage and get bootloops, rinse and repeat for the last 2 days. I'm completely at a loss. Any advice? It's much appreciated.

dylanfitz32 said:
So I'm pretty new to the forums, and pretty new to the rooting scene in general, but I'd like to think I have a general idea what I'm doing (barely)
I'm trying to flash LineageOS on to my Pixel, and each time after flashing the ROM, I get stuck in a bootloop and can only access the bootloader, or I can access TWRP if I use "fastboot boot twrp.img"
Here's the tutorial I've followed to get root, I've followed it to a T:
And I've followed the directions directly from Lineage on how to flash the ROM. I've also tried flashing the verified boot signer afterwards, I've tried installing a different kernel that supposedly disables "dm-verity" (which seems like it might be the issue but I'm not sure)
I've tried changing the boot parameters from 'b' to 'a' with "fastboot set_active a"
I've tried numerous different steps and each time it's the same process. I get stuck in the bootloop with the bootloader, so I flash the stock image, then reinstall TWRP, Reinstall Magisk / Root, then try to install Lineage and get bootloops, rinse and repeat for the last 2 days. I'm completely at a loss. Any advice? It's much appreciated.
Click to expand...
Click to collapse
i cant seem to flash any stock firmware on mine. keeps mentioning something about user data. i have tired ota and even factory images. did you get yours resolved? thanks

Related

Nougat TWRP issue

I have used LGUP to install software (Nougat) and it's working fine..
I then install TWRP as normal, no issues reported during install (I can see via cmd screen).
I then proceed to reboot to recovery using methods I have been using for months, and it goes to yes, yes selection.
It then doesn't load TWRP but carries on wiping my phone to basics again.
Have tried various methods of putting TWRP on but does anyone think is something to do with Nougat as the bootloader unlocked screen is different, larger text etc
Have now tried a KDZ for marshmallow and recovery still won't go to TWRP.
It's almost like the recovery area is now not accessible?
Any suggestions please?
alienex said:
I have used LGUP to install software (Nougat) and it's working fine..
I then install TWRP as normal, no issues reported during install (I can see via cmd screen).
I then proceed to reboot to recovery using methods I have been using for months, and it goes to yes, yes selection.
It then doesn't load TWRP but carries on wiping my phone to basics again.
Have tried various methods of putting TWRP on but does anyone think is something to do with Nougat as the bootloader unlocked screen is different, larger text etc
Have now tried a KDZ for marshmallow and recovery still won't go to TWRP.
It's almost like the recovery area is now not accessible?
Any suggestions please?
Click to expand...
Click to collapse
Hmm strange. Have you tried rebooting using "adb reboot recovery" ?
I would suggest you flash recovery and boot straight into it not allowing the phone to boot into android. So flash recovery, remove battery, then try booting into recovery. Im pretty sure recovery can be lost if you boot into android before flashing SUPERSU (https://download.chainfire.eu/696/supersu/)
But i could be wrong
You have to do the following:
1) Flash the TWRP trouch Fastboot, don't reboot
2) Remove the battery, put it back, don't turn on the phone normally!
3) Use the button combination to enter in recovery
Ok have flashed again and it has "Stuck" this time after pulling battery before reboot so TWRP back!
Now to flash again and chill
Thanks both

Can't access twrp recovery after unlock

Hi, I followed thew rooting instructions and got to the part where you flash the recovery after flashing I've tried to boot into recovery and all I get is your device software cannot be checked screen then it reboots or loads the factory reset screen and resets back to factory settings.
I have checked the phone is unlocked and it says it is
Jonnibravo said:
Hi, I followed thew rooting instructions and got to the part where you flash the recovery
after flashing I've tried to boot into recovery and all I get is your device software cannot be checked screen
then it reboots or loads the factory reset screen and resets back to factory settings.
I have checked the phone is unlocked and it says it is
Click to expand...
Click to collapse
Ignore the scary bootloader unlock warning. That's not preventing you from booting to TWRP.
What's preventing you from booting to TWRP is you didn't fully install TWRP and activate it. You still have stock recovery because you flashed TWRP but didn't finish the TWRP installation/activation process. So TWRP didn't stick and you have stock recovery still.
Read the instructions again. Post #193 of the WTF bootloader unlock and root thread.
WHICH instructions did you follow? Because with my instructions I cleary tell how to immediately boot to TWRP with fastboot flash commands after installing it -- and to NOT do any anything else (even rebooting the phone) before finishing TWRP installation and activation. You either didn't use my instructions or didn't carefully follow them?
People should really PRINT out the instructions before starting the process so they can carefully read it. It's very easy to skip over an important part or skip over a part you don't think is important?
It's all there for a reason.
Sent via open market LG US998 V30/V30+
ChazzMatt said:
Ignore the scary bootloader unlock warning. That's not preventing you from booting to TWRP.
What's preventing you from booting to TWRP is you didn't fully install TWRP and activate it. You still have stock recovery because you flashed TWRP but didn't finish the installation process. So TWRP didn't stick and you have stock recovery still.
Read the instructions again. Post #193 of the WTF bootloader unlock and root thread.
WHICH instructions did you follow? Because with my instructions I cleary tell how to immediately boot to TWRP with fastboot flash commands after installing it -- and to NOT do any anything else before finishing TWRP installation and activation. You either didn't use my instructions or didn't carefully follow them?
Sent via open market LG US998 V30/V30+
Click to expand...
Click to collapse
I have installed using fastboot command and used the boot twrp.img command, the corruption message shows then the screen goes blank and it goes from the lg v30 logo back to corruption logo then reboots. What stage have I missed.
Jonnibravo said:
I have installed using fastboot command and used the boot twrp.img command, the corruption message shows then the screen goes blank and it goes from the lg v30 logo back to corruption logo then reboots. What stage have I missed.
Click to expand...
Click to collapse
From my instructions:
TLDR:
flash twrp: fastboot flash TWRP.img (TWRP-3.2.1-joan-v0.1.img re-named as just "TWRP.img")
boot twrp: fastboot boot TWRP.img (TWRP-3.2.1-joan-v0.1.img re-named as just "TWRP.img")
swipe to allow modifications (do NOT leave read-only, TWRP NEEDS to be able to make changes to your system.)
select WIPE, then FORMAT DATA, then write yes
wipe cache, dalvik, data
flash magisk
flash encryption disabler
flash root disabler
reboot
STRONG SUGGESTION: After successfully doing all this, when you finally boot back to LG Oreo, install an app like this to easily facilliate rebooting to TWRP recovery in the future: Recovery Reboot
Even if you didn't actually install TWRP, you would still be able to boot to TWRP using the boot command ( fastboot boot TWRP.img) as long as you were connected to your computer and had TWRP.img in your ADB folder.
I've done it to make TWRP backups of "stock" systems where TWRP is not installed on purpose.
People who never finished activating TWRP have been able to do it, as they really don't have TWRP installed --- they are booting to "temporary" TWRP from their computer using fastboot boot TWRP.img. If they try to boot to TWRP from their phone, using an app they get the Android on his back which is a clue they REALLY don't have TWRP installed... but they are still able to fastboot boot TWRP.img when connected from their computer.
If you can't do that, something is very wrong. It's just that's the easiest way to get into TWRP after flashing it, so you can then "activate" it, make the installation stick.
Thanks for that its installed and I have installed a rom however I still cant boot into recovery, I have to reflash to get back in, and is there any way to get rid of the corruption message
Jonnibravo said:
is there any way to get rid of the corruption message
Click to expand...
Click to collapse
Not really. The "corruption message" is just LG's scary bootloader unlock warning to discourage you from rooting your phone. It's really a sign of freedom. Ignore it.
It's going to show up when you boot to TWRP or even when to boot to regular OS. It's just an image, a picture for LG to try to scare you. It stays up a few seconds then goes away.
Some Verizon users have found if they flash part of the Verizon firmware back it replaces the bootloader unlock warning with a few seconds of black:
datechnerd said:
I did have to wipe to reflash US998. But while I was fighting that I discovered what partition holds the bootloader warning!!!! It's rawresources. I moved the VS996 rawresources over to my US998 /dev/block/bootdevice/by-name/ and no longer have the warning. Granted it's a short black screen pause,
Click to expand...
Click to collapse
While that is very interesting, for now I would just ignore the warning. It's not preventing you from booting to TWRP. What's preventing you from booting to TWRP is somehow you haven't finished the entire TWRP installation/activation process.
Jonnibravo said:
Thanks for that its installed and I have installed a rom however I still cant boot into recovery, I have to reflash to get back in
Click to expand...
Click to collapse
If you installed the Recovery Reboot app I recommended (requires root access) you can boot to TWRP from there on your phone, IF you REALLY have TWRP installed. If you are having to boot to "temp" TWRP via ADB from your computer every time, then TWRP is not really installed on your phone. If you use that Recovery Reboot app, and it boots to Android on his back, then you still have stock recovery installed.
You need to reflash (reinstall) TWRP, then boot to TWRP immediately and go through the steps I posted to make it writable -- so it will stick as your custom recovery.
RTFM Myself
ChazzMatt said:
Ignore the scary bootloader unlock warning. That's not preventing you from booting to TWRP.
What's preventing you from booting to TWRP is you didn't fully install TWRP and activate it. You still have stock recovery because you flashed TWRP but didn't finish the TWRP installation/activation process. So TWRP didn't stick and you have stock recovery still.
Read the instructions again. Post #193 of the WTF bootloader unlock and root thread.
WHICH instructions did you follow? Because with my instructions I cleary tell how to immediately boot to TWRP with fastboot flash commands after installing it -- and to NOT do any anything else (even rebooting the phone) before finishing TWRP installation and activation. You either didn't use my instructions or didn't carefully follow them?
People should really PRINT out the instructions before starting the process so they can carefully read it. It's very easy to skip over an important part or skip over a part you don't think is important?
It's all there for a reason.
Sent via open market LG US998 V30/V30+
Click to expand...
Click to collapse
I just had the same issue, had it all ready went to Pie, lost Magisk root, played with it until lost it all.. so had to start again.. missed the important part after intalling TWRP.. thanks again :good::good::good:

Flashed TWRP recovery as boot, can't boot device because TWRP starts

Hello! This is my first thread on the forum;
I'm writing because I think I soft bricked my Xiaomi Mi Pad 4 LTE, let me explain from the very beginning.
It's a brand new device, bought today, and with a custom italian ROM which was sold with.
I just wanted to root it, and the bootloader was already unlocked because it was a custom ROM, so I tried to install TWRP (mocha version for Mi Pad) with Fastboot and then I wanted to install Magisk.
The issue is that, when I tried to flash TWRP to recovery with fastboot flash recovery twrp.img, it all went "OK" but then TWRP was not actually flashed and couldn't boot it with key combinations, it just looked like it wasn't there. I also tried to boot it without flashing, with fastboot boot twrp.img but it gave me
"Failed to load/authenticate boot image: 00000050" error
Looking on the web, I found someone who told to try fastboot flash boot twrp.img and so, without even thinking, I did it.
That's the main issue. I rebooted, and found that TWRP started, but now I couldn't boot my device anymore, because the default boot.img file was replaced by twrp.img. So, practically, TWRP replaced my device's default system (I think?).
Then, I tried to find a stock firmware for Mi Pad 4 (Clover) on the web, and I found it, so I flashed the stock firmware boot.img, fastboot flash boot boot.img, but when I rebooted, the device was stuck in the loading screen with three dots loading over a "Powered by Android" logo. I waited 20 minutes, nothing, it looks stuck, so this stock boot.img doesn't seem to work.
I can actually flash TWRP and that stock boot image both whenever I want and switch between them; the first works, the latter doesn't.
So, in poor words: I flashed twrp.img as boot.img and now I can't boot normally, but TWRP starts when turning on my device.
But I just want to get my default boot.img or system, or any other way to reaccess to my device. That's fine even if I have to hard reset or wipe everything, it's fine even if I am going to lose data, but please, just help me.
Can someone help me? I'm just a newbie in this world, please help me unbricking my device.
Thanks in advance.
Try installing twrp again and boot to it
Download custom rom.of your choice ( im using hovac and it been great for a year now )
Move it to your mipad via comouter
Format everything in twrp and install the rom and gapps
--- I just remembered havin same issue u having and if im not mistaking : u should reboot to recovery right after installing twrp ( you dont reboot to system )
Im not really sure about it cause it happened long time ago
@DanielVipx
Sorry, seems you tried that already. Did you try the mi flash tool?
This might help:
https://osdn.net/projects/xiaomifirmwareupdater/storage/Stable/V10/clover/

Can't install recovery on slot A

EDIT:
In my way of trying to apply to warranty and flashing the stock package into the phone and Windows being Windows, I had problems using the batch script, it stopped for long time and didn't do nothing forcing me to restart the phone and restart the batch, until I uninstalled the driver and make Windows reinstall it automatically (manage devices) and it finally flashed it all, actually I flashed the package three times just to be sure lol. So, in the end I wanted to turn off the friggin phone because I was very done with it (what a PITA it has been) and wanted to apply for my warranty so as there is no command in fastboot to shutdown the phone I didn't know how to shut it down so I tried pressing Power button and releasing it the moment the screen goes off but I think I didn't do it right or the phone can't be shutdown that way (this is most probably the answer), well the phone rebooted and by the grace of Zeus it booted for the first time into MIUI and now is waiting for me to configure the phone, none of the times I flashed this packaged into the phone it booted into MIUI, never, and just when I want to turn the phone this thing boots, I don't know if I'm going to venture into flashing anything again being the phone how it is but goddamnit it was a real PITA, I had to use my old Redmi Note 3.
So, tl;dr: Flashed stock package, phone booted finally, all is OK for now.
====================================================================================================
====================================================================================================
Sooo, I was having problems with flashing stuff on this phone but I solved them and I was able to flash HavocOS, it was OK and I could use my phone kinda well (some reboots but nothing serious, or so I thought). So, until 12 hours ago my phone was having problems with the File Manager (I used FX app and also the stock one), it hanged and didn't respond and made the phone reboot itself a couple times, that was weird, actually the whole time I used this ROM I was having problems with my files, it used to took long time to read some files and I was thinking that maybe my SD was bad but apparently it's not. So, after the second reboot I was able to finally open the file manager but navigating through the SDCard was buggy and the app didn't show me any file (it show me an empty list) so I rebooted my phone manually (this time wasn't done by the phone itself) and now is when the phone never passed from the Havoc logo, I waited something close to 30 min and nothing, rebooted and waited 10 min and nothing, it still hanged on the logo, went into recovery to wipe everything and re-flash all and after doing all that and tried to boot to system my phone was booting to recovery and didn't past that, tried installing stock (flash_all script) and then installing recovery and everything again and nothing, it booted to recovery always. So there is when I realized I couldn't change anything in the slot A (at least to what boot refers), I can't install TWRP nor OrangeFox, I can do it in slot B, and even if I boot into recovery on slot B I can flash the zip installer, change the slot and try to boot to recovery from slot A but it boots to the bootloader, and yes, TWRP didn't output any error when flashing the installer.
Yes, the script flashes everything OK, well not everything, system and vendor partitions (A and B) I had to flash them manually because it gave me some errors with the script (reading errors, and yes I compared checksums so it was super weird) but in the end supposedly the stock ROM must have been installed, which I couldn't try because even after flashing everything on the script the phone was booting to bootloader, I didn't give importance to this because before I was able to flash and boot HavocOS I did the same thing because my phone was bootlooping into fastboot: I ran the script, flashed manually those images because it gave me the same errors, tried to boot to system and the phone booted to bootloader, didn't give a sheat, flashed OrangeFox recovery, ROM, recovery installer, GApps, nofde patch and then I was able to boot to HavocOS. But now this time I tried to install TWRP with fastboot command but it didn't worked, fastboot doesn't throw any errors while flashing, it reported:
Sending 'boot_a' (39780 KB) OKAY [ 1.042s]
Writing 'boot_a' OKAY [ 0.208s]
Finished. Total time: 1.263s
But if I try to boot into recovery it sends me to fastboot/bootloader, if I do this in the slot B I can successfully boot into recovery and, as I said, if I flash the installer, change the slot and reboot to recovery, my phone reboots to fastboot.
This has happened to someone else?
Does anybody knows of any solution?
I still have warranty (phone has less than 3 months) so I probably can flash the stock package and lock my bootloader so I can get my phone checked as probably it is a hardware failure, probably and hopefully .
Oh, and also I have to add that the recovery was also lagging sometimes (OrangeFox). Sometimes when I was looking into files on the SD, also when I pressed the "reboot system" button it hanged for half a minute and the it proceeded to reboot, and also once when I was flashing the nofde patch the phone also hanged and rebooted into recovery by itself. So this indicates that maybe is a hardware thing right? Because there is no way that the recovery could have gotten corrupted or something just out of the blue.
Yes. I'm another victim here... And now I can't install recovery on slot b either. Can't figure out what's wrong. This giving me such a hard time...
RthurPendragon said:
Yes. I'm another victim here... And now I can't install recovery on slot b either. Can't figure out what's wrong. This giving me such a hard time...
Click to expand...
Click to collapse
What I ultimately did was wipe everything on slot A, then wipe everything on slot B, then I proceeded to install the ROM on the slot A then re-flash the recovery and reboot to system and that's all. But I did had to wipe both slots A and B. If nothing works you can apply the original ROM (search for it on these forums) and go back to stock.
Jhon_Locke said:
What I ultimately did was wipe everything on slot A, then wipe everything on slot B, then I proceeded to install the ROM on the slot A then re-flash the recovery and reboot to system and that's all. But I did had to wipe both slots A and B. If nothing works you can apply the original ROM (search for it on these forums) and go back to stock.
Click to expand...
Click to collapse
In my case, I wiped system and installed Evolution X ROM (OSS version) with Custom Recovery (SHRP) Then when I want to reboot into recovery again to flash Magisk, There's no recovery... It always opens with fastboot mode. I tried flashing recovery.zip from slot b. Still no result.
Yes. I'm next victim here... And now I can't install recovery on slot b nor slot a. Can't figure out what's wrong. When i flash twrp recovery it flash successfully but when I boot into recovery it stuck in fastboot mode
Change slot and flash again but nothing worked it again stuck in fastboot mode even i flash different version of Twrp(3.2.1) but again it stuck in fastboot mode both a and b slot.
So i flashed stock rom and lock bootloader.
If have any solution how to install custom recovery please help me.
Thanks
Iamdchandan said:
Yes. I'm next victim here... And now I can't install recovery on slot b nor slot a. Can't figure out what's wrong. When i flash twrp recovery it flash successfully but when I boot into recovery it stuck in fastboot mode
Change slot and flash again but nothing worked it again stuck in fastboot mode even i flash different version of Twrp(3.2.1) but again it stuck in fastboot mode both a and b slot.
So i flashed stock rom and lock bootloader.
If have any solution how to install custom recovery please help me.
Thanks
Click to expand...
Click to collapse
Because there are 2 different twrp's.
One of which is for Android 9 and the other for Android 10. You are flashing the wrong one which is why you go to fastboot.
All documentation is on the applicable threads.
People need to stop blindly flashing stuff without reading the documentation or even know what they are doing.
So many people have bricked mi A3 because they don't read first
garylawwd said:
Because there are 2 different twrp's.
One of which is for Android 9 and the other for Android 10. You are flashing the wrong one which is why you go to fastboot.
All documentation is on the applicable threads.
People need to stop blindly flashing stuff without reading the documentation or even know what they are doing.
So many people have bricked mi A3 because they don't read first
Click to expand...
Click to collapse
I have flashed twrp latest 3.4.4 for Android 10 but it is stuck in fastboot mode either slot a or b.
What happened if i downgrade Android 10 to 9 and then flash twrp. Maybe it will successfully flashed.
Iamdchandan said:
I have flashed twrp latest 3.4.4 for Android 10 but it is stuck in fastboot mode either slot a or b.
What happened if i downgrade Android 10 to 9 and then flash twrp. Maybe it will successfully flashed.
Click to expand...
Click to collapse
Don't do it you will mess up your persist partition.
How are you flashing? You must be after typing something wrong
garylawwd said:
Because there are 2 different twrp's.
One of which is for Android 9 and the other for Android 10. You are flashing the wrong one which is why you go to fastboot.
All documentation is on the applicable threads.
People need to stop blindly flashing stuff without reading the documentation or even know what they are doing.
So many people have bricked mi A3 because they don't read first
Click to expand...
Click to collapse
garylawwd said:
Don't do it you will mess up your persist partition.
How are you flashing? You must be after typing something wrong
Click to expand...
Click to collapse
First if all reboot into fastboot mode then connect with pc then type command " fastboot flashing unlock" enter now again forcefully reboot into fastboot mode then type next command "fastboot flashing_critical unlock" now bootloader unlock.
Again reboot into fastboot mode then type command "fastboot getvar current-slot"
Now change current active slot and then type command " fastboot erase boot" . Now finally flashed twrp latest (3.4) for Android 10 with command "fastboot flash boot twrp.img" now it flash successfully then type command "fastboot reboot" and then press volume up then hit enter and it return in fastboot mode then i have again change slot and repeat all process with that slot but it again stuck in fastboot mode. After all i have changed twrp version but again same thing repeat so I flashed stock Android 10 through Mi flash and lock bootloader.
That's all whole process.
If do something wrong please help me to figure out.
Waiting for your reply ?.
Love
try sharp recovery
Sami Devo said:
try sharp recovery
Click to expand...
Click to collapse
I don't know installation process of sharp recovery.
Iamdchandan said:
I don't know installation process of sharp recovery.
Click to expand...
Click to collapse
install on the other slot... dont flash it on running rom slot... if rom running A.. chng it to B. then flash to B.. then goto recovery flash the sharp zip when sharp opens..then again chng slot to A.. running rom slot..
okk ur phn boots.

My phone won't boot properly after I try to install a custom ROM

Hello. I've tried many different ways to install the customs ROMs on here for Moto G8 Power (XT2041-3) but nothing has worked. When I try to flash using fastbootd every ROM except the Lineage one fails at the stage where I try to load the system.img. Even when I think I've correctly installed Lineage that way, when I go to reboot my phone it won't boot properly. I keep getting the screen alternating between the Motorola icon and the unlocked bootloader warning screen. It does that repeatedly for a while and then eventually boots as if I am powering on my phone for the first time out of the box after buying it.
So I've also tried TWRP. Again, I can seemingly install some of the flashable zips (Lineage and Omnirom), but when I reboot the same thing happens. Motorola screen, unlocked bootloader warning screen, etc, repeately for a couple of minutes, and then it boots to the Android system that came with the phone. As if there's been a total factory reset and I am turning on the phone for the first time. ADB sideload doesn't work either because even though it can detect ADB devices at first, as soon as I go to sideload on TWRP and then try "adb sideload .....zip" on the terminal of my computer (Linux) it doesn't seem to recognise any ADB devices any more.
I know it says to reboot to recovery after installing a custom ROM, but the same thing happens if I try that. Some sort of bootloop I think, and then basically a factory reset start.
TWRP doesn't seem to permanently install on my phone. If I try going into bootloader and then recovery after I have just used TWRP then all I get is the 'No Command' screen. Could this be part of the reason? I recently found out about DM-Verity. Could something on my phone be preventing changes to the system? It's really frustrating. Previously when I've installed custom ROMs on other Motorola phones I haven't had any problems. Any suggestions would be much appreciated. Thanks
Check out my post here.
Thanks tinbilly but I'm still unsure what to do. I hadn't tried CrDroid before so before anything I tried flashing those image files via fastbootd. Same problem - it failed at system.img. Which leaves me unable to boot into custom ROM or stock ROM. Before when that has happened I have always been able to just reflash stock using the commands on the XML file. Now even the first command fails (fastboot getvar max-sparse-size) so I don't seem to be able to get back to stock at the moment. I'll keep trying.
I didn't know how you flashed stock ROM to partition b. The only way I can think to change to partition b is to go into fastbootd and use the "fastboot set_active b" command. Or to flash TWRP (which doesn't work at the moment) and change slots that way. I think changing it on fastbootd might have messed me up a bit because it just went into a bootloop when I tried to do anything after that. For some reason I seem to be back in partition a now though (I typed "fastboot getvar all" while I was in fastbootd and it came back showing slot a).
Here is my suggestions:
1. Hard reset your device following this or this. They are basically the same instruction. Hopefully this will get your phone back to the stock rom. If not, then just try step 2 below.
2. Install the xt2041-3 stock rom on your device by following the instructions in the download link. Or you could try this method.
3. Once you are back to stock rom, you can install any custom rom via fastboot mode.
Hope that will help.
Thanks for that. I'm going to work on it over the weekend and see how I get on. I feel like I've spent too many valuable hours of my life trying to figure this out. If only this custom ROM thing could just be straightforward for everyone all the time.
tinbilly said:
Here is my suggestions:
1. Hard reset your device following this or this. They are basically the same instruction. Hopefully this will get your phone back to the stock rom. If not, then just try step 2 below.
2. Install the xt2041-3 stock rom on your device by following the instructions in the download link. Or you could try this method.
3. Once you are back to stock rom, you can install any custom rom via fastboot mode.
Hope that will help.
Click to expand...
Click to collapse
Cheers for your suggestions but nothing has worked. The phone wasn't taking any commands to reinstall stock ROM so I went to fastbootd (via recovery - no command - hold power button and up) and did a factory reset from there. Then I was able to flash the commands on the stock ROM xml file via the bootloader. So I got back to stock fine. But after trying to flash Lineage OS it seems to have worked fine but when I go to reboot I keep booting to bootloader. I tried fastboot oem fb_mode_clear but that didn't change anything. I'll keep trying different things and let people know if I find a solution.
lazzr said:
Cheers for your suggestions but nothing has worked. The phone wasn't taking any commands to reinstall stock ROM so I went to fastbootd (via recovery - no command - hold power button and up) and did a factory reset from there. Then I was able to flash the commands on the stock ROM xml file via the bootloader. So I got back to stock fine. But after trying to flash Lineage OS it seems to have worked fine but when I go to reboot I keep booting to bootloader. I tried fastboot oem fb_mode_clear but that didn't change anything. I'll keep trying different things and let people know if I find a solution.
Click to expand...
Click to collapse
Did you format data before or after installing lineage os? As in, where you have to type yes, not just wiping data.
Beetle84 said:
Did you format data before or after installing lineage os? As in, where you have to type yes, not just wiping data.
Click to expand...
Click to collapse
Hi Beetle. I always swipe to the right to wipe the cache etc. And after flashing I swipe to wipe the dalvik. But I'm never given the option to type yes. I'm not sure what you mean.
I've spent a lot of time wondering why TWRP never reboots when I try to reboot into recovery after flashing a zip. I just realised (after reading the instructions for flashing ArrowOS on this forum) that I can flash TWRP to partition b as well by using the commands:
fastboot flash recovery twrp.img
fastboot flash recovery_b twrp.img
By doing that I was able to (or so I thought) install the zip to the inactive slot b, and then reboot to recovery using TWRP, and it comes back as having the active slot b. I got excited but when I went to reboot system the same thing happened. Just some sort of bootloop thing. Nothing seems to work. I've tried OmniROM and Stag zips as well.
lazzr said:
Hi Beetle. I always swipe to the right to wipe the cache etc. And after flashing I swipe to wipe the dalvik. But I'm never given the option to type yes. I'm not sure what you mean.
I've spent a lot of time wondering why TWRP never reboots when I try to reboot into recovery after flashing a zip. I just realised (after reading the instructions for flashing ArrowOS on this forum) that I can flash TWRP to partition b as well by using the commands:
fastboot flash recovery twrp.img
fastboot flash recovery_b twrp.img
By doing that I was able to (or so I thought) install the zip to the inactive slot b, and then reboot to recovery using TWRP, and it comes back as having the active slot b. I got excited but when I went to reboot system the same thing happened. Just some sort of bootloop thing. Nothing seems to work. I've tried OmniROM and Stag zips as well.
Click to expand...
Click to collapse
When you press wipe in twrp, down the bottom is a button 'format data', tap that, type yes and enter.
Then reboot.
Beetle84 said:
When you press wipe in twrp, down the bottom is a button 'format data', tap that, type yes and enter.
Then reboot.
Click to expand...
Click to collapse
Thanks. I tried it but then I end up with no zip file in my internal storage so have nothing for twrp to install. I tried copying and pasting the file from my PC to my Android folder but it was going to take about a week to copy over. I also can't use ADB sideload for some reason. I get this:
adb: sideload connection failed: no devices/emulators found
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: no devices/emulators found
and
E:Unable to get child ID
on my phone when I cancel the sideload. I can't figure it out at all.
I also just tried flashing my stock recovery to replace twrp. After I had already used twrp to format everything. Then went to fastbootd and tried flashing the image files. They looked like they had installed but now when I reboot it automatically takes me to bootloader instead of into system.
In twrp, there's no option to wipe system. So in my case, I replaced twrp with stock recovery, then did a Factory Reset [Advanced > Reset options > Erase all data (factory reset)].
Before "tried flashing the image files" in fastbootd, did you "fastboot set_active a"?
tinbilly said:
In twrp, there's no option to wipe system. So in my case, I replaced twrp with stock recovery, then did a Factory Reset [Advanced > Reset options > Erase all data (factory reset)].
Before "tried flashing the image files" in fastbootd, did you "fastboot set_active a"?
Click to expand...
Click to collapse
I've tried the "fastboot set_active a" but it still doesn't work. I've factory reset through stock recovery too, and seem to have tried everything I can think of. I miss my old original Moto G which was easy to install on. I've been trying for weeks and keep running into the same issues. I'll keep trying over the next few days and report back if I solve it in case anyone else has the same problem.
Mine is a XT2041-1. What I did:
1. flashed back to stock ROM 10_QPE30.69-16
2. rebooted the phone, then set it up (I did not upgrade to Android 11 as notified by the system)
3. wiped the phone using System > Advanced > Reset (just to be safe)
4. flashed to crDroid 7.4 (Android11-based)
You said you failed to load the custom ROM's system.img. What is the exact error message? Please attach some screenshots as well.
tinbilly said:
Mine is a XT2041-1. What I did:
1. flashed back to stock ROM 10_QPE30.69-16
2. rebooted the phone, then set it up (I did not upgrade to Android 11 as notified by the system)
3. wiped the phone using System > Advanced > Reset (just to be safe)
4. flashed to crDroid 7.4 (Android11-based)
You said you failed to load the custom ROM's system.img. What is the exact error message? Please attach some screenshots as well.
Click to expand...
Click to collapse
I thought I'd try some more possible ways to fix it before replying but I've just wasted another few hours to no avail. I have the flashable zips for OmniROM 11 and Lineage, but I can't even get TWRP to ask for a password anymore so all my files show up as gobbledegook. Not that I think they would work either because they haven't so far.
The one that I thought had been successful was installing Lineage images using fastbootd, but whenever I go to reboot I end up in bootloader. The bootloader log says "Reboot mode set to fastboot". I have no idea how to get out of that. Fastboot fb_mode_clear doesn't work.
I thought I would try to root the phone (I know people say you don't need to do that first but I'm sure in the past I have done) but I can't get Magisk to install.
I installed Lineage images again, and then after it rebooted into bootloader I installed TWRP and tried entering the dd commands on this page in the terminal (I didn't know how to do the backup in section 2 of the instructions):
Troubleshooting: TWRP Boot Loop after OTA update in MOTO G4 (XT1621 Athene)
Hi. This is my first post in this forum. I had this problem, the phone always started in TWRP Mode after updating by OTA update, I should NOT have updated it this way, but I have done it still. :cyclops: XD To fix it, try this: TWRP Method: 1-...
forum.xda-developers.com
All I got back was "no such file or directory".
The error message from installing images (the one below was CrDroid 7.4 but it happens with most of them) seems to be quite common from what I can tell from reading other people's posts. I have also I tried "sudo" before flashing the system image because I've seen that recommended, but it didn't work either:
writing 'system_a' 5/6 (usually 3/3 on other ROMs)...
FAILED (remote: Operation not permitted)
{
"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"
}
Wiping my data and formatting has caused me some issues too. I've done that many different things that I can't remember what exactly, but I do know that when I tried to install ZIP files using TWRP the Failed to mount '/system_root' error message came up a few times.
I've attached an images below to give an example of the types of other red screen messages I've had:
Forgive the long message. If any of this gives you any ideas or you've seen it before then please let me know. To be honest I just want a phone without all the google stuff on it and the amount of time I've spent on this I'm feeling like I should just get myself a different phone it would be easier to install on.
By the way, the image at the bottom there was the error message I got while trying to wipe in TWRP
A final attempt for now. I factory reset through fastbootd. Then "installed" Lineage image files. Rebooted and ended up in bootloader. Flashed TWRP, which this time could recognise my folders. ADB pushed Omnirom zip to my data folder. Tried a wipe, got lots of error messages, then tried installing the zip, and got the below:
This whole experience has been brutal.
From my experience with TWRP on my XT2041-1, I won't go with TWRP to flash a custom ROM. So just forget TWRP for now.
One important question, I think: Can you flash and boot your device to stock Android 10? [Note: I find this is a reliable method to go back to stock ROM. Just make sure you get the correct one matching your device.]
If yes, let take it as a starting point. From there, I suggest you wipe the phone using System > Advanced > Reset then flash to a Custom ROM using fastbootd. Btw, which custom ROM you prefer and intend to flash on your phone?
lazzr said:
A final attempt for now. I factory reset through fastbootd. Then "installed" Lineage image files. Rebooted and ended up in bootloader. Flashed TWRP, which this time could recognise my folders. ADB pushed Omnirom zip to my data folder. Tried a wipe, got lots of error messages, then tried installing the zip, and got the below:View attachment 5309925
This whole experience has been brutal.
Click to expand...
Click to collapse
What did you do after factory reset? How did you install Lineage image files? Please briefly describe what you did step-by-step. Just briefly.
tinbilly said:
From my experience with TWRP on my XT2041-1, I won't go with TWRP to flash a custom ROM. So just forget TWRP for now.
One important question, I think: Can you flash and boot your device to stock Android 10? [Note: I find this is a reliable method to go back to stock ROM. Just make sure you get the correct one matching your device.]
If yes, let take it as a starting point. From there, I suggest you wipe the phone using System > Advanced > Reset then flash to a Custom ROM using fastbootd. Btw, which custom ROM you prefer and intend to flash on your phone?
Click to expand...
Click to collapse
I can boot to stock using the same list of commands in that link. Starting with fastboot getvar max-sparse-size. Then I set up my phone to enable USB debugging and "file transfer" under default USB configuration. Then "ADB reboot bootloader", and click to enter recovery. I get the "No command" screen so I hold the power button and press up. Then "enter fastboot" to enter fastbootd. I've followed the next few instructions exactly as everyone says. Set active a, flash boot then system etc, then erase userdata.
This time I enabled "PTP" instead of "File Transfer" under default USB configuration to see if it made any difference. It still won't load system and I get this message:
sending sparse 'system_a' 1/2 (720896 KB)...
OKAY [ 20.736s]
writing 'system_a' 1/2...
(bootloader) Preflash validation failed
FAILED (remote failure)
I don't understand how it helps to install stock ROM and then wipe the phone using System > Advanced > Reset. That just puts me back to the same place as after I installed stock and I have to go in Developer Options etc again.
I'll try any ROM. I'm trying CrDroid now but it doesn't work. Lineage is the only one that seems to install system but I can't reboot to system.

Categories

Resources