Terminal Emulator "not found" - Epic 4G Q&A, Help & Troubleshooting

I'm trying to use Terminal Emulator and no matter what I try to enter it tells me its not found. I am rooted and it has been given SU rights. I've also tried to uninstall and reinstall but nothing works. Any ideas?

presumedsublime said:
I'm trying to use Terminal Emulator and no matter what I try to enter it tells me its not found. I am rooted and it has been given SU rights. I've also tried to uninstall and reinstall but nothing works. Any ideas?
Click to expand...
Click to collapse
I don't quite understand your issue here. Are you trying to launch Terminal Emulator and get this message?
A few things to try:
1. Clear Terminal Emulator's cache and data, retry.
2. Uninstall, restart, install again, retry.
Alternative route: Install Connectbot and do what you need to do.

I'm trying to get to cd /system/etc/init.d but each time i type it in it says "cd /system/etc/init.d: not found:

presumedsublime said:
I'm trying to get to cd /system/etc/init.d but each time i type it in it says "cd /system/etc/init.d: not found:
Click to expand...
Click to collapse
Just did it on my phone using Connectbot and no issues. I don't know.
Would anyone else like to chime in with assistance?

Okay connect bot worked but now it won't let me run "remount rw". It says "mount: can't find rw in /proc/mounts

Try "mount -o remount,rw /system" or similar
And it could be possible the init.d directory isn't there...
sent from my miui-ified epic

Thanks for your help. I was trying to copy a file to the system/etc/init.d directory through emulator since I've never done it before. Decided to save some time and use Root Explorer.

Related

Moving Power Manager Pro to /system/app

Long post but, hopefully an easy answer that someone can walk me through. I have fully rooted my EVO along with the NAND. I'm trying to move/install (?) Power Manager Pro into the /system/app folder to get full rights so it can turn GPS on/off. The website for the app says that I need to do the following:
After root is obtained you need to install the application into the /system/app directory so that it has enough permission to change the location settings. Open a Terminal Emulator app and execute the following command to copy the application to the sdcard (for the full version the name of the application is /data/app/com.acme.android.powermanagerpro.apk):
su
cp /data/app/com.acme.android.powermanager.apk /sdcard/PowerManager.apk
If you can't find the application in /data/app try /data/apps-private/
Then, un-install Power Manager from the device
Execute the following commands in the terminal emulator to remount the /system directory as read/write and to install the application into the /system/app directory:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/PowerManager.apk /system/app
If you prefer to use adb from your computer, execute these commands:
adb remount
adb shell cp /sdcard/PowerManager.apk /system/app
Several users have utilized root explorer from the Google marketplace to simplify this process.
I have Root Explorer so I would like to do it through there is possible, but I can't seem to get it to work without it getting a FC when it opens after trying to move it.
hmmm, it might be force closing because the system is not mounted as read/write. Never used the app before so I dont know. But you can search the market for terminal emulator and then follow the steps the showed above. It looks like it should work.
...or you could do it through adb shell if you are connected to your 'puter
Trying it in Terminal Emulator with no luck... Wondering if the path is right or if i need to change that? It says:
xport PATH=/data/local/bin:$PATH
$su
cp /data/app.acme.android.powermanagerpro.apk /sdcard/PowerManager.apk
cp: not found
the path seems right (I assume you mean export and not xport). I dont think you need anything special on the rom to access cp through terminal emulator...
Have you tried hooking it up to a computer and entering it through adb shell to see if that works?

How to run terminal emulator

I've installed terminal emulator from market, but after writing SU it "can't found it"... what should I do?
i think you need to install busybox and have root access.....
Android-Terminal-Emulator Frequently-Asked-Questions
I have busybox installed and root access
Hi
parkourz said:
I've installed terminal emulator from market, but after writing SU it "can't found it"... what should I do?
Click to expand...
Click to collapse
Can you check e.g. with adb shell that "su" is installed
on the correct location?
Does other "root" apps work?
Regards
max
EDIT: su should be in /system/xbin
in terminal run
echo $PATH
This must include the dir where su is installed
Install Hacker's Keyboard. I assume that "SU" is being typed in upper case in your terminal emulator? That's your problemt then.
parkourz said:
I've installed terminal emulator from market, but after writing SU it "can't found it"... what should I do?
Click to expand...
Click to collapse
it's because the stock keyboard will only write in capitals in the term for some reason, so just use anyother keyboard you can get your hands on
All right, problem solved: I've just change the shell command line to /system/xbin/ and everything works and I've change something with keyboard in emulator and it's don't writes in capitals any more

