Advertisements

Android developers put a lot of effort into app updates, optimizing, adding new-feature, improving performance and more. But sometimes it goes wrong, which could be vulnerability, glitch or maybe any bug. To encounter this, the App publisher uses a staged rollout feature to prevent it from exploding and also to stop pushing updates further. And in time, the rollout patch and new update are to be rollout.

If you have already upgraded to the latest version of the app, then roll back with Android’s hidden rollback feature. You don’t need to uninstall the app and then install the older version, Downgrade the app after receiving the update from a third-party app download site.

You don’t need to clear the data from your device unless you do it manually from the device’s settings. To retain the data you can use ADB to manually install the latest version.

Precaution

You can’t simply roll back app updates while keeping your app data, cache, and app settings. There are several things which could go wrong with downgrading an Android app with app behavioral.

  • The latest version may not be supported on an Older version.
  • App cache and data are crucial to the app’s behavioral.
  • Sideloading requires to be installed from an unknown source.
  • With older versions, you may encounter problems.

Downgrade Android app using hidden Android feature to roll an app back.

Downgrade an app, User has to install the older version on top of a newer version.

  • First, download the older version of the app.
  • Move the APK file to your PC.
  • Launch PowerShell on ADB on PC or ADB Sheel on Mobile.
    LADB — Local ADB Shell
    LADB — Local ADB Shell
    Developer: tytydraco
    Price: £2.69
  • Execute, “pm install” and then “-d” followed by the address of Saved-File. (eg; ADB install -d app.apk)

To restore the data

Google released the RoolbackManger Service, Which allows to restoration of the data. Google has added this feature which needs manual downgrade using shell command. Google Play Store doesn’t have this feature integrated to enable a rollback.

You can execute “pm rollback-app {package}” command, to roll back simply add –enable-rollback option to “pm install” command. Following

  • adb push app.apk /data/local/tmp/
  • adb shell
  • pm install –enable-rollback /data/local/tmp/app.apk
  • pm rollback-app {package}

Rollback, Copy of the backup stored on the original location and App data have been enabled through a rollback overwritten. By default, the rollbackDataPolicy attribute shows how to handle data when a rollback is performed. Google has triggered rollback, and published rollback functionality through Google play but not have integrated this to prevent users.

x
Advertisements