Creating a flashable zip of my FFOS build? - Firefox OS General

Hi there
I've built Firefox OS for the Galaxy Nexus but I'm struggling to find a way of creating a flashable zip to distribute.
This is my first ROM that I have successfully compiled, but everything seems to be working so I wouldn't mind sharing it with the rest of the internet. Any tips?
Thanks!

ojdon said:
Hi there
I've built Firefox OS for the Galaxy Nexus but I'm struggling to find a way of creating a flashable zip to distribute.
This is my first ROM that I have successfully compiled, but everything seems to be working so I wouldn't mind sharing it with the rest of the internet. Any tips?
Thanks!
Click to expand...
Click to collapse
After building from the B2G directory (the folder from where you run ./config.sh and ./build.sh) you should locate boot.img, userdata.img and system.img and copy them over to a folder, then you can flash using fastboot via:
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash userdata userdata.img
fastboot flash system system.img
fastboot erase cache
fastboot reboot

janjongboom said:
After building from the B2G directory (the folder from where you run ./config.sh and ./build.sh) you should locate boot.img, userdata.img and system.img and copy them over to a folder, then you can flash using fastboot via:
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash userdata userdata.img
fastboot flash system system.img
fastboot erase cache
fastboot reboot
Click to expand...
Click to collapse
Firefox OS in Galaxy Nexus, I want to take a look! Keep us up to date man!

janjongboom said:
After building from the B2G directory (the folder from where you run ./config.sh and ./build.sh) you should locate boot.img, userdata.img and system.img and copy them over to a folder, then you can flash using fastboot via:
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash userdata userdata.img
fastboot flash system system.img
fastboot erase cache
fastboot reboot
Click to expand...
Click to collapse
Ah didn't know this thread had replies so sorry for a bit of a bump. I was kind of after directions on how to create a flashable zip? It's just that I was aiming to avoid end users from using adb and fastboot. Do you know how to create a flashable zip instead?
Thanks for the guidance!

Related

[Q] Clockworkmod backup

Hi,
I have stupidly renamed my official htc rom cwm backup.
And cant remember the original name!
cwm says that here is a md5 sum mismatch!
Has anyone got a backup they could zip up and upload?
If not how to get it back
Can i flash the .img files in fastboot?
RUU? Would that get me back too stock HTC 2.2.1?
Make sure that there are no spaces in the new renamed folder. Then it may clear the md5 checksum error.
And you can also flash the img files from fastboot.
Commands are
fastboot erase boot
fastboot flash boot boot.img
fastboot erase userdata
fastboot flash userdata data.img
fastboot erase cache
fastboot flash cache cache.img
fastboot erase system
fastboot flash system system.img
Sent from my HTC Wildfire using XDA App
Thanks
when i add a name cm7's standard file manager ands spaces the .number(1,2,3 etc.)
edit:
figured it out!

How to flash your own MZ604 to ICS without rsdlite

