This is not safe. Exec calls aren't safe until `deviceready` has fired. You can attach a handler to that event from here using `cordova/channel`. But that will get called somewhat later in the loading process.

The right way to set up plugin code to run at startup is to override `CordovaPlugin.initialize` and then add `autoload="true"` to the `<plugin>` tag you're injecting into the Android config in `plugin.xml`. Then the plugin will be loaded at initialization time, before `nativeready` is fired.