Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,7 @@ public class OrbotHelper implements ProxyHelper {
public final static String STATUS_STARTS_DISABLED = "STARTS_DISABLED";

public final static String ACTION_START_TOR = "org.torproject.android.START_TOR";
/**
* Intent Action to request V2 Onion Services
* See {{@link #requestHiddenServiceOnPort(Activity, int)}}
*/
@Deprecated
public final static String ACTION_REQUEST_HS = "org.torproject.android.REQUEST_HS_PORT";

/**
* Intent Action to request V3 Onion Services
* See {{@link #requestV3OnionServiceOnPort(Activity, int, int, String)}}
Expand Down Expand Up @@ -196,20 +191,6 @@ private static boolean isAppInstalled(Context context, String uri) {
}
}

/**
* This method creates a V2 Onion Service which is being phased out by tor soon.
* Instead, you should use {{@link #requestV3OnionServiceOnPort(Activity, int, int, String)}}
* to create a V3 Onion Service. See https://blog.torproject.org/v2-deprecation-timeline
*/
@Deprecated
public static void requestHiddenServiceOnPort(Activity activity, int port) {
Intent intent = new Intent(ACTION_REQUEST_HS);
intent.setPackage(ORBOT_PACKAGE_NAME);
intent.putExtra("hs_port", port);

activity.startActivityForResult(intent, HS_REQUEST_CODE);
}

/**
* Tells Orbot to spin up a v3 Onion Service for your application
* @param activity
Expand Down