{"action":"created","issue":{"url":"https://api.github.com/repos/antest1/kcanotify/issues/30","repository_url":"https://api.github.com/repos/antest1/kcanotify","labels_url":"https://api.github.com/repos/antest1/kcanotify/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/antest1/kcanotify/issues/30/comments","events_url":"https://api.github.com/repos/antest1/kcanotify/issues/30/events","html_url":"https://github.com/antest1/kcanotify/issues/30","id":272828172,"node_id":"MDU6SXNzdWUyNzI4MjgxNzI=","number":30,"title":"Sniffer(VPN) Issue","user":{"login":"antest1","id":24682743,"node_id":"MDQ6VXNlcjI0NjgyNzQz","avatar_url":"https://avatars3.githubusercontent.com/u/24682743?v=4","gravatar_id":"","url":"https://api.github.com/users/antest1","html_url":"https://github.com/antest1","followers_url":"https://api.github.com/users/antest1/followers","following_url":"https://api.github.com/users/antest1/following{/other_user}","gists_url":"https://api.github.com/users/antest1/gists{/gist_id}","starred_url":"https://api.github.com/users/antest1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antest1/subscriptions","organizations_url":"https://api.github.com/users/antest1/orgs","repos_url":"https://api.github.com/users/antest1/repos","events_url":"https://api.github.com/users/antest1/events{/privacy}","received_events_url":"https://api.github.com/users/antest1/received_events","type":"User","site_admin":false},"labels":[{"id":504354613,"node_id":"MDU6TGFiZWw1MDQzNTQ2MTM=","url":"https://api.github.com/repos/antest1/kcanotify/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-10T06:02:37Z","updated_at":"2018-10-31T08:46:48Z","closed_at":null,"author_association":"OWNER","body":"This is the issue board for users whose sniffer is not working.\r\n\r\nAbout Sniffer(VPN) Implementation\r\n-------\r\nAs I wrote in [FAQ No.2](https://github.com/antest1/kcanotify/blob/master/FAQ/FAQ_en.md#2-how-it-works), Kcanotify retrieves data from kancolle with Local VPN. The reason for using local VPN is that it is (almost) the only way to capture the packets without root permission.  \r\nFor this, I am borrowing VpnService implementation from NetGuard source, so in fact I don't have make much work about this. Please understand that there are few open-source implementation or easily-usable library for non-rooted device, so it is hard to find the alternative. (I know the alternative local-proxy approach, but it makes user to modify various network settings.)\r\n\r\nSo, what is the problem?\r\n-------\r\nThere were some reports that Sniffer in Kcanotify does not work well in some devices.  \r\nSince the problem varies from devices and ROMs, so it is hard to figure out what is the exact problem.  \r\nI think there is some trouble for routing packet data from tunnel, which should be more analyzed. Unfortunately, since 1) I did not major in network protocol (TCP/IP) and 2) I am busy in my own study and research, It is hard to quickly deal with this problem.\r\n\r\nWhat can you do?\r\n-------\r\nIf you have this problem, you may mail to me (kcanotify at gmail.com), or leave the comment to this issue.  \r\n\r\nIt would be help to write:\r\n**1) Your device information (ex: Samsung Galaxy Note 4)**  \r\n**2) Your android version (ex: 6.0.1 or Marshmallow)**.  \r\nCheck whether **the whole internet is not working while Sniffer is on, or only kancolle is not working**.\r\n\r\nIf you are familiar with the VPN implementation or TCP/IP protocol, you may review the sniffer code [(Native)](https://github.com/antest1/kcanotify/tree/master/app/src/main/jni/netguard), [(JNI)](https://github.com/antest1/kcanotify/tree/master/app/src/main/java/eu/faircode/netguard) and let me know which part is troublesome, or PR your bugfix.\r\n\r\nCommon solutions\r\n-------\r\n**Q1: Sniffer does not turn on after update**\r\nA1: In some devices/android versions, there is a bug that does not request permission to start VPN. This is temporal, so you may restart the device or reinstall the application after turn off the Sniffer(VPN) in Kcanotify. Also, you may go to System Settings - More Network - VPN (The methods can vary: this is the case of Samsung devices) and remove Kcanotify, and re-gain the permission when start Kcanotify.\r\n\r\n**Q2: I cannot select the \"I trust this application\"**\r\nA2: Some android version does not allows to change permission when there is some overlay in the screen. The common cases are **the fairy in Kcanotify is on the screen** or **bluelight filter application is on**. You must first disable this and get permission for VpnService.\r\n"},"comment":{"url":"https://api.github.com/repos/antest1/kcanotify/issues/comments/434606116","html_url":"https://github.com/antest1/kcanotify/issues/30#issuecomment-434606116","issue_url":"https://api.github.com/repos/antest1/kcanotify/issues/30","id":434606116,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDYwNjExNg==","user":{"login":"antest1","id":24682743,"node_id":"MDQ6VXNlcjI0NjgyNzQz","avatar_url":"https://avatars3.githubusercontent.com/u/24682743?v=4","gravatar_id":"","url":"https://api.github.com/users/antest1","html_url":"https://github.com/antest1","followers_url":"https://api.github.com/users/antest1/followers","following_url":"https://api.github.com/users/antest1/following{/other_user}","gists_url":"https://api.github.com/users/antest1/gists{/gist_id}","starred_url":"https://api.github.com/users/antest1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antest1/subscriptions","organizations_url":"https://api.github.com/users/antest1/orgs","repos_url":"https://api.github.com/users/antest1/repos","events_url":"https://api.github.com/users/antest1/events{/privacy}","received_events_url":"https://api.github.com/users/antest1/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T08:46:48Z","updated_at":"2018-10-31T08:46:48Z","author_association":"OWNER","body":"@michaelaw320 \r\n\r\nBypass Addresses does not matter in my case. (it works even if bypass address not set)\r\nMake sure that you restart sniffer (and also service if possible) after change the settings.\r\n\r\nIn my cases, setting appropriate username and password make SSH Tunnel works. \r\nIf you are using public ssh server in the web, the connectivity may unstable."}}
{"actor":{"display_login":"antest1"}}