[Solved}permaroot gfree "error opening copy file" - myTouch 4G Q&A, Help & Troubleshooting

Ok, so I run visionary for temp root, push gfree via adb to /data/local
term. emulator
su
cd /data/local
chmod 777 gfree
./gfree -f
then when it edits and backs up partition 7, it says "Error opening copy file" and fails.
Ideas??
Edit: Solved. would not complete with USB plugged in and USB Debugging Enabled

I'm getting same error but not plugged in and not in development mode...
edit: nevermind. worked now. Only thing different was I turned off fastboot...?

Related

unrevoked + hosts editing "Directory not empty"

Hello, I rooted with unrevoked and then flashed the rom liberated_aria_FR006_signed.
I booted through clockwork and mounted /system /data /sdcard and then connected to my pc via usb, through the command prompt and adb I tried:
cp /sdcard/hosts /data/data/hosts
rm /system/etc/hosts
ln -s /data/data/hosts /system/etc/hosts
when I do rm /system/etc/hosts it says:
rm: can't remove '/system/etc/hosts': Directory not empty
What's wrong? Is /system not full perms through clockwork or is it a unrevoked root problem.
Thanks!
G226 said:
Hello, I rooted with unrevoked and then flashed the rom liberated_aria_FR006_signed.
I booted through clockwork and mounted /system /data /sdcard and then connected to my pc via usb, through the command prompt and adb I tried:
cp /sdcard/hosts /data/data/hosts
rm /system/etc/hosts
ln -s /data/data/hosts /system/etc/hosts
when I do rm /system/etc/hosts it says:
rm: can't remove '/system/etc/hosts': Directory not empty
What's wrong? Is /system not full perms through clockwork or is it a unrevoked root problem.
Thanks!
Click to expand...
Click to collapse
Lol...the error tells you exactly what's wrong...but kinda weird since the hosts is a file not a directory...so I can only assume that there are some permission issues...navigate to the /system/etc directory and do a "ls -al" and see what the permissions are for the hosts file...it'll be on the left side of the results of the ls.
Sent From My HTC Aria Using XDA App
Oh fyi...I'm dumb...are you already rooted? I dunno much about adb but you MIGHT have to run the above command through a terminal program on your phone...
Sent From My HTC Aria Using XDA App
I'm rooted but it's through unrevoked as mentioned, does that give me the proper permissions if I adb through clockwork recovery?
If not what would? I'll do a "ls -al" in a little.
G226 said:
I'm rooted but it's through unrevoked as mentioned, does that give me the proper permissions if I adb through clockwork recovery?
If not what would? I'll do a "ls -al" in a little.
Click to expand...
Click to collapse
I'm not sure...as I said im not too familiar with adb...I do know if you have a terminal program on your phone just open it, type the following:
su
cd /system/etc
ls -al
Once you so the ls, if you aren't familiar with *nix, you'll see the following:
-rw-r--r-- 1 root root 25 Aug 1 2008 hosts
Along with a bunch of other lines similar to this, this is the line I'd like to see though
Sent From My HTC Aria Using XDA App
Thanks for the help so far, I did what you said and after doing "ls -al" it said :
-al: No such file or directory
If I do a plain "ls" command it'll list all the files/folders in the system dir.
G226 said:
Thanks for the help so far, I did what you said and after doing "ls -al" it said :
-al: No such file or directory
If I do a plain "ls" command it'll list all the files/folders in the system dir.
Click to expand...
Click to collapse
1 are you doing this in adb or terminal?
2 are you typing "ls -al" with a space? And "al" as in alpha lima?
3 are you in the etc directory?
Sent From My HTC Aria Using XDA App
I did as you instructed, used the terminal program app and tried these commands through there, I'll try adb.
Thanks.
Well the only reason I asked was because ls -al is a legit command lol...I dunno of another way to view the permissions of files...I also don't know if there is a way or not through adb, Google may be your friend in regards to that...
Sent From My HTC Aria Using XDA App
This may be related to busybox on the phone. Can you do an "echo $PATH" from the adb shell and paste the results here?
So from the command prompt you would enter "adb shell" this should give you a new prompt like this #. At this prompt type "echo $PATH" without the quotes. Maybe you do not need all these instructions, sorry.
I see this all the time, from all the noobs (myself included)
First off the ARIA still has S-ON security, so if you are writing to /system/ you _NEED_ to be properly booted into recovery - otherwise you will not have write permissions. its in the FAQ but still completely overlooked. There is a post about this every day i swear.
STEP 1) UNPLUG THE USB <----- CRITICAL
STEP 2) POWER DOWN THE PHONE <----- AFTER STEP 1!!!!!!
STEP 3) HOLD VOLUME DOWN + PRESS POWER to load hboot
STEP 4) SELECT recovery to start clockwork
STEP 5) partitions --> mount --> /system/
STEP 6) connect USB
STEP 7) adb shell
edit: if you shortcut into recovery by just leaving the USB plugged in while you power down - you will not have full permissions.
dexmix said:
I see this all the time, from all the noobs (myself included)
First off the ARIA still has S-ON security, so if you are writing to /system/ you _NEED_ to be properly booted into recovery - otherwise you will not have write permissions. its in the FAQ but still completely overlooked. There is a post about this every day i swear.
STEP 1) UNPLUG THE USB <----- CRITICAL
STEP 2) POWER DOWN THE PHONE <----- AFTER STEP 1!!!!!!
STEP 3) HOLD VOLUME DOWN + PRESS POWER to load hboot
STEP 4) SELECT recovery to start clockwork
STEP 5) partitions --> mount --> /system/
STEP 6) connect USB
STEP 7) adb shell
edit: if you shortcut into recovery by just leaving the USB plugged in while you power down - you will not have full permissions.
Click to expand...
Click to collapse
3 sleepless nights later and dexmix comes to the rescue. This drove me crazy man, I just could not find the answer. Thanks!! Bed time!

