Related
]I have unlocked bootloader in my Moto G. then through superboot i have rooted the device. So iam basically on stock, no recovery was installed. I would like to install CWM recovery and then cyanogenmod 11. Please guide me on it
Ravin89 said:
]I have unlocked bootloader in my Moto G. then through superboot i have rooted the device. So iam basically on stock, no recovery was installed. I would like to install CWM recovery and then cyanogenmod 11. Please guide me on it
Click to expand...
Click to collapse
Reboot your device into bootloader mode.
Download a recovery of your choice, and a tool called fastboot.
Put the *.img file of your recovery (preferably TWRP 2.7.1.0) in the same folder as fastboot.
Open cmd.exe in the folder, enter: fastboot flash recovery [filename].img
You're set.
ToastnButter said:
Reboot your device into bootloader mode.
Download a recovery of your choice, and a tool called fastboot.
Put the *.img file of your recovery (preferably TWRP 2.7.1.0) in the same folder as fastboot.
Open cmd.exe in the folder, enter: fastboot flash recovery [filename].img
You're set.
Click to expand...
Click to collapse
so the root doesnt matter at all, right? then i can continue with cyanogenmod installation right?
Ravin89 said:
so the root doesnt matter at all, right? then i can continue with cyanogenmod installation right?
Click to expand...
Click to collapse
If you'd like to use any custom ROM, device rooting becomes important!
Do as above, personally I prefer ClockWork Mod 6.0.4.7-falcon, but that's merely a particular that is not important.
Once in bootloader,
Hold left shift, right click on folder (or empty space inside the folder) were recovery.img (XXXX.img) is and create a .bat (batch file)
COPY COPY COPY COPY COPY COPY below
::Set our default parameters
@ECHO off
echo. This is a Full Restore and will completely
echo. wipe your phone to stock you will lose
echo. all files on the device
echo. ---------------------------------------------
pause
SET fastboot=fastboot.exe
%fastboot% flash recovery 6047falcon.img - RENAME
pause
COPY COPY COPY COPY COPY COPY above
copy this (ensure you have installed everything else ADB Driver & have fastboot.exe, AdbWinUsbApi.dll, AdbWinApi.dll in the folder)
Rename the above recovery to whatever yours is called,
Run batch file, mine always complains that partition size is a mismatch, nonetheless it works fluidly.
---------- Post added at 07:22 PM ---------- Previous post was at 07:10 PM ----------
Ignore full restore text, this bat / script file will not wipe anything
Tried TWRP Recovery before My phone did not switch on, 2wice, justr flashed again, so much better than ClockWorkMod Recovery!
CWM works great. flashed with falcon image. then installed cyanogenmod snapshot for moto g. its not good, crashes and battery drain. switched to vanilla android with root.
Hello guys!
Here is a little (but useful) tutorial by me.
Lets start!
You will need a PC with ADB and fastboot drivers.
As I own a Pico,I installed HTC Android Phone USB drivers.
First recovery that I flashed was Yannous CWM recovery.
It was good but I found better one. Thats PhilZ CWM Touch 5 recovery. It is for advanced users.
Download this file: http://forum.xda-developers.com/attachment.php?attachmentid=913094&d=1329843100
Extract it on your desktop.
Next: Download the recovery you want. This is the link for PhilZ CWM that I use. http://d-h.st/jg9
Extract the recovery file and find recovery.img
Replace that recovery.img with the one in A310E folder.
Now connect your HTC Pico via USB and enter FASTBOOTmode.
Open the CMD founded in A310E folder
Write this in CMD----- fastboot flash recovery recovery.img
Make sure your recovery is named "recovery.img" (without punctations)
Wait until its over and reboot the bootloader.
Enter the recovery mode and flash this (no need of wiping,this will wipe all) http://forum.xda-developers.com/attachment.php?attachmentid=2693524&d=1397802687
After that,flash desired ROM.
Thanks for reading!!!
Arnel Babić said:
Hello guys!
Here is a little (but useful) tutorial by me.
Lets start!
You will need a PC with ADB and fastboot drivers.
As I own a Pico,I installed HTC Android Phone USB drivers.
First recovery that I flashed was Yannous CWM recovery.
It was good but I found better one. Thats PhilZ CWM Touch 5 recovery. It is for advanced users.
Download this file: http://forum.xda-developers.com/attachment.php?attachmentid=913094&d=1329843100
Extract it on your desktop.
Next: Download the recovery you want. This is the link for PhilZ CWM that I use. http://d-h.st/jg9
Extract the recovery file and find recovery.img
Replace that recovery.img with the one in A310E folder.
Now connect your HTC Pico via USB and enter FASTBOOTmode.
Open the CMD founded in A310E folder
Write this in CMD----- fastboot flash recovery recovery.img
Make sure your recovery is named "recovery.img" (without punctations)
Wait until its over and reboot the bootloader.
Enter the recovery mode and flash this (no need of wiping,this will wipe all) http://forum.xda-developers.com/attachment.php?attachmentid=2693524&d=1397802687
After that,flash desired ROM.
Thanks for reading!!!
Click to expand...
Click to collapse
Thanks a lots
Problem solved for me.
Worked
Great tutorial, Thanks.
I can't find any cwm recovery suitable for g6-l11 LTE. Can someone help me develop or find one Pls.
-=-♔♚Need help♚♔-=-
There is twrp recovery u can download it from here
https://drive.google.com/file/d/0B-wMRksKspUMNFY1LWI5X1ltMFU/view?usp=sharing
if u have ubuntu x64 & speed internet connection i can help u to compile cwm
How do you get Ubuntu?? I'm. Using windows 7.
-=-♔♚Need help♚♔-=-
I tried flashing the .img and it worked! Thanks :thumbup::thumbup:
-=-♔♚Need help♚♔-=-
Btw if I accidentally installed a wrong version of cynogenmod will my device soft/hard brick?? And if something else happen what should I do??Should I flash stock boot image? Or what??
-=-♔♚Need help♚♔-=-
Btw on my Huawei G6-L11 Android 4.3 Jellybean. Should I install
CM 10.2/CM 7.2 which??
-=-♔♚Need help♚♔-=-
Need CynogenMod for Huawei G6-L11.
-=-♔♚Need help♚♔-=-
Can anyone help me build one?I have issues with sudo. It kept giving me command not allowed.
-=-♔♚Need help♚♔-=-
i'm building one for u10 i can help u pm me ur fb account or any method to contact with you
I found this guid in other forum. It also have a link for a TWRP recovery.
http://www.htcmania.com/showthread.php?t=969144
Direct Link for the TWRP recovery>
https://yadi.sk/d/SSDNtX5xeMeDB
Note - I did not tried it!
This tutorial is what I have done on my device, I hope can use them my help
Emui installed in your device 3.0 beta we need to install this ROM but does not work...
We will need to download the ROM b370 here I leave the linck: https://yadi.sk/d/gqWACWBleVQAG
And we will do the following for installation, after downloaded extractor must install the Huawei on our computer here the link: http://forum.xda-developers.com/show...php?t=2433454
Then with the Huawei exhaust unzip the following
-Boot.img
-Cust.img
-Recovery.img
-System.img
Now you will have to download the android adb and the SDK tools, adb link here: http://www12.zippyshare.com/v/67744317/file.html
And put the adb on the local disk c and in the folder adb, place the custom recovery.
And we will do the following, execute the cmd in windows
And write the following: chdir c:\adb
And execute the following
-fastboot flash cust cust.img
-fastboot flash recovery recovery.img
-fastboot flash boot boot.img
-fastboot flash system system.img
-fastboot reboot
And ready we already have the system installed with the b370 and the system will tell us that it is Huawei p7 mini not the g6-l11
Now we go to the root of this phone
For that the tutorials need recovery twrp here:
http://www.htcmania.com/showthread.php?t=967406
This is a compilation of the user pepe0000 and there was where remove information in 4pda so stay us more clear tutorial
Agradeciemientos to pepe0000 for bringing us this recovery
He clarified that to install this recovery is mandatory to have the unlocked bootloader, but I know here in this link to go back: http://www.htcmania.com/showthread.php?t=939960
This tutorial was made by D.ceres which I also thank you for this tutorial
1.*descargar and unzip the contents of the ADB at the root of the C: drive * http://www12.zippyshare.com/v/67744317/file.html
TWRP G6-L11 2.*Descargue *: https://yadi.sk/d/SSDNtX5xeMeDB
3.*Copy the downloaded content to the folder file root ADB *
4.*Conect the phone to the computer in Fastboot (bootloader). *(Vol-+ botón de encendido)
5.* Holding down the SHIFT key, right-click on the ADB folder and select the option "Open command window" *
6.* In the command prompt, type without quotes "fastboot flash recovery TWRP_G6-L11.img" or if you want to rename to write the name that been placed
Enter 7.*Pulse now and execute the following code "fastboot reboot"
If you want to return to the original recovery you have to download this file: https://yadi.sk/d/cAphF5smcwmUX
And perform the same procedure.
Again I thank Pepe0000 also for your tutorial because of remove the info there and I couldn't do it on my phone
Click to expand...
Click to collapse
After you install the recovery, downloaded the super su, link its here: https://yadi.sk/d/a92MoztteJAKe
We installed it and ready we will have root on our phone...
That's it, this is what I did and I thank 4pda also because of pull out there is rom
Click to expand...
Click to collapse
How abt cyanogenmod for this device?
-=-♔♚Need help♚♔-=-
flightdragonz said:
How abt cyanogenmod for this device?
-=-♔♚Need help♚♔-=-
Click to expand...
Click to collapse
as far as we know no one is working on it,
some people are working on cm12 for G6-U10, maybe later they will port it to the L11
Twrp g6 l11
messi2050 said:
There is twrp recovery u can download it from here
if u have ubuntu x64 & speed internet connection i can help u to compile cwm
Click to expand...
Click to collapse
Maybe you know where can I get new version of TWRP recovery.img for Huawei G6-L11?
While I was trying to install GApps for Lineage OS 18.1 on my Nokia 7.2, I always lost my wi-fi. This is apparently due to flashing TWRP as boot image, which replaces the stock boot messing with wi-fi as the boot image has thee kernel.
Although, I did figure it out, it took me three days to get a proper solution from multiple sources. Here, I will explain how to install Lineage OS 18.1 on Nokia 7.2 with Gapps and Magisk. This can be applied to other ROMs as well. I am assuming you are on stock firmware.
Requirements:
Any custom ROM without GApps
vbmeta file
vendor image
Gapps zip file of your choice
platform-tools
twrp image
magisk file
payload dumper tool
Preperation:
The wifi stops working because we change the boot image. To prevent this, we must flash the boot image of the rom after we are done with our work with TWRP
For this, we ,ust get the boot image for the ROM. As this is not available readily, we must extract it from the ROM zip
Install latest python on your pc
Get the payload dumper tool from the link given below. Extract the contents into the root directory of python. It should be in C:\Users\USER-NAME\AppData\Local\Programs\Python\Python <version number>
Extract the ROM zip into any folder. Copy the payload.bin file and paste it in the folder where you put the payload dumper tool
Open a command prompt in the python root folder and type
Code:
python -m pip install -r requirements.txt
Then type
Code:
python payload_dumper.py payload.bin
After it finishes, go to the folder named Output inside the python folder. Here there will be a file named boot.bin. Rename this as lineage_boot.bin and paste it into the platform tools folder
Installation:
Download the twrp image, rename it to twrp.img and place it in the platform-tools folder. Connect your phone to the computer, switch on usb debugging on your phone.
Open command shell in the platform-tools folder and type
Code:
adb reboot bootloader
. In the bootloader, type
Code:
fastboot flash boot_b twrp.img
.
Next, type
Code:
fastboot --set-active=b
and then reboot to recovery using volume buttons and selecting using power button
In TWRP swipe to allow modifications. Copy your ROM and vendor image files to your SD Card. Now, click wipe, format data and type yes. Go back to home screen and the press install. Select your ROM file and install it. Sometimes it is required to flash vendor image. In that case flash that too. This step is required for Lineage OS 18.1
Now on the twrp home screen, tap on reboot. At the bottom, the current slot should be B. Tap slot A. THis changes the active slot to A. Now go back and tap on bootloader, this should boot you to the bootloader.
Take your vbmeta.img file and place it in the platform tools folder. Now, while in the bootloader mode, type,
Code:
fastboot flash vbmeta_a --disable-verity --disable-verification vbmeta.img
Next type
Code:
fastboot flash boot_a twrp.img
and boot to recovery using volume buttons
Now, press install in TWRP and select install and install the GApps file and reboot to bootloader
Next, in the bootloader type
Code:
fastboot flash boot_a lineage_boot.img
. Now start your phone. You should have lineage os with GApps
Installing Magisk:
Copy the lineage_boot.img into your phone. Download magisk.apk file from the link given below
Install the magisk app and open it. If it asks for additional setup select no. Beside the magisk option select install. Under options, if Recovery Mode is selected, deselect it and click next.
Now click on Select and patch a file under method. Select the lineage_boot.img
The patched image will be saved in downloads folder. Rename this file to lineage_magisk.img and copy it to the platform tools folder on your computer. Reboot your phone to bootloader mode
On your computer in the command window opened in the platform tools folder, type,
Code:
fastboot flash boot lineage_magisk.img
Reboot and you will have a rooted lineage os with GApps
Files:
Lineage OS 18.1 and vbmeta.img
TWRP
vendor
NikGApps
Payload Dumper tool
platform tools
Magisk
Guides that I Followed:
Extracting boot.img from ROM zip
Installing magisk using patched boot image
Credits:
Raghu varma for Lineage OS 18.1 port and twrp
Providers of the guides mentioned above
Hi @Ujwal2000 thanks for the guide.
I am using the stock android 10 rom and magisk patch method.
This also leads to non working wifi and magisk does not recognize that its installed.
Which steps of your guide apply to the stock rom?
i do not need gapps nor twrp I guess I only wanted to root the stock rom with magisk.
For stock, use this guide. They maintain a repository if patched boot images
Guide - How to root the Nokia 7.2 and Nokia 6.2 using Magisk
Nokia 7.2 and Nokia 6.2 come with an unlockable bootloader. The thing that compliments unlocked bootloader best is root access. So, this guide will help you in rooting the Nokia 7.2 or Nokia 6.2. You have a choice between Magisk patched boot images and TWRP recovery. I’d recommend going the...
www.techmesto.com
@Ujwal2000 , can you please look at my posting here? Thank you.
after fallowing the steps(except installing lineageOS with twrp flash everything was encrypted even tough i have the bootloader unlocked, managed to install it via adb sideload) the wifi doesnt work at all. When i try to turn it on is switches off on its own. Do anyone know a fix?
i had problem with latest version of python (3.10), version 3.7 was working for me
This guide is general guide for the installation of custom ROMs. I will also include guide to install stock ROM on devices which have been bricked or for solving various problem which you may encounter in custom ROMs. There are other guides for the same purpose but most of them are outdated and many of you seem to ignore old guide despite the fact that those guides can be helpful.
This is guide is only relevant for installation of custom ROMs which were released up to the date of posting this guide or up to android version 11. Recovering a bricked device can be done in the same way as to this one but installation instruction for devices with android version greater than 11 may differ.
DISCLAMER
Code:
I am NOT responsible for bricked devices,
thermonuclear war or for you getting fired because your alarm app failed.
Make sure the bootloader is unlocked and never lock the bootloader
How to unlock bootloader ?
>See in this thread.
Hard Brick, Soft brick, Problems in custom rom due to bad base, installation of base for switching to custom roms: windows linux
Installation of stock ROM through fastboot : The reply below
Migration from stock base to custom ROM : CLEAN FLASH
Migration between different version of same custom ROM : DIRTY FLASH
FOR SPECIFIC THREADS
Oragne Fox For Daisy
TWRP For Daisy
Magisk
CREDITS:
LInkBoi for his previous guide and TWRP
DarthJabba9 for Orange Fox Recovery
Every pros in daisy telegram groups.
EDL FLASHING (For windows only)
EDL flashing can be helpful when flashing every partition of device is needed either for clean stock base or after brick or after some failure.
EDL flashing can be the final resort when everything else fails.
PREREQUISITES
1) A good USB cable, your phone
2) A PC with either windows or linux
3) Fastboot drivers from google and edl drivers from qualcomm
4) Platform tools from google
5)Fastboot rom. This should be full rom in .tgz format.
6)Xiaomi flash tool (LATEST VERSION AVAILABLE)
Install the adb and fastboot drivers from google. If you are on windows 10 or greater then you can also use "windows update > optional updates" to update adb and fastboot drivers + edl drivers. For the installation of drivers always use trusted sources and don't turn of driver signature enforcement if you can.
Extract the platform tools in a convenient folder, we will be doing our operations from this folder for fastboot and adb opeartions. Extract the fastboot ROM and place that in convenient folder as well. And for xiaomi flash tool extract the zip and launch XiaoMiFlash.exe .
If you can access fastboot in you phone then the phone can be booted into edl mode through fastboot else you have to take out back cover and short the testpoint pins to make the device boot into edl mode (see the attached image ).
If you can access fastboot. Boot into fastboot and type the following command in terminal.
To check if device is connected properly and drivers are properly installed
If no devices is shown then connect device properly with good usb cable and check the drivers.
Code:
fastboot devices
To boot phone into edl mode. This is only possible if the bootloader is unlocked else testpoint-edl is the only option
Code:
fastboot oem edl
The device should be shown as COM device in device manager ( Windows ). If not then either drivers aren't installed properly or your phone isn't in edl mode.
Now click on refresh button in xiaomi flash tool. Your device should be recognized as com device. Set the path to the images folder ( extracted fastboot rom ). Select CLEAN ALL option . If everything is good then click
on FLASH. The flashing process should start now. After the process completes keep pressing power button to boot device into the currently installed ROM.
Just install the rom and setup once even if you're going to flash custom rom next. This reduces various problems which may come in custom ROMs.
If any error occurs then try the following:
Make sure you are using latest flash tool.
Good fastboot rom (shouldn't be corrupted )
Good USB cable and try different ports of the PC.
The flashing should be done immediately after booting to edl. If not then take out battery and reconnect it if you have back cover open(In case of hard brick). Or keep pressing power button and volume down to boot into fastboot and boot to edl mode again from the above instructions(If fastboot is accessible)
For booting to edl using testpoint:
> Take out backcover
> Disconnect battery
> Short the pins
> Flash
> Connect battery after flashing is complete
> Keep pressing power button to boot into system.
qdl flashing ( linux only )
For very detailed guide github -> bkerler edl
Thanks to DEFXZ and LinkBoi for suggesting this alternative.
Make sure you have platform tools, fastboot rom and other prerequisites to detect device properly.
clone the repository in convenient place
Code:
git clone https://git.linaro.org/landing-teams/working/qualcomm/qdl.git --depth=1
change to qdl directory
Code:
cd qdl
Build qdl tool
Code:
make
Finally flash the rom
Code:
./qdl --storage emmc --include /path/to/stock/images /path/to/stock/images/prog_emmc_firehose_8953_ddr.mbn /path/to/stock/images/rawprogram0.xml /path/to/stock/images/patch0.xml
The paths are the paths to various files inside the images folder which will be obtained after fastboot rom is extracted.
For further informations:
Original github link
qdl discussion in XDA
FASTBOOT FLASHING
PREREQUISITES
FASTBOOT DRIVERS
PLATFORM TOOLS
FASTBOOT ROM
GOOD USB CABLE
PC WITH WORKING USB PORT
See this for meeting prerequisites.
Install fastboot drivers, connect device to PC via USB.
Extract platform tools into a convenient folder.
Extract fastboot ROM into a convenient folder.
Go to platform tools folder ( this will contain files and executable like fastboot.exe) and open powershell or any terminal window there
[ shift + right click and select open (powershell) window here ]
Type this command to see everything worked correctly.
Code:
fastboot devices
If not then check every step properly.
Now execute the script to flash the ROM.
Execute flash_all.bat script for windows PC.
Execute flash_all.sh script for linux PC.
If platform tools cannot be accessed system wide then.
Code:
./fastboot devices
will provide fastboot devices information.
For flashing drag and drop flash_all.bat or flash_all.sh file into the terminal.
Code:
'/media/user001/user/daisy/stock_roms/daisy_global_images_V10.0.18.0.PDLMIXM_9.0/flash_all.sh'
It will look something like this in linux and similar in windows.
If any error occurs the search for particular error. Most of the times the error is due to corrupted fastboot ROM or bad connection between phone and PC.
FINALLY! FLASHING CUSTOM ROM
STEP 0
Flash(if not flashed already) the stock base recommended by particular ROM, if the ROM doesn't recommend a specific stock base flash 10.0.18.0 from the above instructions.
PREREQUISITES
TWRP or ORANGE FOX RECOVERY
Fastboot drivers and platform tools (details above )
The ROM which you want to flash, choose from here
GAPPS package if rom is vanilla and you want to install it.
Magisk if you want to root.
As you may have known by experience, our device doesn't have recovery partition so, flashing recovery through fastboot isn't possible. For flashing recovery first we need to boot recovery image and then only we can flash it.
If you want to use twrp:
Download both twrp*.zip and twrp*.img and place it in a convenient place.
If you want to use orange fox recovery:
Download orangeFox*.zip and extract it.
Keep both the .zip and .img file in convenient place.
If you have sdcard then copy ROM file, gapps, magisk, twrp or orange fox files into sdcard.
If not then there will be further instructions.
Now, connect the phone to the PC via USB and enable usb debugging. And open terminal in the platform tools folder as in above instructions.
Check device connectivity:
Code:
adb devices
Reboot into fastboot:
Code:
adb reboot bootloader
Check device connectivity:
Code:
fastboot devices
Lets check if the bootloader is unlocked:
Code:
fastboot oem device-info
If bootloader isn't unlocked you won't be able to flash custom recovery into the device. So, first unlock the bootloader. This should be allowed in the developers option of your phone first. This will factory reset the device.
Code:
fastboot oem unlock
Now if everything is good then it's time to boot into custom recovery:
Code:
fastboot boot recovery.img
recover.img is name of image of whichever custom recovery you want to use.
Code:
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
It's like this in my case. You can drag and drop after typing fastboot boot
The phone should now boot into custom recovery. If it ask for decryption then your lockscreen password should work there.
if you want to flash recovery only then find the recovery.zip you want and flash it.
The steps further is also valid for moving between different custom roms. The term used for such process is CLEAN FLASH.
For Flashing custom ROMS :
SOMETIMES FLASHING INSTRUCTIONS MAY DIFFER SO, BE SURE TO CROSS CHECK FOR INSTRUCTION IN ROM SPECIFIC XDA THREAD OR TELEGRAM GROUP
The following action will wipe userdata if not wiped already. Be sure to backup data before these steps. Also if you encounter any future problems full backup from custom recovery may be able to solve most of the problems. So, be sure to keep full backup(including every partition) of your device.
Go to main menu > wipe > select all except internal storage and microSD.
Swipe right to perform wipe.
Install custom recovery by flashing recovery.zip
(This is done in case adb push doesn't work below and sdcard isn't available for flashing)
Again go to main menu > wipe > format data
Type yes and press enter.
If you don't have files in your sdcard then:
push rom file + gapps + other files into your device through adb push.
The command will be something like this:
Code:
adb push '/media/user001/storage (1)/daisy/posp/potato_daisy-11-20210919-dumaloo.v4.2.3+20.Community.zip' /sdcard
If adb push fails to work then you can reboot recovery and simply copy the files through file explorer.
Reboot to recovery only if you had installed recovery after wiping system else the device will soft brick
Now flash the rom.zip by selecting the file and swiping right.
Flash custom recovery if the ROM doesn't contain recovery
We have to change current slot even if we don't want to flash anymore things.
Latest recoveries changes slot automatically So, go to main menu > reboot > recovery
Now flash files which you want to flash i.e. gapps and magisk.
Again, Don't flash gapps if the ROM is of Gapps variant
Most of the roms now have implemented FBE (File Based Encryption ). So, you need to format data before rebooting to system. Again, check for specific ROM installation instruction if that is required or not. If you keep data from previous ROM that won't be considered a clean flash so, for proper clean flash format data before rebooting to system.
reboot system
MOVING BETWEEN DIFFERENT VERSION OF SAME CUSTOM ROM
Dirty flash or OTA
Most of the newer ROMs have seamless update ( even the unofficial ones ). The OTA update is simple. Just go to updater ( in settings > system or native app, depends upon the rom). If your ROM is of vanilla version then make sure gapps and/or magisk which you have installed, your ROM and custom recovery all support addon.d survival script. If they don't then you may have to flash everything again after update process is complete.
If custom recovery itself doesn't support update then you may need to choose different recovery or dirty flash ROM from the recovery. Don't worry most of the roms and both the recoveries for daisy support OTA and addon.d survival.
DIRTY FLASHThe process of flashing a ROM on top of existing one keeping the /data partition intact is known as dirty flashing. Such flashing must be done only on different builds of same ROM and it isn't recommended to flash build of lower version on top of higher version.
The steps for dirty flashing:
Download the update package.
Reboot to recovery
Enter password for decryption if encrypted.
Flash the update.zip package.
Reboot recovery, if recovery/rom doesn't support survival of recovery then flash recovery before rebooting to recovery.
If gapps and/or magisk survival isn't supported then flash gapps and magisk, make sure gapps is of the same type which was flashed before.
reboot system
Hi @user-001 thanks for this.
I'm on a stock A2 lite thats never had anything done to it , am i right in thinking i follow the clean flash section ?
You mention in there
We have to change current slot even if we don't want to flash anymore things.
Click to expand...
Click to collapse
I'm not fully sure what that involves could you break it down the steps a little for me.
I've downloaded all the files and am set up but i'm unsure on the Flashing fastbbot section where you say to use these files..
Execute flash_all.bat script for windows PC.
Click to expand...
Click to collapse
Is this a section i can bypass ? if not where can i get them from ?
Cheers
steve.loveday said:
Hi @user-001 thanks for this.
I'm on a stock A2 lite thats never had anything done to it , am i right in thinking i follow the clean flash section ?
You mention in there
I'm not fully sure what that involves could you break it down the steps a little for me.
I've downloaded all the files and am set up but i'm unsure on the Flashing fastbbot section where you say to use these files..
Is this a section i can bypass ? if not where can i get them from ?
Cheers
Click to expand...
Click to collapse
1) Yes you should follow clean flash instructions.
2)Changing of slot is done in custom recovery. Precisely in the reboot menu. But newer recoveries automatically switch the slot after flashing the rom , just be sure to reboot to recovery after flashing the recovery zip file.
3) the flash_all.bat script will be inside the extracted rom(fastboot rom) folder. You can use xiaomiflash too for flashing through fastboot.
user-001 said:
1) Yes you should follow clean flash instructions.
2)Changing of slot is done in custom recovery. Precisely in the reboot menu. But newer recoveries automatically switch the slot after flashing the rom , just be sure to reboot to recovery after flashing the recovery zip file.
3) the flash_all.bat script will be inside the extracted rom(fastboot rom) folder. You can use xiaomiflash too for flashing through fastboot.
Click to expand...
Click to collapse
Hi thanks for the reply,
I'm getting confused with all the various guides all seem to want you to do it a different way.
As i'm wanting Lineage thier instructions are...
Installation:
Download the latest build from here
Download LinkBoi00's version of TWRP here
Reboot to bootloader (adb reboot bootloader)
Fastboot into TWRP recovery (fastboot boot twrp*.img)
Do a factory reset in TWRP
Flash the latest build of Lineage OS
Boot into your new phone
Click to expand...
Click to collapse
Theres no mention of the edl or fastboot flashing and also the fastbot rom i downloaded doesnt have the flash_all.bat script in the zip file.
So do i follow thier instructions or these ones ?
Cheers
steve.loveday said:
Theres no mention of the edl or fastboot flashing and also the fastbot rom i downloaded doesnt have the flash_all.bat script in the zip file.
So do i follow thier instructions or these ones ?
Cheers
Click to expand...
Click to collapse
This guide deals with how to do something rather than what to do, meaning you should always do what particular rom suggests but the way to do this is mentioned here.
edl or fastboot flashing comes under clean flashing with new base, most of the time you aren't required to do this.
The script should be clean_all.bat or something similar just don't execute script with lock in the name(it will lock the bootloader)
And if you're already on the recommended base you don't have to flash the fastboot rom.
First of all, thank you very much for the detailed guide. What you have done here took a lot of work to do but it will help a lot of people (including me) to understand, albeit rudimentarily, the structures and functions of the devices etc.
For all that, thanks again.
When I start using the guide, I will update this post with any questions, such as :
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
why not doing below? (For those who, like me, are not very familiar with linux.)
1. > adb push <twrp.img> /sdcard or same adb push "C:\platform-tools\twrp-3.5.2_9-2-daisy-unofficial.img" /sdcard
( which means push <file> from "adb|platform-tools\ folder" (eg. C:\platform-tools\)
into the root of <internal storage> | /storage/emulated/0 )
2. Reboot from adb to fastboot:
> adb reboot bootloader
3. Boot the image from <internal storage>:
> fastboot boot /sdcard/twrp-3.5.2_9-2-daisy-unofficial.img
What is the "Red" pointed and "Yellow" addresses"?
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
I followed your "EDL FLASHING" post (#2) and it worked exactly as you mention!
In short, I was comming from unsuccessful flashing... but this is out of topic.
For me, did not worked the first time (after restarts) but the other day worked perfect.
The point is, most of times, it's becase windowz drivers.
We have to point that windowz needs their time to take the drivers in place. So, be patient and leave windowz to (not forced) restart(s).
AntonyMan said:
What is the "Red" pointed and "Yellow" addresses"?
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
Click to expand...
Click to collapse
That must be your terminal representing different type of character in different colors.
Or, Are you talking about something else ?
steve.loveday said:
Theres no mention of the edl or fastboot flashing and also the fastbot rom i downloaded doesnt have the flash_all.bat script in the zip file.
So do i follow thier instructions or these ones ?
Cheers
Click to expand...
Click to collapse
For future references, the extracted fastboot ROM should be like this and you need to execute flash_all.bat or flash_all.sh script depending upon your OS or terminal.
user-001 said:
That must be your terminal representing different type of character in different colors.
Or, Are you talking about something else ?
Click to expand...
Click to collapse
Of course I'm talking about something else. lol
I was talking about that 'strange' address. fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img' (explained in post #11)
There is not such a directories in my miA2Lite phone. Obviously, it's because you are on Linux or Mac (UNIX). On Windowz 'command prompt' syntax it's slightly different.
Thus, I typed fastboot boot "/sdcard/twrp-3.5.2_9-2-daisy-unofficial.img"
* /sdcard is the root of <internal storage> directory.
** On Windows, double quote the address, if it's include spaces.
AntonyMan said:
Of course I'm talking about something else. lol
I was talking about that 'strange' address. There is not such a directories in my miA2Lite phone.
Thus, I typed fastboot boot "/sdcard/twrp-3.5.2_9-2-daisy-unofficial.img"
* /sdcard is the root of <internal storage> directory.
** On Windows, double quote the address, if it's include spaces.
Click to expand...
Click to collapse
The twrp image was on my pc(linux) i was booting directly from pc's terminal. And if you use only adb(or fastboot) then the paths are pc's absolute paths.