x-falcon / Virtual-Hosts

hosts for android,implement by vpn mode,supports wildcard DNS records
GNU General Public License v3.0
1.24k stars 219 forks source link

Unable to browse local #24

Closed plnkeye21 closed 5 years ago

plnkeye21 commented 6 years ago

When selecting a host file I can select the 3 lines in the upper left, a window slides out from the side but I cannot move the highlighted item to the internal drive. When I move up or down the unfocused window scrolls through files on the external drive that for some reason the directory is pointed to. I'm trying to switch the directory and browse to the internal drive of an Nvidia Shield TV. I have a host file on the root of the internal drive and want to point to this file.

10pmStalker commented 6 years ago

Exact same issue on Nvidia Shield. Hoping it can be resolved

x-falcon commented 6 years ago

@plnkeye21 @10pmStalker Please try long click the select host file button, then you can use online hosts file by input url. You can put your hosts file to github, when need change hosts, just change it on github , and click down again.

10pmStalker commented 6 years ago

Tried that. It turns green but still constant errors in lazyman. There's no way to manually apply your own file anymore?

plnkeye21 commented 6 years ago

I've honestly got no clue how to do that. No idea how github works. Plus this doesn't really answer my question, why can I not use a function you included in the application?

10pmStalker commented 6 years ago

I think it has something to do with Android 8.0

10pmStalker commented 6 years ago

@x-falcon I'm trying to set it up on built in Android TV. Says "download success get 2 host records" What should I be doing on this screen? I tried every option and nothing works.

https://i.imgur.com/IdHgjNsh.jpg

x-falcon commented 6 years ago

@10pmStalker 1,click from internet -> 2,click confirm -> 3,click the big switch. Then it will take effect. You can use ping command to check.

x-falcon commented 6 years ago

@plnkeye21 Can you make a screenshot of the problem?Maybe I didn't understand the mistakes you met.

plnkeye21 commented 6 years ago

https://imgur.com/a/mUHfIxg I can't control this menu to select "SHIELD". It automatically defaults to an external drive, so I select the 3 lines in the upper left and get this menu. However when I scroll up or down it doesn't highlight any of the selections in the menu, it controls the window behind this menu and selects items/files from the external drive. I'm simply trying to move the highlighted item here to the internal drive where I have a host.txt.

10pmStalker commented 6 years ago

@x-falcon EDIT: Got it working on the shield by manually choosing the txt file with a mouse. Still confused why it's not working on Android TV.

http://imgur.com/gxogzCT I choose "from internet"

http://imgur.com/Hdsii62 "re-select hosts file"

It doesn't auto turn green like it did on the shield when I manually selected the txt file.

plnkeye21 commented 6 years ago

@10pmStalker how did you connect a mouse? Did it have to be wired USB? Wireless doesn't seem to be working for me. What's the full procedure you're doing please. Trying to get it working for LazyMan also.

plnkeye21 commented 6 years ago

@10pmStalker Got it! Had to use a wired mouse. @x-falcon Definitely need to look at that on your next build. You can't navigate that menu without a mouse (wired).

10pmStalker commented 6 years ago

@plnkeye21 did you manually select the txt file or did you use the auto download feature?

plnkeye21 commented 6 years ago

Manually. I hit 'select host file' (did not long press it), and browsed to the SHIELD internal drive and selected the txt file and hit open. It returned me to the main screen and the switch was in the 'up' position and green. Tested LazyMan (Angel game is on) successfully!

10pmStalker commented 6 years ago

Yeah same, was hoping you somehow did it the other way. Shield is the only android system that will let you browse. Nexus player won't even let you browse for a file.

10pmStalker commented 6 years ago

@x-falcon is there any way you could make a quick video on how you're enabling it by hitting the download button? I don't get why it's not working. Is the url not correct maybe?

I really appreciate your work, I will be donating

x-falcon commented 6 years ago

@10pmStalker I see , you didn't enter your url, the default url just for test, you need to enter your url. Here are some, you can refer to,https://github.com/StevenBlack/hosts. Prompt, the url on github must start with raw. , default I will record a small video this weekend to explain how to use it.

10pmStalker commented 6 years ago

@x-falcon that explains a lot, thank you. Could you copy and paste a link that would work? I'm still pretty confused on what will work. Been typing links with the remote and it's brutal haha

10pmStalker commented 6 years ago

Alright so I got it on the Android TV with help from reddit. Simply added http://bit.ly/lmhosts then manually flipped the switch which you need a wired mouse to do.

I have a problem since the nexus player has no USB port, I can't manually flip the switch on that. It's not a big deal, got it working on 2 devices for now. Support to flip that switch without a mouse would be awesome. Thanks for everything @x-falcon

x-falcon commented 5 years ago

I'll fix this problem. It's caused by incompatible buttons.