Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we change targetSdkVersion of an APK using Apktool

I have an app on Google play store and I want to update it but I don't have the source code, when I tried to update it Google didn't accept the updated APK because it's targetSdkVersion is 27, I need to update it to 28, is there any solution for that using a reverse engineering tool like apktool ???

Help me please

like image 218
is.bny Avatar asked Oct 22 '25 06:10

is.bny


1 Answers

apktool d $APK_PATH -o $OUTPUT_FOLDER

  • Open the apktool.yml text file
  • Alter the versionCode and versionName entries
  • now rebuild!
  • apktool build $OUTPUT_FOLDER
  • next you need to re-sign the apk with the original keystore file jarsigner -verbose -keystore $KEYSTORE_PATH -storepass $KEYSTORE_PASSWORD -keypass $KEYSTORE_KEY_PASSWORD $APK_PATH $KEYSTORE_KEY_NAME ~/android-sdk/build-tools/21.1.1/zipalign -v 4 $APK_PATH $APK_OUT_PATH
like image 114
User23 Avatar answered Oct 27 '25 05:10

User23



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!