How to Re-sign your APK File to Stop Updates

Step 1
Navigate to your Android Studio folder and find the keytool application. For me, this is in C:\Program Files\Android\Android Studio\jre\bin. Open a command window as administrator and navigate to this folder. You will now need to make use of keytool to generate a keystore for re-signing your APK. Next, type the following into the command window.

keytool -genkey -v -keystore C:\my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

Replacing “my-release-key” with a name of your choice and “alias_name” with a name of your choice. You will be prompted to enter a username and password. Enter these and you’re good to go. Keep the folder and command Window open.

Step 2
Copy the application you want to sign to the folder you found keytool in.

Step 3
Open the APK of your choice with any zip viewer as an archive. I recommend 7Zip. Delete the “META-INF” folder inside of the APK and continue. META-INF contains the key signing files. Copy the APK to the folder containing jarsigner too if you want for ease of use. Jarsigner is used to re-sign your APK.

Step 4
Inside of the folder in a command window, type the following command to re-sign your APK.

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore C:\my-release-key.keystore 
my_application.apk alias_name

Replacing “my-release-key”, “my_application” and “alias_name” with the required information. You will be asked for the keystore password. Once entered, you will see the file has been signed.

Step 5
Copy the file to your phone and try it out! It should install fine and if you try to update it via the Play Store you will see it can’t.






Enjoy! Follow us for more...

No comments:

Post a Comment

How to use a solderless breadboard.mp4

  Download now  Enjoy! Follow us for more...