"rm -rf" command cannot run on the device

"rm -rf" command cannot run on the device
I've got an new device LG Optimus LTE II (LGE F160L) and install "Better Terminal Emulator Pro"
The Android version is 4.0.3
The kernel is 3.0.8-00001-g65e7cd3
1. I properly rooted the device
2. I used "su" command before runnig follow the commands.
3. When I try to run "rm -rf /sdcard/.ads" command, it showed "No such file or directory"
I've found the command "-rf" has been trade as a diretory but parameters.
How does it happened?
How can I resolve this?
I think it's because the folder /sdcard/.ads doesn't actually exist because /sdcard is a symbolic link to /mnt/sdcard. So to answer your question, I think the following might work:
Code:
rm -rf /mnt/sdcard/.ads
If that doesn't work, I dunno...
THK Malnilion,
I have also tried "rm -rf /mnt/sdcard/.ads", but didn't work with a respond of "rm failed for -rf, No such file or directory."
the "rm" command thought "-rf" is a file or a directory., and the "-rf" should be parameters.
Ah, I see, this might be a limitation of busybox, then.
Malnilion said:
I think it's because the folder /sdcard/.ads doesn't actually exist because /sdcard is a symbolic link to /mnt/sdcard. So to answer your question, I think the following might work:
Code:
rm -rf /mnt/sdcard/.ads
If that doesn't work, I dunno...
Click to expand...
Click to collapse
Malnilion said:
Ah, I see, this might be a limitation of busybox, then.
Click to expand...
Click to collapse
Oh, really?
I need to run a lot of testing scripts in "Gscripts". I see, why those scripts don't work on this device.
Then, how can I update the busybox? Those testing is my work!! Otherwise, I need to change back to HTC Desire which scripts are working well.:crying::crying: OH, Nooooo........:crying::crying::crying:
aswasw said:
Oh, really?
I need to run a lot of testing scripts in "Gscripts". I see, why those scripts don't work on this device.
Then, how can I update the busybox? Those testing is my work!! Otherwise, I need to change back to HTC Desire which scripts are working well.:crying::crying: OH, Nooooo........:crying::crying::crying:
Click to expand...
Click to collapse
Are you using the same terminal emulator application and version on the Desire?
drumist said:
Are you using the same terminal emulator application and version on the Desire?
Click to expand...
Click to collapse
Yes, of course. But the andorid version is 2.3.7.
I use "rm -r /mnt/sdcard/.ads" without parameter "f" as a mistake, and the script runs without a respond of error. ^_^
I used R.E browse to /mnt/sdcard , I found directory "/mnt/sdcard/.ads" has been removed !!!!!!!
I try to remove other directory with the "rm -r" command which seems non-forced remove command, but in fact, the command remove the folder, and everything in the folder, too.
OMG...Is there something has been modified in the kernel??

[Q] Can't access /data in android (rooted)

Hi, I've tried SuperSU and SuperUser.
apps and adb shell can't access the /data partition.
it says that I don't have enough permissions ...
with adb shell I can cd to it, but even an "ls" says operation not permitted
I can access it just fine in CWM using adb shell
all other root directory works fine....
Does anybody know what's going on ? did i miss something ? I'm no expert when it comes to this
thanks for your help
kout said:
Hi, I've tried SuperSU and SuperUser.
apps and adb shell can't access the /data partition.
it says that I don't have enough permissions ...
with adb shell I can cd to it, but even an "ls" says operation not permitted
I can access it just fine in CWM using adb shell
all other root directory works fine....
Does anybody know what's going on ? did i miss something ? I'm no expert when it comes to this
thanks for your help
Click to expand...
Click to collapse
After typing adb shell and entering you have to type su and press enter again, then you`ll have the permissions you need
But how come root browser can't access that directory?
And why can I go to /system without having to type su first
kout said:
But how come root browser can't access that directory?
And why can I go to /system without having to type su first
Click to expand...
Click to collapse
How do you mean: root browser/ file manager on the phone to access system date? You have to be rooted to access system data on the phone. What exactly do you want to do?
Weird stuff, it's working with solid explorer, I had tried with rom toolbox browser and some other root browser from the play store and it wouldn't work
Thanks for the "su" tip I forgot you had to be su to access that folder :-S
kout said:
Weird stuff, it's working with solid explorer, I had tried with rom toolbox browser and some other root browser from the play store and it wouldn't work
Thanks for the "su" tip I forgot you had to be su to access that folder :-S
Click to expand...
Click to collapse
Is you`re phone rooted mate? The su command is for adb from your computer!
Of course it's rooted, I do have a bit of experience with that. It's just weird that certain root browser can't access the data partition despite having granted su permission to the app. Anyway its working great with solid explorer now, and with adb I've got the su command
I actually have the voice stuck on the same street in navigation, (known bug) so I had to delete some cached speech data in the data partition
I did it through cwm but I was wondering why it wasn't letting me do it once booted. Anyway thanks

