Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android, APK returning to previous version after reboot

Tags:

android

apk

I'm writing a software for a customer; that software will be pre-installed onto a custom ROM.

One of the features of that software is update it-self to a newer version when available.

Everything works well, but the problem is this; when the device is rebooted or restarted, the updated version disappears! The old version returns.

There is something different to be write to create pre-installed software that can be updated?

Thank you in advance for any guidance/suggestions.

like image 467
Joubert Vasconcelos Avatar asked Mar 10 '26 20:03

Joubert Vasconcelos


1 Answers

I finally fixed the problem. So stupid by the way :) Because I was not updating the APK using Google Play, I was not changing the VERSIONCODE in Manifest! Just that. Everything else was ok. So, if someone else has the same problem, this is my tip: always change the versionCode and versionName.

Thank you for your help!

Best regards, Joubert

like image 179
Joubert Vasconcelos Avatar answered Mar 13 '26 10:03

Joubert Vasconcelos



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!