Do I Need Android Studio For Upload Key Unity3d
- Spaces
- Default
- Aid Room
- META
- Moderators
-
- Topics
- Questions
- Users
- Badges
- Home /
This mail service has been wikified, any user with plenty reputation can edit information technology.
vi
How I tin sign my apk with an google play'southward upload certificate in unity?
I'm trying to publish a update of my awarding on google playstore.
because I activate the Google Play App Signing service for this app, I have to sign it with an upload certificate provided past the shop in order to publish information technology.
https://support.google.com/googleplay/android-developer/answer/7384423
I tried many ways to do that in unity without success
everyone knows how to do that?
5 Replies
· Add your reply
- Sort:
3
Answer by winxalex · Oct 05, 2018 at eleven:04 AM
Create keystore file "keystorefile" with unity. And then import "upload_cert.der" downloaded from google play console to keystore.
keytool.exe -importcert -file upload_cert.der -keystore <keystorefile>
Read more.
2
Answer past jgang1 · Jun 19, 2019 at 04:35 PM
Hullo. I just had this problem myself and being really new to all this had to take some time work out the trouble in more than detail. winxalex answered the question, but if you demand a step by step:
-
You lot need to download your certificate from your google play panel.
-
You need to import your certification into the keystore you used the beginning time you exported from Unty. You probably saved that somewhere important.
-
Yous need to use a plan chosen keytool.exe. The path to that program probably looks something like: C:\Program Files\Coffee\jdk1.8.0_192\bin
-
If you become at that place in windows explorer and type "cmd" into the address bar, information technology'll open that location in the concluding.
-
Y'all then need to use winxalex' lawmaking above in the terminal (after having navigated to the location of keystore.exe, as yous did in step 3
-
You need to point that code to your document and to the keystore you lot're importing the ceritificate into. your last teaching volition look something like the following:
-
keytool.exe -importcert -file "C:\Users\MyAccountName\DesktopOrWherever\deployment_cert.der" -keystore C:\Users\MyAccountName\DesktopOrWherever\user.keystore
-
keystore.exe will ask y'all for the password you used and whether you trust the app, and so update the keystore
-
Make sure Unity is using that keystore when you export your app
Those are the steps that worked for me. I promise this helps others.
Hey ! I've did exactly what you say and fundamental is succesfully imported just with alert. But unity cant see my newly imported key in the keystore. What might be the solution ?
i
Answer by · Aug 25, 2017 at 01:35 PM
Hey! From what you've described, information technology sounds like you followed the steps for a New App in the support page y'all linked. If so, you have to apply the keystore and alias you used to signed your apk the first time, for all updates.
Background: If you opt in to let google handle the app signing for yous, you but need to sign with the 1 fundamental (the upload primal) and google volition manage your app-signing key.
If you didn't brand a keystore, you may take uploaded an unsigned app (which I don't think you tin publish).
If you're managing your own keys nevertheless, the steps are different, and I tin help with that also - but let me know.
If other people (like me) are non familiar with certificate and keystore stuff : I confirm that yous'll need the keystore file that was generated when creating the app business relationship (if the Google App signing is enabled (at the elevation of Release managment > App signing you'll become that data)).
And because I idea it was maybe possible : you can't sign the generated apk with just a certificate. You lot need to have that keystore file or you'll demand to recreate the app business relationship considering yous can't opt out of the app signing option if enabled.
I Have THE SA$$anonymous$$E problem . I uploaded my app without any signing key,now when i am almost to put fifth update they are asking for keystore things . App signing is enabled for my game,what should i do ?
Please mail me at niravmadhani03@gmail.com if anyone has respond
0
Answer by ltomov · Apr 16, 2020 at 03:49 PM
I call back there'due south quite a chip of misunderstanding around this. This is how I eventually got information technology to work:
You don't sign your app with the certificate downloaded from Google. You likewise don't import it into the keystore created past Unity. If you do and then, Unity won't see it because what yous imported is only the public key, and you need the private key to sign the app. The private cardinal is held by Google - you don't have it.
Then what y'all do is you create the keystore and cardinal in Unity and sign your app with it - merely like earlier.
In Google Play Console -> App releases, you can meet this: "Permit Google manage and protect your app signing key (recommended) Enabled.
Upload key: The key you lot use to sign your showtime release. Sign every subsequent release with the same central to verify it'due south from you. Continue your upload cardinal safe. If it'south ever lost or compromised, contact developer back up to supersede it."
On the App Signing folio there's this: "How information technology works
-
You digitally sign each release using your upload primal before publishing it to a runway in the Play Console.
-
Google Play uses the upload certificate to verify your identity then re-signs your release using the app signing fundamental for distribution.
-
Each Android device checks the release's app signing certificate matches the certificate of the installed app earlier updating information technology."
So what Google does is once you upload your app, they sign the app one time over again - this fourth dimension with their private fundamental. And the public fundamental for that signature is what yous downloaded from Google Play.
Users will at present see that your app is signed not with your Unity upload primal, but will Google's. So if you want to register your app's MD5 signature somewhere (like API providers), yous need to utilise the certificate downloaded from Google - that'south the only reason you need it - you don't sign with it.
Some more info about this: https://stackoverflow.com/a/52923860/931409
The thought is that your upload key is only used to let Google know it's y'all, and not distribute the app. And if you lose information technology you can ask Google to change it. Simply if that fundamental was used to really distribute the app and you lose it - information technology'south game over. That'south why the distribution is done using Google'due south cardinal which hopefully is kept much safer :)
0
Answer by LesBloom · Jan xiii, 2021 at 05:08 PM
If, like me, you came hither because you are having issues with long iteration fourth dimension while testing Google Play Games Services code ....
My issue involved:
-
Google Play Panel controls my app signing key
-
Unity'southward keystore is applied to my Unity builds
-
Therefore I tin't exam Google Play Games Services code without fully uploading and publishing my builds through the Google Play Console
This thread is how I finally got that stock-still.
https://github.com/playgameservices/play-games-plugin-for-unity/bug/2981
Your answer
Welcome to Unity Answers
The best place to ask and answer questions about development with Unity.
To help users navigate the site we take posted a site navigation guide.
If you are a new user to Unity Answers, bank check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines folio.
Nosotros are making improvements to UA, see the list of changes.
Follow this Question
Related Questions
Source: https://answers.unity.com/questions/1372982/how-i-can-sign-my-apk-with-an-google-plays-upload.html
Posted by: lanieragook1996.blogspot.com
Take you found a solution? I'thousand facing the same problem.
Hey @Team_26, allow me know if you're all the same stuck with this and if the answer I've provided beneath doesn't help
I'm having the same trouble. I don't know how to sign an AP$$bearding$$ with the Upload document. Google Play Dev. panel gives you a certificate which you can download: upload_cert.der (as well as deployment_cert.der). How can they be used? It's nothing like a keystore.
If you sign with a newly created keystore, it rejects information technology saying that it demand to be signed with Upload document.
At present I'yard stuck as a result of opting for App Signing by mistake. The outset fourth dimension you upload an AP$$anonymous$$, if you lot don't pay attention you may not realise that you are redirected to the App Signing section, if yous don't click opt-out at this point then y'all're done!
Please help. Thank you.
I'm having the same exact issue as Romain-$$bearding$$acre. I have some upload certificate that I demand to utilize to sign my apk but I have no thought how.
Did anybody find a solution to this? I tin can't update my app. Tin can unity generate the AP$$anonymous$$ using the upload cert?
No. If you have the app signing option enabled and don't have the keystore file you'll need to re-create the app shop entry to generate a new keystore file (with which you tin sign the apk).
Please end posting questions and comments as Answers!