[Q] move to CWM from TWRP - Xperia Z Q&A, Help & Troubleshooting

I flashed TWRP to my tablet using the ADB/dd commands mentioned in the TWRP website. Now I wanna use the CWM that is included in the boot.img of cyanogenmod.
How do I do it? Do I just boot into fastboot and run fastboot to flash CWM?
Here's the adb commands use to flash TWRP
Code:
Download the above file. Copy the file to /sdcard/fotakernel.img and run the following commands using terminal emulator or in adb shell:
su
dd if=/sdcard/fotakernel.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Here's the fastboot commands use to flash CWM according to cyanogenmod.
Code:
fastboot -i 0xfce flash boot boot.img
fastboot -i 0xfce reboot
thanks!

Related

Simple KFHD SRT with Linux desktop.

Many Thanks to onemeila for this tools. http://forum.xda-developers.com/showthread.php?t=1951254&nocache=1
after acquiring a KFHD 7 Demo from Ebay, i used the following procedure to install a stock ROM using a Linux desktop.
requires factory cable, android-tools.rpm, and KFHD SRT download.
to get fastboot binary you need to install android-tools from the EPEL software repository, for details see https://fedoraproject.org/wiki/EPEL
open a terminal command line window on the Linux desktop. $ is the bash prompt and shouldn't be entered as part of the command.
install android-tools.
$ sudo yum install android-tools
unzip KFHD SRT you downloaded.
$ unzip Downloads/KFHD_SRTv1.3.5.zip
before connecting the Kindle, enter the following command.
$ fastboot -i 0x1949 getvar product
should show < waiting for device>
now connect a factory cable from the Kindle to the desktop, and power on the Kindle. It should show the Fastboot screen.
the terminal bash window should show ROM version of the Kindle:
product: Tate-###-##
now enter the following commands in the terminal bash window.
$ fastboot -i 0x1949 erase cache
$ fastboot -i 0x1949 erase userdata
$ fastboot -i 0x1949 flash recovery images/recovery.img
$ fastboot -i 0x1949 flash boot images/boot.img
for Restore-Factory Rooted with SuperSU.apk, enter this command.
$ fastboot -i 0x1949 flash system images/system.img
or for Restore-Factory Rooted with SuperSU.apk, Apex Launcher, and PlayStore, enter this command.
$ fastboot -i 0x1949 flash system images/system2.img
fastboot -i 0x1949 reboot
disconnect the Kindle and it may need a couple of reboots for the stock ROM to come up.
now that was simple. i hope this helps.

Fastboot and ADB file for mI3

hey can someone post the fastboot and adb files for mi3...this is required to flash kernel through command prompt...

[GUIDE] Fastboot for L90 D405n

Hi, working on modifying the partition in my D405n discovered fastboot mode. It works in the same manner as in D415. For fastboot must delete the partition laf, which is responsible for the download mode. Now, if you break something in your phone, you can quickly flash custom recovery by fastboot and fix it instead of reflash rom using KDZ.
First, backup your laf partition with this code, so later you can restore Download Mode. In terminal/adb shell:
Code:
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/sdcard/laf.img
Run the following code to clear laf:
Code:
su
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/laf
If you want restore Download Mode you can do it two methods:
First, you can flash laf in fastboot mode by commands:
Code:
fastboot flash laf laf.img
Second, in terminal/adb shell by comands:
Code:
su
dd if=/sdcard/laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf
If you want flash a custom recovery/boot you must have unlocked bootloader. You can also do this in fastboot mode by command:
Code:
fasboot flash aboot aboot.bin
You can also get fastboot mode only temporarily if you using this command:
Code:
su
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/boot
Now you can go to recovery mode or Download Mode but if you want boot system instead system starts up fastboot mode. Remember that using this must flash again boot partition using this command:
Code:
fastboot flash boot boot.img
or in recovery mode.

[Guide] [6.0] How to restore stock ROM XT1097 step by step

