Rooted but existing personal files still on device - Nexus 4 General

Guys I unlocked my bootloader and it didnt erase anything. I then rooted and installed clockwork mod recovery.
I used the old method.
I downloaded adb fastboot drivers for 4.2.2 from the nexus 4 toolkit thread and copied them to a folder called fastboot.
I simply typed:
adb reboot-bootloader
fastboot oem unlock
fastboot flash recovery recovery.img
Had supersu.zip on device so I booted in to CWM and installed the file.
Horray root access!!

Related

Can't get into TWRP recovery from bootloader

so after following the instrucions down below, I can't access TWRP recovery. Everytime I go to the recovery from bootloader, it will restart the phone automatically. I made a backup before doing this, but now i can't even get into recovery mode from boot loader
Installing recovery using fastboot
You can use fastboot to install your recovery image to the device.
Installing ClockworkMod Recovery on the One (Sprint)
Download koush's ClockworkMod Recovery.
koush's ClockworkMod Recovery: download
md5: 8e1001f45ad07d4cda03b813739f85c1
Connect the One (Sprint) to the computer via USB.
Make sure the fastboot binary is in your PATH or that you place the downloaded image in the same directory as fastboot.
Open a terminal on your PC and reboot the device into fastboot mode by typing adb reboot bootloader or by using the hardware key combination.
Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
Flash ClockworkMod Recovery onto your device by entering the following command: fastboot flash recovery your_recovery_image.img where the latter part is the name of the file you downloaded.
Once the flash completes successfully, reboot the device into recovery to verify the installation.
Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.
stevenpyang said:
so after following the instrucions down below, I can't access TWRP recovery. Everytime I go to the recovery from bootloader, it will restart the phone automatically. I made a backup before doing this, but now i can't even get into recovery mode from boot loader
Installing recovery using fastboot
You can use fastboot to install your recovery image to the device.
Installing ClockworkMod Recovery on the One (Sprint)
Download koush's ClockworkMod Recovery.
koush's ClockworkMod Recovery: download
md5: 8e1001f45ad07d4cda03b813739f85c1
Connect the One (Sprint) to the computer via USB.
Make sure the fastboot binary is in your PATH or that you place the downloaded image in the same directory as fastboot.
Open a terminal on your PC and reboot the device into fastboot mode by typing adb reboot bootloader or by using the hardware key combination.
Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
Flash ClockworkMod Recovery onto your device by entering the following command: fastboot flash recovery your_recovery_image.img where the latter part is the name of the file you downloaded.
Once the flash completes successfully, reboot the device into recovery to verify the installation.
Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately
boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.
Click to expand...
Click to collapse
get Into fastboot ; from cmd type, fastboot erase cache
and then try getting into recovery
nope
prunzzz said:
get Into fastboot ; from cmd type, fastboot erase cache
and then try getting into recovery
Click to expand...
Click to collapse
I did that and the same problem. instead of the phone restarting it just shuts down now.
stevenpyang said:
I did that and the same problem. instead of the phone restarting it just shuts down now.
Click to expand...
Click to collapse
put here the link of guide you followed
also the link of download of recovery

[Q] Stuck on Cyanogenmod Simple Recovery

