The Speedify SDK includes support for automatically reconnecting at boot and enabling the killswitch at boot.
To do this, obtain the RECEIVE_BOOT_COMPLETED permission and register a StartupBroadcastReceiver in your manifest.
AndroidManifest.xml
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
...
<receiver
android:name="com.speedify.speedifysdk.StartupBroadcastReceiver"
android:enabled="true"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.HOME"/>
</intent-filter>
</receiver>
Control of these settings is done by setStartupConnect and setKillswitch.