GithubHelp home page GithubHelp logo

sirpryderi / open-hosts-editor Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 7.0 1.2 MB

Free and open source application to edit the /etc/hosts file for android devices. Root required.

Home Page: https://play.google.com/store/apps/details?id=me.vittorio_io.openhostseditor

License: Apache License 2.0

Java 99.15% Shell 0.85%

open-hosts-editor's Introduction

Open Hosts Editor for Android

icon Build Status


โš  ROOT REQUIRED

Open Hosts Editor is a free and open source application to edit the /etc/hosts file for Android devices.

It is available for download from Play Store.

Your device must be rooted. Not all devices have the hosts file in the same path, so it might not work on yours. You can submit an issue so that I can investigate.

The application is free and contains no ad.

Contributions

๐ŸŒ This project is looking for translators!

Open Hosts Editor needs your help, all contributions are welcome! Open a PR, submit an issue, or suggest a feature!

ko-fi

Screenshots

screenshot screenshot screenshot

Building the app

The required android SDK is 29.

The easiest way of building and running the app is by opening the project on Android Studio.

Building from the command line is equally easy, just run:

Windows:

gradlew.bat build

*nix:

./gradlew build

open-hosts-editor's People

Contributors

breakdowns avatar phrogg avatar sirpryderi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

open-hosts-editor's Issues

Import from file feature

A few users have requested the ability to import from a txt file.

It also seems like the direct edit button (pen icon) is not very intuitive, possible UX improvement needed.

Crash on backup

User reported a crash when using the backup function.

Here's the stack trace:

java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {me.vittorio_io.openhostseditor/me.vittorio_io.openhostseditor.activities.MainActivity}: java.lang.RuntimeException: Could not create file directory.
    at android.app.ActivityThread.deliverResults(ActivityThread.java:4965)
    at android.app.ActivityThread.handleSendResult(ActivityThread.java:5006)
    at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2068)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:224)
    at android.app.ActivityThread.main(ActivityThread.java:7551)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
Caused by: java.lang.RuntimeException: Could not create file directory.
    at me.vittorio_io.openhostseditor.model.HostsManager.getBackupStorageDirectory(HostsManager.java:209)
    at me.vittorio_io.openhostseditor.model.HostsManager.saveBackup(HostsManager.java:183)
    at me.vittorio_io.openhostseditor.activities.MainActivity.onRequestPermissionsResult(MainActivity.java:273)
    at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:8408)
    at android.app.Activity.dispatchActivityResult(Activity.java:8253)
    at android.app.ActivityThread.deliverResults(ActivityThread.java:4958)
    ... 11 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.