Help !! cannot stat 'gfree' : no such file..... - myTouch 4G Q&A, Help & Troubleshooting

Hey there im Tring to root my mytouch 4g.
But havng a little problem.
E:\>adb push gfree /data/local/tmp/
connot stat 'gfree' : no such file or directoory
wen i do have the file in the adb. please help
thanks in advance

You have gfree file in E:\?
I think not.

No i have it in the root of my computer
C:\android-sdk-windows\platform-tools
E:\adb push gfree /data/local/tmp/
i use ^ to push it to the device

In that case you're not following the guide - you're not copying the file to the same directory where you're executing the command from.
If you're executing the command from E:\, then the gfree file should reside there.

Related

[Q] can't cd to /sdcard/root

So this is my first Android phone..
And I am wanting to use it to its full extent..
I have the 2.2.1 Version Mytouch 4g..
Downloaded..
Astro..
Terminal Emulator..
Visionary r11..
Also the root.rar file..
I extracted the root.rar file..
And got the Root folder..
Placed it into the root of my sd card..
And when I go to Terminal Emulator..
After running Visionary for root access..
I type in the Command..
"cd /sdcard/root"
And I get..
"cd: can't cd to /sdcard/root
What am I doing wrong..?..
Any pointers would be much appreciated..
Thank you in advance..
Syph3r03 said:
So this is my first Android phone..
And I am wanting to use it to its full extent..
I have the 2.2.1 Version Mytouch 4g..
Downloaded..
Astro..
Terminal Emulator..
Visionary r11..
Also the root.rar file..
I extracted the root.rar file..
And got the Root folder..
Placed it into the root of my sd card..
And when I go to Terminal Emulator..
After running Visionary for root access..
I type in the Command..
"cd /sdcard/root"
And I get..
"cd: can't cd to /sdcard/root
What am I doing wrong..?..
Any pointers would be much appreciated..
Thank you in advance..
Click to expand...
Click to collapse
Make sure phone is not connected to computer via usb cable.
Sent from my HTC Glacier using XDA App
Phone is not connected by usb..
Has been ejected and unplugged from computer upon adding root file..
One thing to Mention is..
In my application block I have the superuser Icon..
And I can select it and use it..
But if I go to Terminal emulator, and type su..
I get permission denied..
Although when I did try to Root the phone..
I went thru Visionary..
Checked the r/w box did the root.. on r11..
Then went to type the..
"cd /sdcard/root"
And that is when i got the..
"can't cd to /sdcard/root"
Try using Visionary 14, I was having the same issue reading the SD card figured it had to do with something with the root. I'm sure you can find the link in the forums
Sent from my HTC Glacier using XDA App
Syph3r03 said:
So this is my first Android phone..
And I am wanting to use it to its full extent..
I have the 2.2.1 Version Mytouch 4g..
Downloaded..
Astro..
Terminal Emulator..
Visionary r11..
Also the root.rar file..
I extracted the root.rar file..
And got the Root folder..
Placed it into the root of my sd card..
And when I go to Terminal Emulator..
After running Visionary for root access..
I type in the Command..
"cd /sdcard/root"
And I get..
"cd: can't cd to /sdcard/root
What am I doing wrong..?..
Any pointers would be much appreciated..
Thank you in advance..
Click to expand...
Click to collapse
I had that same trouble rooting my phone. My problem was that I didn't realize that the .rar was a different type of compression and needed a different extractor. I suggest uninstall visionary and superuser. Remove the battery and reboot. Then install visionary and temp root. Then try "su" in terminal again. That should work. Make sure you are using visionary r11+ also. I made the mistake of downloading just plane r11 that doesn't have the options that are necessary to permaroot.
skidooman said:
I had that same trouble rooting my phone. My problem was that I didn't realize that the .rar was a different type of compression and needed a different extractor. I suggest uninstall visionary and superuser. Remove the battery and reboot. Then install visionary and temp root. Then try "su" in terminal again. That should work. Make sure you are using visionary r11+ also. I made the mistake of downloading just plane r11 that doesn't have the options that are necessary to permaroot.
Click to expand...
Click to collapse
Thank you all for your continued support..
I am starting to feel as if my phone is unable to be rooted.. lol..
I have tried using r11+ and r14+ in order to root my phone..
Each and every time I get to the Terminal Emulator and input the first command I get the error message..
Maybe using winzip to extract the root file, is not the correct software to use..?..
If anyone still needs an answer to this question, I might have one. This issue just occurred for me on my mt4g, it was a real palmslap to the forehead when I realized what I had done. I put the files from the "root" folder into the root of the sdcard. So when it said "can't cd to /sdcard/root" it was because the folder root didn't exist and /sdcard/ held the files I wanted. In other words, put the entire folder named root onto your sd card and not just the files.
Hopefully this might help someone who made the same foolish mistake I did.
skidooman said:
I had that same trouble rooting my phone. My problem was that I didn't realize that the .rar was a different type of compression and needed a different extractor. I suggest uninstall visionary and superuser. Remove the battery and reboot. Then install visionary and temp root. Then try "su" in terminal again. That should work. Make sure you are using visionary r11+ also. I made the mistake of downloading just plane r11 that doesn't have the options that are necessary to permaroot.
Click to expand...
Click to collapse
After SU...
Type cd(space)/sdcard/root
Then do the rest
Smile when it starts to work
After SU...
Type cd(space)/sdcard/root
Then do the rest
Smile when it starts to work
im still having the same problem any suggestions?
I type in the Command..
"cd /sdcard/root"
And I get..
"cd: can't cd to /sdcard/root
formeka909 said:
After SU...
Type cd(space)/sdcard/root
Then do the rest
Smile when it starts to work
im still having the same problem any suggestions?
I type in the Command..
"cd /sdcard/root"
And I get..
"cd: can't cd to /sdcard/root
Click to expand...
Click to collapse
First try to cd to /sdcard. If that works type ls that is LS but lowercase. Look for root in the response. If it is not there, the directory doesn't exist.
If you can't change to /sdcard try cd /mnt/sdcard
My phone's directory structure is /mnt/sdcard.
Edit:
Just tried /sdcard, it worked. Then I tried to cd to a folder by not using proper caps, that worked too. Last I tried to cd to a folder that didn't exist and got the same error. You are telling terminal to change to a directory that does not exist, meaning, there is no folder named root on the sdcard.
Sent from my HTC Glacier using XDA App
1) download the root.rar file
2) unzip to the sdcard
3) make sure the folder name is "root"
4) make sure the folder named "root" is actually in the SDcard
5) open terminal emulator
6)
Code:
su
cd /sdcard/root
sh root.sh
BEFORE DOING ANY OF THIS, YOU MUST HAVE ALREADY TEMP ROOTED USING VISIONARY. and when you use visionary to root, MAKE SURE USB DEBUGGING IS ON OR IT WILL NOT WORK!!
IF NOTHING WORKS FOR YOU, THEN TRY THING GFREE METHOD HERE: http://forum.xda-developers.com/showthread.php?t=858996
the files u copied from the zip folder...save it on sdcard with the folder named root...
cd (space) sdcard/root
.sh root.sh

