Kiosk mode for Oculus Go

Hello, I’m trying to get Kiosk mode to work for the Oculus Go, or atleast that the app starts when the device is getting turned on.
I added

  <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.HOME" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.MONKEY" />
    <action android:name="android.intent.action.BOOT_COMPLETED" />
    <action android:name="android.intent.action.QUICKBOOT_POWERON" />
    <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>

and

  <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

to the android manifest file.
Uploading the app and testing it works good, when I turn off the Go and turn it on again, it tries to launch but then get a message saying MyApp has stopped working. But when I select manually it works fine. Some one any ideas? auto launch or kiosk mode for oculus Go.

I already tried using adb set home activity, nothing happens then, and used the OculusGoKioskMode exe from tweaklab but also not working. I’m thinking they completly blocked it now because of their upcomming “business” version that has kiosk mode in it.

Full manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.YourCompany.VR360Tour" android:installLocation="auto" android:versionCode="1" android:versionName="1.0">
  <!-- Application Definition -->
  <application android:label="@string/app_name" android:icon="@drawable/icon" android:hardwareAccelerated="true" android:name="com.epicgames.ue4.GameApplication" android:hasCode="true">
    <activity android:name="com.epicgames.ue4.GameActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="mcc|mnc|uiMode|density|screenSize|smallestScreenSize|screenLayout|orientation|keyboardHidden|keyboard" android:resizeableActivity="false" android:launchMode="singleTask" android:screenOrientation="landscape" android:debuggable="true">
      <meta-data android:name="android.app.lib_name" android:value="UE4" />
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.HOME" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.MONKEY" />
        <action android:name="android.intent.action.BOOT_COMPLETED" />
        <action android:name="android.intent.action.QUICKBOOT_POWERON" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:name=".DownloaderActivity" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.EngineVersion" android:value="4.24.2" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.EngineBranch" android:value="++UE4+Release-4.24" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.ProjectVersion" android:value="1.0.0.0" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.DepthBufferPreference" android:value="0" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bPackageDataInsideApk" android:value="false" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bVerifyOBBOnStartUp" android:value="false" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bShouldHideUI" android:value="true" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.ProjectName" android:value="VR360Tour" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.AppType" android:value="" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bHasOBBFiles" android:value="false" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.BuildConfiguration" android:value="Development" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.CookedFlavors" android:value="ASTC" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bValidateTextureFormats" android:value="true" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bUseExternalFilesDir" android:value="false" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bPublicLogFiles" android:value="false" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bUseDisplayCutout" android:value="false" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bAllowIMU" android:value="true" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.bSupportsVulkan" android:value="false" />
    <meta-data android:name="com.epicgames.ue4.GameActivity.StartupPermissions" android:value="" />
    <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
    <receiver android:name="com.DefaultCompany.KioskMode.CustomReceiver" android:permission="android.permission.RECEIVE_BOOT_COMPLETED" android:enabled="true" android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
        <action android:name="android.intent.action.QUICKBOOT_POWERON" />
        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </receiver>
    <service android:name="OBBDownloaderService" />
    <receiver android:name="AlarmReceiver" />
    <receiver android:name="com.epicgames.ue4.LocalNotificationReceiver" />
    <receiver android:name="com.epicgames.ue4.MulticastBroadcastReceiver" android:exported="true">
      <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
      </intent-filter>
    </receiver>
    <meta-data android:name="android.max_aspect" android:value="2.10" />
    <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only" />
  </application>
  <!-- Requirements -->
  <uses-feature android:glEsVersion="0x00030001" android:required="true" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.WAKE_LOCK" />
  <uses-permission android:name="com.android.vending.CHECK_LICENSE" />
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  <uses-permission android:name="android.permission.REBOOT" />
  <uses-permission android:name="android.permission.START_VIEW_PERMISSION_USAGE" />
  <uses-permission android:name="android.permission.INSTANT_APP_FOREGROUND_SERVICE" />
  <uses-permission android:name="android.permission.BIND_REMOTEVIEWS" />
  <!-- Supported texture compression formats (cooked) -->
  <supports-gl-texture android:name="GL_KHR_texture_compression_astc_ldr" />
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  <uses-feature android:name="android.hardware.usb.host" />
</manifest>

I’m trying to get my own application to automaticall launch on android boot also.
Do you know what I’d need to add to get this to work? I’m completely stumped.

I was given this on another forum, but have no idea where to package it with my unreal build.

public class autostart extends BroadcastReceiver 
{
    public void onReceive(Context arg0, Intent arg1) 
    {
        Intent intent = new Intent(arg0,GpioShutdownService.class);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            arg0.startForegroundService(intent);
        } else {
            arg0.startService(intent);
        }
    }
}