Android 12 upgrade: No user interaction is required to install third-party mall apps under the premise of safety

Android 12 upgrade: No user interaction is required to install third-party mall apps under the premise of safety

In response to pressure from Epic Game and government regulators, Google announced last September that it would make changes in Android 12. These adjustments include making it easier for people to use apps from other app stores on their devices without compromising Android's existing security measures.

However, Google did not specify what changes they would make to the Android system, nor did they share specific information about this change at the Google I/O conference in 2021. However, in an official blog post updated today, Google confirmed that it is fulfilling its promise to make third-party operating stores easier to use on Android 12.

In Android's PackageInstaller.SessionParams class, Google has added a new method called setRequireUserAction. This method indicates whether a user action is required before allowing the application to be installed.

For any application holding the REQUEST_INSTALL_PACKAGES permission, its default value is "true". That is, when a user wants to install an application other than Google Play or the official mobile app store, a notification will be sent to the user before the installation session is started, and the installation can only be performed after the user authorizes the permission to install applications from unknown applications.

However, if the following conditions are met, the installation/update of the application will not require user action

  • The installer selected the new behavior
  • The app being installed targets API level 29 (Android 10) or higher. Google notes that the target API level requirement will increase in future Android versions, a policy that aligns with Google Play's policy on API target requirements).
  • Program installations are either updates to themselves or updates to an installed application.
  • The installer declares the UPDATE_PACKAGES_WITHOUT_USER_ACTION permission.

So when the App Store attempts to start an installation session and uses this new API, it should be possible to update without the user having to manually accept the update. This will make updating apps in batches faster and bring the experience more in line with what the Google Play Store requires.

<<:  WeChat suddenly announced that after May 20, the mini program will shut down a much-criticized service

>>:  Do you turn off your phone every day? Little do you know that the life of your phone is also decreasing. Pay attention to these things

Recommend

In-depth analysis of the operation and life cycle of Tik Tok short videos!

Table of contents 1. Product Background Product I...

How to do corporate brand planning?

There have been a lot of hot topics these days, f...

Still giving birth at 74! You definitely don’t know the secrets of these birds

At the end of 2024, a black-backed albatross name...

Tesla will launch a mini car, Musk said it is building

Tesla has cooperated with RadioFlyer to launch th...

The secrets to selecting products for Kuaishou live streaming are here!

When we had almost unpacked all the parcels, the ...

A comprehensive analysis of Swift 2 error handling techniques

Error handling has been supported since Swift 1; ...

What’s the innovation behind Google’s new Android smart lock?

On March 23, according to foreign media reports, ...

Silicon Valley Big Data Project Data Warehouse 5.0 Preview Edition

Silicon Valley Big Data Project Data Warehouse 5....

5 tips to improve your YouTube search ranking!

We will introduce some methods to improve the fac...

From America to China: The spread of corn, potatoes, and sweet potatoes

Speaker: Zhang Jian Venue: School of History and ...