Nirmalya
Nirmalya

Reputation: 116

How to upgrade app signature from V1 to V2?

I have a ionic-3 app signed with V1 signature (jar signed) and its published at Google store. Now, starting August 2021, new apps will be required to target API level 30 (Android 11).

So, I changed the API level to 30 and signed with V1 signature, but Google did not accepted the APK.

What is the standard way to upgrade the app signature from V1 to V2?

Upvotes: 2

Views: 4417

Answers (2)

Robert
Robert

Reputation: 42735

You can't "upgrade" an app signature, instead simply resign the app using the correct signing tool.

This means do no longer use jarsigner for signing the apk file(s)!

Instead use apksigner (apksigner.bat/apksigner.sh on Windows/Linux) for signing your app. apksigner is part of the Android SDK build-tools. Recent versions of apksigner (e.g. from build-tools version 31.x/30.x/29.x always create an V1+v2 signature by default (I assume the older versions, also do v1/v2 signatures, but I am not sure).

Upvotes: 4

auspicious99
auspicious99

Reputation: 4331

If you do all your signing within android studio, watch the options when you are making a release build. It should give you the options for v1 and v2 sigining, and you can select v2. That signed apk should be acceptable to Google play.

Upvotes: 0

Related Questions