Multi partition question - OnePlus 6 Questions & Answers

OK since we have multi partitions, if we mess up on a flash or want to just test things can we switch to from a to b or vise versa and it will boot whatever was on that partition or does it not work that way?

Bradl79 said:
OK since we have multi partitions, if we mess up on a flash or want to just test things can we switch to from a to b or vise versa and it will boot whatever was on that partition or does it not work that way?
Click to expand...
Click to collapse
I'm interested in this, as well. Also, I just came from the 3t. Love your rom.

As far as I could tell from trial and error that is the way it is supposed to work, but I am having issues on one of both Partitions getting locked after deleting magisk but it working again after flashing magisk again, so I guess I did something wrong somewhere in the beginning when clean flashing to start over again

You cant brick your phone with flashing
So try whatever you want, you can always restory your phone.

matze19999 said:
You cant brick your phone with flashing
So try whatever you want, you can always restory your phone.
Click to expand...
Click to collapse
That's for sure, but do you happen to know how to get 2 working Partitions, the way it should be? Because now I only have one and the other goes straight to TWRP.
Essentially you should have 2 identical (working) OOS'es running till you screw the active one up but I can't get it like that. I used to have it but then I didn't understand he A/B yet so I didn't even knew

SaGaR_ said:
That's for sure, but do you happen to know how to get 2 working Partitions, the way it should be? Because now I only have one and the other goes straight to TWRP.
Essentially you should have 2 identical (working) OOS'es running till you screw the active one up but I can't get it like that. I used to have it but then I didn't understand he A/B yet so I didn't even knew
Click to expand...
Click to collapse
You have the system.img of your os, right?
Flash it to both slots using
fastboot flash system_a system.img
and
fastboot flash system_a system.img
Now just boot into your system and set it up.
Now, when your system gets an update, it will be straight installed to the other slot and when you reboot your phone the next time, it will simply just boot to the other slot. No flashing or something else.
When the slot change didn't work probably, the phone will boot to the last used slot and you have to install the update again.
I hope I was able to help you

matze19999 said:
You cant brick your phone with flashing
Click to expand...
Click to collapse
Well... could really get tricky without a PC and/or debugging activated . Just saying.

matze19999 said:
You have the system.img of your os, right?
Flash it to both slots using
fastboot flash system_a system.img
and
fastboot flash system_a system.img
Now just boot into your system and set it up.
Now, when your system gets an update, it will be straight installed to the other slot and when you reboot your phone the next time, it will simply just boot to the other slot. No flashing or something else.
When the slot change didn't work probably, the phone will boot to the last used slot and you have to install the update again.
I hope I was able to help you
Click to expand...
Click to collapse
Thank you, I thought so, I tried to achieve that from TWRP but that gave some weird "internal error" message on one Partition while everything worked fine it didn't gave a clean/fresh install feeling.
But I only have the zip files no .IMG files

MickyFoley said:
Well... could really get tricky without a PC and/or debugging activated . Just saying.
Click to expand...
Click to collapse
USB debugging doesn't care. But you need always a Pc
---------- Post added at 08:57 AM ---------- Previous post was at 08:57 AM ----------
SaGaR_ said:
Thank you, I thought so, I tried to achieve that from TWRP but that gave some weird "internal error" message on one Partition while everything worked fine it didn't gave a clean/fresh install feeling.
But I only have the zip files no .IMG files
Click to expand...
Click to collapse
What is inside the zip file? A payload.bin or a system.img?

matze19999 said:
USB debugging doesn't care. But you need always a Pc
Click to expand...
Click to collapse
Why do you always need a PC? I have done only the boot of TWRP with PC and from there everything from the phone.
Btw,I don't know if I'm the only one, but when I connect my phone to PC with the USB it doesn't recognize it until I turn of USB debugging. But I know that the problem is with my windows 10. Because on other PC's it works no problem and previous phones always worked without issues
matze19999 said:
What is inside the zip file? A payload.bin or a system.img?
Click to expand...
Click to collapse
Payload.bin

SaGaR_ said:
Why do you always need a PC? I have done only the boot of TWRP with PC and from there everything from the phone.
Btw,I don't know if I'm the only one, but when I connect my phone to PC with the USB it doesn't recognize it until I turn of USB debugging. But I know that the problem is with my windows 10. Because on other PC's it works no problem and previous phones always worked without issues
Payload.bin
Click to expand...
Click to collapse
Not always... But when your system and even recovery won't boot anymore, you have to use the msmdownloadtool to restore your system. Without a Pc, you can throw your phone into the trash ?
You can extract the payload.bin with a small Linux script
https://gist.github.com/ius/42bd02a5df2226633a342ab7a9c60f15

matze19999 said:
Not always... But when your system and even recovery won't boot anymore, you have to use the msmdownloadtool to restore your system. Without a Pc, you can throw your phone into the trash ?
Click to expand...
Click to collapse
True, but you could always boot to bootloader and fastboot TWRP or something like that.
And what's this MSMDownloadTool ?
matze19999 said:
You can extract the payload.bin with a small Linux script
https://gist.github.com/ius/42bd02a5df2226633a342ab7a9c60f15
Click to expand...
Click to collapse
But why would I need to extract Payload.bin?

SaGaR_ said:
True, but you could always boot to bootloader and fastboot TWRP or something like that.
And what's this MSMDownloadTool ?
But why would I need to extract Payload.bin?
Click to expand...
Click to collapse
No, you can't always boot to .bootloader / fastboot.
In this case, you need the msmdownloadtool. It writes all partitions again to your phone.

