Documentation
¶
Overview ¶
Package jniserviceconfig resolves the small, non-shell configuration used by the Android jniservice launchers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config contains the listener host and port.
Example: the default config binds to 127.0.0.1:50051.
func Load ¶
Load applies defaults, one optional config file, then nonempty environment overrides. Only an absent file is optional; read and parse failures are returned so the service cannot start with a different listener by mistake.
Example: Load("/data/adb/modules/jniservice/jniservice.env", map[string]string{"JNISERVICE_PORT": "50052"}) resolves the Magisk settings.
Click to show internal directories.
Click to hide internal directories.