Hi,
I'm in desperate need of some help and am not sure what to do. My HTC One m7 got stuck in Cyanogenmod Simple Recovery after the latest update. It will keep rebooting back into Simple Recovery. Is there any way to get my phone back either to stock or to Cyanogenmod?
I always just left it on Cyanogenmod so I'm not very familiar with flashing or other programs. If anyone has any advice, could you please point me to the correct tutorials and downloads?
I am at a complete loss with how to get my phone to its original state.
Perez92 said:
Hi,
I'm in desperate need of some help and am not sure what to do. My HTC One m7 got stuck in Cyanogenmod Simple Recovery after the latest update. It will keep rebooting back into Simple Recovery. Is there any way to get my phone back either to stock or to Cyanogenmod?
I always just left it on Cyanogenmod so I'm not very familiar with flashing or other programs. If anyone has any advice, could you please point me to the correct tutorials and downloads?
I am at a complete loss with how to get my phone to its original state.
Click to expand...
Click to collapse
Follow this nkk71's Return to 100% Stock Guide!
majmoz said:
Follow this nkk71's Return to 100% Stock Guide!
Click to expand...
Click to collapse
Thank you for the response, however my biggest issue is getting out of simple recovery. How do I install a new recovery, such as TWRP or CWM at the simple recovery screen and how do I flash the latest cyanogenmod rom?
Perez92 said:
Thank you for the response, however my biggest issue is getting out of simple recovery. How do I install a new recovery, such as TWRP or CWM at the simple recovery screen and how do I flash the latest cyanogenmod rom?
Click to expand...
Click to collapse
You will have to flash CWM recovery in bootloader/FASTBOOT USB. You can get the recovery from http://www.clockworkmod.com/rommanager find your phone then download the recovery.
In bootloader/FASTBOOT USB, flash CWM recovery (either rename the file CWM.img or type the whole name in place of CWM):
fastboot flash recovery CWM.img
fastboot erase cache
fastboot reboot-bootloader
majmoz said:
You will have to flash CWM recovery in bootloader/FASTBOOT USB. You can get the recovery from http://www.clockworkmod.com/rommanager find your phone then download the recovery.
In bootloader/FASTBOOT USB, flash CWM recovery (either rename the file CWM.img or type the whole name in place of CWM):
fastboot flash recovery CWM.img
fastboot erase cache
fastboot reboot-bootloader
Click to expand...
Click to collapse
Thank you for replying.
So from what I'm understanding is that I will need to use ADB to sideload the recovery onto my phone, correct?
I'm not sure what the bootloader/FASTBOOT USB you refer to, I feel like I need it to be ELI5. My brain is melting when trying to read this.
P.S. I am STUCK in Cyanogenmod Simple Recovery. I am not able to power down the device or get to any other screen.
Perez92 said:
Thank you for replying.
So from what I'm understanding is that I will need to use ADB to sideload the recovery onto my phone, correct?
I'm not sure what the bootloader/FASTBOOT USB you refer to, I feel like I need it to be ELI5. My brain is melting when trying to read this.
Click to expand...
Click to collapse
No, you can not load the recovery with sideload. Have ADB & Fastboot installed on your computer, place the recovery file in the same folder and connect your phone to the computer.
Open a command window in the folder where ADB & fastboot reside.
Type: adb reboot bootloader
When the screen on your phone shows the white bootloader screen in blue will be FASTBOOT USB
Type one line at a time waiting until the cmd screen states OK or something similiar:
fastboot flash recovery CWM.img
fastboot erase cache
fastboot reboot-bootloader
Here is a guide on fastboot commands.
majmoz said:
No, you can not load the recovery with sideload. Have ADB & Fastboot installed on your computer, place the recovery file in the same folder and connect your phone to the computer.
Open a command window in the folder where ADB & fastboot reside.
Type: adb reboot bootloader
When the screen on your phone shows the white bootloader screen in blue will be FASTBOOT USB
Type one line at a time waiting until the cmd screen states OK or something similiar:
fastboot flash recovery CWM.img
fastboot erase cache
fastboot reboot-bootloader
Here is a guide on fastboot commands.
Click to expand...
Click to collapse
So I was able to get my device past the first prompt. I now see the white bootloader screen and it does say "FASTBOOT USB". I downloaded the latest TWRP and placed it in the same folder as ADB and Fastboot. I did the second command to flash it, however I keep getting the error "error: cannot open 'TWRP.img'. Any idea as to what I could be doing wrong?
majmoz said:
No, you can not load the recovery with sideload. Have ADB & Fastboot installed on your computer, place the recovery file in the same folder and connect your phone to the computer.
Open a command window in the folder where ADB & fastboot reside.
Type: adb reboot bootloader
When the screen on your phone shows the white bootloader screen in blue will be FASTBOOT USB
Type one line at a time waiting until the cmd screen states OK or something similiar:
fastboot flash recovery CWM.img
fastboot erase cache
fastboot reboot-bootloader
Here is a guide on fastboot commands.
Click to expand...
Click to collapse
Got it to work. Used adb to get into fastboot. Then opened up the CM installer and let it redownload cyanogenmod onto my phone.
Thanks for the help!

HTC One Mini 2 - Problem with root

Hi everyone
I stuck with root procedure (first link when you type "htc mini 2 root" in google)
I did unlock bootloader with htcdev, I am able to run adb and fastboot - meaning I can restart my phone into fastboot loader but I cannot run TWRP recovery, I dont know why. I downloaded few versions of this .img file, I run command fastboot boot recovery xxxx.img, with some files there is no reaction at all, with file recovery-twrp-2.8.5.0 phone is restarting but into normal function, there is no twrp screen. I have CWM-SuperSU-v1.30 on sd card in the phone
Does anyone have clue what can be wrong here?
Thank you
pudlll said:
Hi everyone
I stuck with root procedure (first link when you type "htc mini 2 root" in google)
I did unlock bootloader with htcdev, I am able to run adb and fastboot - meaning I can restart my phone into fastboot loader but I cannot run TWRP recovery, I dont know why. I downloaded few versions of this .img file, I run command fastboot boot recovery xxxx.img, with some files there is no reaction at all, with file recovery-twrp-2.8.5.0 phone is restarting but into normal function, there is no twrp screen. I have CWM-SuperSU-v1.30 on sd card in the phone
Does anyone have clue what can be wrong here?
Thank you
Click to expand...
Click to collapse
you using wrong command.
try:
fastboot flash recovery xxx.img
for root i recommend using TWRP and flash the SuperUser.
Make sure you using the correct recovery image...
All you need in here
kativiti said:
you using wrong command.
try:
fastboot flash recovery xxx.img
for root i recommend using TWRP and flash the SuperUser.
Make sure you using the correct recovery image...
All you need in here
Click to expand...
Click to collapse
It didnt worked, I download again twrp files and this time I guess I found newest version which worked with fastboot boot recovery.img
Thanx anyway