[Error] Unable to apply PUSH Command in ADB

Hello mates,
I am trying to Copy the BUSYBOX file to my /data/local/bin directory. But when i use the 'push' command it say adb: command not found. Hereby i have attached the image of my terminal.
Would you please help me in copying my files to the directory "/data/bin/local"
Also, where should i put the files which i need to copy. Eg. Since i need to copy 'busybox' to the /data/local/bin/, should i put the busybox in my Desktop, i.e. /home/android/platform-tools directory?
You should've not run the command from within the adb shell. Just go to the tools folder and type "adb push busybox data/local/bin" ofcourse without the ""
The busybox should be indeed be present in the folder from witch you run adb, in your case the "tool" folder.
Good luck!
Erwin
Sent from my HTC Wildfire using XDA App
@ErwinP.
Thanks for rectifying this mistake.
It worked.
You're welcome! I had to learn it the hard way myself, so I'm happy ik I can help someone! ;-)

[Q] Cant root using anything and got 1.34.405.5

I dont know whats wrong but suddenly i cant root my device after i downgraded to 1.34 .. I need to turn S-ON because my device needs to go for repairs.. I follow this guide:
http://forum.xda-developers.com/showthread.php?t=928671
but for some reason when i try to launch psneuter i get some wierd permission denied error..
Code:
adb push psneuter /data/local/tmp
adb server is out of date. killing...
* daemon started successfully *
1841 KB/s (265118 bytes in 0.140s)
adb shell chmod 777 /data/local/tmp/psneuter
adb push adb shell /data/local/tmp/psneuter
PK♥8+: permission denied
∩♣ÿ☼: permission denied
☼: permission denied
/data/local/tmp/psneuter: 6: Syntax error: "|" unexpected
so im stuck ! Any suggestions ?
Da9L said:
I dont know whats wrong but suddenly i cant root my device after i downgraded to 1.34 .. I need to turn S-ON because my device needs to go for repairs.. I follow this guide:
http://forum.xda-developers.com/showthread.php?t=928671
but for some reason when i try to launch psneuter i get some wierd permission denied error..
Code:
adb push psneuter /data/local/tmp
adb server is out of date. killing...
* daemon started successfully *
1841 KB/s (265118 bytes in 0.140s)
adb shell chmod 777 /data/local/tmp/psneuter
adb push adb shell /data/local/tmp/psneuter
PK♥8+: permission denied
∩♣ÿ☼: permission denied
☼: permission denied
/data/local/tmp/psneuter: 6: Syntax error: "|" unexpected
so im stuck ! Any suggestions ?
Click to expand...
Click to collapse
I guess as you've already achieved root / S-OFF etc, you find the command to S-ON there will probably be a command switch to S-OFF. Failing that, when I S-OFF'd, it produced a backup.
craiglay said:
I guess as you've already achieved root / S-OFF etc, you find the command to S-ON there will probably be a command switch to S-OFF. Failing that, when I S-OFF'd, it produced a backup.
Click to expand...
Click to collapse
Yes i do currently have S-OFF but need S-ON again because the phone is beeing returned for repairs..
Might be able to use rage, for temp root.
Sent from my HTC Vision using XDA Premium App
Re reading your post, i'm not sure psneuter is root for 1.34 i used it to get temp root on 1.72 downgraded and used rage for root on 1.34. Look in android development for the guide to downgrade and root (no links on app) start at after the 1.34 flash bit. gfree is the app that s-off so its likely gfree can also s-on. Running gfree with no switches should give a manual page, or just search gfree switches. (I'm not responsible for bricks etc!!)
Edit, rage gives temp root on 1.34
Sent from my HTC Vision using XDA App
Okay so i've managed to get root on the device ! Finally..
However i still have trouble running gfree.. i've tried a few methods but it gives me the same output
Code:
# /data/local/gfree -r /sdcard/part7backup-1298979588.bin
/data/local/gfree -r /sdcard/part7backup-1298979588.bin
/data/local/gfree: 1: Syntax error: ")" unexpected
# /data/local/gfree -s on -c HTC__Y13
/data/local/gfree -s on -c HTC__Y13
/data/local/gfree: 1: Syntax error: ")" unexpected
I "think" i managed to get root.. when i write 'adb shell' i dont go directly to a root shell, but only '$'. Writing 'su' phone ask me if i want to let permission to give a root shell which i accept whereafter i get the '#'
EDIT: Just tried it again using a newer version of gfree.. (The one i used above was 0.4) Same problems with gfree 0.7. But i have an idea that it can be because of this:
When i download the file 'gfree_07.zip' am i supposed to just rename this file to only 'gfree' without any extension and then with push it to phone with 'adb push gfree /data/local/' ? OR am i supposed to open the zip file and extract the gfree file within it and then push that file to the phone ?
Yes, you must unzip gfree_0x.zip file and move the extracted gfree binary file to your phone as instructions (and this thread) states. Good luck!!!
How I wish we wouldn't need to do this kind of trickery just to use our own phones as we wish...
Let us know if it eork. Ive been having the same trouble
Sent from my GT-P1000T using XDA Premium App

