keep disabled org.fdroid.superuser for a while

This commit is contained in:
David Black 2013-03-04 13:59:45 +00:00
parent a7de91e1e3
commit 2d810ac024
2 changed files with 94 additions and 3 deletions

View file

@ -6,22 +6,33 @@ Issue Tracker:https://github.com/koush/Superuser/issues
Summary:Manage root access
Description:
'''N.B'''We don't provide a flashable zip that could be flashed
in the event that something goes wrong. You can try the
Google Play description for a link to the developer's zip.
You must already have root for this to work.
An app to allow or disallow apps' request to run as root, like the
Superuser app that comes with custom ROMs. The difference here is
that the entire app can be built from source with the Android
SDK, including the '''su''' binary which is bundled within. The app
SDK, including the '''su''' binary which is bundled within and
copied to /system when the prompts are followed. The app
also intends to enforce an Android root permission that can be
managed like any other permission. Should work with both ARM and x86.
.
Requires Root:Yes
Repo Type:git
Repo:https://github.com/koush/Superuser.git
Build Version:1.0.0.0,1000,!not released 91799b472f,subdir=Superuser,\
update=force,srclibs=KoushWidgets@c23c498607,prebuild=\
Build Version:1.0.0.7,1007,!wait a bit 1760433,subdir=Superuser,patch=packageid.patch,\
srclibs=KoushWidgets@039589973,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/NDK_TOOLCHAIN_VERSION=4.7/NDK_TOOLCHAIN_VERSION=4.6/g' jni/Application.mk,buildjni=yes
Auto Update Mode:None
Update Check Mode:None
Current Version:1.0.0.7
Current Version Code:1007

View file

@ -0,0 +1,80 @@
diff --git a/Superuser/build.xml b/Superuser/build.xml
index 5500c8a..565fe40 100644
--- a/Superuser/build.xml
+++ b/Superuser/build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="Superuser" default="help">
+<project name="org.fdroid.superuser" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
@@ -68,39 +68,6 @@
-->
<import file="custom_rules.xml" optional="true" />
- <target name="-pre-build">
- <exec executable="${ndk.dir}/${ndk.executable}" failonerror="true">
- <arg value="-j8" />
- </exec>
- </target>
-
- <target name="clean" depends="android_rules.clean">
- <exec executable="${ndk.dir}/${ndk.executable}" failonerror="true">
- <arg value="clean"/>
- </exec>
- <delete file="bin/update.zip"/>
- <delete file="bin/Superuser.apk"/>
- <delete dir="bin/META-INF" />
- </target>
-
- <target name="-post-build">
- <mkdir dir="bin/recoveryzip/META-INF/com/google/android" />
- <copy file="assets/update-binary" tofile="bin/recoveryzip/META-INF/com/google/android/update-binary"/>
- <copy file="bin/Superuser-release.apk" tofile="bin/recoveryzip/Superuser.apk"/>
-
- <exec executable="zip" failonerror="true" dir="bin/recoveryzip">
- <arg value="-ry"/>
- <arg value="../update.zip"/>
- <arg value="."/>
- </exec>
- <exec executable="zip" failonerror="true" dir="libs">
- <arg value="-ry"/>
- <arg value="../bin/update.zip"/>
- <arg value="armeabi"/>
- <arg value="x86"/>
- </exec>
- </target>
-
<!-- Import the actual build file.
To customize existing targets, there are two options:
@@ -121,5 +88,27 @@
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
-
+ <target name="-package-resources" depends="-crunch">
+ <exec executable="${aapt}" failonerror="true">
+ <arg value="package" />
+ <arg value="-f" />
+ <arg value="-M" />
+ <arg path="AndroidManifest.xml" />
+ <arg value="-A" />
+ <arg path="${asset.absolute.dir}" />
+ <arg value="-F" />
+ <arg path="${out.absolute.dir}/${resource.package.file.name}" />
+ <arg value="-I" />
+ <arg path="${android.jar}" />
+ <arg value="-S" />
+ <arg path="${resource.absolute.dir}" />
+ <arg value="-S" />
+ <arg path="${android.library.reference.1}/res" />
+ <arg value="--extra-packages" />
+ <arg value="com.koushikdutta.widgets" />
+ <arg value="--auto-add-overlay" />
+ <arg value="--rename-manifest-package" />
+ <arg value="org.fdroid.superuser" />
+ </exec>
+ </target>
</project>