zacharee / InstallWithOptions

Simple-ish app using Shizuku to install APKs on-device with advanced options
MIT License
1.02k stars 46 forks source link

Can't downgrade app. #26

Closed rejuanad99 closed 1 month ago

rejuanad99 commented 6 months ago

As the title says I can't downgrade the even though I installed it with this app. Screenshot_20240501_212529_Install with Options It throw this error.

rejuanad99 commented 6 months ago

I'm using shizuku mode.

drogga commented 6 months ago

I just downgraded the exact same versions of the exact same app on A.8 with only 2 options: Allow Downgrade and Replace Existing, because I don't have the Enable Rollback one, which is dependent on the OS ver. I guess, my authorizer is Root, instead of Shizuku, but that shouldn't be the problem, are you sure you enabled the "Replace Existing" option, because it's a must and should be enabled by default IMO and it won't hurt even if you are not installing over an existing package.

rejuanad99 commented 6 months ago

I just downgraded the exact same versions of the exact same app on A.8 with only 2 options: Allow Downgrade and Replace Existing, because I don't have the Enable Rollback one, which is dependent on the OS ver. I guess, my authorizer is Root, instead of Shizuku, but that shouldn't be the problem, are you sure you enabled the "Replace Existing" option, because it's a must and should be enabled by default IMO and it won't hurt even if you are not installing over an existing package.

It doesn't work even with replace existing option selected.

drogga commented 6 months ago

Disable any other option than the 2 I mentioned, because I've tried with Shizuku on A11 and it installed an older build as well, you can also try with InstallerX or any other alternative, even manually, by using the -d & -r attributes/params/flags in the install command, just to see if they will work.

Edit: I've tested with 3 other similar installers as well on A.14 and you are correct - nothing seems to able to downgrade, because apparently in order to do so a package must be debuggable now, which unfortunately is yet another restriction in the more recent OS vers. and IMO it should be mentioned in the option's description in IWO to avoid confusion.

rejuanad99 commented 6 months ago

Nope, doesn't work, it did worked with my rooted phone. Which also running android 14.

rejuanad99 commented 6 months ago

If I use replace existing will the data be deleted as well?

zacharee commented 6 months ago

No, it resumes the download.

rejuanad99 commented 6 months ago

Thanks, it works on android 11 but not on android 14 with shizuku, but did work on android 14 with root.

Russe098 commented 6 months ago

Please make the app so that it works in all versions of Android

drogga commented 6 months ago

Russ - In general [A.4.0 > 15] or just this option, because I don't think it's possible or makes sense for a number of reasons, one is the availability of the flags in lower OS vers., the other is Shizuku [7.0+ nowadays], but this is for another issue ticket... But If you mean the Downgrade option, then as I mentioned above - Google crippled it, so now [14+] it requires an attribute/param in the AndroidManifest.xml that indicates that the package is debuggable and I tested by installing the same exact ver. with the RollBack option and then tried to downgrade, which didn't work. I no longer have anything with A.14 to further play around with the downgrade, not that there seems to be a point, but I've tested with debuggable packages and it works as it should.