SaGaR_ said:
True, but you could always boot to bootloader and fastboot TWRP or something like that.
And what's this MSMDownloadTool ?
But why would I need to extract Payload.bin?
Click to expand...
Click to collapse
My OP6 wouldn't boot, just went to a black screen and kept flashing a blue notification light. I fastboot the twrp.img and all my files were present on internal storage. I did a restore, flashed twrp installer and Magisk and was back in business.
If you can fastboot your good if not thats when you need the msmdownloadtool

It really can get tricky. Flashing an OTA zip overwrites recovery because recovery is part of the boot img. So always flash the twrp installer then magisk after you flash an OTA rom. Also, there is a /backup partition survives a flash (usually) so I will stick stuff there temporarily to keep me from having to whip out my PC if stuff goes south. I used it when I tried out Android P lol
MickyFoley said:
Well... could really get tricky without a PC and/or debugging activated . Just saying.
Click to expand...
Click to collapse

matze19999 said:
You cant brick your phone with flashing
So try whatever you want, you can always restory your phone.
Click to expand...
Click to collapse
What happens if you dd to zero all bootloader partitions? It can still be restored with que qualcomm protocol to connect to PC?

RusherDude said:
What happens if you dd to zero all bootloader partitions? It can still be restored with que qualcomm protocol to connect to PC?
Click to expand...
Click to collapse
Yeah, ofc, because the low level bootloader is read only and you can't overwrite it

matze19999 said:
Yeah, ofc, because the low level bootloader is read only and you can't overwrite it
Click to expand...
Click to collapse
But the read only bootloader runs the Qualcomm protocol to connect it to PC or fasboot? otherwise how do you flash the other partitions?

RusherDude said:
But the read only bootloader runs the Qualcomm protocol to connect it to PC or fasboot? otherwise how do you flash the other partitions?
Click to expand...
Click to collapse
Turn your device off, hold the louder volume button and connect the phone to your PC. Now you're in Qualcomm low level bootloader. Start the msmdownloadtool and press the flash button

matze19999 said:
Turn your device off, hold the louder volume button and connect the phone to your PC. Now you're in Qualcomm low level bootloader. Start the msmdownloadtool and press the flash button
Click to expand...
Click to collapse
That doesn't answer my question! Do you mean that, AFTER wiping the bootloader partitions, that can still be done? aka in the read-only memory bootloader is the qualcoom protocol function?
I mean, even if that happens from the phone turned off, it can be the first bootloader partition that gets wiped the one that does the qualcomm protocol stuff. I wanna know if its the read only the one that has the qualcomm protocol

Related

[SOLVED] Asking Experts for Solving Bootloop Nokia 8

