Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7fcf5c1 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

orbotservice: remove access to orbot database breaking pvc

parent b4a48573
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -824,20 +824,6 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
                }

            boolean success = runTorShellCmd();

            if (success) {
                try {
                    updateLegacyV2OnionNames();
                } catch (SecurityException se) {
                    logNotice("unable to upload legacy v2 onion names");
                }
                try {
                    updateV3OnionNames();
                } catch (SecurityException se) {
                    logNotice("unable to upload v3 onion names");
                }
            }

        } catch (Exception e) {
            logException("Unable to start Tor: " + e.toString(), e);
            stopTorAsync();
@@ -1388,12 +1374,6 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
            showToolbarNotification(getString(R.string.your_relay_settings_caused_an_exception_), ERROR_NOTIFY_ID, R.drawable.ic_stat_notifyerr);
            return null;
        }

        ContentResolver contentResolver = getApplicationContext().getContentResolver();
        addV3OnionServicesToTorrc(extraLines, contentResolver);
        addV3ClientAuthToTorrc(extraLines, contentResolver);
        addV2HiddenServicesToTorrc(extraLines, contentResolver);
        addV2ClientCookiesToTorrc(extraLines, contentResolver);
        return extraLines;
    }