Can't Unlock S-On

I recently had to reinstall the android os due to something I did wrong, anyway my bootloader is relocked and I can't unlock it because s-on is active, and ontop of that I don't have it rooted because I just recently redid the OS. So basically I'm stuck here, any help would be greatly appreciated.
s-on still allows to unlock the bootloader
Turn on developer options and enable oem unlocking.
Then follow the steps
Step one
adb reboot download
Step two
fastboot oem get_identifier_token
Step three
go to htc-dev site input your code and get the unlock file e-mailed to you.
Step 4
again in download mode
do
fastboot devices to see if your device is in fastboot mode.
Step 5
fastboot flash unlocktoken unlock_code.bin
Step6
fastboot flash recovery twrprecovery.img
Step7
Download supersu flashable zip and copy to sd card
Step8
boot into twrp recovery using volume and power buttons. Select boot recovery from bootloader menu.
Step9
Install supersu zip in TWRP recovery.
Now you should be unlocked and rooted.
BigCountry907 said:
s-on still allows to unlock the bootloader
Turn on developer options and enable oem unlocking.
Then follow the steps
Step one
adb reboot download
Step two
fastboot oem get_identifier_token
Step three
go to htc-dev site input your code and get the unlock file e-mailed to you.
Step 4
again in download mode
do
fastboot devices to see if your device is in fastboot mode.
Step 5
fastboot flash unlocktoken unlock_code.bin
Step6
fastboot flash recovery twrprecovery.img
Step7
Download supersu flashable zip and copy to sd card
Step8
boot into twrp recovery using volume and power buttons. Select boot recovery from bootloader menu.
Step9
Install supersu zip in TWRP recovery.
Now you should be unlocked and rooted.
Click to expand...
Click to collapse
I'll give this a shot and get back to you, thanks!!

Can't flash custom recovery on my S-OFF, locked, M7