Hi guys, I'm doing this tutorial because I didn't find a complete tutorial on how to restore our Moto X 2014 to stock 6.0 marshmallow.
As I asked here for help, I tried encrypting the phone when using LineageOS but it failed and then bootlooped, so I needed to reflash the stock ROM because the formating though TWRP failed too.
I used a Linux distro to do the job. For windows I think there are scripts out there which do the job, and of course you can adapt the commands given here to work with Windows (i.e. changing "sudo fastboot" to "fastboot.exe").
Note: My device is a XT1097 variant and the boot loader was already unlocked. There's also a Zip file for those who have a working TWRP recovery already.
Download the ROM files here: EU variant // RET LA + NIIMX variants
The file I used for this tutorial was: Motorola_Moto_X_XT1097_VICTARA_RETLA_6.0_MPES24.49-18-3_cid12_6.0.zip
Setup of the computer:
1- Install androidtools-fastboot & androidtools-adb
[Optional] 2- Install libmtp package too
Setup of the phone:
1- Reboot your phone into fastboot mode (press power and vol down toghether)
2- Connect the phone to PC
3- Extract the content of the Zip file & enter the folder
4- Open a new terminal inside the folder called "Firmware"
5- Execute these commands below (one command per line)
Bash:
sudo fastboot flash partition gpt.bin
sudo fastboot flash motoboot motoboot.img
sudo fastboot flash boot boot.img
sudo fastboot flash recovery recovery.img
sudo fastboot flash system system.img_sparsechunk.0
sudo fastboot flash system system.img_sparsechunk.1
sudo fastboot flash system system.img_sparsechunk.2
sudo fastboot flash system system.img_sparsechunk.3
sudo fastboot flash system system.img_sparsechunk.4
sudo fastboot flash system system.img_sparsechunk.5
sudo fastboot flash system system.img_sparsechunk.6
sudo fastboot flash system system.img_sparsechunk.7
sudo fastboot flash system system.img_sparsechunk.8
sudo fastboot flash system system.img_sparsechunk.9
sudo fastboot flash modem NON-HLOS.bin
sudo fastboot erase modemst1
sudo fastboot erase modemst2
sudo fastboot flash fsg fsg.mbn
sudo fastboot erase cache
sudo fastboot erase userdata
sudo fastboot erase customize
sudo fastboot erase clogo
[Optional] Tip: If you want to reset the Motorola logo too (it will display again the warning regarding the bootloader unlock, this is why I skipped it), execute the command below just before entering boot.img command
Bash:
sudo fastboot flash logo logo.bin
6- Reboot the phone just in case
Bash:
sudo fastboot reboot-bootloader
7- Reboot the phone into the system
Bash:
sudo fastboot reboot
8- Wait several minutes on the animation booting screen
9- Done, the phone should now show the "Welcome" greenish screen
10- After the initial setup, go to the PlayStore and update your Google Play Services app before updating/installing other apps
I based my tutorial on this post here by @seco2004 and in this post forum here by Junior Gomes. Thanks for all the devs for the hard work with this amazing (besides the battery duration) phone and for that website for hosting all Motorola's stock ROMs at GDrive.

fastboot: usage: unknown reboot target recovery problem on RMX2020

I'm having trouble to flash recovery image to my device. I followed all the step and rooted the device. But when I'm trying to lash my device into recovery image it's giving me this error message fastboot: usage: unknown reboot target recovery. I'm doing it from Ubuntu I've installed
Code:
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5ubuntu2
fastboot version 1:8.1.0+r23-5ubuntu2
And following this instructions
Code:
fastboot --disable-verification flash vbmeta vbmeta.img
fastboot flash recovery recovery.img
fastboot reboot recovery
Bro same, did you solve it?
Gominart said:
Bro same, did you solve it?
Click to expand...
Click to collapse
I also use Linux so may o may not be for that. But idk.
Sama

Categories

Resources