KFHD 8.9 Help, Please

I rooted my KFHD 8.9, installed the Play Market, Go Launcher HD, and a few other things. Everything went smoothly...until I decided to install TSF Shell 3d. I moved it to system/app, changed permissions, and rebooted. Now, TSF is stuck in a loop and I can't access ES File Explorer long enough to delete it from the device. When I try using Android Commander, it shows "No Root" and I'm not very experienced at ADB. Is there some way to get this off my device so it's usable again?
When I boot up, it boots normally, then before I can unlock the lockscreen, I get "TSF Shell has Stopped" with a button below it to ok the message. When I tap it, it goes away for a split second, then comes right back...over and over.
Any tips or advice would be greatly appreciated. Thanks.
(I posted this here because I did not see a Q and A or Help section that was KFHD 8.9 specific. If it needs to be moved, feel free and I apologize.)
couple of things to try. if you can access the pull down menu go to more settings, applications then find tsf shell and clear defaults. reboot.
if that doesn't work reboot to recovery and do a factory reset.
adb reboot recovery.
I will try the adb reboot recovery option. I can't get into anything on the device itself long enough to do anything. Also, I didn't even set TSF as default home. I'm thinking (the way adb is acting), that I don't have full root privileges. When I try to delete the file using adb, I get a permission denied error.
slim6596 said:
I will try the adb reboot recovery option. I can't get into anything on the device itself long enough to do anything. Also, I didn't even set TSF as default home. I'm thinking (the way adb is acting), that I don't have full root privileges. When I try to delete the file using adb, I get a permission denied error.
Click to expand...
Click to collapse
Have you tried:
Code:
adb shell su -c "rm /path/to/TSF.apk"
...replacing "/path/to/TSF.apk" with the actual path to the actual name of the TSF app you want deleted? Just be sure to leave the quotes around the command or it may not work.
soupmagnet said:
Have you tried:
Code:
adb shell su -c "rm /path/to/TSF.apk"
...replacing "/path/to/TSF.apk" with the actual path to the actual name of the TSF app you want deleted? Just be sure to leave the quotes around the command or it may not work.
Click to expand...
Click to collapse
I tried adb shell su -c rm/system/app/TSF Shell 3D
"permission denied" and then "device not found" when I tried editing the pathname. What am I missing? The path to the Kindle?
slim6596 said:
I tried adb shell su -c rm/system/app/TSF Shell 3D
"permission denied" and then "device not found" when I tried editing the pathname. What am I missing? The path to the Kindle?
Click to expand...
Click to collapse
There is a space between the 'rm' command and the path. Also you need to get the exact name of the file you want removed...
Code:
adb shell su -c "ls /system/app"
And again, don't forget the quotes...meaning leave them there.
"Is" or "rm"?
........and thanks for trying to help me out. I really appreciate it.
slim6596 said:
"Is" or "rm"?
........and thanks for trying to help me out. I really appreciate it.
Click to expand...
Click to collapse
'ls' is the list command. Use it to list the contents of either the '/system/app' directory or the '/data/app' directory to find the exact name of the 'apk' that is causing problems, then use the 'rm' (remove) command to get rid of it.
I got it to work. TSF is gone (yahoo!). So now I get to start over. What I finally did was to do a total restore using KFFirstAide. Thanks you guys for pitching in and helping a newb. I appreciate it to no end.

Categories

Resources