OSDN Git Service

disable market open
[android-x86/external-koush-Superuser.git] / Superuser / jni / su / su.c
index 5a57fef..72d7dc6 100644 (file)
@@ -712,9 +712,9 @@ int main(int argc, char *argv[]) {
 
     // verify superuser is installed
     if (stat(ctx.user.base_path, &st) < 0) {
-        // send to market
-        if (0 == strcmp(JAVA_PACKAGE_NAME, REQUESTOR))
-            silent_run("am start -d http://www.clockworkmod.com/superuser/install.html -a android.intent.action.VIEW");
+        // send to market (disabled, because people are and think this is hijacking their su)
+        // if (0 == strcmp(JAVA_PACKAGE_NAME, REQUESTOR))
+        //     silent_run("am start -d http://www.clockworkmod.com/superuser/install.html -a android.intent.action.VIEW");
         PLOGE("stat %s", ctx.user.base_path);
         deny(&ctx);
     }