Uninstall WaveSecure system app?

Hi I have been trying all evening to remove com.wsandroid.apk from my phone, using terminal but I simply cannot. I've tried many different commands and I'm just being told either permission denied, directory not found/not empty. I have a Wildfire which is obviously rooted. Please help me out, tearing my hair out here.
So you're using modaco custom rom?
Download the latest version of HTC Sync and install. This will also install the adb drivers. (I presume you use windows, if not, I apologise)
Download the Android SDK
Put the phone in fastboot mode (Power+Volume down) and plug it into your computer.
When the drivers are installed, use the command prompt to navigate to the tools folder within the android sdk folder.
Type the following commands, pressing enter at the end of each line:
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
cd app
rm -r com.wsandroid.apk
That should do it
I'm using the stock ROM but it is rooted with Unrevoked. I'll try these instructions anyway.
- Connect your phone to the PC
- Clear WaveScure's cache on the phone
- Open a command prompt
- go to run go to C:\androidSDK\tools and then run these 2 commands
1. adb remount
2. adb shell rm /system/app/*wsandroid*
Click to expand...
Click to collapse
I'm trying these settings, but when I get to adb remount, I get this error: remount failed: Operation not permitted
EDIT: I put the phone into recovery mode and mounted it and it said remount succeeded, I then followed step 2. both *wsandroid* and com.wsandroid.apk and it says that they cannot be found.
EDIT: Nevermind, deleted it
There's currently no write access to system partition using Unrevoked on Wildfire. So you can't remove it. You flashed it with update.zip? I'm not an expert (yet) but I assume the only way (or easiest way) to remove it is to flash your stock ROM again.

ADB required?

After looking at the rooting steps outlined here:
http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision
http://wiki.cyanogenmod.com/index.php?title=TMobile_G2:_Rooting
http://wiki.cyanogenmod.com/index.php?title=TMobile_myTouch_4G:_Full_Update_Guide
I was wondering if there was any reason you couldn't do the ADB steps in the terminal? Just place all the files on the sdcard and cp them to the proper directory from there. Taking ADB out of the steps would defnately make the process easier for people.
Is there something I am missing? Would this work?
Rooting the G2 and MT4G
Download:
gfree_temp-root.zip
gfree_04.zip
Unzip the contents of the above files, and place them them on the sdcard as follows:
/sdcard/ (root directory):
su
Superuser.apk
gfree
/sdcard/root/
rage
busybox
root
In Terminal make the following commands::
cd /sdcard/
cp -r /root/ /data/local/tmp/
chmod 0755 /data/local/tmp/*
/data/local/tmp/rage
After a minute or so, you will see the following message on the phone Forked #### childs. Press the Menu button & select Reset Term. The Terminal Emulator will exit out.
Launch Terminal Emulator. It will force close. Launch it a second time, and you'll have a root shell. You are now temp-rooted.
In Terminal make the following commands:
cp gfree /data/local
chmod 777 /data/local/gfree
/data/local/gfree -f
sync
/data/local/tmp/root
NOTE: You may see an error that states mkdir: /system/xbin already exists, if you do, simply ignore and continue on.
sync
Reboot. You are now perma-rooted, have radio S-OFF, and SIM-unlocked.
I perm rooted my first G2 without adb. There are specific guides for doing it without adb. Although if you do have the SDK and ADB, its very very easy lol.
Lol i didnt use adb. I use visionary and terminal
Sent from my HTC Vision using XDA App
I didn't use ADB either. Just a few simple commands in terminal.
http://forum.xda-developers.com/showthread.php?t=928160
Thanks, however.....
I have been reading that there have been issues with using Visionary to temp root. I just wanted to validate that it was OK to use terminal for the ADB steps.
Thanks!
~Jeff

myTouch 4G: adb push su /sdcard/su ... error: device not found

I installed JDK and the Android SDK on this Windows XP 32bit system.
Copied the busybox, rage, root, su and Superuser.apk files into the platform-tools folder.
Connect the MT4G to the computer via USB.
The MT4G mounts as "G:\" on this Windows XP system.
Made sure USB debugging is enabled.
In the Command Prompt window:
C:\android-sdk\platform-tools> adb push su /sdcard/su
error: device not found
What did I do wrong?
Did you run "HTCDrivers.exe"? It's found on your SD card.
You should check out this this thread. It has an excellent write-up on setting up ADB as well as a much smaller installation file that makes the entire SDK unnecessary.
Can you access the contents of the SD card in windows explorer? If so you need to right click the G: and "eject". Now try it.
No, I did not install the "HTCDrivers.exe"
When I connected the MT4G to the XP system initially, it did not prompt me to do so.
Still I was able to view the G drive with Windows Explorer.
Anyway, I did install the "HTCDrivers.exe" and that took care of the "error: device not found" message. Don't see that anymore.
But now ...
...\platform-tools> adb push su /sdcard/su
failed to copy 'su' to '/sdcard/su': Permission denied
employee said:
But now ...
...\platform-tools> adb push su /sdcard/su
failed to copy 'su' to '/sdcard/su': Permission denied
Click to expand...
Click to collapse
I don't recognize that command. "su" is used to initiate root access in ADB shell, but you don't 'push' su to the phone to get that root access. What exactly are you trying to do?
TeeJay3800 said:
I don't recognize that command. "su" is used to initiate root access in ADB shell, but you don't 'push' su to the phone to get that root access. What exactly are you trying to do?
Click to expand...
Click to collapse
I am trying to follow these instructions:
http://wiki.cyanogenmod.com/index.php?title=TMobile_myTouch_4G:_Full_Update_Guide
I have already installed the Android SDK.
So ...
failed to copy 'su' to '/sdcard/su': Permission denied
... means I am stuck at step 6 under "Gaining Temporary Root Access".
Well, apparently after you connect the USB cable to XP and phone - you must select "Charging" on phone.
Once I did that it did not display the "failed to copy 'su' to '/sdcard/su': Permission denied" anymore and I am able to complete those adb commands.
employee said:
Well, apparently after you connect the USB cable to XP and phone - you must select "Charging" on phone.
Once I did that it did not display the "failed to copy 'su' to '/sdcard/su': Permission denied" anymore and I am able to complete those adb commands.
Click to expand...
Click to collapse
Glad you figured it out.
employee said:
Well, apparently after you connect the USB cable to XP and phone - you must select "Charging" on phone.
Once I did that it did not display the "failed to copy 'su' to '/sdcard/su': Permission denied" anymore and I am able to complete those adb commands.
Click to expand...
Click to collapse
LOL I was having the same problem. Switch to charging it worked like a charm. thanks mate
I just don't know if I still want CM 7.01 RC1 now. I kinda like the sense time and weather widget

[Q] [Q} Having issues getting bypasslkm.zip installed

Hello! I'm trying to help a friend root his phone and I totally f'd it up and now I have no wifi or data and I can't figure out for the life of me how to get bypasslkm.zip installed I've tried installing it from SD card with invalid signature message and I've tried adb sideload and adb push as per the post
"adb push bypasslkm /data/local/tmp
cd /data/local/tmp
chmod 755 bypasslkm
./bypasslkm"
I keep getting "error: closed" what am I doing wrong? I'm a total noob :crying:
shanda5303 said:
Hello! I'm trying to help a friend root his phone and I totally f'd it up and now I have no wifi or data and I can't figure out for the life of me how to get bypasslkm.zip installed I've tried installing it from SD card with invalid signature message and I've tried adb sideload and adb push as per the post
"adb push bypasslkm /data/local/tmp
cd /data/local/tmp
chmod 755 bypasslkm
./bypasslkm"
I keep getting "error: closed" what am I doing wrong? I'm a total noob :crying:
Click to expand...
Click to collapse
You ran the last commands in adb shell or Terminal Emulator right? Also it's easier to get the flashable bypasslkm zip from the downgrade thread, flash that in safestrap, and run it with init.d
Sent from my SGH-I337 running Blackbox 3.0

Categories

Resources