Disabled: Back to using upstream's app id
Categories:
  - Security
License: Apache-2.0
SourceCode: https://github.com/koush/Superuser
IssueTracker: https://github.com/koush/Superuser/issues

AutoName: Superuser
Summary: Manage root access
Description: |-
    An app to allow or forbid apps' requests to run as root. The entire app can be
    built from source with the Android SDK and NDK, including the '''su''' binary
    which is bundled within and copied to /system when the prompts are followed. You
    must already have root for this to work, because it leverages the existing su
    and Superuser app to install itself. However, if you know what you are doing you
    can use this apk as a su/Superuser substitute if you are gaining an initial
    root. Once the install is completed you can disable or remove the old app.

RequiresRoot: 'yes'

RepoType: git
Repo: https://github.com/koush/Superuser.git

Builds:
  - versionName: 1.0.1.3
    versionCode: 1013
    commit: bbc08f1
    subdir: Superuser
    patch:
      - about.patch
      - packageid.patch
    srclibs:
      - KoushWidgets@d1b10a53171
    prebuild:
      - echo "android.jar=$$SDK$$/platforms/android-17/android.jar" > ant.properties
      - sed -i 's@\(android.library.reference.1=\).*@\1$$KoushWidgets$$@' project.properties
      - sed -i 's/#define REQUESTOR JAVA_PACKAGE_NAME/#define REQUESTOR "org.fdroid.superuser"/g'
        jni/su/su.h
      - sed -i 's/NDK_TOOLCHAIN_VERSION=4.7/NDK_TOOLCHAIN_VERSION=4.6/g' jni/Application.mk
    buildjni:
      - yes

  - versionName: 1.0.1.6
    versionCode: 1016
    commit: 2be82fa09
    subdir: Superuser
    patch:
      - about.patch
      - packageid.patch
    srclibs:
      - KoushWidgets@ddc30339c3
    prebuild:
      - echo "android.jar=$$SDK$$/platforms/android-17/android.jar" > ant.properties
      - sed -i 's@\(android.library.reference.1=\).*@\1$$KoushWidgets$$@' project.properties
      - sed -i 's/#define REQUESTOR JAVA_PACKAGE_NAME/#define REQUESTOR "org.fdroid.superuser"/g'
        jni/su/su.h
      - sed -i 's/NDK_TOOLCHAIN_VERSION=4.7/NDK_TOOLCHAIN_VERSION=4.6/g' jni/Application.mk
    buildjni:
      - yes

  - versionName: 1.0.1.7
    versionCode: 1017
    commit: 27c5fb19a9e
    subdir: Superuser
    patch:
      - about.patch
      - packageid-2.patch
    srclibs:
      - KoushWidgets@ddc30339c3
    prebuild:
      - echo "android.jar=$$SDK$$/platforms/android-17/android.jar" > ant.properties
      - sed -i 's@\(android.library.reference.1=\).*@\1$$KoushWidgets$$@' project.properties
      - sed -i 's/#define REQUESTOR JAVA_PACKAGE_NAME/#define REQUESTOR "org.fdroid.superuser"/g'
        jni/su/su.h
    buildjni:
      - yes

  - versionName: 1.0.1.8
    versionCode: 1018
    disable: binary blob - reboot.png (at 991f7068c8ce)
    commit: 991f7068c8ce
    subdir: Superuser
    patch:
      - about.patch
      - packageid-2.patch
    srclibs:
      - KoushWidgets@ddc30339c3
    prebuild:
      - echo "android.jar=$$SDK$$/platforms/android-17/android.jar" > ant.properties
      - sed -i 's@\(android.library.reference.1=\).*@\1$$KoushWidgets$$@' project.properties
      - sed -i 's/#define REQUESTOR JAVA_PACKAGE_NAME/#define REQUESTOR "org.fdroid.superuser"/g'
        jni/su/su.h
    buildjni:
      - yes

  - versionName: 1.0.2.1
    versionCode: 1021
    disable: No source for assets/reboot - it's just an unidentified binary that gets
        executed - https://github.com/koush/Superuser/issues/184

  - versionName: 1.0.2.8
    versionCode: 1027
    commit: 74363eaa79
    subdir: Superuser
    patch:
      - packageid_1028.patch
    srclibs:
      - 1:KoushWidgets@2cc45f3
    prebuild:
      - echo "android.jar=$$SDK$$/platforms/android-19/android.jar" > ant.properties
      - sed -i 's/#define REQUESTOR JAVA_PACKAGE_NAME/#define REQUESTOR "org.fdroid.superuser"/g'
        jni/su/su.h
    buildjni:
      - yes

AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: 1.0.2.8
CurrentVersionCode: 1027