Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[SCRIPT][ANDROID] SUDo for Android

OP aureljared

10th May 2014, 03:25 PM   |  #1  
aureljared's Avatar
OP Senior Member
Flag Quezon City
Thanks Meter: 463
 
709 posts
Join Date:Joined: May 2013
More
Earlier today I came up with the idea of a sudo implementation for Android. I mean, it's pretty tiring to have to enter 'su' first before issuing root commands, right? Sometimes we even forget to do that.

Description:
Well, this isn't a binary, but a script. What it does is just take the commands you pass to it and append it to 'su -c.'
I know it's dead simple but I wanted to bring this over to Android in an easy way, and I had free time

Usage:
Code:
sudo [command]    - run [command] as root
sudo -b                    - use bash as root
sudo -s                    - like -b, but with sh
sudo -h                    - display the help message
Download:
Dropbox
Put it in /system/bin or /system/xbin, set perms to 755.
Last edited by aureljared; 19th May 2014 at 02:06 AM.
The Following 2 Users Say Thank You to aureljared For This Useful Post: [ View ]
10th May 2014, 03:26 PM   |  #2  
aureljared's Avatar
OP Senior Member
Flag Quezon City
Thanks Meter: 463
 
709 posts
Join Date:Joined: May 2013
More
Changelog:
Quote:

v1.1
added support for parameters passed to the command that needs root privileges, e.g 'sudo mount -t'

v1.0
initial release

Sent from my GT-I8730 using Tapatalk
Last edited by aureljared; 19th May 2014 at 02:09 AM.
10th May 2014, 03:27 PM   |  #3  
aureljared's Avatar
OP Senior Member
Flag Quezon City
Thanks Meter: 463
 
709 posts
Join Date:Joined: May 2013
More
And another!

Sent from my GT-I8730 using Tapatalk
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes