I am trying to build my project in oculus gear vr using unity5 , but when I deploy my app I get the below error
thread priority security exception make sure the apk is signed
I have even created keystore
any suggestion why I might be facing this error in gear vr
I figure out the answer , to run apps in gear vr , you must have signature file for used device by get device id & use site below
https://developer.oculus.com/osig/
after you get the file , you should put inside your project in this directory
YourProjectName --- > assets --> Plugins ---> android ---> assets
(notice if you don't find this directory make sure your build platform
android , from build setting -- > switch platform)
then what you if you get this error
why this error happen ??
when I work in project I copy signature file with its meta file
so to fix error , just copy signature file without its meta file
UPDATED ANSWER
How you can get device id?
There many ways to approach that but best way to write in terminal
adb devices
You should see a list of attached devices like this:
List of devices attached
ce0551e7 device
or if you are lazy like me use this app its working very well it called
SideloadVR DeviceID
I solved this problem by following the steps as below,
Get the device ID using the adb.
For that, take the command prompt and type adb devices.
Ensure that adb path is added in the environment variables.
Also, you can use SideloadVR app to get the device ID.
Used the device ID to generate the oculus signature file using the service at https://developer.oculus.com/manage/tools/osig-generator/
Copy the signature file generated in step 2 at the following location in your unity project sub folder - Assets / Plugins / Android / assets (Create the folders if that do not exist).
Now build and Run the App on an Android Device.
For more: Oculus Signature File (osig) Generator
The above method didn't work for me, but I found that putting the signature file (osig) into "Project_Name/app/src/main/assets" does work. Within Android Studio you will see the file in your 'assets' folder too.
For example with the GearVRf Cockpit Demo, I put my osig file in:
GearVRf-Demos\gvr-cockpit\app\src\main\assets
Related
I'm trying to modify the Androidmanifest.xml for the browser on my device so that I can execute an app by loading a URI in the browser.
I've been running around the file system in ADB SHELL all day, but can't seem to find it. Plus there is no FIND, nor LOCATE command on the system.
You can theoretically find the Androidmanifest.xml file in the APK.
Every APK contains the compiled source code of the application. There is no useable decompiler for APKs at the moment so it is not possible to change the content of one.
In addition to the compiled code and the other resources of the application, an APK also contains a signature from the developer, which will become invalid when the content is changed to verify the source of an APK. An Android system won't install an APK with an invalid signature, so even if you could change the content of the APK, you still couldn't use it.
The conclusion: You cannot do what you are trying to do.
Android Studio on Windows 10/11, it’s in: app/src/main.
I have imported the sample app given by google in sdk.
I have around 60 images in my project, for testing purpose i have made a zip folder and renamed it as main.2.com.abc.ss.obb. so that i can use this .obb file for testing? Is this the right way to do it?
Now i have not uploaded the sample app given in the sdk in my console to test, before that i want to test it on device, is there any way i can test it?
When i just run the app it says "Downloading failed resource not found"
You can move the extension file manually to the device for example with adb push.
It has to go to the SD card in directory: Android/obb/your.package.name/. Assuming your package name is com.abc.ss a command similar to
adb push main.2.com.abc.ss.obb /sdcard/Android/obb/com.abc.ss/main.2.com.abc.ss.obb
will do the trick. The path to the sdcard may vary depending on device and android version.
I want to build a new Android project based on another project that is available open source via Google Code. I already downloaded the code via svn and loaded tested it in Eclipse.
But now when I try to run the code on a phone where the original app is installed I get the "Re-installation failed due to different application signatures" error.
What do I have to change in the app preferences of my branch in order for it to be a new, independent app that is not associated with the source app so that both can be installed alongside?!
You need to uninstall the original version of the open source app.
Once you run it from your local eclipse it will use your debug key which is different than the original key - hence the signature error
Try rooting your phone then uninstalling the system app using adb then installing your custom one
I made an application and took the .apk file from the bin folder ( eclipse project ). I installed it on my mobile which i used as an emulator earlier and it worked just fine. However when i put the file on a friends mobile it said "cant open package" or something similar when i tried to install the application.
What could be wrong since it worked on mine? The API level was 10, so nothing fuzzy about that.
I've read something about keystore but i dont understand the meaning and function of em.
More than likely your friend phone doesn't accept unsigned packages.
You can either:
A. Sign you application
B. Enable untrusted instals on those phones via Settings > Applications > Unknown Sources
I had same problem.
Test if the size of copied APK file is same as size of file on your PC.
If they are not same, copy the APK file using a RAM reader to your PocketPC memory.
I wondered what installing apk files into emulator or device means and tried to install manually with eclipse first. I opened file explorer tab in ddms section in eclipse and realized that all files with apk extension are in app folder. I selected app directory and clicked push a file onto device button on the top. With selecting apk file i want it was installed to the emulator. However, i am getting this error when try to run app ,
Is this error about my installation method or caused by something different ?
The only way to install an apk is with
adb install FileName.apk
I think that the installation procedure of an Android application would be more complex than simply putting the apk in the app directory. Various folders have to be created to store application local data, file permissions for the application has to be set, the package manager has to be updated about the new package, and many other scores.
You should really just use the default installer of Android to take care of the installation. And, if you are really curious to know the installation procedure, you can always check out the source code! You can find details in the Getting Started page on how to download the source.