Fastboot flash - Lenovo P2 Questions & Answers

Is there a way to erase and reflash everything (inc. bootloader on unlocked device) on the P2 (I can oly boot to fastboot, not to recovery) ?

Related

(V-510 GPE) - Return to Stock using Fastboot

Hi, I would like to get a verification that the following procedure would work on the GPAD GPE V-510 to return back to Stock if ever needed. I am used to Nexus devices and using Factory images with Fastboot when needed and would like to have the same ability on the GPAD.
1st step was I made a TWRP backup when the device was pretty much stock (no root, standard recovery and kernel) and copied the files back to my PC.
Since then I have flashed custom recovery (TWRP) and Kernel (SleekAI)
Now if I enter Bootloader / Fastboot mode (Vol-Down + Power), would it be possible commands to return back to this state if for some reason TWRP recovery was no longer available and I wanted to restore back this image:
Check Tablet is visible in Fastboot mode:
fastboot devices
Restore Backups using Fastboot:
fastboot flash recovery recovery.emmc.win
fastboot flash boot boot.emmc.win
fastboot flash system system.ext4.win
fastboot flash userdata data.ext4.win
fastboot erase cache
fastboot reboot
Also do we need to restore / flash userdata or could we just issue the following command to format (erase) the data and it would return to its original state?
fastboot format userdata
If someone can confirm that this would work it would be appreciated, also do you think the backup images from 1 device could be used on other v-510 devices? If so I could post them and this procedure for anyone else needed to use this to return to Stock.
Thank you for your help,
Shaun

[flash][root] problems with TWRP, i need help

I want to install Supersu using TWRP on my 360 gen1 (LCA44B).
I've built a USB cable like RootJunky's Guide and unlocked the 360 (fastboot oem unlock). The bootloader shows UNLOCKED STATUS CODE 1.
However, I can neither flash TWRP (fastboot flash recovery twrp.img), the flash process says successful (sending recovery... OKAY, writing recovery... OKAY finished), but the boot into Recovery shows TWRP does not exist.
And when I load TWRP (fastboot boot twrp.img) this has no access to the system partition.
What is wrong, what can I do?

How to unroot and relock recovery? (fully revert to stock)

I have unlocked and rooted Nexus 5x and would like to revert back to stock + relock bootloader.
What is the easiest and safest way to achieve this?
download fastboot and fastboot drivers then download latest factory image from here https://developers.google.com/android/images?hl=en and unzip it now you should have 6 files but we are gona use only 3 bootloader-bullhead-something.img radio-bullhead-something.img image-bullhead-something.zip now flash bootloader
fastboot flash bootloader bootloader-something.img then fastboot reboot-bootloader then fastboot flash radio-bullhead-something.img and fastboot reboot-bootloader now unzip the other file and cd into it then fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot flash userdata userdata.img and finaly fastboot flash cache cache.img now start your device and if it boots normaly reboot to bootloader again and run fastboot flashing lock (this is gonna wipe all your data so dont set up anything just make sure it boots)
or just run flash-all

Nexus 5X stuck in bootup

Hi,
I have a Nexus 5X that was on the latest 8.1 firmware, and I successfully downgraded to the latest 6.0.1 firmware by unlocking the device and flashing everything separately. Here's what I did
Enable OEM unlock in Developer settings
Reboot to boot loader
fastboot flashing unlock
fastboot flash boot boot.img
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flashing unlock (had to do this cos after rebooting, device is locked again)
fastboot flash radio radio.img
fastboot flash recover recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot
After this, I get the "Your device is corrupt. It can't be trusted and may not work properly" boot up message, but continue anyway, after which the device boots up and I set up the new device as per normal.
Then, I tried to flash TWRP in order to install Magisk. It is during this step that the device is stuck in the bootup process with the 4 colorful circles. Here's what I did
Reboot to boot loader
fastboot flash recover twrp-recovery.img
Reboot to recovery to check TWRP has been installed (it has)
Reboot to system (stuck in bootup!)
How can I get it to boot up again?
I ended up waiting for the battery to drain and the device to shutdown.

Rooting Motorola G6 Play gone wrong

Hi everyone,
I bought a Motorola G6 play model XT1922-3 type 374B and wanted root acces on this device.
So I started by succesfully unlocking my bootloader using the following tutorial.
After this a started tried to root the device using this tutorial.
This tutorial doesn't link to boot images anymore so I was able to find the moto-g6-play-jeter-patched-twrp.img somewhere else.
I did the following things:
- reboot to bootloader [Succesfull]
- fastboot boot moto-g6-play-jeter-patched-twrp.img [Unsuccesfull]
The device did boot the twrp image but I was unable to interact with it in any way. I couldn't swipe or press buttons.
I made a short video to show this.
I wanted to retry the whole thing so I did reboot to bootloader but then I accidently entered the following command:
fastboot flash boot moto-g6-play-jeter-patched-twrp.img picture of command prompt
After this I wasn't able to normally boot my device. When I try to do so the screen goes black and says n/a in the left corner.
Please does anyone know how I could either be able to boot my normal stock rom again or to have a rooted rom?
Kind regards Sven Onderbeke
Hi Sven,
This isn't going to be the most advanced reply, as I'm not very experienced with this stuff either, but it seems you have accidentally flashed your twrp image to 'boot', wherever that is, which is why the phone isn't able to boot to system.
Can you still boot into bootloader and recovery (twrp)?
If so, then I'd suggest using fastboot to flash a sock or custom ROM. I'm not sure exactly which one though, you have basically the same model as me and that seems to use the JETER ROMS a list of which are over here (can't post links yet, so you will just have to search on mirrors . lolnet . com /firmware/moto/jeter/official/ or remove the spaces
I seem to have somehow lost the partitions on mine, but will start a new thread question about that.
Sven Onderbeke said:
Hi everyone,
I bought a Motorola G6 play model XT1922-3 type 374B and wanted root acces on this device.
So I started by succesfully unlocking my bootloader using the following tutorial.
After this a started tried to root the device using this tutorial.
This tutorial doesn't link to boot images anymore so I was able to find the moto-g6-play-jeter-patched-twrp.img somewhere else.
I did the following things:
- reboot to bootloader [Succesfull]
- fastboot boot moto-g6-play-jeter-patched-twrp.img [Unsuccesfull]
The device did boot the twrp image but I was unable to interact with it in any way. I couldn't swipe or press buttons.
I made a short video to show this.
I wanted to retry the whole thing so I did reboot to bootloader but then I accidently entered the following command:
fastboot flash boot moto-g6-play-jeter-patched-twrp.imgpicture of command prompt
After this I wasn't able to normally boot my device. When I try to do so the screen goes black and says n/a in the left corner.
Please does anyone know how I could either be able to boot my normal stock rom again or to have a rooted rom?
Kind regards Sven Onderbeke
Click to expand...
Click to collapse
Just flash a stock boot.img to boot. Then just flash TWRP to recovery. In TWRP, format data. Type yes. Then reboot recovery. Then Use TWRP to flash magisk. Done.
Hi again Sven,
I just wanted to let you know that I just downloaded the following RETAIL ROM
ALJETER_RETAIL_9.0_PPPS29.55-35-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml
and used the following fastboot commands, one at a time.
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot flash dsp adspso.bin
fastboot flash boot boot.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 oem oem.img
fastboot flash vendor vendor.img
fastboot erase carrier
fastboot erase userdata
fastboot erase DDR
fastboot flash logo logo.bin
fastboot reboot
Which rebooted into bootloader so pressed "start" and all booted fine now. It looks like we have the same device, so hopefully that will work for you too.

Categories

Resources