So, I want to say that my Nokia 8 TA-1004 is having Bootloop. This happens very occasionally and randomly. It just attacks unexpected. I can't see what is the problem or what's the source of it. Thankfully, I have the logcat file. However, I do not understand what was the main cause. So please, I am asking the experts in here to help me identify the source of this error.
The Bootloop just boot like 4-5 times and then stopped Bootloop or sometimes just go straight to DOWNLOAD MODE and I had to restart manually. After that, i was able to gointo system like exploring like usual, and then it happens again. Sometimes not opening the app also happens. Repeat until you gets the nerve.
The phones status is rooted with magisk and unlocked bootloader but no twrp yet. Also, I am at 4.88B SP01 June,01 patch. If you are telling me that the root is the cause, then it is unlikely since it has been weeks since I had it rooted but the problem just came these recently.
Once again, I ask for the help of forumers here. I want to at least enjoy my phone that I love. I dont really want to sell the phone anymore.
Here's the link of logcat:
https://www16.zippyshare.com/v/2W0SVK8t/file.html
I promise. No viruses. Thank you
Hey, I suspect that this problem could be fixed by flashing original bootloader image.
I assume you have flashed an unsuitable image and I think you are using an unlocked bootloader, that's why you are facing this problem.
error748 said:
Hey, I suspect that this problem could be fixed by flashing original bootloader image.
I assume you have flashed an unsuitable image and I think you are using an unlocked bootloader, that's why you are facing this problem.
Click to expand...
Click to collapse
Do you mean flashing original Boot.img? As we know, to gain root, we need to flash patched boot.img with magisk. Do you mean this kind of issue? I notice the problem is in Android System. It says failed to load as data may corrupt. Google is also not responding and Google play services.
Unlocked Bootloader isnt the issue. But, I do think image is unsuitable. However, I have patched boot.img as the same as the version of Nokia. Is such thing still happen?
godofknife said:
Do you mean flashing original Boot.img? As we know, to gain root, we need to flash patched boot.img with magisk. Do you mean this kind of issue? I notice the problem is in Android System. It says failed to load as data may corrupt. Google is also not responding and Google play services.
Unlocked Bootloader isnt the issue. But, I do think image is unsuitable. However, I have patched boot.img as the same as the version of Nokia. Is such thing still happen?
Click to expand...
Click to collapse
now do one thing. flash stock boot img (will break wifi), after that download official twrp and boot into it. then from twrp flash twrp zip file provided with official boot img. reboot to twrp and flash latest magisk beta. (you will have wifi working after this)
This way you will get root and stable system.. no need to flash patched boot img anymore..
Make sure to revert back to stock boot first before flashing twrp..
sumitinhome said:
now do one thing. flash stock boot img (will break wifi), after that download official twrp and boot into it. then from twrp flash twrp zip file provided with official boot img. reboot to twrp and flash latest magisk beta. (you will have wifi working after this)
This way you will get root and stable system.. no need to flash patched boot img anymore..
Make sure to revert back to stock boot first before flashing twrp..
Click to expand...
Click to collapse
sumitinhome, I just did factory reset. The problem STILL HAPPENS. It means it wasn't any of the app but from the system or the boot.img itself perhaps.
With no way to enter the system, how do i get into the fastboot now? By pressing volume down + Power (That shows DOWNLOAD MODE)? Is that the fastboot? Then yet again, the only issue that I have is the exactly driver for Nokia 8. I found lots of drivers in the internet but I am quite confused which one is the real driver of Nokia 8 to be able to detect in fastboot and ADB. Do you have a driver installer?
Assuming if you will have given Nokia driver and I managed to get into fastboot mode by using hard key, do I type this command?
fastboot flash boot.img? Or is it wrong command?
Thank you and sorry if i ask too many questions.
godofknife said:
sumitinhome, I just did factory reset. The problem STILL HAPPENS. It means it wasn't any of the app but from the system or the boot.img itself perhaps.
With no way to enter the system, how do i get into the fastboot now? By pressing volume down + Power (That shows DOWNLOAD MODE)? Is that the fastboot? Then yet again, the only issue that I have is the exactly driver for Nokia 8. I found lots of drivers in the internet but I am quite confused which one is the real driver of Nokia 8 to be able to detect in fastboot and ADB. Do you have a driver installer?
Assuming if you will have given Nokia driver and I managed to get into fastboot mode by using hard key, do I type this command?
fastboot flash boot.img? Or is it wrong command?
Thank you and sorry if i ask too many questions.
Click to expand...
Click to collapse
1. download mode is fastboot mode.. no difference there.
2. unfortunately i dont have installer for drivers but you can find it if you browse nokia section in this forum.
3. you will need command 'fastboot flash boot_a boot.img' and 'fastboot flash boot_b boot.img' to flash stock boot img to your phone..
4. if you wish to install twrp then you will need to follow instructions from following thread
https://forum.xda-developers.com/nokia-8/development/official-twrp-nb1-t3832232
Make sure to read the thread and comments carefully before doing anything.
Hope it helped.
sumitinhome said:
1. download mode is fastboot mode.. no difference there.
2. unfortunately i dont have installer for drivers but you can find it if you browse nokia section in this forum.
3. you will need command 'fastboot flash boot_a boot.img' and 'fastboot flash boot_b boot.img' to flash stock boot img to your phone..
4. if you wish to install twrp then you will need to follow instructions from following thread
https://forum.xda-developers.com/nokia-8/development/official-twrp-nb1-t3832232
Make sure to read the thread and comments carefully before doing anything.
Hope it helped.
Click to expand...
Click to collapse
Hey there, thanks for the fast respond. It greatly helps.
Alright, I am waiting for the driver. Also, I checked anywhere in the forum section of Nokia 8 but none of them have 00WW_4.88bSP01 version of stock boot.img which is 1st June 2018 patch.
Do you happen to have had it? Is it okay if i ask for it? Thank you.
godofknife said:
Hey there, thanks for the fast respond. It greatly helps.
Alright, I am waiting for the driver. Also, I checked anywhere in the forum section of Nokia 8 but none of them have 00WW_4.88bSP01 version of stock boot.img which is 1st June 2018 patch.
Do you happen to have had it? Is it okay if i ask for it? Thank you.
Click to expand...
Click to collapse
I have it. Wait sometime.. i will upload it on gdrive and share you link
sumitinhome said:
I have it. Wait sometime.. i will upload it on gdrive and share you link
Click to expand...
Click to collapse
Yes sumitinhome, thank you so much. Try make it one upload with the driver. All that and I will do the fastboot command asap..
Oh yeah, one verify question. When the bootloader is unlocked, updating the newest ROM after august will lock the bootloader again or not? Some say yes, some say no. A member name hikari stated no, we are unaffected. But, some say relock again. Which is true?
godofknife said:
Yes sumitinhome, thank you so much. Try make it one upload with the driver. All that and I will do the fastboot command asap..
Oh yeah, one verify question. When the bootloader is unlocked, updating the newest ROM after august will lock the bootloader again or not? Some say yes, some say no. A member name hikari stated no, we are unaffected. But, some say relock again. Which is true?
Click to expand...
Click to collapse
we are unaffected.. and i have only boot img unfortunately.. i dont have drivers..
and dont update to august yet.. let pie come and update to pie directly then..
---------- Post added at 02:10 PM ---------- Previous post was at 02:04 PM ----------
godofknife said:
Hey there, thanks for the fast respond. It greatly helps.
Alright, I am waiting for the driver. Also, I checked anywhere in the forum section of Nokia 8 but none of them have 00WW_4.88bSP01 version of stock boot.img which is 1st June 2018 patch.
Do you happen to have had it? Is it okay if i ask for it? Thank you.
Click to expand...
Click to collapse
here is boot img
https://drive.google.com/file/d/1XtxIWQdn9dbtt1tJydM_6fFhslRZfozr/view?usp=drivesdk
sumitinhome said:
we are unaffected.. and i have only boot img unfortunately.. i dont have drivers..
and dont update to august yet.. let pie come and update to pie directly then..
---------- Post added at 02:10 PM ---------- Previous post was at 02:04 PM ----------
here is boot img
https://drive.google.com/file/d/1XtxIWQdn9dbtt1tJydM_6fFhslRZfozr/view?usp=drivesdk
Click to expand...
Click to collapse
Ah ha, thank you very much. I just need one more requirement. The driver. Honestly, there are so many drivers for Nokia 8 and none of them seems to work with my device detection. There's also type F, M driver..... Seriously confusing.
@sumitinhome, you are awesome. I must say thank you for helping me. Phone is no longer in bootloop state. However, I may require just little more help. I have also installed TWRP and succeeded. The problem is that the WIFI breaks. I went ahead and installed Magisk using zip one like you mentioned the steps in installing TWRP. It still doesn't solve the WIFI problem. How could this be? (Do note that I did not use fastboot flash twrp.img. I use fastboot boot twrp.img instead)
I also have other questions. During MTP in TWRP, I saw the partition drive; The internal storage and USB-OTG as given in picture below. What is the second drive meaning?
Second question is why is Magisk manager only showing Installed version v17.1? And the button is just uninstalled. I recall there are other buttons and feature like Safety Net and advance settings.
Finally, I want to know how do we get into recovery mode without using ADB command everytime? I tried pressing Volume UP + Power. But, it didn't go into TWRP. It just goes normal reboot.
Thank you so much once again.
Pic: https://ibb.co/jFtHPp
godofknife said:
@sumitinhome, you are awesome. I must say thank you for helping me. Phone is no longer in bootloop state. However, I may require just little more help. I have also installed TWRP and succeeded. The problem is that the WIFI breaks. I went ahead and installed Magisk using zip one like you mentioned the steps in installing TWRP. It still doesn't solve the WIFI problem. How could this be? (Do note that I did not use fastboot flash twrp.img. I use fastboot boot twrp.img instead)
I also have other questions. During MTP in TWRP, I saw the partition drive; The internal storage and USB-OTG as given in picture below. What is the second drive meaning?
Second question is why is Magisk manager only showing Installed version v17.1? And the button is just uninstalled. I recall there are other buttons and feature like Safety Net and advance settings.
Finally, I want to know how do we get into recovery mode without using ADB command everytime? I tried pressing Volume UP + Power. But, it didn't go into TWRP. It just goes normal reboot.
Thank you so much once again.
Pic: https://ibb.co/jFtHPp
Click to expand...
Click to collapse
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button.
This will get back wifi. after that you can update to latest august patch too if you want and then flash twrp.
And about that OTG thing, don't worry twrp is being updated it will be fixed very soon. People are working on it.
sumitinhome said:
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button.
This will get back wifi. after that you can update to latest august patch too if you want and then flash twrp.
And about that OTG thing, don't worry twrp is being updated it will be fixed very soon. People are working on it.
Click to expand...
Click to collapse
I see. Number 3 has Encryption. Also, before i can do this, i have a new problem. I was so stupid. I accidentally format everything including the system which leaves me NO OS. I should have just wipe data (factory reset). Not advanced wipe. Can I still install Stock rom (any version) with twrp? What do i do?
@sumitinhome, also I forgot to mention. SD Card and Internal storage is not detected in TWRP Mode. I checked in my PC. ADB Sideload is also fail. Is this the end of my phone fate?
EDITED: Never mind. I was using the obsolete TWRP Version. I updated to the latest one and SD Card and internal is detected in TWRP once again.
godofknife said:
@sumitinhome, also I forgot to mention. SD Card and Internal storage is not detected in TWRP Mode. I checked in my PC. ADB Sideload is also fail. Is this the end of my phone fate?
EDITED: Never mind. I was using the obsolete TWRP Version. I updated to the latest one and SD Card and internal is detected in TWRP once again.
Click to expand...
Click to collapse
well done
sumitinhome said:
well done
Click to expand...
Click to collapse
Thank you.
godofknife said:
I see. Number 3 has Encryption. Also, before i can do this, i have a new problem. I was so stupid. I accidentally format everything including the system which leaves me NO OS. I should have just wipe data (factory reset). Not advanced wipe. Can I still install Stock rom (any version) with twrp? What do i do?
Click to expand...
Click to collapse
@sumitinhome, how about this? I still have the issue. NO OS is running.
godofknife said:
Thank you.
@sumitinhome, how about this? I still have the issue. NO OS is running.
Click to expand...
Click to collapse
told you flash stock boot img again.. and use the above method i mention to flash firmware..
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button
sumitinhome said:
told you flash stock boot img again.. and use the above method i mention to flash firmware..
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button
Click to expand...
Click to collapse
That was also the solution for NO OS? Wow. Thanks. Um, the download link need Decryption key. Do you happen to have it?
godofknife said:
That was also the solution for NO OS? Wow. Thanks. Um, the download link need Decryption key. Do you happen to have it?
Click to expand...
Click to collapse
no it doesn't need any key