[Q] help w/ adb

Any help would be appreciated. A little background. This is a replacement mt4g in which the only way to root was the gfree method.... the other's would not work with this replacement device.... so that being said, when trying to use adb i get the error "Read-only file system. Thanks in advance.
Also, this is on a mac.
DELORME:~ DELORME$ /adb devices
List of devices attached
xxxxxxxxx068 device
DELORME:~ DELORME$ /adb push /freedom.jpg /sdcard/download
failed to copy '/freedom.jpg' to '/sdcard/download': Read-only file system
DELORME:~ DELORME$
Probably gotta downgrade to froyo?
Mt4G on manny pacquiaos leftover roids,and gassed up wth tdj's miui.
vedelorme said:
Any help would be appreciated. A little background. This is a replacement mt4g in which the only way to root was the gfree method.... the other's would not work with this replacement device.... so that being said, when trying to use adb i get the error "Read-only file system. Thanks in advance.
Also, this is on a mac.
DELORME:~ DELORME$ /adb devices
List of devices attached
xxxxxxxxx068 device
DELORME:~ DELORME$ /adb push /freedom.jpg /sdcard/download
failed to copy '/freedom.jpg' to '/sdcard/download': Read-only file system
DELORME:~ DELORME$
Click to expand...
Click to collapse
Need more details.......Are you now in stock 2.3.4 rom ?
If yes, then you need to downgrade back to stock 2.2.1 rom, then try to root using gfree.
Try to test "adb push anything_you_want /data/local/" instead, see if it works.

