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

Commit 1930a046 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Guillaume Jacquart
Browse files

orbotservice: remove access to orbot database breaking pvc #5528

parent 1febd02a
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -704,14 +704,6 @@ public class OrbotService extends VpnService implements OrbotConstants {

            startTorService();
            showTorServiceErrorMsg = true;

            if (Prefs.hostOnionServicesEnabled()) {
                try {
                    updateV3OnionNames();
                } catch (SecurityException se) {
                    logNotice(getString(R.string.log_notice_unable_to_update_onions));
                }
            }
        } catch (Exception e) {
            logException(getString(R.string.unable_to_start_tor) +  " " + e.getLocalizedMessage(), e);
            stopTorOnError(e.getLocalizedMessage());
@@ -1105,13 +1097,6 @@ public class OrbotService extends VpnService implements OrbotConstants {
            showToolbarNotification(getString(R.string.your_relay_settings_caused_an_exception_), ERROR_NOTIFY_ID, R.drawable.ic_stat_notifyerr);
            return null;
        }

        if (Prefs.hostOnionServicesEnabled()) {
            var contentResolver = getApplicationContext().getContentResolver();
            addV3OnionServicesToTorrc(extraLines, contentResolver);
            addV3ClientAuthToTorrc(extraLines, contentResolver);
        }

        return extraLines;
    }