Giter Site home page Giter Site logo

android-sudo's Introduction

Android-Sudo

Sudo installer for your Android device!

Note

  • This script is based on some shitcode, so I can not guarantee it will work on all devices, but it really should :P
  • This script is not a rooting tool, it is just a wrapper for su binary, which allows you to run commands as root user using sudo command prefix, like you normally doing it on Linux distros.
  • You need to have root privileges (su binary) installed to use this script.

Features

  • Easy to install & use.
  • Harmless.
  • Ability to set password for sudo.

Installation

Download installsudo.sh file and run it with root privileges: su -c ./installsudo.sh

Usage

Once installed, you can run any command as root using: sudo <command>. For example sudo whoami will return root.

android-sudo's People

Contributors

ferryar avatar masterdevx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-sudo's Issues

the script only accepts the password with the root account

Hello and sorry for disturbing. I have some issue with your script. I installed the script with:
su
./installsudo.sh
I putted a password and the installation completed successfully. but the script only accepts the password if i run sudo from a root shell (with the # symbol). This is pointless because if im'm already root it's nosense to run sudo. Instead if i run the script without root privileges it gives some error and fails the authentication.

Android-Sudo v1.1 by MasterDevX. Made in Ukraine.

[sudo] Installing sudo...
[sudo] Enter new password for root (leave empty for none): toor
[sudo] Confirm password: pass
[sudo] Remounting system as rw...
[sudo] Creating configuration file...
[sudo] Creating wrapper script...
[sudo] Remounting system as ro...
[sudo] Installation finished!
:/data/local/tmp # exit
ss9863a1h10:/data/local/tmp $ sudo whoami
chmod: chmod '/etc/sudo.conf' to 0644: Read-only file system
cat: /etc/sudo.conf: Permission denied
chmod: chmod '/etc/sudo.conf' to 0600: Read-only file system
[sudo] Enter password for root: pass
[sudo] Authentication failed!
instead with root::/data/data # sudo whoami
chmod: chmod '/etc/sudo.conf' to 0644: Read-only file system
chmod: chmod '/etc/sudo.conf' to 0600: Read-only file system
[sudo] Enter password for root: pass
root
Seems that the system ro is the issue, if i remount it rw the script does work fine but you see remounting system rw everytime it's pointless as to do it i need root.
installsudo.sh.txt
there is the script i'm using, i only edited the system mountpoint as my phone works with this one on this txt file. Also i'm ona gsi with phh-su if that matters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.