Deleted OS no Recovery

Hi, I done an advanced rest via TWRP and it wiped my OS. Now it only boots into fastboot, there is no recovery and it is just a loop of the 4 options the phone just restarts for each of them. It is not being recognised in adb devices on my mac. What do i do?
Thanks!
Had the same issue a few weeks ago!
Check here... https://r.tapatalk.com/shareLink?ur...share_tid=3931424&share_fid=3793&share_type=t
Sent from my GM1913 using Tapatalk
berthoff said:
Hi, I done an advanced rest via TWRP and it wiped my OS. Now it only boots into fastboot, there is no recovery and it is just a loop of the 4 options the phone just restarts for each of them. It is not being recognised in adb devices on my mac. What do i do?
Thanks!
Click to expand...
Click to collapse
All you need to is to switch to your other slot and the will boot up.
fastboot --set-active=a
Then try to boot up, if you come back to bootloader.
fastboot --set-active=b
then try to boot up, it will work.
It is highly unlikely that you wipe both your slots.
long as bootloader is unlocked and you can get to fastboot just fastboot flash twrp or oos good luck
Managed to flash the fastboot rom and back working, Thanks!
harpin14789 said:
All you need to is to switch to your other slot and the will boot up.
fastboot --set-active=a
Then try to boot up, if you come back to bootloader.
fastboot --set-active=b
then try to boot up, it will work.
It is highly unlikely that you wipe both your slots.
Click to expand...
Click to collapse
How do you do this? I have a feeling I have done this also but I dont know how to go about this.
JohnsNotHome said:
How do you do this? I have a feeling I have done this also but I dont know how to go about this.
Click to expand...
Click to collapse
you do this in fastboot. Get into fastboot then connect to your computer, (make sure to get adb and fastboot installed). Then run those commands.
harpin14789 said:
you do this in fastboot. Get into fastboot then connect to your computer, (make sure to get adb and fastboot installed). Then run those commands.
Click to expand...
Click to collapse
I did run those commands once I got connected. But every time I tried to reboot it always took me back to the fast boot screen.
Once I flashed twrp before installing the Android 10zip I tried switching the slots on twrp. That also didn't do anything.
So now I have 2 worries. Did I wipe out my original Android 10? Is it still sitting there somewhere? Have I messed up anything by switching the slots? Should I have performed a reformat after getting back TWRP? I'm kinda worried, hope you can help.
Main thing is I have it working now but I wanna make sure I've learned my lesson. Thank you.
JohnsNotHome said:
I did run those commands once I got connected. But every time I tried to reboot it always took me back to the fast boot screen.
Once I flashed twrp before installing the Android 10zip I tried switching the slots on twrp. That also didn't do anything.
So now I have 2 worries. Did I wipe out my original Android 10? Is it still sitting there somewhere? Have I messed up anything by switching the slots? Should I have performed a reformat after getting back TWRP? I'm kinda worried, hope you can help.
Main thing is I have it working now but I wanna make sure I've learned my lesson. Thank you.
Click to expand...
Click to collapse
ok, you need to flash a fastboot rom. Download it and run the flashall-fastboot.bat, try without wiping data first (it will ask if you want to format userdata). If that still doesn't fix it, then you try again with userdata wiped.
If that doesn't work. you need to use msm download to fully recover (this will fully wipe and recover your phone to pie) back to locked bootloader.
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
harpin14789 said:
ok, you need to flash a fastboot rom. Download it and run the flashall-fastboot.bat, try without wiping data first (it will ask if you want to format userdata). If that still doesn't fix it, then you try again with userdata wiped.
If that doesn't work. you need to use msm download to fully recover (this will fully wipe and recover your phone to pie) back to locked bootloader.
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
Click to expand...
Click to collapse
Thank you for this. I will save this piece of information for the future.
But like I said. Everything is working fine now. I was worried that it hadn't wiped out all my data and the OS and everything else was just sitting there on the other slot. Now I understand that it is technically not possible.
My other worry is that it was not wiped out properly and that it could cause problems and bugs when using the device. And lastly that it would cause problems when future updates come (in regards to the slots thing). I'm a bit of a worrier.. sorry about this.
JohnsNotHome said:
I did run those commands once I got connected. But every time I tried to reboot it always took me back to the fast boot screen.
Once I flashed twrp before installing the Android 10zip I tried switching the slots on twrp. That also didn't do anything.
So now I have 2 worries. Did I wipe out my original Android 10? Is it still sitting there somewhere? Have I messed up anything by switching the slots? Should I have performed a reformat after getting back TWRP? I'm kinda worried, hope you can help.
Main thing is I have it working now but I wanna make sure I've learned my lesson. Thank you.
Click to expand...
Click to collapse
This post was confusing, as it makes it sounds like you were stuck not being able to boot, just stuck going to fastboot screen. Then at the end, you say it works, but don't explain how you eventually got it to work.
---------- Post added at 08:58 AM ---------- Previous post was at 08:53 AM ----------
JohnsNotHome said:
But like I said. Everything is working fine now. I was worried that it hadn't wiped out all my data and the OS and everything else was just sitting there on the other slot. Now I understand that it is technically not possible.
My other worry is that it was not wiped out properly and that it could cause problems and bugs when using the device. And lastly that it would cause problems when future updates come (in regards to the slots thing). I'm a bit of a worrier.. sorry about this.
Click to expand...
Click to collapse
My understanding, user data isn't duplicated Slot A/B, only the system (ROM/OS) is duplicated.
I don't think system partition would mess up anything, even it if was the old OS version. Since your device works properly now, the active system slot is obviously okay. When you get the next update, it will flash to the inactive slot, and overwrite whatever is there. Then when you reboot, that slot will switch to active.
redpoint73 said:
This post was confusing, as it makes it sounds like you were stuck not being able to boot, just stuck going to fastboot screen. Then at the end, you say it works, but don't explain how you eventually got it to work.
---------- Post added at 08:58 AM ---------- Previous post was at 08:53 AM ----------
My understanding, user data isn't duplicated Slot A/B, only the system (ROM/OS) is duplicated.
I don't think system partition would mess up anything, even it if was the old OS version. Since your device works properly now, the active system slot is obviously okay. When you get the next update, it will flash to the inactive slot, and overwrite whatever is there. Then when you reboot, that slot will switch to active.
Click to expand...
Click to collapse
Thank you so much for this. I'm sorry I was a bit confusing. My goal was to make it simple and not long but with enough info to get some help. So yeah I'm sorry (and English is my first language).