First, take your own risk!
Be sure you knwo what you are doing now and familiar with fastboot and your Xoom.
I am not responsible for anything.
The following founding are just proved to be work on my Xoom and I guarantee nothing.
===========================================
Rom Source:
Obtained from this thread
[!!Thanks changguangyu for his (and his fd's) kind sharing!!]
http://forum.xda-developers.com/showthread.php?p=21096478
Download the leaked rom
Extract the sbf using "MotoAndroidDepacker v1.3"
CG57.smg rename to recovery.img
CG58.smg rename to boot.img
CG59.smg rename to system.img
Issue the following command:
fastboot oem unlock
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot erase cache
fastboot erase userdata
fastboot reboot
Done.
Tried on my own Hong Kong Wifi version Xoom(MZ604).
Run smoothly.
can this be flash to canadian xoom ?
Probably can but I would probably wait for eos version with the good bits taken out....
Sent from my HTC Desire using xda premium
thanks ...good to go
In case somebody wondering where to find MotoAndroidDepacker
http://www.mediafire.com/?pk0gb8tgxg4uecg

[GUIDE] Return to stock and "Official status" - Moto X 2014

Return to stock - Moto X 2014​
What you need:
Minimal ADB and Fastboot
Stock ROM Alternative 1 (Faster option)
Stock ROM Alternative 2 (Downloads speed are super slow if you are not premium)
Moto fastboot (mfastboot.exe) (This one is only needed if the file system.img is too big to flash (More than 500MB))
Steps:
Connect your phone to your computer and make sure to have "USB Debugging" enabled (About phone > Tap several times "Build number" > Go back > Developer options > Enable USB debugging)
Make sure your phone is at least 50% charged
Open ADB cmd (MAF32.exe)
Run this command to make sure it recognizes your phone.
Code:
adb devices
After it recognizes it, run the command (It should reboot into bootloader)
Code:
adb reboot bootloader
Unzip the downloaded STOCK ROM into the same folder as where you installed minimal ADB (C:\Program Files (x86)\Minimal ADB and Fastboot)
Open the "flashfile.xml" file with any text editor
The file tells you how to flash the files into your phone
Mine said:
Code:
fastboot oem fb_mode_set oem
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
The sistem.img part was a big file divided into 9 files about 250MB each. If your system.img is bigger than 500MB you'll need to use mfastboot.
Do the commands one by one.
After you are done with everything, reboot and it should say in the Status: Official
EDIT 24/04/2016:
- Added faster alternative download to stock ROMS.
Tovagulet said:
Return to stock - Moto X 2014​
What you need:
Minimal ADB and Fastboot
Stock ROM (That's the only download page with like all the stock ROMs, downloads speed are super slow if you are not premium)
Moto fastboot (mfastboot.exe) (This one is only needed if the file system.img is too big to flash (More than 500MB))
Steps:
Connect your phone to your computer and make sure to have "USB Debugging" enabled (About phone > Tap several times "Build number" > Go back > Developer options > Enable USB debugging)
Make sure your phone is at least 50% charged
Open ADB cmd (MAF32.exe)
Run this command to make sure it recognizes your phone.
Code:
adb devices
After it recognizes it, run the command (It should reboot into bootloader)
Code:
adb reboot bootloader
Unzip the downloaded STOCK ROM into the same folder as where you installed minimal ADB (C:\Program Files (x86)\Minimal ADB and Fastboot)
Open the "flashfile.xml" file with any text editor
The file tells you how to flash the files into your phone
Mine said:
Code:
fastboot oem fb_mode_set oem
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
The sistem.img part was a big file divided into 9 files about 250MB each. If your system.img is bigger than 500MB you'll need to use mfastboot.
Do the commands one by one.
After you are done with everything, reboot and it should say in the Status: Official
Click to expand...
Click to collapse
the easiest way is using RSDlite and chose flashfile.xml to flash. Done !
md07 said:
the easiest way is using RSDlite and chose flashfile.xml to flash. Done !
Click to expand...
Click to collapse
Not everybody uses windows. I am a linux user, so no RSDLite is available. Also not available for mac. This guide is great for people who can't use RSDLite or need to do specific steps only instead of blindly trusting RSDLite.
Sent from my XT1095 using Tapatalk
Thanks, I'm also not fond of flashing ROM images via program scripts, I prefer the old step by step method. :thumbup:
Any word on XT1095 or XT1097_retca-retca? How freaken hard is it to capture an OTA or factory image these days?
I still get "Software status: Modified"
md07 said:
the easiest way is using RSDlite and chose flashfile.xml to flash. Done !
Click to expand...
Click to collapse
AGISCI said:
Not everybody uses windows. I am a linux user, so no RSDLite is available. Also not available for mac. This guide is great for people who can't use RSDLite or need to do specific steps only instead of blindly trusting RSDLite.
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
Also, RSDLite does not work in Windows 10.
Thanks for tutorial.
Is this for Stock 6.0 Firmware : VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
thomstrack said:
Also, RSDLite does not work in Windows 10.
Click to expand...
Click to collapse
it works with Windows 10... try to upgrate RSD to the latest version
nikky2u20 said:
Is this for Stock 6.0 Firmware : VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
Click to expand...
Click to collapse
well, it's got all the right words and numbers (although the one I'm running from the TWRP method thread is MPE24.11-18, and this appears to be MPE24.49-18). I'm downloading it now - has anybody else tried it?
niciolaux said:
it works with Windows 10... try to upgrate RSD to the latest version
Click to expand...
Click to collapse
The latest version that I see is the 6.2.4, and does not work in Windows 10.
There is another version?
unfnknblvbl said:
I still get "Software status: Modified"
Click to expand...
Click to collapse
I think "Modified" means you unlocked the bootloader, right?
I used to successfully update my xt1095 to 5.1 by these steps:
unroot by using the uninstalling root function in the SEusers, and flash the stock recovery.img back.
download the OTA update, and let it flash my phone automatically.
got a stock 5.1. then you may do whatever you want.
unfnknblvbl said:
I still get "Software status: Modified"
Click to expand...
Click to collapse
+1
This method don't change to Status Official.
thomstrack said:
Also, RSDLite does not work in Windows 10.
Thanks for tutorial.
Click to expand...
Click to collapse
RSD Lite works perfectly in Windows 10.
I followed these steps, and reflashed to 5.1-21.3, then update to 21.6 (security patch).
Now I'm running 6.0! The OTA works!
We def need to get this stock image re-upped, because I could get gray hairs waiting for this to download... Anyone have any other links? Thanks
help!!! I downloaded the recovery image from the official motorola site, i have system image of 2 Gb and have no idea about how to flash the system image. I have a folder called windows(which was included in the recovery image zip that i downloaded) that folder contains a fastboot.exe file so is that the mfastoot file?If yes then how do i use it?
EDIT- Solved!
nikky2u20 said:
Is this for Stock 6.0 Firmware : VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
Click to expand...
Click to collapse
unfnknblvbl said:
well, it's got all the right words and numbers (although the one I'm running from the TWRP method thread is MPE24.11-18, and this appears to be MPE24.49-18). I'm downloading it now - has anybody else tried it?
Click to expand...
Click to collapse
Can confirm, this is the real deal. Works a treat, and none of those RPC errors that plagued me on the TWRP backup image.
I am on Brazilian frimware with 6.0 now on my device, but my actual model of the device is xt 1092 Indian version.
I want to go back to Indian frimware. Have anyone tried downgrading from 6.0 Brazilian frimware to 5.1 Indian frimware, is it possible? Is full image of 6.0 out for xt 1092, if so please share the link.
Sent from my XT1097 using Tapatalk
unfnknblvbl said:
Can confirm, this is the real deal. Works a treat, and none of those RPC errors that plagued me on the TWRP backup image.
Click to expand...
Click to collapse
Thnx for the info m8.
Could you upload it to something that is faster then filefactory perhaps? Cause this **** is SLOW
Thnx in advance
Cheers
Edit: it is also available here: https://mega.nz/#F!ow8igZRL!Z7vmN8GOpez2bVMYDvEKkg!IkEVHRxS
With thnx to @salaesp for finding the MU folder
Used this firmware on my MotoX
VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
And was able to get back to the stock state. The Bootloader is still unlocked but that I guess I can lock via OEM lock way?
Since this is the latest one couldn't verify if the OTA works or not.

Twrp wipes phone, Fails to mount, and won't flash zip files or stock rom please help!

I have been trying to root my phone. I have been have problems with twrp. I have installed twrp through both the moto g5 plus toolkit and manually(command prompt and adb/adb fastboobt). I have had several problems with twrp. Firstly I can't seem to install it without wiping everything off my phone. Secondly twrp won't install stock rom, flash zip files and sometimes img files. Thirdly It keeps failing to mount data.
Every time I install TWRP I have to use the moto g5 plus toolkit flash stock rom so I can use my phone.
After flashing twrp I reboot to recovery mode, go to wipe, then "swipe to factory reset." I the go to reboot or reboot to recovery. Most of the installation instruction regarding twrp say to do this. The problem is I have to install/re-install stock rom in my phone via the toolkit because there is nothing on my phone but a twrp after I swipe factory reset an I can't get twrp to install stock rom.
Since I can't get twrp to install stock rom from a zip file I have to use the moto g5 plus toolkit which wipes twrp and flashes the stock rom.
After flashing stock rom I tried again and was prompted for a password. I don't have password and there was something about decryption on the screen. I hit cancel went to Wipe then Format Data and typed yes at the prompt. I went to reboot hit recovery(reboot to recovery). My phone was wiped clean and I had nothing but twrp on it again. I tried install stock rom off my sd but I got allot of errors( can't mount data, ect...) I tried to fix this by using twrp to flash an install img of the latest version of twrp. This did not fix the problem.
I can't use twrp to install stock rom, or zips nor can I install twrp without having to flash stock rom and erase twrp from my phone because installing twrp removes everything and renders my phone useless. Every time I install twrp I'm left with nothing but twrp on my phone. Everything is wiped there is nothing there but twrp.
Could someone please tell me how to install twrp without wiping my phone completely and how to get around the problems I have been having. I have tried several different things but I can't fix the mount error nor can I get twrp to install stock rom. I just can't figure this out.
I have attached several screenshot below. If you are willing to help please take a look at them.
first of all stop using that toolkit. if you were flashing stock rom the right way you wouldnt be replacing recovery.
follow these steps PRECICELY
1. download the actual stock xml.zip and extract it
2. inside the folder make a txtfile called flash rom and rename it to flashrom.bat
2a. right click and select edit, paste this into notepad ans save it (as a .bat --important)
Code:
@echo off
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash boot boot.img
mfastboot flash recovery twrp.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot flash recovery twrp.img
mfastboot oem fb_mode_clear
pause
mfastboot reboot
3. https://forum.xda-developers.com/attachment.php?attachmentid=2427667&d=1385958280 download this and extract all files into where the stock xml.zip is extracted
4. place the twrp youre trying to use (should be the 64bit one from the 64bit thread) in the place you extracted the xml.zip named twrp.img
5. double click the batch file (flash rom.bat) and let it finish (ignore any errors about signature verification and/or corrupt image). when the flash is done it will say "press any key to continue" once you press a key it will reboot your phone, MAKE SURE YOU ARE HOLDING VOLUME DOWN WHILE YOUR PHONE REBOOTS FOR THE FIRST TIME AFTER THE FLASH
6. at this point you WILL have twrp, AND STOCK ROM. THIS IS A PROBLEM. stock rom will replace twrp at first boot, heres how to solve that, first by decrypting data:
6A. wipe cahce SPECIFICALLY by going to wipe, selecting advanced wipe, check cache, and then tap repair or change file system. then tap change file system then ext4 and swipe to apply
6B go back to twrp's main menu and tap reboot>recovery
6C. once back in recovery wipe data SPECIFICALLY by going to wipe, selecting advanced wipe, check data, and then tap repair or change file system. then tap change file system then f2fs and swipe to apply; reboot to recovery again
7. at this point you are running stock rom, decrypted, and have twrp BUT STOCK ROM WILL STILL REPLACE TWRP IF YOU BOOT, the easiest way to do this is by flashing magisk.
thats it, you should be at stock rooted decrypted with magisk and twrp.
8. come back if that doesnt work. but it should, i literally did the whole process while writing this to make sure i didnt steer you in the wrong direction
Ae3NerdGod said:
2. make a txtfile inside the folder called flash rom and rename it to flashrom.bat
Click to expand...
Click to collapse
The stock rom I downloaded doesn't have a folder call flash rom in it. Is the folder you extracted the Stock Rom called flash rom or should there be a folder called flash rom be in my extracted stock rom folder.
place the twrp youre trying to use (should be the 64bit one from the 64bit thread) in the place you extracted the xml.zip named twrp.img
Click to expand...
Click to collapse
I don't have an xml.zip name twrp.img. I have an image file.(img) not a zip name twrp.img. Did you mean place the twrp image file into the extracted xml.zip.
Would it be easier to place the replace the recovery.img in the extracted xml.zip with the twrp.img and then rename the twrp.img recovery(basicaly replace the recovery.img in the zip with twrp).
no, name the txtfile flash rom, i see the ambiguity though. ill reword it:
inside the folder make a txtfile called flash rom and rename it to flashrom.bat
Click to expand...
Click to collapse
also i meant to name the twrp image file you are using to "twrp.img" and drop it in the folder that contains all the files youve extracted from the xml.zip
and no, it wouldnt be easier because the batch file i wrote flashes "twrp.img" to recovery
attached is roughly what your xml.zip directory should look like (ive deleted a couple unneeded files you do not have to also)
I did everything correctly however when I run the batch file(flashrom.bat) the command prompt displays <waiting for device> and nothing happens.
I have developer setting enabled and usb debugging and my boot loader is unlocked(oem unlocking enabled). I have all the correct drivers for my phone and adb installed on my computer. I do not know why it cannot detect my phone.
:|
Why make it difficult and act like a ****. There no reason to make a .bat file or removing anything. Keep it simple FFS.
This >>> "mirrors . lolinet.com /firmware /moto /potter /official /RETAIL /POTTER_RETAIL_ 7.0_NPN25.137-92 _cid50_subsidy- DEFAULT_regulatory-DEFAULT_CFC .xml .zip" is the Nov 1st firmware for retus, assuming you have that. Extract "mega . nz / #!dqwE1ZJT!OA9N1pxNnDAs9UVkeiVKoVIkvSrZQNWUyKvtORB3" to your desktop for easy access, they are standalone adb/fastboot files. Now take the firmware and extract that into the folder with the adb/fastboot files. Press Shift+Right-click in the folder and choose "open command window here." Make sure you're phone is connected to your PC in bootloader mode. Run "adb shell" and let adb load. Then run "fastboot devices" to assure your device is being discovered. Now you can start manually entering or copy+pastaing the commands to install the firmware one line at a time after the previous command finishes. If you get an error after the "fastboot reboot" reboot, turn your phone off and on again. It should boot up just fine.
EXTREMELY sorry for breaking up the links. I'm not a huge poster and XDA only allows links after 10 posts. so just rebuild the links with h t t p s : / / ahead of them. Stupid rules.
I literally just did this myself because I'm unlocked with a custom kernal, so I do OEM updates manually. It's a slightly tedious task but you can see that everything is installs properly.
If you're not on retus, my time isn't in vein, we can find get the firmware for your device. Here's the commands: Some might say parts are unnecessary, but when you're not sure what's what, it's best to stick with the normal commands.
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
ALSO: Install twrp after you've booted up once, not with the firmware. To make it simple drop the twrp.img into its own folder with the adb/fastboot files, run command prompt with the folder the same way you did before and enter these commands:
adb shell
fastboot devices
fastboot flash recovery twrp.img
fastboot reboot recovery
If theres's s password when twrp loads, cancel writing and wipe your data only. Then reboot back into TWRP again before rebooting the system.
Hope this helps and goes smooth for you.
User0666 said:
Extract "mega. nz/#!dqwE1ZJT!OA9N1pxNnDAs9UVkeiVKoVIkvSrZQNWUyKvtORB3"
Click to expand...
Click to collapse
When I go to the above site I get a message asking for a Decryption Key. I don't know what the decryption key is. You a said that the download was a standalone add/fastboot package. Is the stand alone files you were referring to the same as the googles standalone platform-tools for Android.
Also my moto g5 plus is on retus but it is currently running on Potter NPN 25.137-35. I am going to assume that firmware you said to use(Potter NPN 25.137-92) will work.
Ae3NerdGod said:
first of all stop using that toolkit. if you were flashing stock rom the right way you wouldnt be replacing recovery.
follow these steps PRECICELY
1. download the actual stock xml.zip and extract it
2. inside the folder make a txtfile called flash rom and rename it to flashrom.bat
2a. right click and select edit, paste this into notepad ans save it (as a .bat --important)
Code:
@echo off
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash boot boot.img
mfastboot flash recovery twrp.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot flash recovery twrp.img
mfastboot oem fb_mode_clear
pause
mfastboot reboot
3. https://forum.xda-developers.com/attachment.php?attachmentid=2427667&d=1385958280 download this and extract all files into where the stock xml.zip is extracted
4. place the twrp youre trying to use (should be the 64bit one from the 64bit thread) in the place you extracted the xml.zip named twrp.img
5. double click the batch file (flash rom.bat) and let it finish (ignore any errors about signature verification and/or corrupt image). when the flash is done it will say "press any key to continue" once you press a key it will reboot your phone, MAKE SURE YOU ARE HOLDING VOLUME DOWN WHILE YOUR PHONE REBOOTS FOR THE FIRST TIME AFTER THE FLASH
6. at this point you WILL have twrp, AND STOCK ROM. THIS IS A PROBLEM. stock rom will replace twrp at first boot, heres how to solve that, first by decrypting data:
6A. wipe cahce SPECIFICALLY by going to wipe, selecting advanced wipe, check cache, and then tap repair or change file system. then tap change file system then ext4 and swipe to apply
6B go back to twrp's main menu and tap reboot>recovery
6C. once back in recovery wipe data SPECIFICALLY by going to wipe, selecting advanced wipe, check data, and then tap repair or change file system. then tap change file system then f2fs and swipe to apply; reboot to recovery again
7. at this point you are running stock rom, decrypted, and have twrp BUT STOCK ROM WILL STILL REPLACE TWRP IF YOU BOOT, the easiest way to do this is by flashing magisk.
thats it, you should be at stock rooted decrypted with magisk and twrp.
8. come back if that doesnt work. but it should, i literally did the whole process while writing this to make sure i didnt steer you in the wrong direction
Click to expand...
Click to collapse
I'm in a similar position... how ever I have no issue mounting my phone. I follow your steps to the T and I end up with my phone failing to load the operating system....Can you please let me know what I can do? I'm on the XT1687. If I try to flash other roms I get a TWRP error 255...
---------- Post added at 12:02 PM ---------- Previous post was at 11:49 AM ----------
bboygmoney said:
I'm in a similar position... how ever I have no issue mounting my phone. I follow your steps to the T and I end up with my phone failing to load the operating system....Can you please let me know what I can do? I'm on the XT1687. If I try to flash other roms I get a TWRP error 255...
Click to expand...
Click to collapse
OMG If you were here I'd kiss you!!!! Fixed. Had to wipe system then I believe i had the wrong firmware....Thank you soo!!!!!!!!
I followed the instructions, but I can't boot to anything except TWRP. No matter what I select in the reboot menu, the phone reboots to TWRP.
salsolomon said:
I followed the instructions, but I can't boot to anything except TWRP. No matter what I select in the reboot menu, the phone reboots to TWRP.
Click to expand...
Click to collapse
Open up adb command window and type these three commands,
Code:
adb devices
adb shell
dd if=/dev/zero of=/dev/block/platform/soc/7824900.sdhci/by-name/misc
Then reboot.

2019 pro stuck in boot loop

Got this working with Lineage ok but decided to go back to stock. I downloaded the stock recovery rom from NV and set everything up. Inside the recovery bundle is a bat file. Usually I would flash all files manually but this time I used the bat file. It manged the first 3 or 4 commands then came up with error. The box is now stuck in a boot loop and I am unable to access over adb.
Can anyone please suggest a way around this.
Thanks
Here is the bat file
fastboot flash staging blob
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash dtb mdarcy.dtb.img
fastboot flash vbmeta vbmeta.img
fastboot oem lock (optional step: required for certain functionality)
fastboot reboot
EDIT:
Eventually managed to flash lineage zip again. Used USB keyboard to access recovery
may i ask, what kind of keyboard did u use?
thanks in advance

Categories

Resources