After flashing ROM i have experienced a problem in booting to recovery mode. finally i have found a solution to overcome the problem.
first install android terminal emulator from google play store.
1)select the app and a black screen appears
2)type "su" without quotes as it prompts for superuser permission
3)then type the following command
"echo boot l dd
of=/dev/block/mmcblk0p3 bs=1
seek=0"
type the above command with quotes.
reboot ur phone into recovery mode.
now it works :good:
****** l used in command is a special symbol (press vol up+l)*********
Related
Hi everyone,
I'm using a mac, trying to flash a new recovery image, more specifically the darchstar/godspeed recovery image: http://forum.xda-developers.com/showthread.php?t=672324
I've got the recovery image on the SD Card (not in any folders...right on the top level)
When I issue the flash_image recovery /sdcard/Darchstar-OC-recovery-r2.img command, it's not doing anything.
I've tried issuing it from Terminal on my mac, and using a the android terminal application.
Thanks in advance for any help!
do it with terminal emulator on the actual phone. That's what I usually do
su
flash_image recovery /sdcard/XXXXX.img
adb shell
#flash-blah blah blah.
I am trying to do this as well and when i type su into the command line it tells me permission denied. What am I doing wrong?
silentpanda said:
I am trying to do this as well and when i type su into the command line it tells me permission denied. What am I doing wrong?
Click to expand...
Click to collapse
On terminal emulator your forgetting to type su doing so will give terminal emulator root access. SuperUser Permissions will pop up and ask if its ok click allow.
Try..
Adb remount
adb shell
cd /sdcard
flash_image recovery Darchstar-OC-recovery-r2.img
Not sure if this is the correct category, but here goes my problem:
I'm following the instructions on wiki.cyanogenmod.com/index.php?title=HTC_Tattoo:_Full_Update_Guide
And now I am stuck at step 7 under Rooting the HTC Tattoo.
The first problem occurs after entering exit:
This line appears repeatedly
usage: reboot [-n] [-p] [rebootcommand]
So I had to close down the command window and start it again. And the next problem appears after entering this line:
while 'true' ; do ./m7 ; done
Same thing again, I have to close the command window and start again. After entering adb shell again I try with entering chown root.root su as it says and this line appear:
chown root.root su
Unable to chmod su: Operation not permitted
Does anyone know what to do from here?
There is a problem with the update guide. Dont follow it, I reported this problem long back in the CyanogenMod forums, but no one corrected it.
Get the 1-click root method with clockworkmod 3.0.0.5 by nTenisOT, its the best rooting option. It also installs clockworkmod recovery.
Also, you could try Universal Androot, but if u root with this, you need to insert the tattoo-hack.ko module before flashing custom recovery manually.
OptimusM said:
Not sure if this is the correct category, but here goes my problem:
I'm following the instructions on wiki.cyanogenmod.com/index.php?title=HTC_Tattoo:_Full_Update_Guide
And now I am stuck at step 7 under Rooting the HTC Tattoo.
The first problem occurs after entering exit:
This line appears repeatedly
usage: reboot [-n] [-p] [rebootcommand]
So I had to close down the command window and start it again. And the next problem appears after entering this line:
while 'true' ; do ./m7 ; done
Same thing again, I have to close the command window and start again. After entering adb shell again I try with entering chown root.root su as it says and this line appear:
chown root.root su
Unable to chmod su: Operation not permitted
Does anyone know what to do from here?
Click to expand...
Click to collapse
hi
pls ask ur question in the rooting thread their are a few threads on the same
CLOSED
Just by curiosity I tried 'reboot recovery' and I had a normal reboot. It works on other devices...
Perhaps a different partitioning problem? Is there a way to do this by terminal or Adb command?
adb reboot recovery?
Code:
su
dd of=/dev/block/mmcblk0p3 seek=6144 bs=1
reboot
Thanks, i supposed it has to do with more specific commands than usual !!
You need ADB and an understanding of how to use it and have a rooted device (although I didn't test this). You will also need a hex editor like HxD.
BACK UP YOUR DATA BEFORE DOING THIS!!!! WHEN HTCDEV UNLOCKS YOUR DEVICE YOU MUST START FROM SCRATCH!!!
1. Fire up your command prompt and go to the directory that you have ADB installed to. Type "adb shell" and hit enter.
2. Type "su" and hit enter. You now have root privileges.
3. Next type "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4" and hit enter. This will dump the partition to your sdcard.
4. Next type "exit", hit enter, type "exit", and hit enter again. This should take you back to a command prompt for your computer.
5. type "adb pull /sdcard/mmcblk0p4" and hit enter. NOTE THE SIZE OF THE FILE BEFORE THE NEXT STEP!
6. Open the file (mmcblk0p4) with your hex editor.
7. Look for the area that contains the CID with your IMEI number attached to it.
8. Change your CID to 11111111 and save the file as mmcblk0p4MOD. This will give you SuperCID. MAKE SURE AT THIS POINT THAT THE FILE IS THE EXACT SIZE IT WAS BEFORE YOU HEX EDITED IT!
9. Now go back to your command prompt and type "adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD" and hit enter.
10. Type "adb shell" and hit enter then type "su" and hit enter again. This will put you back into the android shell and give you root privileges.
11. Type "dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4" and hit enter. To test if it worked restart the phone into fastboot (type "adb reboot bootloader" and hit enter) and once the bootloader screen comes up type "fastboot oem readcid" and hit enter. It should read "11111111".
I have modified my file as I had the O2__001 CID and it changed successfully, with the same file size etc, I am now just kind of crapping my self to test it by continuing onto step 9.
So do people think it will work, and or ready to risk it.
lol ... I do not believe it ... prefer to wait for another idiot ... what's going on ... no nuts in the pants to test it yourself
nintendolinky said:
You need ADB and an understanding of how to use it and have a rooted device (although I didn't test this). You will also need a hex editor like HxD.
BACK UP YOUR DATA BEFORE DOING THIS!!!! WHEN HTCDEV UNLOCKS YOUR DEVICE YOU MUST START FROM SCRATCH!!!
1. Fire up your command prompt and go to the directory that you have ADB installed to. Type "adb shell" and hit enter.
2. Type "su" and hit enter. You now have root privileges.
3. Next type "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4" and hit enter. This will dump the partition to your sdcard.
4. Next type "exit", hit enter, type "exit", and hit enter again. This should take you back to a command prompt for your computer.
5. type "adb pull /sdcard/mmcblk0p4" and hit enter. NOTE THE SIZE OF THE FILE BEFORE THE NEXT STEP!
6. Open the file (mmcblk0p4) with your hex editor.
7. Look for the area that contains the CID with your IMEI number attached to it.
8. Change your CID to 11111111 and save the file as mmcblk0p4MOD. This will give you SuperCID. MAKE SURE AT THIS POINT THAT THE FILE IS THE EXACT SIZE IT WAS BEFORE YOU HEX EDITED IT!
9. Now go back to your command prompt and type "adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD" and hit enter.
10. Type "adb shell" and hit enter then type "su" and hit enter again. This will put you back into the android shell and give you root privileges.
11. Type "dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4" and hit enter. To test if it worked restart the phone into fastboot (type "adb reboot bootloader" and hit enter) and once the bootloader screen comes up type "fastboot oem readcid" and hit enter. It should read "11111111".
I have modified my file as I had the O2__001 CID and it changed successfully, with the same file size etc, I am now just kind of crapping my self to test it by continuing onto step 9.
So do people think it will work, and or ready to risk it.
Click to expand...
Click to collapse
as long as you were careful with the hex editor,there is not much danger. im willing to bet,however,that mmcblk0p4 is write protected,so the flash may appear successful,yet,not actually change anything.
you could also try changing it like on the one vx: http://forum.xda-developers.com/showthread.php?t=2161402
nintendolinky said:
You need ADB and an understanding of how to use it and have a rooted device (although I didn't test this). You will also need a hex editor like HxD.
BACK UP YOUR DATA BEFORE DOING THIS!!!! WHEN HTCDEV UNLOCKS YOUR DEVICE YOU MUST START FROM SCRATCH!!!
1. Fire up your command prompt and go to the directory that you have ADB installed to. Type "adb shell" and hit enter.
2. Type "su" and hit enter. You now have root privileges.
3. Next type "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4" and hit enter. This will dump the partition to your sdcard.
4. Next type "exit", hit enter, type "exit", and hit enter again. This should take you back to a command prompt for your computer.
5. type "adb pull /sdcard/mmcblk0p4" and hit enter. NOTE THE SIZE OF THE FILE BEFORE THE NEXT STEP!
6. Open the file (mmcblk0p4) with your hex editor.
7. Look for the area that contains the CID with your IMEI number attached to it.
8. Change your CID to 11111111 and save the file as mmcblk0p4MOD. This will give you SuperCID. MAKE SURE AT THIS POINT THAT THE FILE IS THE EXACT SIZE IT WAS BEFORE YOU HEX EDITED IT!
9. Now go back to your command prompt and type "adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD" and hit enter.
10. Type "adb shell" and hit enter then type "su" and hit enter again. This will put you back into the android shell and give you root privileges.
11. Type "dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4" and hit enter. To test if it worked restart the phone into fastboot (type "adb reboot bootloader" and hit enter) and once the bootloader screen comes up type "fastboot oem readcid" and hit enter. It should read "11111111".
I have modified my file as I had the O2__001 CID and it changed successfully, with the same file size etc, I am now just kind of crapping my self to test it by continuing onto step 9.
So do people think it will work, and or ready to risk it.
Click to expand...
Click to collapse
If this actually worked like stated, does this mean that AT&T HTC One users (HTCDev will stop supporting the phone on the 19th) can use this to unlock their bootloaders? Will they be able to choose "Other Devices" on HTCDev and unlock their bootloaders using this mod?
Hi,
doesn't work
edit: attached is a bat file in self extracting zip
cheers
starbase64
D:\Handy\HTC_One\SuperCID>adb devices
List of devices attached
HT332W900709 device
D:\Handy\HTC_One\SuperCID>adb remount
remount succeeded
D:\Handy\HTC_One\SuperCID>adb shell "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4"
2+0 records in
2+0 records out
1024 bytes transferred in 0.011 secs (93090 bytes/sec)
D:\Handy\HTC_One\SuperCID>adb pull /sdcard/mmcblk0p4
85 KB/s (1024 bytes in 0.011s)
D:\Handy\HTC_One\SuperCID>adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD
85 KB/s (1024 bytes in 0.011s)
D:\Handy\HTC_One\SuperCID>adb shell "dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4"
2+0 records in
2+0 records out
1024 bytes transferred in 0.007 secs (146285 bytes/sec)
D:\Handy\HTC_One\SuperCID>adb reboot bootloader
D:\Handy\HTC_One\SuperCID>fastboot oem readcid
< waiting for device >
... INFOcid: O2___102
OKAY
Click to expand...
Click to collapse
Code in superCID.bat said:
@echo off
adb devices
echo "******************************************************"
echo "* current CID *"
echo "******************************************************"
adb shell "getprop ro.cid"
pause
adb remount
adb shell "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4"
adb pull /sdcard/mmcblk0p4
echo "******************************************************"
echo "* open the file in HEXEditor *"
echo "* press any key to push modifid file back on device *"
echo "******************************************************"
pause
adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD
echo "******************************************************"
echo "* press any Key to flash SuperCID *"
echo "* at you own RISK!!!!!!!!! *"
echo "******************************************************"
pause
adb shell "dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4"
echo "******************************************************"
echo "* current CID *"
echo "******************************************************"
adb shell "getprop ro.cid"
pause
echo "******************************************************"
echo "* press any Key to reboot into Bootloader *"
echo "******************************************************"
pause
adb reboot bootloader
echo "******************************************************"
echo "* reboting into Bootloader *"
echo "******************************************************"
pause
fastboot oem readcid
echo "******************************************************"
echo "* press any key to reboot *"
echo "******************************************************"
pause
fastboot reboot
exit
Click to expand...
Click to collapse
nintendolinky said:
You need ADB and an understanding of how to use it and have a rooted device (although I didn't test this). You will also need a hex editor like HxD.
BACK UP YOUR DATA BEFORE DOING THIS!!!! WHEN HTCDEV UNLOCKS YOUR DEVICE YOU MUST START FROM SCRATCH!!!
1. Fire up your command prompt and go to the directory that you have ADB installed to. Type "adb shell" and hit enter.
2. Type "su" and hit enter. You now have root privileges.
3. Next type "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4" and hit enter. This will dump the partition to your sdcard.
4. Next type "exit", hit enter, type "exit", and hit enter again. This should take you back to a command prompt for your computer.
5. type "adb pull /sdcard/mmcblk0p4" and hit enter. NOTE THE SIZE OF THE FILE BEFORE THE NEXT STEP!
6. Open the file (mmcblk0p4) with your hex editor.
7. Look for the area that contains the CID with your IMEI number attached to it.
8. Change your CID to 11111111 and save the file as mmcblk0p4MOD. This will give you SuperCID. MAKE SURE AT THIS POINT THAT THE FILE IS THE EXACT SIZE IT WAS BEFORE YOU HEX EDITED IT!
9. Now go back to your command prompt and type "adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD" and hit enter.
10. Type "adb shell" and hit enter then type "su" and hit enter again. This will put you back into the android shell and give you root privileges.
11. Type "dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4" and hit enter. To test if it worked restart the phone into fastboot (type "adb reboot bootloader" and hit enter) and once the bootloader screen comes up type "fastboot oem readcid" and hit enter. It should read "11111111".
I have modified my file as I had the O2__001 CID and it changed successfully, with the same file size etc, I am now just kind of crapping my self to test it by continuing onto step 9.
So do people think it will work, and or ready to risk it.
Click to expand...
Click to collapse
Respect for trying anyway
Sent from my HTC One using xda app-developers app
I will probably try other methods as we might be pulling the wrong file from the device.
Sent from my M7 using Tapatalk 2
Stop trying this, CID partition is write protected. You have to figure out a way to crack that or bypass it first.
Hunt3r.j2 said:
Stop trying this, CID partition is write protected. You have to figure out a way to crack that or bypass it first.
Click to expand...
Click to collapse
That's correct. I have contacted Beaups, he's the one who got s-off for the DNA/Butterfly. I'm going to see if he can teamview around on my device to look for exploits.
Good morning guys,
I potentially have a couple of hundred of these to update with an AOSP ROM. I dont have any problems with the update, all smooth sailing, but I'm trying to script as much as possible to automated the process - Unlock bootloader, get root, push all the files then install the ROM.
For some reason though the command 'adb reboot recovery' doesn't work as expected. It just reboots the phone back to the normal OS.
Has anyone else encountered this? or a work around?
I can issue 'adb reboot-bootloader' and it will reboot into the bootloader correctly where I can issue fastboot commands but not to the recovery (Which is CWM latest as of today, which I think is 6.1.1?)
Thanks in advance!
Code:
adb shell
su
echo "boot-recovery" | /system/bin/dd of=/dev/block/mmcblk0p5 bs=1 count=13
reboot / reboot recovery
Adam77Root said:
Code:
adb shell
su
echo "boot-recovery" | /system/bin/dd of=/dev/block/mmcblk0p5 bs=1 count=13
reboot / reboot recovery
Click to expand...
Click to collapse
Your a genius.
As a side note this didn't require root access.
Adam77Root said:
Code:
adb shell
su
echo "boot-recovery" | /system/bin/dd of=/dev/block/mmcblk0p5 bs=1 count=13
reboot / reboot recovery
Click to expand...
Click to collapse
Maybe you can help me out a little futher. What I'm trying to do is automate the superuser install.
From the look of that, is that writing to one of the recovery commands located under /cache/recovery ? Perhaps the command file?
If it is or not, perhaps you know of a way to write the /cache/recover/command file to run an update ZIP immediately on rebooting into the recovery? My reading seems to be going in circles.
From my reading what I would need to do is:
* Copy the superuser.zip to the sdcard
* write 'boot-recovery' to 'a' file as you mentioned above
* write '--update_package=/sdcard/superuser.zip' to the file /cache/recovery/command
Obviously without root already I cant just write to that file so I thought it might be possible to use 'dd' as above?
Then rebooting into recovery should automatically run the update zip? Or am I mad?
You do need root to write into the command file. 'dd' tool also needs root.