bruno's v970 custom rom will get below output when running "adb shell".
obviously, it is not expected.
I do no have permission to post to developer section. Would anybody help redirect it to v970 custom thread?
http://forum.xda-developers.com/showthread.php?t=1856578
$ adb shell
]0;@localhost:/[0;31m[localhost[m [0;34m/[m[0;31m]# [mls
ls
[1;34macct[0m [1;32minit.factory.rc[0m
[0;0madvanced_meta_init.project.rc[0m [1;32minit.goldfish.rc[0m
[0;0madvanced_meta_init.rc[0m [1;32minit.project.rc[0m
[1;34mcache[0m [1;32minit.rc[0m
[1;34mconfig[0m [1;32minit.usb.rc[0m
[1;36md[0m [1;32minit.xlog.rc[0m
[1;34mdata[0m [0;0mmeta_init.rc[0m
[0;0mdefault.prop[0m [1;34mmnt[0m
[1;34mdev[0m [1;34mproc[0m
[1;[email protected][0m [1;36mres[0m
[1;[email protected][0m [1;34mroot[0m
[1;[email protected][0m [1;34msbin[0m
[1;[email protected][0m [1;36msdcard[0m
[1;[email protected]_ro[0m [1;34msys[0m
[1;[email protected][0m [1;34msystem[0m
[1;36metc[0m [0;0mueventd.goldfish.rc[0m
[1;32minit[0m [0;0mueventd.rc[0m
[1;32minit.aee.customer.rc[0m [1;36mvendor[0m
]0;@localhost:/[0;31m[localhost[m [0;34m/[m[0;31m]# [m
[0;31m[localhost[m [0;34m/[m[0;31m]# [m
That is not a problem. I have installed bash and it is using colored output, so you have to either use Ubuntu or install Ansicon (if running adb from Windows command prompt).
Have a read here.
sound great to use Ansicon to make full use of bash color feature.
After some investigation, there is also a workaround to turn of color feature.
1. make below change for /data/local/.bashrc
# Command prompt
PROMPT_COMMAND='echo -ne "${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"'
# Red prompt when in a root shell
#if [ ${EUID} -eq 0 ]; then
# PS1="\[$txtred\][\h\[\e[m\] \[$txtblu\]\w\[\e[m\]\[$txtred\]]# \[\e[m\]"
#else
# PS1="\[$txtgrn\][\h\[\e[m\] \[$txtblu\]\w\[\e[m\]\[$txtgrn\]]$ \[\e[m\]"
#fi
2. make below changes for /data/local/.bash_aliases
alias ls='busybox ls --color=none'
alias l='busybox ls -CF --color=none'
alias la='busybox ls -A --color=none'
alias ll='busybox ls -AlF --color=none'
whogiawho said:
bruno's v970 custom rom will get below output when running "adb shell".
obviously, it is not expected.
I do no have permission to post to developer section. Would anybody help redirect it to v970 custom thread?
http://forum.xda-developers.com/showthread.php?t=1856578
$ adb shell
]0;@localhost:/[0;31m[localhost[m [0;34m/[m[0;31m]# [mls
ls
[1;34macct[0m [1;32minit.factory.rc[0m
[0;0madvanced_meta_init.project.rc[0m [1;32minit.goldfish.rc[0m
[0;0madvanced_meta_init.rc[0m [1;32minit.project.rc[0m
[1;34mcache[0m [1;32minit.rc[0m
[1;34mconfig[0m [1;32minit.usb.rc[0m
[1;36md[0m [1;32minit.xlog.rc[0m
[1;34mdata[0m [0;0mmeta_init.rc[0m
[0;0mdefault.prop[0m [1;34mmnt[0m
[1;34mdev[0m [1;34mproc[0m
[1;[email protected][0m [1;36mres[0m
[1;[email protected][0m [1;34mroot[0m
[1;[email protected][0m [1;34msbin[0m
[1;[email protected][0m [1;36msdcard[0m
[1;[email protected]_ro[0m [1;34msys[0m
[1;[email protected][0m [1;34msystem[0m
[1;36metc[0m [0;0mueventd.goldfish.rc[0m
[1;32minit[0m [0;0mueventd.rc[0m
[1;32minit.aee.customer.rc[0m [1;36mvendor[0m
]0;@localhost:/[0;31m[localhost[m [0;34m/[m[0;31m]# [m
[0;31m[localhost[m [0;34m/[m[0;31m]# [m
Click to expand...
Click to collapse
bgcngm said:
That is not a problem. I have installed bash and it is using colored output, so you have to either use Ubuntu or install Ansicon (if running adb from Windows command prompt).
Have a read here.
Click to expand...
Click to collapse
I posted this exchange in the ROM thread in case anyone else did the same thing and had the same problem.
this phone is goos??
I have problem to push my apps to phone or debuging app on this rom.
When i try to install my app from eclips i see peroblem with invalid apk file. I've tried diffrent roms (lewa) or bruno's roms based on 4.0.4 and this problem is not reproducable. Only with latest 4.1.1 v1.1 is a problem. I tried even cook my own rom.... but i need read more about it... so far no succes in cooking roms.
Anybody making app for android and using zte v970 with bruno rom ?? Can anybody help with that problem ??
ras
Related
Does anyone know how to verify if phone is properly ROOTED? I typed in su then whoami on the phones Terminal Emulator and received the message Not Found. I was to receive root or whoami: unknown uid 0. everything appeared to go well when I ROOTed my Nexus 1. Perhaps I'm running the commands wrong?
Whoami works for me. It could be that you are not using a rom with busybox. If you type just su [enter] it should give you a # if you are rooted, instead of $.
I think your on to something! I do receive a # sign. But I do not have a custom ROM yet. Tomorrow I will be doing this. I will post my results. Thanks.
evilkorn said:
Whoami works for me. It could be that you are not using a rom with busybox. If you type just su [enter] it should give you a # if you are rooted, instead of $.
Click to expand...
Click to collapse
Evilkorn,
Your right....I had to download a Custom ROM to make Terminal emulator work. Command WHOAMI now works and Busybox shows up in my file manager! Thanks!
Small request from dan....
Would you be able to do me a big favor? I just need the output of the following ADB command:
adb shell ls -l /dev
Also, the build string would be useful, so maybe just the full output of the following?
adb shell getprop
Thanks, Dan
...and these outputs need to be from your device already running the rogers update
Sent from my LG Thrill 4G...
Sent from my LG Thrill 4G...
Here it is from V21B. It's equally unrootable, and I doubt they've changed it much in the c version:
ls -l /dev:
http://pastebin.com/A94yCW8C
adb shell getprop
http://pastebin.com/fFTWbFct
What do I need to do ?
batvan said:
What do I need to do ?
Click to expand...
Click to collapse
Open up terminal or cmd, go to the platform-tools folder of your android tools installation (install it if you don't have it installed). Type the commands listed in OP, paste the output in pastebin and post the links here.
will post tonight
here you go
http://pastebin.com/vmicxSMA
http://pastebin.com/MupPH2FJ
Hey, guys. I noticed ICS comes with a shell tool called "toolbox" (or maybe it's just my ROM). The traditional tool, called Busybox, is also installed. This tool is much more powerful--if basic shell commands like "mv" don't work properly, toolbox is probably to blame.
Or my system, the shell is mksh and the toolbox tools are installed in /system/bin and busybox is in /system/xbin. Is this the same on all ICS ROMs?
The command to modify the system path so the busybox tools are called preferentially to the toolbox tools is the following:
sed '/: place customisations above this line/i\PATH="/system/xbin:$PATH"' -i /etc/mkshrc
Like I said, I'm assuming my ROM is the same as other ROMs. But the point is to find the shell init file and add PATH="/system/xbin:$PATH" to it. As usual, make a system backup before making changes like this.
In this vein, does anybody know how to change the root user's shell? The "chsh" command doesn't exist on Android, nor does /etc/passwd.
What ROM are you using ?
IceColdSandwich (mostly based on AOKP) - http://forum.xda-developers.com/showthread.php?t=1450962
But is the shell and unix toolchain not common to all ICS builds? I don't know why AOKP and or the makers of this build would have chosen to use tools that are so obviously inferior to the more common tools.
To see which environment/toolchain you are using, check out the symlinks for some shell commands:
# ls -l `which mv`
To see if you have busybox installed:
# which busybox
To test it:
# busybox ls /system
To find which file configures your PATH (determines which executables get called):
# grep -r PATH= /etc
If you find a shell init file, you can edit and add the directory you want to the front of the path:
PATH="/directory/containing/busybox:$PATH"
fenstre said:
Hey, guys. I noticed ICS comes with a shell tool called "toolbox" (or maybe it's just my ROM). The traditional tool, called Busybox, is also installed. This tool is much more powerful--if basic shell commands like "mv" don't work properly, toolbox is probably to blame.
Or my system, the shell is mksh and the toolbox tools are installed in /system/bin and busybox is in /system/xbin. Is this the same on all ICS ROMs?
The command to modify the system path so the busybox tools are called preferentially to the toolbox tools is the following:
sed '/: place customisations above this line/i\PATH="/system/xbin:$PATH"' -i /etc/mkshrc
Like I said, I'm assuming my ROM is the same as other ROMs. But the point is to find the shell init file and add PATH="/system/xbin:$PATH" to it. As usual, make a system backup before making changes like this.
In this vein, does anybody know how to change the root user's shell? The "chsh" command doesn't exist on Android, nor does /etc/passwd.
Click to expand...
Click to collapse
You can just change the symlinks, with a quick shell script, run from the directory that has everything simlinked to toolbox
Something like:
for i in `busybox --list`
do
mv $i $i.android
ln -s `which busybox` $i
done
I still don't know the usefulness of busybox
:banghead:
Sent from my Xperia Live with WALKMAN using xda app-developers app
Hey everyone!
Recently I've had problems with using the command "adb remount". I thought it was a kernel problem but it happened with both Trinity and
Elementalx kernel. I have installed the universal naked drivers 0.73 for my nexus 5. I think it is a root problem since nothing pops up on my phone
when entering "adb root". I have tried to retype it several times and it doesn't say "adb is already running as root" or something like that like it used
to. It keeps repeating "restarting adbd as root" whenever I type that command. Sorry if I'm not clear :/
Thanks everyone!
I personally prefer to run adb via recovery. Have you tried this?
I have also failed to use remount in android.
The solution is as rootsu suggests.
Boot to recovery and do
Adb shell mount /system
Or
Adb shell mount /data
Which ever partition you want to be changing
Sent from my Nexus 5 using xda app-developers app
rootSU said:
I personally prefer to run adb via recovery. Have you tried this?
Click to expand...
Click to collapse
It does work that way but am I stuck on using this method?
Lxve said:
It does work that way but am I stuck on using this method?
Click to expand...
Click to collapse
I don't think so. It's just easier.
With SlimKat and elementalx*
I have adb and apps set as root in slimkat although I doubt this is a requirement in non-AOSP roms that do not have this option. Need USB debugging on and the screen unlocked
Code:
C:\Users\rootsu\Desktop\tools>adb root
adbd is already running as root
C:\Users\rootsu\Desktop\tools>adb shell
[email protected]:/ # mount -o remount,rw /system
mount -o remount,rw /system
[email protected]:/ # exit
exit
C:\Users\rootsu\Desktop\tools>adb push test.txt /system/
C:\Users\rootsu\Desktop\tools>adb shell
[email protected]:/ # cd system
cd system
[email protected]:/system # ls
ls
addon.d
app
bin
build.prop
core
etc
fonts
framework
lib
lost+found
media
priv-app
[B][COLOR="Red"][B]test.txt[/B][/COLOR][/B]
tts
usr
vendor
xbin
[email protected]:/system #
Hi,
Sorry if it's not the good forum, I have looked for the good one but I'm not very easy with English.
I want to sort out files by date in directories to delete automatically oldest backup files with a script. I have Cyanogenmod 11 on a Samsung Galaxy S2. I have installed Busybox (Stephen Stericson) on my phone from the Playstore to use the command ls -t because in standard we have only ls and ls -l. But when I tape ls -t, I have an error message "Unknown option". I've tried with Cyanogenmod 12 but I have the same problem.
I would want to know if ls -t doesn't function in BusyBox or if I have another problem.
Thank you.
No response :crying: .
Can somebody tell me if he haves a BusyBox which enables to use the command and which is this BusyBox : ls -t?
Thank you .
Are you sure you are using busybox?
try running: busybox ls -t
Ok, I have to type "busybox" first. I will try it, thank you.
Ok, it works when I add "busybox" in the command . I'm just a little surprised, I had understood the busybox commands replaced the shell commands.
You can also add: busybox sh
to your script and after that you could easily use ls -t without busybox.
Ok, thank you but it's not annoying to add "busybox". I don't create a lot of scripts .
Now I try to solve the problem to move files to the sdcard. It worked fine in 4.1.2 but with Cyanogenmod 11, I have a cross device link. I tried also "cp -p" to keep initial attributes but I have "Operation not permitted".