[Q] Superuser Command List - Android Q&A, Help & Troubleshooting

hi i want to know if exist a list of the SU commands ..i think it will be very useful to have it

Hi,
i think you got something wrong. There a linux commands an some need SU permission, thats all.
The available commands depends on the linux distribution you have, in our case android.
In PlayStore you can download TerminalEmulator
(https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=de), this is first step for using linux commands directly.
I don't know the list of all available commands for android, maybe some will help us ...
bye

Related

Better shell ?

does anyone know how to add new commands to shell ? or it is possible to install bash or something similiar inside, once we have root now ?
this shell inside is really "cuted" and almost all "ordinary(standart)" command I am missing
e.g: more vi and so on
maybe it works in different way , if yes just correct me
Any try to help is appreciated , but please stay on topic. because I can see it is one of the biggest problem here ..
Have you downloaded the newest version of busybox in the marked? This gives you a lot more commands then the first version posted with the initial root, one if them is vi.
thermoska said:
does anyone know how to add new commands to shell ? or it is possible to install bash or something similiar inside, once we have root now ?
this shell inside is really "cuted" and almost all "ordinary(standart)" command I am missing
e.g: more vi and so on
maybe it works in different way , if yes just correct me
Any try to help is appreciated , but please stay on topic. because I can see it is one of the biggest problem here ..
Click to expand...
Click to collapse
I did this:
Download bash binary from here: http://forum.xda-developers.com/showthread.php?t=537827
You can either replace the default "sh" with this (warning: the "sh" binary is the one that gives you root privileges in the first place, so you might loose them, I'm about to experiment with this and would post more details soon) or keep them both.
Download ASE from here: http://code.google.com/p/android-scripting/
This gives you an easy bridge to Android java using a scripting language of your preference.
When you use adb you will have VI and such available. I don't know much about the varios unix/linux shells available but I know that ADB is offering a lot of ****
Diabolico said:
When you use adb you will have VI and such available. I don't know much about the varios unix/linux shells available but I know that ADB is offering a lot of ****
Click to expand...
Click to collapse
no.. that's what busybox is for

when a cooked rom??

When will it arrive?for 101 i mean
It won't happen until we get permanant root. No telling when that will happen.
a better question is, when will root be available, doesn't seem we have people with the right skills interested on the 101
Does the rageagainstthemachine root patch not work? Are you able to get to the /data/local directory and place something there that will allow for a flash_image command to be run? Do we know if they have the same type of hardware-level protection like HTC does?
EDIT: Can someone do the following:
1. download the rage zip enclosed, and unzip to it's own directory
2. run the following from your command prompt, assuming you have the Android SDK installed and in the path
adb push root/rageagainstthecage /data/local/tmp
adb shell
chmod 0755 /data/local/tmp/rageagainstthecage
./data/local/tmp/rageagainstthecage
Click to expand...
Click to collapse
It should kick you out and display some messages on the screen...just not errors. Then type:
adb shell
Click to expand...
Click to collapse
You Should see a "#".
If so, then we have temp root and then we should be able to perform some other functions like flash a recovery, etc....
Sent with my fingertips and voice on my Evo
jerdog said:
Does the rageagainstthemachine root patch not work? Are you able to get to the /data/local directory and place something there that will allow for a flash_image command to be run? Do we know if they have the same type of hardware-level protection like HTC does?
EDIT: Can someone do the following:
1. download the rage zip enclosed, and unzip to it's own directory
2. run the following from your command prompt, assuming you have the Android SDK installed and in the path
It should kick you out and display some messages on the screen...just not errors. Then type:
You Should see a "#".
If so, then we have temp root and then we should be able to perform some other functions like flash a recovery, etc....
Sent with my fingertips and voice on my Evo
Click to expand...
Click to collapse
It does not work as of the latest Archos firmware. All the previous firmwares/z4root work fine for temp root. The ADB device part of the Archos just never comes back (doesn't show in device manager for instance). I do not know if this helps, but Archos also has a crippled busybox and it seems furthered crippled as of the last firmware upgrade.
Tsusai said:
It does not work as of the latest Archos firmware. All the previous firmwares/z4root work fine for temp root. The ADB device part of the Archos just never comes back (doesn't show in device manager for instance). I do not know if this helps, but Archos also has a crippled busybox and it seems furthered crippled as of the last firmware upgrade.
Click to expand...
Click to collapse
Maybe have something to do with newer ARM architecture?
Sent with my fingertips and voice on my Evo
Why do you need permanent root?
Archos kindly released SDE which provides a way to install your own builds in dual boot.
Some links for more info:
http://forum.xda-developers.com/showthread.php?t=871335
http://www.openaos.org/
IRC #openaos on freenode
Maurice
The SDE require booting in recovery mode, and people said that it's often not perfect.
A permanent root for main OS would still be very useful, and still allow us to dual boot when we need to..
I think so too. PermaRoot would be very usefull.

Using terminal emulator

Hey guys, I was wondering if anyone could tell me somewhere I could go to learn command prompts for the terminal emulator on our phone... I've googled it, but there's nothing there that im looking for... I wanna start to learn.. any help would be appreciated! Thanks in advance!
Sent from my SGH-T959 using XDA App
Learn some basic Linux commands.
Sent from my GT-I9000 using XDA App
Our phones are stripped versions of linux basically as stated previously
first type in "su" without "", so then you can edit your system files etc..
google some
some are
reboot
reboot download
reboot recovery
etc
xriderx66 said:
first type in "su" without "", so then you can edit your system files etc..
google some
some are
reboot
reboot download
reboot recovery
etc
Click to expand...
Click to collapse
Right, regardless of the two posts stating that Android is basically Linux being technically correct, you will find very few shell commands that actually work. Of the ones you do find, most of the switches and options will not work. The commands mentioned by xriderx66 are ADB commands, and you may have better luck concentrating on those. The phone does not have a full shell, it only has busybox, which is a stripped down version of a shell with most popular shell programs built in. The busybox on the phones are highly stripped down even for busybox. In fact this phone is the only shell I have ever used that does not even recognize the command switches for ls.
Here is an ADB tutorial.

What is Gfree?

I've got a few questions about Gfree.
1. What is it?
2. Is it a part of Android SDK or do I get it as stand alone tool?
3. Do I use it on the phone or on the PC in the command mode?
thanks.
this may give you a clue:
http://forum.xda-developers.com/wik..._Root_.2F_.22Permaroot.22.29_using_gfree_v0.7
if not try looking here: stfw
NO. I've been at that link already.
It does not explain what Gfree is.
It only says to use commands like this:# ./gfree -f -b hboot-eng.img -y recovery.img
No explanation.
And Google does not give any good links either.
bumping up.
G-free is an application to gain permanent root access to your phone. The commands are what determines what you want the application to do such as sim unlock, s=off and such.
Also it is a standalone tool but adb is used to push the file to the phone. Commands are done through terminal emulator on the phone.
lowandbehold - thank you very much.
So this is something like z4root or SuperOneClick -a stand alone rooting app...
It just needs commands through terminal emulator.
The same concerns Rage?

How to get command rsync?

Hi,
I should want to use rsync to copy new and modified files (and only these ones) on an USB key but it's not in my Androïd version even if I have an AICP rom which uses Cyanogenmod 12 (I've red rsync is in Cyanogenmod). I use this command on a Linux box in a .sh script and it's convenient. I would do the same thing on my phone with using SManager if it's possible.
I've looked for this command for Androïd but a search only returns Rsync Backup which is not anymore on Google Play. It's an application, I don't know if I can get a command to use it in a script. I've also done searches on the forum and if I could see guys use it, I haven't found how they get it.
Does somebody knows how to get it?
Thank you .
I've found a binary command :
http://ptspts.blogspot.fr/2015/03/how-to-use-rsync-over-adb-on-android.html
It's necessary to install it in a system directory otherwise I can't give it execute permissions. I put it in /system/bin

Categories

Resources