# GearVR deployed app has "Thread Priority Security Exception" even with OSIG in correct spot

**URL:** <https://forums.unrealengine.com/t/gearvr-deployed-app-has-thread-priority-security-exception-even-with-osig-in-correct-spot/442530>\
**Category:** XR Development\
**Tags:** apk, GearVR, build, unreal-engine, Android, packaging-projects, question\
**Created:** [February 1, 2019, 12:29pm UTC](https://forums.unrealengine.com/t/gearvr-deployed-app-has-thread-priority-security-exception-even-with-osig-in-correct-spot/442530 "2019-02-01T12:29:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaaaaaaaaaaaagh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aaaaaaaaaaaaagh](https://forums.unrealengine.com/u/Aaaaaaaaaaaaagh)\
**Post date:** [February 1, 2019, 12:29pm UTC](https://forums.unrealengine.com/t/gearvr-deployed-app-has-thread-priority-security-exception-even-with-osig-in-correct-spot/442530/1 "2019-02-01T12:29:48Z")

</div>

link text

[https://docs.unrealengine.com/en-us/Platforms/GearVR/Prerequisites](https://docs.unrealengine.com/en-us/Platforms/GearVR/Prerequisites)

[https://docs.unrealengine.com/en-US/Platforms/GearVR/QuickStart](https://docs.unrealengine.com/en-US/Platforms/GearVR/QuickStart)

So, I’ve followed the steps from the following. I have NVPack and the Android deployment API working, as I’ve deployed a test project to Android that isn’t set for the Gear VR. However, launching it to deploy to the Gear VR, even with the correct OSIG in both the Android build folder (In a folder called “assets”, as stated in the OSIG verification rules) and the Engine build itself under Java. I’ve included my output log, which didn’t throw any warnings or exceptions, and wanted to ask (Though I know this forum is sparsely answered) What I did wrong while testing a deployment for the Gear VR. Is there a way to manually add the OSIG file needed to the app after it has been installed? What would be the best place to go from here?

Below is a particularly important section of the output log related to this issue that I believe may have information concerning why Oculus Home can’t verify my app. It is listed below, and is an excerpt from the output log I’ve included. The excerpt concerns the creation of the APK.

LogPlayLevel: ====2/1/2019 12:06:16 AM====PREPARING TO MAKE APK=================================================================  
LogPlayLevel: Building Java with SDK API level ‘android-26’  
LogPlayLevel: Building with Build Tools version ‘28.0.3’  
LogPlayLevel: Using package name: ‘com.YourCompany.VRTest’  
LogPlayLevel: ==== Writing to OBB data file C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Build\Android\src\com\YourCompany\VRTest\OBBData.java ====  
LogPlayLevel: ==== Writing to shim file C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====  
LogPlayLevel: ==== Writing to template target file C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Build\Android\src\com\YourCompany\VRTest\AlarmReceiver.java ====  
LogPlayLevel: ==== Writing to template target file C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Build\Android\src\com\YourCompany\VRTest\DownloaderActivity.java ====  
LogPlayLevel: ==== Writing to template target file C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Build\Android\src\com\YourCompany\VRTest\OBBDownloaderService.java ====  
LogPlayLevel: Cleaning up files based on template dir C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Build\Android\src\com\YourCompany\VRTest  
LogPlayLevel: Application display name is different than last build, forcing repackage.  
LogPlayLevel: UPL Init: armeabi-v7a  
LogPlayLevel: Subsystem Google Play SDK Android init  
LogPlayLevel: Android Permission Plugin Init  
LogPlayLevel: Firebase init  
LogPlayLevel: Google Cloud Messaging init  
LogPlayLevel: GCMClientSenderID set: false  
LogPlayLevel: GearVR init  
LogPlayLevel: Android Voice init  
LogPlayLevel: UPL Init: arm64-v8a  
LogPlayLevel: Subsystem Google Play SDK Android init  
LogPlayLevel: Android Permission Plugin Init  
LogPlayLevel: Firebase init  
LogPlayLevel: Google Cloud Messaging init  
LogPlayLevel: GCMClientSenderID set: false  
LogPlayLevel: GearVR init  
LogPlayLevel: Android Voice init  
LogPlayLevel: APK contains data.  
LogPlayLevel: Disabling Show Launch Image for Gear VR enabled application  
LogPlayLevel: APK contains data.  
LogPlayLevel: Disabling Show Launch Image for Gear VR enabled application  
LogPlayLevel: Performing complete package - wiping C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Intermediate/Android/APK, except for predexedLibs  
LogPlayLevel: bPackageDataInsideApk = False  
LogPlayLevel: UE4CommandLine.txt exists…  
LogPlayLevel: Copying C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Saved\StagedBuilds\Android\_ASTC\UE4CommandLine.txt to C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Intermediate/Android/APK\assets\UE4CommandLine.txt  
LogPlayLevel: Added repository: C:\NVPACK\android-sdk-windows\extras\google\m2repository  
LogPlayLevel: Added repository: C:\NVPACK\android-sdk-windows\extras\android\m2repository  
LogPlayLevel: Added repository: C:\Program Files\Epic Games\UE\_4.21\Engine\Source\ThirdParty\Android\extras\google\m2repository  
LogPlayLevel: Added repository: C:\Program Files\Epic Games\UE\_4.21\Engine\Source\ThirdParty\Android\extras\android\m2repository  
LogPlayLevel: AARImports: com.google.android.gms, play-services-auth, 11.8.0  
LogPlayLevel: AARImports: com.google.android.gms, play-services-games, 11.8.0  
LogPlayLevel: AARImports: com.google.android.gms, play-services-nearby, 11.8.0  
LogPlayLevel: AARImports: com.google.android.gms, play-services-plus, 11.8.0  
LogPlayLevel: ====2/1/2019 12:06:18 AM====PREPARING NATIVE CODE=================================================================  
LogPlayLevel: APK contains data.  
LogPlayLevel: Disabling Show Launch Image for Gear VR enabled application  
LogPlayLevel: Copying permission\_library directory to staging before build  
LogPlayLevel: Directory C:/Program Files/Epic Games/UE\_4.21/Engine/Source/ThirdParty/AndroidPermission/permission\_library copied to C:/Users/armaa/OneDrive/Documents/Unreal Projects/VRTest/Intermediate/Android/APK/JavaLibs/permission\_library  
LogPlayLevel: ==== Writing new GameActivity.java file to C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====  
LogPlayLevel: Copying new .so C:\Users\armaa\OneDrive\Documents\Unreal Projects\VRTest\Binaries\Android\VRTest-armv7-es2.so file to jni folder…  
LogPlayLevel: Copying vulkan layers from C:/NVPACK/android-ndk-r15c/sources/third\_party/vulkan/src/build-android/jniLibs/armeabi-v7a  
LogPlayLevel: Copying libvrapi.so  
LogPlayLevel: File C:/Program Files/Epic Games/UE\_4.21/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/armeabi-v7a/libvrapi.so copied to C:/Users/armaa/OneDrive/Documents/Unreal Projects/VRTest/Intermediate/Android/APK/libs/armeabi-v7a/libvrapi.so  
LogPlayLevel: Copying libvrintegrationloader.so  
LogPlayLevel: File C:/Program Files/Epic Games/UE\_4.21/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/armeabi-v7a/libvrintegrationloader.so copied to C:/Users/armaa/OneDrive/Documents/Unreal Projects/VRTest/Intermediate/Android/APK/libs/armeabi-v7a/libvrintegrationloader.so  
LogPlayLevel: Copying libOVRPlugin.so  
LogPlayLevel: File C:/Program Files/Epic Games/UE\_4.21/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/Lib/armeabi-v7a/libOVRPlugin.so copied to C:/Users/armaa/OneDrive/Documents/Unreal Projects/VRTest/Intermediate/Android/APK/libs/armeabi-v7a/libOVRPlugin.so  
LogPlayLevel: File C:/Program Files/Epic Games/UE\_4.21/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/VrApi.jar copied to C:/Users/armaa/OneDrive/Documents/Unreal Projects/VRTest/Intermediate/Android/APK/libs/VrApi.jar  
LogPlayLevel: File C:/Program Files/Epic Games/UE\_4.21/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/SystemUtils.jar copied to C:/Users/armaa/OneDrive/Documents/Unreal Projects/VRTest/Intermediate/Android/APK/libs/SystemUtils.jar  
LogPlayLevel: ====2/1/2019 12:06:18 AM====PERFORMING FINAL APK PACKAGE OPERATION================================================  
LogPlayLevel: Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