hello guys. i've recently bought a M7_UL (i believe it's the unlocked, international version) that has S-OFF with locked bootloader. some people say you still can flash recovery since you're S-OFF, others, that even if when S-OFF, you still have to unlock bootloader in order to flash a recovery. well, i can't do none of these. everything is properly installed (device drivers, most recent Mini ADB and Fastboot and TWRP) but some commands such as "adb devices" (though changing "adb" to "fastboot" actually shows my device) and "fastboot flash recovery xxx.img", simply doesn't work. i've also tried the HTCdev method but "fastboot oem get_identifier_token" command gives me nothing. also tried this tutorial here --> https://forum.xda-developers.com/showthread.php?t=2470340 but the cmd doesn't even recognize this "echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796 " line. what am i doing wrong?
i really didn't want to create this topic and did quite a research, but every tutorial i've found so far didn't work for me. heeelppp :crying:
manofawker said:
hello guys. i've recently bought a M7_UL (i believe it's the unlocked, international version) that has S-OFF with locked bootloader. some people say you still can flash recovery since you're S-OFF, others, that even if when S-OFF, you still have to unlock bootloader in order to flash a recovery. well, i can't do none of these. everything is properly installed (device drivers, most recent Mini ADB and Fastboot and TWRP) but some commands such as "adb devices" (though changing "adb" to "fastboot" actually shows my device) and "fastboot flash recovery xxx.img", simply doesn't work. i've also tried the HTCdev method but "fastboot oem get_identifier_token" command gives me nothing. also tried this tutorial here --> https://forum.xda-developers.com/showthread.php?t=2470340 but the cmd doesn't even recognize this "echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796 " line. what am i doing wrong?
i really didn't want to create this topic and did quite a research, but every tutorial i've found so far didn't work for me. heeelppp :crying:
Click to expand...
Click to collapse
The first thing you need to know is that adb commands will only works when the phone is booted in a custom recovery or when booted in the rom (the "USB debugging" option must be turned on to use adb from the rom, not required when using from a custom recovery).
When the phone is booted in bootloader mode, only fastboot commands will work (and fastboot commands will not works when in recovery or when in the rom).
If your phone is S-OFF you can definitively flash a recovery even if the bootloader is locked. But the method used to flash it is different then the usual method (the "fastboot flash recovery name_of_recovery.img" command will only work with an unlocked bootloader). You'll need to zip the custom recovery .img file with an android-info.txt file matching your phone info and flash that zip file from RUU mode.
i.e:
Code:
fastboot oem rebootRUU
phone will reboot in ruu mode, a black screen with silver HTC logo
Code:
fastboot flash zip firmware.zip
fastboot flash zip firmware.zip
where "firmware.zip" is the file containing your recovery .img file and the android-info.txt file
Code:
fastboot reboot-bootloader
I can make you a "firmware.zip" file if you're unsure how to do it. If you need it just reply what custom recovery version you need and post your "fastboot getvar all" output so I know your phone info (hide your imei)
Once the recovery is flashed, you can boot in recovery and unlock the bootloader using the tutorial you've linked. This method of unlocking the bootloader will not wipe your phone.
alray said:
The first thing you need to know is that adb commands will only works when the phone is booted in a custom recovery or when booted in the rom (the "USB debugging" option must be turned on to use adb from the rom, not required when using from a custom recovery).
When the phone is booted in bootloader mode, only fastboot commands will work (and fastboot commands will not works when in recovery or when in the rom).
If your phone is S-OFF you can definitively flash a recovery even if the bootloader is locked. But the method used to flash it is different then the usual method (the "fastboot flash recovery name_of_recovery.img" command will only work with an unlocked bootloader). You'll need to zip the custom recovery .img file with an android-info.txt file matching your phone info and flash that zip file from RUU mode.
i.e:
Code:
fastboot oem rebootRUU
phone will reboot in ruu mode, a black screen with silver HTC logo
Code:
fastboot flash zip firmware.zip
fastboot flash zip firmware.zip
where "firmware.zip" is the file containing your recovery .img file and the android-info.txt file
Code:
fastboot reboot-bootloader
I can make you a "firmware.zip" file if you're unsure how to do it. If you need it just reply what custom recovery version you need and post your "fastboot getvar all" output so I know your phone info (hide your imei)
Once the recovery is flashed, you can boot in recovery and unlock the bootloader using the tutorial you've linked. This method of unlocking the bootloader will not wipe your phone.
Click to expand...
Click to collapse
hi, alray, thanks for taking the time to answer me. i'd like you to make this firmware.zip for me but "fastboot getvar all" gives me this
Code:
C:\miniadb_m7>fastboot getvar all
getvar:all FAILED (command write failed (Unknown error))
finished. total time: 0.005s
what's wrong?
manofawker said:
The first thing you need to know is that adb commands will only works when the phone is booted in a custom recovery or when booted in the rom (the "USB debugging" option must be turned on to use adb from the rom, not required when using from a custom recovery).
When the phone is booted in bootloader mode, only fastboot commands will work (and fastboot commands will not works when in recovery or when in the rom).
If your phone is S-OFF you can definitively flash a recovery even if the bootloader is locked. But the method used to flash it is different then the usual method (the "fastboot flash recovery name_of_recovery.img" command will only work with an unlocked bootloader). You'll need to zip the custom recovery .img file with an android-info.txt file matching your phone info and flash that zip file from RUU mode.
i.e:
phone will reboot in ruu mode, a black screen with silver HTC logo
where "firmware.zip" is the file containing your recovery .img file and the android-info.txt file
hi, alray, thanks for taking the time to answer me. i'd like you to make this firmware.zip for me but "fastboot getvar all" gives me this
what's wrong?
Click to expand...
Click to collapse
Are there only one android device connected to your computer ("fastboot devices" listing only your phone?)
alray said:
Are there only one android device connected to your computer ("fastboot devices" listing only your phone?)
Click to expand...
Click to collapse
yes, just the one i'm trying to flash recovery
manofawker said:
yes, just the one i'm trying to flash recovery
Click to expand...
Click to collapse
what about:
Code:
fastboot oem dmesg
and
Code:
fastboot oem last_dmesg
Tried on another computer?
alray said:
what about:
Code:
fastboot oem dmesg
and
Code:
fastboot oem last_dmesg
Tried on another computer?
Click to expand...
Click to collapse
none of these worked. strangely enough, commands like "fastboot reboot" and "fastboot devices" actually do something... i've tried to execute the cmd in compatibility mode, but it was in vain. tomorrow i'm gonna try all of this on my friend's PC and let you know if i have any success.

Categories

Resources