Android APK签名

APK签名

签名流程

Android APK签名_第1张图片
参考链接:https://www.itread01.com/articles/1477377372.html

执行4字节对齐

D:\Android\android-sdk\build-tools\28.0.3\zipalign.exe -v -f -p 4 E:\WorkSpace\UnityProducts\Test\TestOpenGLES\ViewSystemInfos.apk E:\WorkSpace\UnityProducts\Test\TestOpenGLES\ViewSystemInfos_align.apk

验证是否4字节对齐

D:\Android\android-sdk\build-tools\28.0.3\zipalign.exe -c -v 4 E:\WorkSpace\UnityProducts\Test\TestOpenGLES\ViewSystemInfos_align.apk

执行apk签名

D:\Android\android-sdk\build-tools\28.0.3\apksigner sign -v --ks C:\WorkSpace\XXXgame\Client\xxxgame.keystore --ks-key-alias aliasName --ks-pass pass:passwardxxx --key-pass pass:passwardxxx --out E:\WorkSpace\UnityProducts\Test\TestOpenGLES\ViewSystemInfos_align_signed.apk E:\WorkSpace\UnityProducts\Test\TestOpenGLES\ViewSystemInfos_align.apk

验证apk是否签名

D:\Android\android-sdk\build-tools\28.0.3\apksigner verify -v E:\WorkSpace\UnityProducts\Test\TestOpenGLES\ViewSystemInfos_align_signed.apk
在这里插入图片描述

你可能感兴趣的:(游戏开发)