Help on my TWRP bootloop phone

Hello, newbie here..
Need help!! My phone keeps booting to TWRP whenever I turned it on, connected it to PC, or even when I connected it to my charger.
It happened after I mistakenly uninstalled a system app (it is an app named Freeshare). I thought it was just a sharing app like MiDrop or ShareIt, but clearly that was a mistake.
Now I just can't seem to boot into the system, not even able to enter into the download mode.
I've tried a method that I found in here, like entering a code in TWRP terminal (it was "dd if blablabla", i forgot. Lol), to no avail.
Haven't tried to flash the stock rom or stock boot since I can't find any zip Stock Rom for my phone (my phone is Gome Fenmmy Note).
Does anyone have an idea or know how to fix it?
Thanks in advance
Did you flash MISC partition?
Give a try on this (plese, method #2 only): https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209299/
Or you can try to FORMAT the misc partition inside the TWRP.
Or did you flash TWRP to boot partition ??
TWRP needs to be flashed to RECOVERY partition.
If you flash TWRP to boot partition, your device will boot forever to recovery.
If yes, you need to flash the original stock boot.img
VD171 said:
Did you flash MISC partition?
Give a try on this (plese, method #2 only): https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209299/
Or you can try to FORMAT the misc partition inside the TWRP.
Click to expand...
Click to collapse
But before i mistakenly uninstalled the system app, my phone is completely fine. No twrp bootloop when i rebooting hte phone. The bootloop happened after I uninstalled a system app.
But thanks anyway. Will try this after I got home.
disegiooo said:
But before i mistakenly uninstalled the system app, my phone is completely fine. No twrp bootloop when i rebooting hte phone. The bootloop happened after I uninstalled a system app.
But thanks anyway. Will try this after I got home.
Click to expand...
Click to collapse
You don't need to uninstall a system app for disabling it completely.
If you've uninstalled a system app, you've modified your system.
1. Did you unlock bootloader?
2. Did you flash vbmeta with disabled verification?
3. Did you root your device?
4. Did you debloat your device?
You can't modify your system before the answer for all questions be YES.
Probably you need to flash the SYSTEM again.
(Only system should be enough.)
VD171 said:
You don't need to uninstall a system app for disabling it completely.
If you've uninstalled a system app, you've modified your system.
1. Did you unlock bootloader?
2. Did you flash vbmeta with disabled verification?
3. Did you root your device?
4. Did you debloat your device?
You can't modify your system before the answer for all questions be YES.
Probably you need to flash the SYSTEM again.
(Only system should be enough.)
Click to expand...
Click to collapse
For questions 1,3,4 the answer is YES. For question 2, I'm not really sure.
Okay, so I need to flash the system again. Can I just flash the system.img through TWRP? Since it won't enter fastboot or download mode. Since once I connect my turned off phone to PC, it will immediately reboot to TWRP.
Sorry, if I'm asking too much. Please be patience.
disegiooo said:
For questions 1,3,4 the answer is YES. For question 2, I'm not really sure.
Okay, so I need to flash the system again. Can I just flash the system.img through TWRP? Since it won't enter fastboot or download mode. Since once I connect my turned off phone to PC, it will immediately reboot to TWRP.
Sorry, if I'm asking too much. Please be patience.
Click to expand...
Click to collapse
Are you sure you can't enter in fastboot mode?
I'm not sure, but I think to flash system using TWRP you need to convert sparse image to regular image using simg2img first.
VD171 said:
Are you sure you can't enter in fastboot mode?
I'm not sure, but I think to flash system using TWRP you need to convert sparse image to regular image using simg2img first.
Click to expand...
Click to collapse
VD171 said:
Are you sure you can't enter in fastboot mode?
I'm not sure, but I think to flash system using TWRP you need to convert sparse image to regular image using simg2img first.
Click to expand...
Click to collapse
Well, I haven't tried to enter fastboot using adb yet since the phone will automatically turn on and boot into TWRP if i connect it to PC using usb cable. Is it possible to enter fastboot using adb eventhough the phone isn't turned off and in TWRP mode?
I see, so i need to convert the image into regular image first. Got it.
I'll try all of your suggestions. Hope it worked.
disegiooo said:
Well, I haven't tried to enter fastboot using adb yet since the phone will automatically turn on and boot into TWRP if i connect it to PC using usb cable. Is it possible to enter fastboot using adb eventhough the phone isn't turned off and in TWRP mode?
I see, so i need to convert the image into regular image first. Got it.
I'll try all of your suggestions. Hope it worked.
Click to expand...
Click to collapse
Yes.
Enter in twrp.
Plug usb cable.
Type "adb devices" and check your device is detected.
And then try "adb reboot bootloader"
VD171 said:
Yes.
Enter in twrp.
Plug usb cable.
Type "adb devices" and check your device is detected.
And then try "adb reboot bootloader"
Click to expand...
Click to collapse
Hello, sorry for late reply. Yes my phone now able to enter the fastboot mode. Then what should i do next to flash my stock rom? I can't turn off my phone
disegiooo said:
Hello, sorry for late reply. Yes my phone now able to enter the fastboot mode. Then what should i do next to flash my stock rom? I can't turn off my phone
Click to expand...
Click to collapse
If you can enter in fastboot mode, you can flash the rom easily.
But it requires unlocked bootloader.
If your bootloader is locked, you need to flash using SP FLASH TOOL.
Just download the stock rom, extract it and flash using any of the flashing script (if available).
Good luck
VD171 said:
If you can enter in fastboot mode, you can flash the rom easily.
But it requires unlocked bootloader.
If your bootloader is locked, you need to flash using SP FLASH TOOL.
Just download the stock rom, extract it and flash using any of the flashing script.
Good luck
Click to expand...
Click to collapse
Alright, my phone bootloader is unlocked. Then how do I flash the stock rom?
Sorry, I'm completely a noob.
disegiooo said:
Alright, my phone bootloader is unlocked. Then how do I flash the stock rom?
Sorry, I'm completely a noob.
Click to expand...
Click to collapse
I suggest you to watch some videos in youtube.
Certainly, it helps alot.
VD171 said:
It's same for all xiaomi devices.
I suggest you to watch some videos in youtube.
Certainly, it helps alot.
If you don't know how to flash manually using fastboot, try MiFlash:
Click to expand...
Click to collapse
Thank you very much. Managed to flash the stock rom safely.
Once again, thank you for your help! May God bless you
disegiooo said:
Thank you very much. Managed to flash the stock rom safely.
Once again, thank you for your help! May God bless you
Click to expand...
Click to collapse
Good job, my friend
You are welcome.
God bless you too
About disabling preinstalled apps, try to perform this in command line:
pm disable-user --user 0 com.android.chrome​(Change com.android.chrome to desired package name to disable.)​

Question No OS even after flashing stock

So I've been pulling hair for 2 days. I can flash everything fine recovery boots fastboot. But it consistently says no OS on either slots. Tried flashing stock to both went all the way through loading lineage and same thing. I'm at wits end. Also not a single password I put in decrypts data.
Also Metro/Tmob variant xt2131-1 bootloader unlocked.
Have you tied fastboot -w? It sounds like the partitions are messed up.
I have. I've done all of the above just still a persistent boot loop.
Fandroid Tech said:
Have you tied fastboot -w? It sounds like the partitions are messed up.
Click to expand...
Click to collapse
Currently retrying to flash stock firmware with a Motorola flashing program. Will let you know here in about 2 min.
Fandroid Tech said:
Have you tied fastboot -w? It sounds like the partitions are messed up.
Click to expand...
Click to collapse
Yep. Again boot loop. Says no OS. Stock recovery says last installation failed. Flashing the service flash package to see if that makes a difference. Hopefully because it says it reflashed my bootloader and stock recovery.
Spedwardo said:
Yep. Again boot loop. Says no OS. Stock recovery says last installation failed. Flashing the service flash package to see if that makes a difference. Hopefully because it says it reflashed my bootloader and stock recovery.
Click to expand...
Click to collapse
The motorola program formats the partitions before flash unlike an automated fastboot flash. The only issue I can see is a physical issue with the UFS/EMMC 5.1 chip, maybe even the ram(very unlikely). Had there been any warning signs such as the phone rebooting randomly or freezing? Motorola has a one year warranty for all devices.
No nothing of the sort. I did a factory reset because I was gonna try out lineage and this is where I'm at now. Still no OS. Even after flashing 3 times. I did have a remote access trojan that rewrote my partition data and resized one and added one and used the root hidden partition to store the data in while it was being transferred.
This drive folder has the system, system_ext, vandor and product of the xt2131-1 that can be flashed in twrp or orangefox. Make sure you make the partitions rw in twrp or OF using 100 rw zip (search for it) then mount as rw in terminal. Flash these images or image,whichever you believe to be needing. Then try and reboot. If all else fails then download the firmware from LMSA and use tinyfastboot tools to flash it. Always worked for me. Let me know how it goes. Heres the link to the files.
XT2131-1_Denver-Osaka_04-2022_RRE31.60-47-2-2 - Google Drive
drive.google.com
!!!!!Make Sure you have verity and verification disabled before trying to flash these. Hence the 100 rw zip is necessary. And must be flashed correctly. 73 error can be flashed with Ubuntu!!!!!!!!
**Edit**
Make sure you always
Fastboot -w then
Factory reset in recovery then format data for a full clean install. This vendor build is made for the boost mobile variant but it is universal. The firmware is incremental based as well so it knows which build to install or activate on the tmo/metro variant. I have all the apps and files for all carriers that have this model.
sosthenisRR said:
This drive folder has the system, system_ext, vandor and product of the xt2131-1 that can be flashed in twrp or orangefox. Make sure you make the partitions rw in twrp or OF using 100 rw zip (search for it) then mount as rw in terminal. Flash these images or image,whichever you believe to be needing. Then try and reboot. If all else fails then download the firmware from LMSA and use tinyfastboot tools to flash it. Always worked for me. Let me know how it goes. Heres the link to the files.
XT2131-1_Denver-Osaka_04-2022_RRE31.60-47-2-2 - Google Drive
drive.google.com
!!!!!Make Sure you have verity and verification disabled before trying to flash these. Hence the 100 rw zip is necessary. And must be flashed correctly. 73 error can be flashed with Ubuntu!!!!!!!!
**Edit**
Make sure you always
Fastboot -w then
Factory reset in recovery then format data for a full clean install. This vendor build is made for the boost mobile variant but it is universal. The firmware is incremental based as well so it knows which build to install or activate on the tmo/metro variant. I have all the apps and files for all carriers that have this model.
Click to expand...
Click to collapse
If this doesnt work you can try a blankfile flash via edl, if that does not work nothing will.
Fandroid Tech said:
The motorola program formats the partitions before flash unlike an automated fastboot flash. The only issue I can see is a physical issue with the UFS/EMMC 5.1 chip, maybe even the ram(very unlikely). Had there been any warning signs such as the phone rebooting randomly or freezing? Motorola has a one year warranty for all devices.
Click to expand...
Click to collapse
Not at home. Staying the night at my mom's. Get home early tomorrow and I will try the advised steps. I went through my previous flashing steps and am now just missing the persist partition. I'll report back as for the edl mode and I have 2 blank flash files just cannot get into edl mode. Have qfil rsd and motoflashpro
Spedwardo said:
just cannot get into edl mode.
Click to expand...
Click to collapse
What have you tried thus far? Have you tried fastboot commands to get into edl, I think it may also also a boot menu option in twrp but I don't remember. Also now that I think about, after flashing the firmware(to both lots as you say) have you tried fastboot set_active a (or) b? Also where did you find the firehose file for it, I could not find one on other forums?
So far im downloading the files and will try what you suggested now. I'll let you know in 30 min. But I've tried factory reset. Flash. Formatting then flashing. Blank flash. Formatting then flashing. I've also used fastboot --force -slot=all flash ***. *****. Etc. Tried flashing. Flashing the copy partitions and tried flashing a gsi an aosp. Got to lineages recovery but still the same issue. Some partition are unmountable. At this point now it refuses to charge while off.. and if I do plug it in while off it continues to boot loop from the battery/charging screen.
Spedwardo said:
At this point now it refuses to charge while off.. and if I do plug it in while off it continues to boot loop from the battery/charging screen.
Click to expand...
Click to collapse
Sorry to tell you this but the phone is definitely ****ed on a hardware level, no amount of reflashing the firmware will fix that. The partition issue is likely caused by the EMMC/UFS malfunctioning, however the charging issue is definitely not caused by software as the battery has a separate controller. Your best bet would be to replace the motherboard, your phone's warranty is however void anyways since you unlocked the bootloader so you would have to do it yourself.
Fandroid Tech said:
Sorry to tell you this but the phone is definitely ****ed on a hardware level, no amount of reflashing the firmware will fix that. The partition issue is likely caused by the EMMC/UFS malfunctioning, however the charging issue is definitely not caused by software as the battery has a separate controller. Your best bet would be to replace the motherboard, your phone's warranty is however void anyways since you unlocked the bootloader so you would have to do it yourself.
Click to expand...
Click to collapse
How do I disable anti-rollback???? Might be the issue with it not flashing vb* files. Assuming those control vendor persiste etc
Spedwardo said:
How do I disable anti-rollback???? Might be the issue with it not flashing vb* files. Assuming those control vendor persiste etc
Click to expand...
Click to collapse
You can't, the manufacture prevents you from doing so due to "security issues". Make sure you get the latest firmware at https://mirrors.lolinet.com/firmware/moto/denver/official/. This will restore all partitions including vendor and persist as it generates from the modem partition, also android 11 and up does not use regular persist partitions anymore, it is now in the "super" images so don't worry about it. When you extract the latest firmware from this site there will be an XML file, go to https://forum.xda-developers.com/t/...e-with-motorola-devices.4042039/post-82186933 and follow the instructions, before flashing made sure to select slot A, after you are done flashing slot A set it to slot B and flash again, then reboot regularly. To set the slot run the fastboot command before flashing, for example fastboot set_active a, flash firmware, fastboot set_active b, flash firmware, reboot.

Question Bricked with no recovery. Please help

Long story short I messed up and now I don't have recovery. Only fastboot. Was bricked too before the no recovery thing.
How do I try to sort this? I don't have a pc either.
Using my old OnePlus 8T I was able to unlock, root and install a custom kernel.
Any ideas?
shadowofdeth said:
Long story short I messed up and now I don't have recovery. Only fastboot. Was bricked too before the no recovery thing.
How do I try to sort this? I don't have a pc either.
the good news is your phone can very likely be fixed. however in my experience you will need a computer. Folks here would love to help but knowing what device you are having an issue with would probably help with response to your situation. from fastboot you can boot a recovery image for your device and go from there. from fastboot you can also likely flash stock firmware to your device and start over fresh. It's also common to have to perform a factory reset after flashing the device to get it to properly boot.
Click to expand...
Click to collapse
OnePlus 9.
I tried searching but there are so many dead ends for finding the stock recovery. Even with that I'd still be bricked.
Where would one find the stock recovery, kernel and fastboot ready update.zip?
You do realize the boot.img is both recovery and kernel. Just extract it from payload.bin
MrSteelX said:
You do realize the boot.img is both recovery and kernel. Just extract it from payload.bin
Click to expand...
Click to collapse
If only I thought of that. It's not like I've been trying all day without success extracting what I need from the payload.bin. Definitely no dead ends there. Thanks for the massive help.
shadowofdeth said:
If only I thought of that. It's not like I've been trying all day without success extracting what I need from the payload.bin. Definitely no dead ends there. Thanks for the massive help.
Click to expand...
Click to collapse
borrow a laptop from someone , use the msm tool
taintsx said:
borrow a laptop from someone , use the msm tool
Click to expand...
Click to collapse
Im so close I can smell it now. Managed to get Python installed (had to deep dive into the comments on articles and tutorials) and have everything extracted in the last hour.
Now, for flashing these images I have to use Termux and it's working for the most part. My issue is now that I can flash one batch of images but not the other as per the xda guide linked now:
Restore OnePlus 9 to Stock via Fastboot Commands
This guide assumes you have the SDK Platform Tools installed and working, along with USB drivers for your device (if needed), and have your full update zip which you've already extracted the payload.bin from, and then dumped the images using...
forum.xda-developers.com
I keep getting errors about the partition being locked or something.
So close man. So close.
Locked partitions can only be flashed in fastbootd (fastboot reboot fastboot to get there).
First of all... Hold the both volume and power button for around 2 minutes. It'll take you to the bootloader mode. Then from the bootloader mode turn off your device then boot into edl then flash with msm.
Lesson learned

Categories

Resources