曾无好事来相访,赖尔高文一起予。这篇文章主要讲述How to enable Google Play App Signing相关的知识,希望能为你提供帮助。
how to enable google play app signing
-----------------------------------------------------------------------------
Ask Question
up vote25down votefavorite 27 | I think a lot of developers are trying to learn more about the new Google Play App Signing feature presented at Google I/O 2017. The ability to store the keystore to sign the apps inside Google Play save you the effort to safely store the keystore and can help the system to optimize the APKs served to every device, based on hardware and OS characteristics. You can read more about this topic in the official documentation here : https://developer.android.com/studio/publish/app-signing.html#google-play-app-signing. With the following answer, i will explain a bit better the steps you need to follow to upload your original keystore and how to create the new upload keystore, which you will need to sign your APK from this point onwards. 文章图片 android 文章图片 google-play android-signing android-app-signing
|
|||
add a comment |
up vote62down voteaccepted | This guide is oriented to developers who already have an application in the Play Store. If you are starting with a new app the process it‘s much easier and you can follow the guidelines of paragraph "New apps" from
here Prerequisites that 99% of developers already have :
文章图片 Accept the App Signing TOS. 文章图片 Step 1: Download PEPK Tool clicking the button identical to the image below 文章图片 Step 2: Open a terminal and type: java -jar PATH_TO_PEPK --keystore=PATH_TO_KEYSTORE --alias=ALIAS_YOU_USE_TO_SIGN_APK --output=PATH_TO_OUTPUT_FILE --encryptionkey=GOOGLE_ENCRYPTION_KEYLegend:
java -jar "C:\Users\YourName\Downloads\pepk.jar" --keystore="C:\Android\mykeystore" --alias=myalias --output="C:\Android\private_key.pem" --encryptionkey=eb10fe8f7c7c9df715022017b00c6471f8ba8170b13049a11e6c09ffe3056a104a3bbe4ac5a955f4ba4fe93fc8cef27558a3eb9d2a529a2092761fb833b656cd48b9de6aPress Enter and you will need to provide in order:
private_key.pem .Step 3: Upload the private_key.pem file clicking the button identical to the image below 文章图片 Step 4: Create a new keystore file using Android Studio. YOU WILL NEED THIS KEYSTORE IN THE FUTURE TO SIGN THE NEXT RELEASES OF YOUR APP, DON‘T FORGET THE PASSWORDSOpen one of your Android projects (choose one at random). Go to Build -> Generate Signed APKand press Create new. 文章图片 Now you should fill the required fields. Key store path represent the new keystore you will create, choose a folder and a name using the 3 dots icon on the right, i choosed 文章图片 Press OK when finished, and now you will have a new upload_key.jks
keystore. You can close Android Studio now.Step 5: We need to extract the upload certificate from the newly created upload_key.jks
keystore. Open a terminal and type:keytool -export -rfc -keystore UPLOAD_KEYSTORE_PATH -alias UPLOAD_KEYSTORE_ALIAS -file PATH_TO_OUTPUT_FILELegend:
keytool -export -rfc -keystore "C:\Android\upload_key.jks" -alias upload -file "C:\Android\upload_key_public_certificate.pem"Press Enter and you will need to provide the keystore password. Now if everything has gone OK, you will have a file in the folder PATH_TO_OUTPUT_FILE called upload_key_public_certificate.pem .Step 6: Upload the upload_key_public_certificate.pem
file clicking the button identical to the image below文章图片 Step 7: Click ENROLL button at the end of the App Signing page. 文章图片 Now every new release APK must be signed with the upload_key.jks
keystore and aliases created in
Step 4, prior to be uploaded in the Google Play Developer console.More Resources:
A: Check to sign the APK with both signatures (V1 and V2) while building the release APK. Read here for more details. |
推荐阅读
- (转)Android Studio启动AVD遇到的问题 ( HAXM安装失败)
- mapper.xml中动态sql
- android activity的常用代码:关闭传值返回值回调网页地图短信电话
- monkeyrunner下登录app
- 云端移动开发平台AppCan
- 《android开发艺术探索》读书笔记--动画
- 安卓电量优化之JobScheduler使用介绍
- Struts2中There is no Action mapped for namespace错误解决方法
- adb devices找不到Android设备的解决