Recommended Posts


Torrent App Blocker

https://drive.google.com/file/d/13IQMpqXULyI9jaILf6OmXBLT3Qq3s36k/view?usp=drivesdk

1. Download
2. Put the file into "libs" folder.
3. Refresh build.
4. Copy the code below. 
5. 

- For SSH/SSL src

Paste it in the HomeFragment.java, look for the "return mView;" code inside the onCreateView method of the fragment class.
* if you will get an error on the "BlockApps", just long press it and fix import"

- For Openvpn Connect Base src

Paste it inside the onCreate method of the OpenVPNClient.java or Main.java (for BlackVPN src)
6. Refresh build.
7. Test it .. connect your vpn. After connecting, try to install any torrent app from the playstore and try to check your vpn if it will disconnect will the torrent app is installing
8. Feedback

/** Copy and Pasted these codes **/

 

/** For SSH/SSL src **/
BlockApps b = new BlockApps(getActivity());
        b.runBlocker();
        b.setOnDetectedAppListener(new BlockApps.OnDetectedAppListener(){

                @Override
                public void OnDetectedAppListener()
                {
                    if (OreoService.isRunning)
                    {
                        startStop(false);
                    }
                }
        });

 

/** For OpenVPN Connect Base src **/

BlockApps b = new BlockApps(this);
        b.runBlocker();
            b.setOnDetectedAppListener(new BlockApps.OnDetectedAppListener(){

                    @Override
                    public void OnDetectedAppListener()
                    {
                        submitDisconnectIntent(RETAIN_AUTH);
                    }
                    
        });

  • Heart 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now