[Q] Permissions problem using adb to push app

I'm running a script to modify settings.db (found in the application forum) so that I can wirelessly tether and use the GPS on my phone while running Google Maps on the KF.
The script starts like this:
adb shell rm /data/local/tmp/*
adb push zergRush /data/local/tmp
adb shell chmod 755 /data/local/tmp/zergRush
adb shell ./data/local/tmp/zergRush
Click to expand...
Click to collapse
and works fine.
But I'm having problems running the script that others are having no problem with at this point in the script.
adb pull /data/data/com.android.providers.settings/databases/settings.db
copy settings.db settings.bak
sqlite3 settings.db "update secure set value=1 where name='mock_location';"
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
adb reboot
Click to expand...
Click to collapse
The script runs into permission errors. I have all the files in the same directory as adb in the platform-tools folder. adb is communicating with the device with the adb devices command. I run the .bat file from the folder while in a DOS command shell. And I get this error
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb pull /data/data/com.android.providers.settings/databases/settings.db
failed to copy '/data/data/com.android.providers.settings/databases/settings.db' to './settings.db': Permission denied
C:\Program Files (x86)\Android\android-sdk\platform-tools>copy settings.db settings.bak
The system cannot find the file specified.
C:\Program Files (x86)\Android\android-sdk\platform-tools>sqlite3 settings.db "update secure set value=1 where name='mock_location';"
Error: no such table: secure
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
failed to copy 'settings.db' to '/data/data/com.android.providers.settings/databases/settings.db': Permission denied
Click to expand...
Click to collapse
Any idea what's going on?
i assume you'r at the $ prompt - if you type in su the prompt should change to #
perhaps a hint in the right direction ...
zergrush does'nt work anymore since 6.2.1 and burritoroot
I am not at any command prompt when running the script. I'm at the Windows prompt, and I just execute the script name?
Confused.
when you type adb or adb shell your mostly at the $ prompt
when you type su the promt usually changes to # - thats root access
i think you have to integrate that in your script ...
I added
adb shell su
to the start of my script, but then it just hangs at the root prompt.
if you have rooted with burritoroot try "adb root"
It says:
adbd cannot run as root in production builds
ok then i think you will have to try it with the su method - maybe "adb su" could work - it's just a try
otherwise i think you will have to write a second unix stile script (ending .sh) to do the stuff and call it from your dos script or run it in the adn shell - but i'm not the unix expert - sorry
i'm running out of time now - wish you much luck with your script !!!
Anyone else please?
Resolved.….
Resolved how? Very curious
Please, how did you solved the problem ???
thanks
would be interested too !
Here's how.
I was so frustrated, didn't seem to be able to achieve root status and use ADB. So, I bought root explorer, went to directory where settings.db file was, and copied it to sdcard folder on the KF. Then brought it over to my PC just over the USB connection (KF was a Windows drive).
In Windows, ran the part of the script that replaces the "0" with a "1". Then copied it back to the sdcard folder on the device, and used root explorer to move it back to its proper directory.
Only one caution. Make sure that you don't change the permissions or ownerships of the file, that they are the same as when you first grabbed it.

Categories

Resources