Set up adb properly
Are you _sure_ you've setup your adb properly
create folder called adb in C:/ so you have C:/adb
Extract the adb/fastboot drivers from Google into this folder. Then extract the factory image into the same folder. Edit flash-all.bat to remove -w flag to preserve data.
Find command prompt on start menu, right click and run as administrator. If done correctly, your prompt will be at
C:/Windows/System32/
Now navigate to the folder where the adb and the factory image are:
At C:/Windows/System32/ type each of these commands and press return after each one
cd..
cd..
cd adb
Now your prompt will be C:/adb
Type
adb devices
When you see your device, type:
adb reboot bootloader
When your phone is in bootloader, at your C:/adb prompt, type:
flash-all.bat
This will flash the factory image to all of the necessary partitions and preserve your data.
Now install Magisk Canary, do all of the manager install, set update channel to Canary, check for updates and install them.
Now, go back to your C:/adb folder in explorer and in there, there is an archive that's part of the factory image - open that and extract the boot.img to your C:/adb then copy it over to your phone's download folder.
In magisk manager, click Magisk (install) >select image and patch. Navigate to boot.img you copied to download folder, select it and "let's go".
In explorer, find the resulting magisk_patched.img and copy it to C:/adb
Open another Administrator adb session and navigate to C:/adb again.
adb roboot bootloader
When phone is in bootloader, at your Admin C:/adb prompt, type:
fastboot flash boot magisk_patched.img
When this is complete, unplug the usb cable from your phone and let it boot.
I have totally unrooted my phone tonight to go through this process and it works, first time, no errors.
I really and completely can't offer any more help that that
Have a look at the attached image to see the different between a Limited and Administrator adb session. Yours looks like Windows 7? so might be different - it is crucial that your adb is the latest version, extracted to and ran from the right place: C:/adb - the factory image files must also be in there and adb/fastboot *must* be ran with elevated permissions.
If this doesn't work, your phone is a dud and should be thrown out of a window ?
Right, I've had a look a the above adb/fastboot session again.I did it for both boot slots using flash-all.bat factory image...
![]()
It gets to this picture saying failed to write to partition etc....
I'm manually flashing them and it won't let me flash system,vendor, and many more. Platform tools is the latest version as well. Bootloader is unlocked. Debugging is enabled.
I don't know what I'm doing wrong, I never had trouble flashing anything to any phone besides this.
Are you _sure_ you've setup your adb properly
create folder called adb in C:/ so you have C:/adb
Extract the adb/fastboot drivers from Google into this folder. Then extract the factory image into the same folder. Edit flash-all.bat to remove -w flag to preserve data.
Find command prompt on start menu, right click and run as administrator. If done correctly, your prompt will be at
C:/Windows/System32/
Now navigate to the folder where the adb and the factory image are:
At C:/Windows/System32/ type each of these commands and press return after each one
cd..
cd..
cd adb
Now your prompt will be C:/adb
Type
adb devices
When you see your device, type:
adb reboot bootloader
When your phone is in bootloader, at your C:/adb prompt, type:
flash-all.bat
This will flash the factory image to all of the necessary partitions and preserve your data.
Now install Magisk Canary, do all of the manager install, set update channel to Canary, check for updates and install them.
Now, go back to your C:/adb folder in explorer and in there, there is an archive that's part of the factory image - open that and extract the boot.img to your C:/adb then copy it over to your phone's download folder.
In magisk manager, click Magisk (install) >select image and patch. Navigate to boot.img you copied to download folder, select it and "let's go".
In explorer, find the resulting magisk_patched.img and copy it to C:/adb
Open another Administrator adb session and navigate to C:/adb again.
adb roboot bootloader
When phone is in bootloader, at your Admin C:/adb prompt, type:
fastboot flash boot magisk_patched.img
When this is complete, unplug the usb cable from your phone and let it boot.
I have totally unrooted my phone tonight to go through this process and it works, first time, no errors.
I really and completely can't offer any more help that that
Have a look at the attached image to see the different between a Limited and Administrator adb session. Yours looks like Windows 7? so might be different - it is crucial that your adb is the latest version, extracted to and ran from the right place: C:/adb - the factory image files must also be in there and adb/fastboot *must* be ran with elevated permissions.
If this doesn't work, your phone is a dud and should be thrown out of a window ?
Attachments
-
255.6 KB Views: 39
Last edited: