cancel
Showing results for 
Search instead for 
Did you mean: 

Certificate Changed

nice0
Level 2
I am getting "The APK is signed with a different certificate. Be sure to use the same keystore and key as used for a previous version".
I first got an error that I had it signed with V2 type of signature which is not compatible with the Oculus Go. So I've resigned it jarsigner tool. So yes I am using V1 signature now. I've asked Oculus support to remove the previously uploaded binary, but nothing is happening yet.
1 REPLY 1

nice0
Level 2
I figured this out, I had to re-sign the apk manually, with the correct alias, I have multiple aliases in my key file.

Step #1
Find the correct keystore file, find the correct alias, there could be multiple aliases in the file.
Make sure you have java home in path: export JAVA_HOME=/Library/Java/Home

Step #2
Remove the debug or whatever signature you have in the APK at the moment

zip -d MY.apk "META-INF*"

Step #3
Re-sign it with V2

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ./MYKEYSTORE.keystore -storepass MYKEYSTOREPASSWORD -keypass MYKEYSTOREPASSWORD ./MY.apk 'ALIAS'