diff --git a/libnetcipher/src/info/guardianproject/netcipher/proxy/OrbotHelper.java b/libnetcipher/src/info/guardianproject/netcipher/proxy/OrbotHelper.java index 5487087..169d628 100644 --- a/libnetcipher/src/info/guardianproject/netcipher/proxy/OrbotHelper.java +++ b/libnetcipher/src/info/guardianproject/netcipher/proxy/OrbotHelper.java @@ -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)}} @@ -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