first of all iv been trying to root my legend for hours and this is geting very furstarting... i am using the guide here http://forum.xda-developers.com/showthread.php?t=845512
i have finaly managed to get adb to work and have made my goldcard after 2 days of intense work and now im trying to downgrade my phone to root it
i am geting the following error in adb
when i type adb remount it says remount failed operation not permitted i have looked all over the net and found no answer
in additon to that when im trying to use adb push i type the following
adb shell
$su
su
#adb push flash_image /data/local/
adb push flash_image /data/local/
i just get the same line repeated how to excute commands from adb? this is very confusing since im noob with rooting also the following lines i don't know how to excute them too
adb push flash_image /data/local/
adb push misc1-2.img /data/local/
chmod 755 /data/local/flash_image
cat /dev/mtd/mtd0 > /sdcard/misc_backup.img
/data/local/flash_image misc /data/local/misc1-2.img
please explain to me how to use theese thanks!
That one is relatively easy. You could also follow Paul's guide but I like my approach better
Connect your phone to your PC. Second you have to install VISIONary r13 into your phone and do the "temproot" procedure. After a successful "temproot" you should be able to adb shell and then su. Fire up command prompt and issue:
adb shell
su
...you should have root privileges now (showing #). Next thing is backing up misc partition and replacing it with one from hack4legend-v5.zip. Extract this zip somewhere and fire another command promt there. Now you should upload flash_image binary and misc1-2.img:
adb push flash_image /data/local/
adb push misc1-2.img /data/local/
...switch back to 1st command prompt and change permission of flash_image_binary:
chmod 755 /data/local/flash_image
...and backup your current misc partition:
cat /dev/mtd/mtd0 > /sdcard/misc_backup.img
Now flash misc1-2.img:
Code:
/data/local/flash_image misc /data/local/misc1-2.img
exit
...and you are set to downgrade retaining HBOOT 1.00.
Click to expand...
Click to collapse
Read better, you have to open a new terminal for pushing the files to the phone, you can't use adb push while you are in adb shell.
BTW you should avoid posting questions in development section.
Hi, I'm a newbie to android rooting and have spent the whole day trying to root my Kindle Fire HD v7.2.3.
I've used the bin4ry RunMe.bat and RootQemu.bat. I have no problems with the Qemu part but as for the RunMe.bat part I get permission problems (see picture below)
http://www.freeimagehosting.net/ikz64
The device gets rooted but the super user is no where to be seen. Therefore I can access root files but I can't write as it is read only.
I've already tried this: http://forum.xda-developers.com/showthread.php?t=2086210 (fixing a bug)
I've also tried the basics of rebooting after rooting, run as admin, locate through cmd but nothing has worked for me so far.
Anyone know what the problem is?
I was having a similar permission denied error when rooting 7.2.3. Try this and see if it helps. These commands are pulled from the Qemu script.
Code:
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
Wait for the device to reboot then run these.
Code:
adb shell rm /data/local.prop
adb shell "echo ro.kernel.qemu=1 > /data/local.prop"
reboot
Now wait for the device to reboot then check if the Qemu root hack worked correctly by connecting to your device with adb shell. You should see a root prompt.
Code:
$ adb shell
[email protected]:/ #
If you see a root prompt then re-run the RunMe.bat script and it should complete without error. The reason for your permission denied error is the script is not running as root.
Hey guys!
So I decided to try my hand at Installing Kindle Fire HD 7" 2nd-Bootloader + TWRP Complete Tutorial. On Step 2: Grabbing Files and Backing Up, when I plug the code to cmd, it says: error: device not found. Now, I have the Fastboot icon on the KF's screen and I have the factory cable connected. Also, android sdk is installed (as the tutorial said) on my Windows 7 machine. Any ideas? Thanks in advance!
Mustang37 said:
Hey guys!
So I decided to try my hand at Installing Kindle Fire HD 7" 2nd-Bootloader + TWRP Complete Tutorial. On Step 2: Grabbing Files and Backing Up, when I plug the code to cmd, it says: error: device not found. Now, I have the Fastboot icon on the KF's screen and I have the factory cable connected. Also, android sdk is installed (as the tutorial said) on my Windows 7 machine. Any ideas? Thanks in advance!
Click to expand...
Click to collapse
You're in fastboot mode to do what? Are you restoring after a mistake? What command were you using before that error, and what was the code you used that returned with the error? For now, see if you can reboot using the following code:
Code:
fastboot -i 0x1949 reboot
You can also try doing the normal shutting down with the power button, but I've never tried that, so be careful.
seokhun said:
You're in fastboot mode to do what? Are you restoring after a mistake? What command were you using before that error, and what was the code you used that returned with the error? For now, see if you can reboot using the following code:
Code:
fastboot -i 0x1949 reboot
You can also try doing the normal shutting down with the power button, but I've never tried that, so be careful.
Click to expand...
Click to collapse
Ok, I know that I can shut down with the power button. My problem is backing up my current Amazon ROM.
CODE (found at http://forum.xda-developers.com/showthread.php?t=2271909):
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
mkdir C:\KFHD7Backup
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Thanks for the quick reply.
Mustang37 said:
Ok, I know that I can shut down with the power button. My problem is backing up my current Amazon ROM.
CODE (found at http://forum.xda-developers.com/showthread.php?t=2271909):
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
mkdir C:\KFHD7Backup
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Thanks for the quick reply.
Click to expand...
Click to collapse
You're trying to backup with ADB commands in fastboot mode? What are you doing in fastboot mode?
ADB is simply turning on the device, make sure ADB is on under Settings, and connect the device to the PC with the regular charging cable. That's it. Fastboot commands use "fastboot" at the beginning.
Ahhh, ok got it. One last question, when I add the following codes to backup, I get the remote object '/sdcard/stock-recovery.img/' does not exist ERROR. I've rooted it and followed the instructions.Thoughts?
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Mustang37 said:
Ahhh, ok got it. One last question, when I add the following codes to backup, I get the remote object '/sdcard/stock-recovery.img/' does not exist ERROR. I've rooted it and followed the instructions.Thoughts?
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Click to expand...
Click to collapse
Those commands tell the device to pull the images from the sdcard to the new directory, so if you have nothing on the sdcard for ADB to pull, it returns with that error. Do the first set again.
Ok, that still doesn't work, I do understand what you are saying though.
I apply these lines of codes:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I still get the same error when apply these lines of codes after it:
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
remote object '/sdcard/stock-boot.img/' does not exist
The last line of code of the first set, nothing comes up after it.
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
Usually, it comes out like this:
C:\Users\Username>adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-n
ame/boot of=/sdcard/stock-boot.img"
16384+0 records in
16384+0 records out
8388608 bytes transferred in 3.058 secs (2743168 bytes/sec)
Thanks for the quick replies guys! Appreciate it!
Mustang37 said:
Ok, that still doesn't work, I do understand what you are saying though.
I apply these lines of codes:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I still get the same error when apply these lines of codes after it:
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
remote object '/sdcard/stock-boot.img/' does not exist
The last line of code of the first set, nothing comes up after it.
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
Usually, it comes out like this:
C:\Users\Username>adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-n
ame/boot of=/sdcard/stock-boot.img"
16384+0 records in
16384+0 records out
8388608 bytes transferred in 3.058 secs (2743168 bytes/sec)
Thanks for the quick replies guys! Appreciate it!
Click to expand...
Click to collapse
Is there a folder called "KFHD7Backup" under the C: drive? Also, check your personal folder, some images might be in there.
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Mustang37 said:
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Click to expand...
Click to collapse
o.o
I'm lost and I need help. I copied my code from Hashcode, so...I'm lost. Anyway, complete the guide and get flashing.
Thank you for the tools you are developing here and the help you are giving.
My KFHD7 is rooted and adb works.
I apply these lines of code:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I checked on my Kindle with ESExplorer and I can see on the sdcard the 3 files: stock-boot.img, stock-recovery.img and stock-system.img.
But when I want to move them to C, I received the message
remote object '/sdcard/stock-boot.img/' does not exist
I can't see the files on the internal storage of the Kindle, via the computer. But I can see others files which are there.
Did I miss something?
Thank you in advance,
Jeanphi
I had issues with the syntax of that command at first too, try typing this instead:
"adb pull /sdcard/stock-boot.img ."
That should pull the file into the directory u have the command prompt cd'd into. Another note I couldn't get it to accept c:\ as a acceptable syntax, so being a Linux user I found on windows u can run "adb pull /sdcard/stock-boot.img /users/username/desktop" and basically / acts as c:\, if u want to put it in a specific place.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
stunts513 said:
I had issues with the syntax of that command at first too, try typing this instead:
"adb pull /sdcard/stock-boot.img ."
That should pull the file into the directory u have the command prompt cd'd into. Another note I couldn't get it to accept c:\ as a acceptable syntax, so being a Linux user I found on windows u can run "adb pull /sdcard/stock-boot.img /users/username/desktop" and basically / acts as c:\, if u want to put it in a specific place.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Click to expand...
Click to collapse
Thank you for the quick reply.
I'm also using Linux, even if I'm a beginner.
So this not a problem of Windows.
Both OS show the same symptoms: the following error message and the fact that in both cases, I can't see the files on the sdcard when I look on the Internal storage of the Kindle, with the computer, even if can see other files (but not any file with an .img extension)
[email protected]:~$ adb pull /sdcard/stock-boot.img
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
5958 KB/s (8388608 bytes in 1.374s)
[email protected]:~$ adb pull /sdcard/stock-boot.img/
remote object '/sdcard/stock-boot.img/' does not exist
I copied with ESexplorer the three files (stock-boot.img, etc) on Download on the Kindle.
Then,
[email protected]:~$ adb pull /sdcard/Download/stock-boot.img/
remote object '/sdcard/Download/stock-boot.img/' does not exist
[email protected]:~$
(Download is with a capital D on the Kindle)
So the files are available on the Kindle. The problem is to find a way to put them on the computer.
Can I mail them to me ?
Jeanphi.
That's still the wrong syntax, don't put a / after the end of the filename, instead put a space and a period.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
stunts513 said:
That's still the wrong syntax, don't put a / after the end of the filename, instead put a space and a period.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Click to expand...
Click to collapse
Sorry. I haven't seen the new syntax.
It works perfectly with Linux (Ubuntu).
Thanks again.
I will try the following steps of your thread about the 2nd bootloader, but I might wait til I have a factory cable.
Jeanphi
---------- Post added at 10:19 AM ---------- Previous post was at 10:08 AM ----------
jeanphi506 said:
Sorry. I haven't seen the new syntax.
It worked perfectly with Linux (Ubuntu). I have now the three files on my computer.
Thanks again.
I will try the following steps of your thread about the 2nd bootloader, but I might wait till I have a factory cable.
Jeanphi
Click to expand...
Click to collapse
Spelling corrections
Same Problem.. can't fix
Mustang37 said:
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Click to expand...
Click to collapse
Hi,
I have same problem... but I didn't understand how did you fixed it.
what's the hashcode? how can I use it? could you please explain.
thanks in advance...
I'm on the last step of mjphillips1981's mac toolkit for 4.4 rooting and it won't finish:
Code:
Press ENTER to finish the SlapMyMoto process.
Open a new terminal window by pressing Command+N
In the new terminal window type the following command
./adb shell echo "/data/local/tmp/install.sh" > /sys/kernel/uevent_helper
Press ENTER when you have finished the above command
I keep getting the error:
Code:
-bash: /sys/kernel/uevent_helper: No such file or directory
I've been at this all day
try this
open terminal
cd to the toolkit folder
type the following (one line at a time)
./adb shell
echo "/data/local/tmp/install.sh" > /sys/kernel/uevent_helper
I think these lines need to be separated.
Hit me up on Google+ and lets see if we can work through this.
An I would suggest that you put questions in the toolkit thread. I was just browsing and noticed this. If you put the question in the thread I get an email.
nwinston96 said:
I'm on the last step of mjphillips1981's mac toolkit for 4.4 rooting and it won't finish:
Code:
Press ENTER to finish the SlapMyMoto process.
Open a new terminal window by pressing Command+N
In the new terminal window type the following command
./adb shell echo "/data/local/tmp/install.sh" > /sys/kernel/uevent_helper
Press ENTER when you have finished the above command
I keep getting the error:
Code:
-bash: /sys/kernel/uevent_helper: No such file or directory
I've been at this all day
Click to expand...
Click to collapse
nwinston96 said:
I'm on the last step of mjphillips1981's mac toolkit for 4.4 rooting and it won't finish:
Code:
Press ENTER to finish the SlapMyMoto process.
Open a new terminal window by pressing Command+N
In the new terminal window type the following command
./adb shell echo "/data/local/tmp/install.sh" > /sys/kernel/uevent_helper
Press ENTER when you have finished the above command
I keep getting the error:
Code:
-bash: /sys/kernel/uevent_helper: No such file or directory
I've been at this all day
Click to expand...
Click to collapse
missed some commands it looks like but im not sure if anything is diffrent because your on a mac
but here is the step by step from jcase's thread
Step1)
Unzip SlapMyMoto-1,0.zip and push the jar file to your internal storage
Code:
adb push SlapMyMoto.jar /sdcard/SlapMyMoto.jar
Step2)
Use http://www.cydiaimpactor.com/ to open up a telnet session as system user on port 2222. We covered how to use Impactor and telnet in the RockMyMoto root, I won't be covering it again since this post is going to be long enough already, see here -> http://forum.xda-developers.com/show....php?t=2509590 or http://rootzwiki.com/topic/107098-ro...the-first-ota/
Connecting over telnet, and run Stage1 with this command:
Code:
dalvikvm -cp /sdcard/SlapMyMoto.jar SlapMyMoto
When the device tells you to reboot, do this manually with "adb reboot" or your power button. It will not auto reboot on this step
Step3)
Once the device has rebooted, run Impactor again and connect over telnet just like in the previous step, then run the same command
Code:
dalvikvm -cp /sdcard/SlapMyMoto.jar SlapMyMoto
Once the device has rebooted, please take the 4.4 OTA.
Step4)
Now that we are on 4.4, we can finish the process with adb shell:
Code:
adb shell
cp /sdcard/install.sh /data/local/tmp/install.sh
chmod 755 /data/local/tmp/install.sh
echo "/data/local/tmp/install.sh" > /sys/kernel/uevent_helper
dray_jr said:
missed some commands it looks like but im not sure if anything is diffrent because your on a mac
but here is the step by step from jcase's thread
Step1)
Unzip SlapMyMoto-1,0.zip and push the jar file to your internal storage
Code:
adb push SlapMyMoto.jar /sdcard/SlapMyMoto.jar
Step2)
Use http://www.cydiaimpactor.com/ to open up a telnet session as system user on port 2222. We covered how to use Impactor and telnet in the RockMyMoto root, I won't be covering it again since this post is going to be long enough already, see here -> http://forum.xda-developers.com/show....php?t=2509590 or http://rootzwiki.com/topic/107098-ro...the-first-ota/
Connecting over telnet, and run Stage1 with this command:
Code:
dalvikvm -cp /sdcard/SlapMyMoto.jar SlapMyMoto
When the device tells you to reboot, do this manually with "adb reboot" or your power button. It will not auto reboot on this step
Step3)
Once the device has rebooted, run Impactor again and connect over telnet just like in the previous step, then run the same command
Code:
dalvikvm -cp /sdcard/SlapMyMoto.jar SlapMyMoto
Once the device has rebooted, please take the 4.4 OTA.
Step4)
Now that we are on 4.4, we can finish the process with adb shell:
Code:
adb shell
cp /sdcard/install.sh /data/local/tmp/install.sh
chmod 755 /data/local/tmp/install.sh
echo "/data/local/tmp/install.sh" > /sys/kernel/uevent_helper
Click to expand...
Click to collapse
These commands are all in the toolkit. The only one that needed to be enter on individual lines is the one he listed.
I just wish he would have posted the question in the Toolkit thread so I could have helped earlier.
mjphillips1981 said:
These commands are all in the toolkit. The only one that needed to be enter on individual lines is the one he listed.
I just wish he would have posted the question in the Toolkit thread so I could have helped earlier.
Click to expand...
Click to collapse
Ok I have the toolkit for Windows but I'm not familiar with the Mac one thanks for correcting my mistake and getting him
Sent from my XT1056 using XDA Premium 4 mobile app
mjphillips1981 said:
try this
open terminal
cd to the toolkit folder
type the following (one line at a time)
./adb shell
echo "/data/local/tmp/install.sh" > /sys/kernel/uevent_helper
I think these lines need to be separated.
Hit me up on Google+ and lets see if we can work through this.
An I would suggest that you put questions in the toolkit thread. I was just browsing and noticed this. If you put the question in the thread I get an email.
Click to expand...
Click to collapse
Thanks, I think this did it. The only thing is that I had to manually reboot my phone, but it appears I am rooted as I'm able to run root-only apps. XDA wouldn't let me post on your thread because I don't have the required number of posts. Glad you came across this thread! Thanks again
nwinston96 said:
Thanks, I think this did it. The only thing is that I had to manually reboot my phone, but it appears I am rooted as I'm able to run root-only apps. XDA wouldn't let me post on your thread because I don't have the required number of posts. Glad you came across this thread! Thanks again
Click to expand...
Click to collapse
You're welcome! From what I read. Some people do experience that the phone does not reboot on its own.
Glad you got it working.
I just removed the toolkit. It's too hard to for me to get things working correctly when I do not have a consumer device to test with.