acrossxr Posted January 17, 2018 Share Posted January 17, 2018 Hi, I'm working on a Viveport submission. I have a questions in regards to this instruction: "To apply wrapper-based DRM to your title, please upload your APK first. Then, download it after the wrapper-based DRM has been successfully applied. Afterwards, sign with your release key and prepare a release-ready APK for submission." I've built my apk using the Unity IDE and Wave SDK, did the wrapper-based DRM, and have redownloaded the apk. I usually sign with my release key in Unity for Android products, but this appears to be a different situation. I tried with Android Studio and got build errors. Can someone guide me to signing the downloaded apk with my release key? Thanks! Link to comment Share on other sites More sharing options...
yakingkuo1 Posted January 24, 2018 Share Posted January 24, 2018 Hi, Please sign your apk by following steps. Make sure you install the JDK in your computer. Set a system path to the JDK path in "Environment Variables" dialog , like c:\Program Files\Java\jdk-9.0.1\bin; Create a folder name "SignAPK" and put the apk you want to sign in it. Then create a sub folder named "key" at the same folder. Use administrator permission to open the command line. cd key (enter the "key" sub folder by step 3) keytool -genkey -v -keystore ./my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 Input 6 digitals password twice, and answer some questions you want, and you will see input <alias_name> key password, press Enter directly. On the "key" folder, get the "keystore" file to the "SignAPK" folder and let your apk and keystore are at the same folder. jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore your_apk_name.apk alias_name 10.You will see "jar signed." and it is successful. 11.You could verify by the command "jarsigner -verify your_apk_name.apk" and make sure you see "jar verified" , it means successful. Link to comment Share on other sites More sharing options...
acrossxr Posted January 25, 2018 Author Share Posted January 25, 2018 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.