I Tried :
Running signed release apk by adding signing configs of "release" from gradle through android studio, but it says "The device already has an application with the same package but a different signature".
Creating signed apk from generate/build menu and then copying the apk via USB and installing it manually, but it says "App not install as package conflicts with the existing package"
Even tried internal testing from play console but it also deletes old version installed in the phone.
Why I want to achieve it : Basically I have written some OnUpgrade() code in DB class and I want to test it without losing old app data and without adding temp DB code that will copy data from old version to new version.
How can I solve above problems , please help...