enable org.fdroid.superuser

This commit is contained in:
David Black 2013-03-06 23:58:38 +00:00
parent b4f74f4e50
commit 0a711483aa
2 changed files with 111 additions and 15 deletions

View file

@ -6,18 +6,28 @@ 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
An app to allow or disallow apps' requests 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 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.
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.
It should work with both ARM and x86.
We don't provide a flashable zip that could be flashed
in the event that something goes wrong. Assuming you have a
custom recovery, you can try the
Google Play description of com.koushikdutta.superuser
for a link to the developer's zip, which may need to be pushed
to /tmp via adb. Note that, because we use a different package ID
there should be no conflict between our's and his.
So, if you're not confident you can fix a bad
installation and your current Superuser isn't broken, it is probably
best to avoid it.
.
Requires Root:Yes
@ -25,15 +35,15 @@ Requires Root:Yes
Repo Type:git
Repo:https://github.com/koush/Superuser.git
Build Version:1.0.0.7,1007,!wait a bit 1760433,subdir=Superuser,patch=packageid.patch,\
srclibs=KoushWidgets@039589973,prebuild=\
Build Version:1.0.1.3,1013,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 '50\,114d' src/com/koushikdutta/superuser/AboutFragment.java && \
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
Auto Update Mode:None
Update Check Mode:None
Current Version:1.0.0.7
Current Version Code:1007
Current Version:1.0.1.3
Current Version Code:1013

View file

@ -0,0 +1,86 @@
diff --git a/Superuser/src/com/koushikdutta/superuser/AboutFragment.java b/Superuser/src/com/koushikdutta/superuser/AboutFragment.java
index 18203b6..1be806c 100644
--- a/Superuser/src/com/koushikdutta/superuser/AboutFragment.java
+++ b/Superuser/src/com/koushikdutta/superuser/AboutFragment.java
@@ -39,80 +39,17 @@ public class AboutFragment extends BetterListFragment {
catch (NameNotFoundException e) {
}
+ final String uri = "https://f-droid.org/repository/browse/?fdid=org.fdroid.superuser";
addItem(R.string.about, new ListItem(getInternal(), getString(R.string.superuser), version, R.drawable.ic_launcher) {
@Override
public void onClick(View view) {
super.onClick(view);
Intent i = new Intent();
- i.setData(Uri.parse("market://details?id=com.koushikdutta.superuser"));
- startActivity(i);
- }
- });
-
- addItem(R.string.about, new ListItem(getInternal(), "Koushik Dutta", "@koush", R.drawable.koush) {
- @Override
- public void onClick(View view) {
- super.onClick(view);
- Intent i = new Intent();
- i.setClassName("com.twitter.android", "com.twitter.android.ProfileActivity");
- i.putExtra("screen_name", "koush");
- try {
- startActivity(i);
- }
- catch (Exception ex) {
- ex.printStackTrace();
- }
-
- }
- });
-
- final String uri = "http://github.com/koush/Superuser";
- addItem(R.string.about, new ListItem(getInternal(), "Github", uri, R.drawable.github) {
- @Override
- public void onClick(View view) {
- super.onClick(view);
- Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setData(Uri.parse(uri));
startActivity(i);
}
});
- addItem(R.string.apps, new ListItem(getInternal(), "ROM Manager", "The ultimate backup, restore, and ROM installation tool", R.drawable.clockwork512) {
- @Override
- public void onClick(View view) {
- super.onClick(view);
- Intent i = new Intent();
- i.setData(Uri.parse("market://details?id=com.koushikdutta.rommanager"));
- startActivity(i);
- }
- });
- addItem(R.string.apps, new ListItem(getInternal(), "Carbon", "Android's missing backup solution", R.drawable.carbon) {
- @Override
- public void onClick(View view) {
- super.onClick(view);
- Intent i = new Intent();
- i.setData(Uri.parse("market://details?id=com.koushikdutta.backup"));
- startActivity(i);
- }
- });
- addItem(R.string.apps, new ListItem(getInternal(), "DeskSMS", "Seamlessly text message from your email, browser, or instant messenger", R.drawable.desksms) {
- @Override
- public void onClick(View view) {
- super.onClick(view);
- Intent i = new Intent();
- i.setData(Uri.parse("market://details?id=com.koushikdutta.desktopsms"));
- startActivity(i);
- }
- });
- addItem(R.string.apps, new ListItem(getInternal(), "Tether", "Use your phone's web connection on a laptop or PC", R.drawable.tether) {
- @Override
- public void onClick(View view) {
- super.onClick(view);
- Intent i = new Intent();
- i.setData(Uri.parse("market://details?id=com.koushikdutta.tether"));
- startActivity(i);
- }
- });
}
}