Last year, reports emerged that Android 12 will bring some noticeable changes to Android users. One of the changes includes the ability to use other app stores without stress. Of course, we expect Google to also take the safety of the app stores into consideration. And now, in an official blog post, the search giant has confirmed that itâ€™s â€œdelivering on [its] promise to make third-party app stores easier to use on Android 12.â€ Digging in the developer documentation, XDAÂ found what changes are being made.
It turns out that the company has updated Androidâ€™s PackageInstaller.SessionParams class with a new method called setRequireUserAction. The latter shows whether or not user action should be required before an app install is allowed.
Before installing an app, you have to grant the install unknown apps permission. And when you want to update an app installed from a source other than Google Play, you have to manually tap â€œupdateâ€ on this prompt.
But now, you donâ€™t have to implement any action if the app install/update meets the following conditions:
- The installer opts into the new behavior.
- The app thatâ€™s being installed targets API level 29 (Android 10) or higher.
- The installer is either updating itself or installing an update to an app it first installed.
- The installer declares the UPDATE_PACKAGES_WITHOUT_USER_ACTION permission.