Android :: BusyBox - How To Use Terminal IP Command?
Sep 16, 2009
I'm using a Google phone running Android, and I need to figure out how to use the terminal's
'ip' command. I found out that Android uses BusyBox in its terminal, but I can't find any help or tutorials or any information regarding it other than the basic information given in the terminal help. Can anyone point me to a site that would give me more information on how to use the commands, or tell me how to use the 'IP' command if you are familiar with it?
I'm currently working on a project which involves imaging Android phones - specifically, the program I've written is mean to automate identifying the memory block containing the userdata and then using the following sequence of commands (using Android Debug Bridge) to copy it to the computer that the phone is connected to:
This copies the memory block over without any problems when done manually and even shows you in real time how much data has been transferred.The problem I have is with automating the process in C#. Specifically, I can get every stage of it to work through using a process to write the commands to standard input and using a tcp listening port to receive the data. Apart from this crucial element of the process:
For some reason, no matter how I try to phrase it or do it, C# hates that command and won't execute it. I can manually type the exact same thing into the command prompt and it works fine but trying to do it in C# just leads to busybox acting as though I typed the command in incorrectly - this is what it gives me:
I want to pause terminal 'top' command. I tried using 'top -d 1000' but it makes it draw its output for the first time after 1000 seconds from launch, so first I would have to wait 1000 seconds to actually see its output.
i recently bought a cheap irulu tablet off ebay. it's running 4.2.2, and i'm not quite sure if it's rooted or not. i've read that most of their tablets are rooted right out of the box, so i downloaded 4 or 5 root checkers from the marketplace and some said it was rooted and some said it was not. i know that it does have su and busybox installed, but i don't have one of those superuser apps that request permission or anything. i can browse my full phone with any file explorer. i installed titanium backup, and it says on the main screen that root access is ok, but then it will pop up an error message that says:
BusyBox works but the "su" command does not elevate to root. There's something wrong with your "su" binary and/or "Superuser" app.
How much are you using the terminal, and what kind of stuff do you use it for? Which emulator are you using? I like the idea of tinkering with command line on my phone, using it to do simple stuff, partly as a fun way to get reacquainted with it, as I use to use command line a little bit with XP and ubuntu. I've batted around between Better Terminal Emulator Pro and Terminal Emulator. One confusing thing is that they seem to use different commands. For example, in terminal emulator the help command brings up a help menu, in TEP it is unrecognized as a command. What accounts for these differences? Lastly, any suggestions for lists of commands and tips for using them, in a way that will work with these emulators?
I've seen these programs and tried one and just looks like a command prompt and i was wondering if one of these programs eliminates having to use the command prompt on my pc.but my next question is how would you use it for commands that requires you to be in recovery?
I have a rooted samsung captivate with sideloading enabled. After experimenting with different wifi tethering apps from the unofficial market, I began experiencing difficulties with my wifi connection. Even after uninstalling every app that I thought was changing the wifi state, the problem still persists. I can turn on the wifi and it will act normally for about 30 seconds before turning off without user intervention. In dmesg, the error is as follows: 'mmc1: Got command interrupt 0x00060001 even though no command operation was in progress.' Is this caused by an app or is this a more complicated problem?
I've been looking to install busybox on UK Milestone 2.1 and have found only a few pages of instructions, but all of these seem to come up with errors, I dunno if its the new firmware or just something I'm doing wrong with ADB. I'm fairly new at this but I know my way around flashing and had a shot at ADB so I'm not entirely a newbie. Anyone know of any (working) how-to's for busybox?
Yes my phone is rooted. Trying to run metamorph on the droid but I apparently need busybox first. I am having problems installing it. I tried to follow the directions:
cd to your adb tools directory adb push busybox /data/local/busybox adb shell su cd /data/local chmod 755 busybox ./busybox mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system mkdir /system/xbin /data/local/busybox cp /data/local/busybox /system/xbin /data/local/busybox cp /data/local/busybox /system/bin cd /system/xbin busybox --install . mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system sync reboot
I don't have an adb tools directory and adb isn't even a command on my phone. There has to be something I am missing. Also, if I get those working, how would I get the file where it needs to be? I tried copying it from my SD card into the directory, but it never shows up.
Should Busybox (and the Linux stuff it downloads) be installed directly after rooting, or after every single flashing of a ROM? I am assuming this has to be done after every flash only.
Another thing, should Busybox be installed to /system/bin, or /system/xbin? By default Busybox wants to install to /system/bin. I am safely assuming that formatting /system in recovery would remove all the Busybox components. To some people, formatting /system before flashing a ROM is imperative.
So I have used the one click root thingy. Have the superuser app. Tested. I have root (look screenshot). Now I want to install busy box. When I got the app from market to install the latest I got this. What I want to know. Is it safe and if so whats safe to erase from the system folder. (would kinda like to get rid of the stocks and footprints app) but really not sure its not linked somehow and I get some big system error , since these apps run all the time. (actually I want to install busy box to be able to remove these apps anyway). I installed titanium backup and it installed busybox version 16 or soemthing. Problem is other apps like the cache cleaner doesnt find busybox installed even if I do it via titanium app.
I'd like to install rooted 2.2 on my Desire as per Lekky's guide, but there's a problem with BusyBox - it doesn't currently work with the Desire. As most of the root apps seem to need BusyBox to run (including Titanium), should I just wait for a fixed version of BusyBox before trying to upgrade to 2.2, or using any other rom for that matter? Is there an alternative method I could use? Also, my Desire is on 3UK network. Do I need to use a goldcard to upgrade to 2.2/ install another rom? I'm not clear on this bit.
I am rooted with unrEVOked 3.2.1 as of yesterday. I want to remove a bunch of the bloatware that came installed on my phone. I downloaded Titanium Backup to do this, but it comes up with an error that says "Please verify that your ROM is rooted and includes BusyBox, and try again." I tried to download BusyBox from the market, but it just sits there and doesn't download.
im trying to edit txt within busybox vi, but i need help with saving/exit. im running it out of the terminal emulator, and have ctrl set up as <vol. up>, so i believe i need to do <vol up><sym><1> to enter command mode, but i cant seem to get typical vi commands to work (zz) for write/exit. ok if i get past that then i have mounted system as rw, but within the vi it says [read only]. will this be an issue?
Step 1) download busybox binary to your adb tools directory Step 2) cd to your adb tools directory Step 3) adb push busybox /data/local/busybox Step 4) adb shell Step 5) cd /data/local Step 6) chmod 755 busybox Step 7) ./busybox
Now to have this run so droid explorer and detect your phone and so you can use busybox (ie so its in your PATH) run this. Step 8) mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system Step 9) /data/local/busybox cp /data/local/busybox /system/bin Step 10) mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system Step 11) sync Step 12) reboot
Download Links: Droid Explorer: Droid Explorer busybox: Download busybox.zip from Sendspace.com - send big files the easy way Disclaimer- I put this together really quick so please only try if you know what you are doing so I can save my butt from any problems that may come of my or your own error.
I've been reading some info about rooting a droid here and at rootyourdroid.info, probably going to buy one this afternoon since the incredible isn't out yet. Rooting seems to be pretty universal between PC/Mac, but when it gets to the USB debugging/Busybox install it appears a PC is required. Anyone know if this can be done from a Mac or a Linux box? I don't currently have a Windows computer anywhere in the house, and don't really want to use my work laptop for this if I don't have to.
I've rooted my Sprint Galaxy S5 and it made the phone work slow. The buttons took a good 3-4 seconds before responding, and sometimes would not respond at all. "HealthService" would always crash, and other slowdowns like when I drag down the notification bar. I installed Xposed and BusyBox. However, the phone was working slow before those were installed. So I unrooted it and flashed the stock ROM, and everything worked fine. Time passed by... I decided to root it again. So I did, same method, same files, and it was working normal. No slowdowns, buttons worked perfectly and were responsive. "HealthService" still force stops but I presume that is an easy fix. Then I installed BusyBox and Xposed again. Once both were installed and after 5-7 minutes, the phone started to work slow as before.