antest1 / kcanotify

Viewer Application for KanColle Android
GNU General Public License v3.0
203 stars 29 forks source link

Question/request sniffer intent #55

Closed NoxArt closed 5 years ago

NoxArt commented 5 years ago

Hi, are there exposed intents to handle enabling/disabling sniffer?

I wanted to use Adblock VPN as well, so the idea was to use Tasker to disable Adblock when switching to DMM or KanColle (https://kb.adguard.com/en/android/solving-problems/tasker) which works, but Kcanotify's sniffer doesn't start if it's disabled - it needs to be enabled. Is there something like the linked page describes (not sure if it would need the security stuff) available and if not, can it be added/exposed?

Thank you for consideration!

antest1 commented 5 years ago

I haven't used that application, but I think specific receiver is needed to be added to do this stuff. I'll try to add this one in the following updates.

Please understand that this update can be delayed since I'm too busy nowadays ;)

antest1 commented 5 years ago

This feature will be added in 2.6.4 version. (60f81c6) You can turn on or off the sniffer by sending the intent to Kcanotify.

Package name: com.antest1.kcanotify Class: com.antest1.kcanotify.KcaAutomationReceiver

Action Description
sniffer_on turn on kcanotify sniffer
sniffer_off turn off kcanotify sniffer

Example Screenshot for Tasker: [link]

NoxArt commented 5 years ago

Works great, thank you, good job!