NekoBoxForAndroid icon indicating copy to clipboard operation
NekoBoxForAndroid copied to clipboard

Get geoip,geosite assets through another app or plugin

Open markpash opened this issue 2 years ago • 5 comments

I understand that NB4A has a plugin interface. NB4A also has the ability to load assets from the filesystem, but I don't know if it can load assets from plugins.

My feature request is that we add a feature that allows for developers to produce apks that simply provide custom geoip,geosite assets that NB4A can use. So if an asset plugin is installed, it then shows up natively in the "Rule Assets Provider" menu.

This would help a lot for adding support for other countries to NB4A without each country making an issue to add a,b,c... provider.

I have bought the play store version, but I'm happy to donate some more to sponsor this development.

markpash avatar Aug 31 '23 06:08 markpash

If you want to use multiple geosite resources at the same time, then this is not possible. Sing-box does not currently support it.

arm64v8a avatar Sep 03 '23 04:09 arm64v8a

If you want to use multiple geosite resources at the same time, then this is not possible. Sing-box does not currently support it.

I don't mean to use multiple geosite at the same time. What I want is to replace the geosite file used by NB4A, using a plugin. Flow:

  1. User installs NB4A
  2. User installs geosite-geoip-iran-plugin.apk
  3. User goes to settings in NB4A and changes "Rule Assets Provider" setting from "Official" to "Plugin (Iran by markpash)"

This way, we can have multiple classes of plugins, transport plugins, and asset-provider plugins.

markpash avatar Sep 03 '23 04:09 markpash

Your idea is feasible, but this is not an important function at present, users can still import any custom geosite files by themselves.

Therefore, the priority of this feature development will be relatively low.

arm64v8a avatar Sep 03 '23 05:09 arm64v8a

https://github.com/MatsuriDayo/NekoBoxForAndroid/pull/331

Can this PR solve most Iran people’s problems?

arm64v8a avatar Sep 12 '23 11:09 arm64v8a

#331

Can this PR solve most Iran people’s problems?

Yes this is fine.

markpash avatar Sep 12 '23 14:09 markpash