i was following the procedure of permanent root-ing my DZ... There is a problem...
4.a.2. gfree, install hboot and clockwerkmod recovery
In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
# cd /data/local/tmp
# ./gfree -f -b hboot-eng.img
./gfree -b:unknow option
# ./flash_image recovery recovery.img
./flash_image recovery recovery.img
# ./root_psn
./root_psn
cp: can't stat '/sdcard/Superuser.apk': No such file or directary
cp: can't stat '/sdcard/su': No such file or directary
is this consider something wrong?
should i continue the procedure?
Try to send files to phone one more time and try again.
Sent from my HTC Vision using Tapatalk
make sure you didn't miss the star when
Code:
$ adb shell chmod 755 /data/local/tmp/*
Have you done this?
Code:
$ adb push su /sdcard/
$ adb push Superuser.apk /sdcard/
zeonion said:
i was following the procedure of permanent root-ing my DZ... There is a problem...
4.a.2. gfree, install hboot and clockwerkmod recovery
In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
# cd /data/local/tmp
# ./gfree -f -b hboot-eng.img
./gfree -b:unknow option
# ./flash_image recovery recovery.img
./flash_image recovery recovery.img
# ./root_psn
./root_psn
cp: can't stat '/sdcard/Superuser.apk': No such file or directary
cp: can't stat '/sdcard/su': No such file or directary
is this consider something wrong?
should i continue the procedure?
Click to expand...
Click to collapse
Related
Is there a clockwork3 in an update.zip? When I do it manually, the screen locks on the Samsung screen.
I used oden with d18 and d28. Also do the CM7 nightlies work as well as they do on the evo!
Thanks so much.
Sent from my PC36100 using XDA App
Sent from my PC36100 using XDA App
Do you have root and a terminal app?
Yes sir
Sent from my PC36100 using XDA App
The first thing you need is the OneClickRootCWM3.zip. You need a few files out of it.
Below is a copy of the code from the run.bat that does all the clockwork stuff. We're going to be translating this into something you can do without a computer.
Code:
:Redirector
echo Installing clockworkmod redirector
adb push recovery /system/bin/recovery
adb push recoveryfiles /system/bin/recoveryfiles/
adb push recoveryres /system/bin/recoveryres/
adb shell busybox chmod -R 0755 /system/bin/recoveryfiles/*
adb shell busybox chmod -R 0755 /system/bin/recoveryres/*
adb shell chmod 0755 /system/bin/recovery
adb shell sync
goto:Clockwork
:Clockwork
echo Installing clockworkmod recovery...
adb push redbend_ua /data/local
adb shell chmod 755 /data/local/redbend_ua
adb push zImage /data/local/tmp/zImage
adb shell /data/local/redbend_ua restore /data/local/tmp/zImage /dev/block/bml8
If you paid attention to the code, you probably noticed which files we want. They are:
recovery
recoveryfiles/* (the whole folder)
recoveryres/* (the whole folder again)
redbend_ua
zImage
Put these files somewhere easy to find on your sdcard, such as a folder named cwm.
Now, open a terminal on your phone. We'll start with the redirect, just like the one-click does. If you put the files in a folder called cwm, then enter the lines below one at a time into the terminal.
Code:
remount rw
cp /sdcard/cwm/recovery /system/bin/
cp /sdcard/cwm/recoveryfiles /system/bin/
cp /sdcard/cwm/recoveryres /system/bin/
##Then you *may* have to copy the subfolder in recovery res by doing the following
cp /sdcard/cwm/recoveryres/* cp/system/bin/recoveryres/
busybox
chmod -R 0755 /system/bin/recoveryfiles/*
chmod -R 0755 /system/bin/recoveryres/*
exit (to exit busybox and drop back to toolbox)
chmod 0775 /system/bin/recovery
sync
I don't remember for sure, but your phone may reboot now. If it does, then enter "remount rw" again so that you have write access to the system. Now to finish installing cwm.
Code:
cp /sdcard/cwm/redbend_ua /data/local/
chmod 755 /data/local/redbend_ua
cp /sdcard/cwm/zImage /data/local/tmp/zImage
/data/local/redbend_ua restore /data/local/tmp/zImage /dev/block/bml8
That last line calls redbend_ua with the "restore" flag and puts "/data/local/tmp/zImage" into the place where the recovery belongs, or "/dev/block/bml8" The phone should reboot now and you will have your new recovery.
Then if you want to clean up the left over stuff
Code:
rm /data/local/redbend_ua
rm /data/local/tmp/zImage
Have fun.
Hey all,
Just wondering what the conversion code for Terminal Emulator would be in order to perform an ADB code, i have tried to convert the code myself below and want to be sure it is ok.
Basic objective is to copy the file gps.conf from /sdcard/code/ to /system/etc/ directly using Terminal Emulator on my Desire HD (Froyo 2.2 firmware 1.32....)
CMD prompt:
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell
mount -o remount,rw /dev/block/mmcblk0p25 /system
exit
adb push gps.conf /system/etc/gps.conf
adb shell
mount -o remount,ro /dev/block/mmcblk0p25 /system
exit
TEmu:
chdir /sdcard/code
cp psneuter /data/local/tmp
cp misc_version /data/local/tmp
chmod 777 /data/local/tmp/psneuter
chmod 777 /data/local/tmp/misc_version
chdir /data/local/tmp/psneuter
mount -o remount,rw /dev/block/mmcblk0p25 /system
cp /sdcard/code/gps.conf /system/etc/
mount -o remount,ro /dev/block/mmcblk0p25 /system
NOTE: that when i tried cp psneuter /data/local/tmp or even cp psneuter /sdcard it says cp: permission denied
Cheers
if all you want to do is copy the file...then whats the point of all of that??!!
im guessing that your not rooted, since your doing some code from the downgrade thread that gives temp root.
But the whole point of that code is to get temp root for FW greater than 1.32.
Since you want 1.32, use a program called Visionary+ and click temproot is you want temporary root. (Visionary+ only works till 1.32 FW)
And you wont be able to copy to a file to the system partition if your not in root mode.
So in the terminal, type
>su
first thing, then carry on.
If you get a # instead of the $ then your in root mode, if not (or if a message appears) then you dont have permission to go into root mode(or your not rooted).
---and i dont think theres any point of the chdir command.
::::::::::But if you want to use that code, then it'll work if you type 'su' first.
hi,
after two days, i could root my desire z. but now i can't flash recovery.img.
i wrote to command window:
adb push recovery-clockwork-3.0.2.4-vision.img /data/local/tmp/recovery.img
after that i can't flash it...
i verified that gfree is worked, after that it didn't let me to get # on command window. whan i am trying to write "adb shell chmod 755 /data/local/tmp/*" it says "Unable to chmod /data/ocal/tmp/gfree-verify: Operation not permitted"
so i can't use
# cd /data/local/tmp
# ./gfree -f -b hboot-eng.img -y recovery.img
# ./root_psn
# sync
commands without root sign(#)
what may be wrong?
PS. gfree -b and -y commands are not allowed... why?
[SOLVED!]
I solved the problem via installing latest version of rom manager... thanks!
Hi,
I had to return to stock rom for warranty and now i am trying to root it again. i have completed root and s-off operations but i can't enter recovery. when i select recovery from bootloader menu, i only see exclamation mark with black screen...
i entered these commands but second command gave me "gfree -y: unknown operation". how can i solve this?
Code:
4.a.2. gfree, install hboot and clockworkmod recovery
In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
# cd /data/local/tmp
[B][U]# ./gfree -f -b hboot-eng.img -y recovery.img[/U][/B]
# ./root_psn
# sync
Means you are running an older version of gfree.
Only gfree 0.7 supports the -y arg.
You can find it here
(to find out what version of gfree you have, use ./gfree -v )
-Nipqer
Nipqer said:
Means you are running an older version of gfree.
Only gfree 0.7 supports the -y arg.
You can find it here
(to find out what version of gfree you have, use ./gfree -v )
-Nipqer
Click to expand...
Click to collapse
Thank you for your help but now the same command is giving me "./gfree: permission denied". why should it be?
Did you use the chmod command? Check the wiki, but it will probably be something like "chmod 755 /path/to/gfree"
chmod 755 /data/local/tmp/*
Also the command might have to be:
/data/local/tmp/gfree -v
to run gfree, unless you cd to /data/local/tmp (or wherever you pushed gfree to), in which case the '.' in './gfree' means 'this directory'
-Nipqer
Thank you all for help. Everyday i had another error. For example today i got psneuter error but i finally installed recovery...
Sent from my HTC Vision using xda premium
Hey all! Desperately seeking help here: I'm rooting my MyTouch 3g slide, and have successfully completed all the steps up to this point where I need to run "rageagainstthecage-arm5.bin" from the devices "/data/local/tmp/" folder. The previous steps are as follows from cyanogen's wiki page:
"On the computer, open terminal and run the following commands:"
Code:
adb push rageagainstthecage-arm5.bin /data/local/tmp/
adb shell
chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin
/data/local/tmp/rageagainstthecage-arm5.bin
Click to expand...
Click to collapse
All of these with the exception of the last line are successful. After running chmod 755, I typed the following:
Code:
ls -l /data/local/tmp/
I get the following result:
Code:
-rwxr-xr-x 1 root root 5392 Aug 25 2010 rageagainstthecage-arm5
.bin
but finally, entering
Code:
/data/local/tmp/rageagainstthecage-arm5.bin
I get
Code:
/sbin/sh: /data/local/tmp/rageagainstthecage-arm5.bin: not found
It's there. I don't get it. Heeeelllpp meeeeeeee
Here's a log:
Code:
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push rageagainstth
ecage-arm5.bin /data/local/tmp/
292 KB/s (5392 bytes in 0.018s)
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
~ # chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin
chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin
~ # /data/local/tmp/rageagainstthecage-arm5.bin
/data/local/tmp/rageagainstthecage-arm5.bin
/sbin/sh: /data/local/tmp/rageagainstthecage-arm5.bin: not found
~ # ls -l /data/local/tmp/
ls -l /data/local/tmp/
-rwxr-xr-x 1 root root 5392 Aug 25 2010 rageagainstthecage-arm5
.bin
~ #