Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Aug 10, 2012
  1. @cyanogen

    Revert "Fix logging macros in su source"

    cyanogen authored
    This reverts commit dfbe581.
Commits on Jul 22, 2012
  1. @nadlabak @tpruvot

    Don't wait when only reporting

    nadlabak authored tpruvot committed
    Change-Id: Ia38fb9de18a0523243556e86cffc9648b6676ce5
Commits on Jul 17, 2012
  1. @nk111

    Fix logging macros in su source

    nk111 authored
    Change-Id: I078d10fc8953827e99ba800ceef7217b7696eb37
Commits on Jul 8, 2012
  1. @ChainsDD

    Revert "Revert "Update version""

    ChainsDD authored
    This reverts commit 15ea355.
  2. @ChainsDD

    Revert "Revert "Use flat files for stored apps""

    ChainsDD authored
    This reverts commit 588c414.
  3. @ChainsDD

    Revert "Use flat files for stored apps"

    ChainsDD authored
    This reverts commit ec37525.
  4. @ChainsDD

    Revert "Update version"

    ChainsDD authored
    This reverts commit ff77b49.
Commits on Jul 7, 2012
  1. @ChainsDD

    Update version

    ChainsDD authored
  2. @ChainsDD
Commits on Jul 1, 2012
  1. @ChainsDD
Commits on Jun 4, 2012
  1. @ChainsDD
  2. @ChainsDD

    Build su as static.

    ChainsDD authored
    With so many different versions of Android, using a dynamically linked
    binary is just not practical, since things can be wildly different on
    different versions.
  3. @ChainsDD

    Use am to send intents rather than a binder transaction.

    ChainsDD authored
    This commit is by koush and is mostly copied from the CyanogenMod fork
    of su.
    By using am instead of a binder transaction, we can guarantee
    compatibility with current and future versions of Android.
Commits on Mar 3, 2012
  1. Change euid back to root before finally set a new id

    git-core authored
    Fixes a bug reported in a comment to the issue #9 against su-binary
    (see ChainsDD#9 (comment) for details).
    Thanks to Erik Pilsits ( for the report.
    Add the euid change before populate_environment() anticipating we have to merge
    the commit "Inherit LD_LIBRARY_PATH ...", which needs root credentials in order to
    successfully open /proc/<ppid>/environ.
Commits on Feb 25, 2012
Commits on Feb 20, 2012
  1. Revert "Inherit the environment of the caller process for a new proce…

    git-core authored
    …ss image"
    This reverts commit e0329ce.
Commits on Feb 18, 2012
  1. Merge branch 'gc' into gc-ics

    git-core authored
Commits on Jan 29, 2012
  1. Provide LOG_TAG for db too

    git-core authored
  2. Call property_get() only once

    git-core authored
    property_get() iterates over potentially unbound array of properties. There is no good for
    calling it several times per su invocation.
  3. Pass the rest of arguments in the command line to a callee

    git-core authored
    Thus, someone may invoke su as
    su -s shell uid args...
    For example,
    su -s /system/xbin/busybox root mount -o rw,remount /system
Commits on Jan 21, 2012
  1. Handle -l option

    git-core authored
  2. Return special exit code when terminating by signal

    git-core authored
    So user could distinguish between SIGHUP and other abnormal terminations at least
  3. Accurately handle -c option

    git-core authored
  4. Remove the communication socket if Ctrl+C (SIGINT) or Ctrl+\ (SIGQUIT…

    git-core authored
    …) are pressed
Commits on Jan 14, 2012
  1. Check syscall return codes

    git-core authored
Commits on Jan 11, 2012
  1. @ChainsDD

    Bump version

    ChainsDD authored git-core committed
  2. Don't allow garbage instead of real uid in the command line

    git-core authored
    Replace atoi(3) by strtoul(3), the latter allows to check parse errors
  3. Be compatible with other implementation of su

    git-core authored
    o use getopt_long(3), so -l, --login can be allowed anywhere in the argument list
    o add -m and -p which do nothing
    o su -h outputs usage in stdout and exits with 0 while
      su with invalid options outputs usage in stderr and exits with 2 now
  4. Exit with false status if exec(3) fails ...

    git-core authored
    ... and show errno from exec(3) to the user
Something went wrong with that request. Please try again.