NetGuard | A simple way to block access to the internet per app

 by   M66B Java Version: 2.305 License: GPL-3.0

kandi X-RAY | NetGuard Summary

kandi X-RAY | NetGuard Summary

NetGuard is a Java library. NetGuard has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has medium support. You can download it from GitHub.

NetGuard provides simple and advanced ways to block access to the internet - no root required. Applications and addresses can individually be allowed or denied access to your Wi-Fi and/or mobile connection.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              NetGuard has a medium active ecosystem.
              It has 874 star(s) with 112 fork(s). There are 45 watchers for this library.
              There were 2 major release(s) in the last 12 months.
              NetGuard has no issues reported. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of NetGuard is 2.305

            kandi-Quality Quality

              NetGuard has 0 bugs and 0 code smells.

            kandi-Security Security

              NetGuard has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              NetGuard code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              NetGuard is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              NetGuard releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              NetGuard saves you 16194 person hours of effort in developing the same functionality from scratch.
              It has 32199 lines of code, 455 functions and 172 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed NetGuard and discovered the below as its top functions. This is intended to give you an instant insight into NetGuard implemented functionality, and help decide if they suit your requirements.
            • Restore the preferences
            • Creates the intent to create the export directory
            • Show a help dialog
            • This method initializes the intent to open the document
            • Override handleBindViewHolder to bind to the itemHolder
            • Update rule
            • Make menu item
            • Overridden to set the content view
            • Send logcat
            • Unregisters listener
            • Handle the service intent
            • Read data from the view
            • Called when a menu item is selected
            • Handles an option selection select
            • Show an access notification for the user
            • Get allowed rules
            • Start native storage
            • Override this to set the status of the intent
            • Initializes the context
            • Called when a shared preference is changed
            • Initialize the activity
            • Initializes the view
            • Reads values from the view
            • Creates a builder based on the configured rules
            • On upgrade
            • Called when the menu item is selected
            Get all kandi verified functions for this library.

            NetGuard Key Features

            No Key Features are available at this moment for NetGuard.

            NetGuard Examples and Code Snippets

            No Code Snippets are available at this moment for NetGuard.

            Community Discussions

            QUESTION

            HTTP request fails even if the connection is active
            Asked 2021-Mar-12 at 16:58

            I'm facing a problem with an http request done in HTTP.java.

            On desktop all works fine (that request is not performed because it's necessary only on Android).

            In Android all works without that http request.

            After that that http request is made, all others fail after timeout with UnknownHostException error, as if they no longer have access to the internet connection, even if it is active. Also after minutes and after the onResume all http requests fail. Although the app cannot get an http response, the AdMob ad appears in my App, so I think that probably the connection works (or does the AdMob library cache some ads and show them when needed?).

            Often, in these cases sometimes it works again:

            • uninstalling and reinstalling the App from Android Studio
            • closing the App, waiting some minutes and reopening it
            • clearing App data from the device
            • waiting an undefined amount of time

            After several attempts I discovered that as soon as the problem occurs, almost every time, if I activate the airplane mode and then disable it, the data connection is deactivated and then reactivated, and the App can immediately execute all subsequent http requests without having to do anything else on your device and without even having to reopen the application.

            • tested with wifi on a 1GB fibra network: same error
            • I checked the connection: it is stable, in wifi and also with SIM
            • in the manifest there is the permission for using internet (otherwise it would never have worked)
            • at the same time, the same App on desktop works perfectly and at the best speed, receiving http responses in less than 1 second, so the server isn't the problem
            • I tested also with the url https://www.google.it: same error, the same url is reachable in the device via browser in less than 1 second
            • as in the line .timeout(10000) I'm using a timeout of 10 seconds, the server has timeout set to 60 seconds
            • checked the server SSL "quality" at https://www.ssllabs.com/ssltest: got "A" in "Overall Rating"
            • done the SIM "reboot" directly with a Vodafone operator

            I'm testing on a real device with a flat 4G connection and with wifi, with "NetGuard - no-root firewall" VPN App installed.

            This VPN works very well with all the other apps and probably mine too, but I can't rule out that it's the problem, although I hardly think it is (I use it since years without problems).

            There is something wrong in my code? Or at least, how can I know the exact cause of this error?

            Thanks.

            AndroidLauncher.java:

            ...

            ANSWER

            Answered 2021-Mar-02 at 03:51

            That error maybe relate to VPN connect, please close the application, off VNP if it was connected, re-connect to VPN and restart you application.

            In all case, you must be connect the VPN before open the application.

            Source https://stackoverflow.com/questions/66303303

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install NetGuard

            You can download it from GitHub.
            You can use NetGuard like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the NetGuard component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For questions, feature requests and bug reports, please use this XDA-Developers forum thread. There is support on the latest version of NetGuard only. There is no support on things that are not directly related to NetGuard. There is no support on building and developing things by yourself.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by M66B

            XPrivacy

            by M66BJava

            FairEmail

            by M66BJava

            XPrivacyLua

            by M66BJava

            element53

            by M66BJava

            BackPackTrackII

            by M66BJava