Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to upgrade Android 12 without requiring user interaction to install third-party mall applications under the premise of security

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

How to upgrade Android 12 under the premise of security does not require user interaction to install third-party mall applications, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

In response to pressure from Epic Game and government regulators, Google announced last September that it would make changes in its Android 12 system. These adjustments include making it easier for people to use applications 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 the change at the Google IMaple O conference in 2021. However, in an updated official blog post today, Google confirmed that it is making good on its promise to make third-party stores easier to use on Android 12.

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

For any application with REQUEST_INSTALL_PACKAGES permissions, the default value is "true". In other words, when users want to install applications other than Google Play or the official app store on the phone, they need to send a notification to the user before starting the installation session, and only after the user has authorized to install permissions from unknown applications.

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

The installer chose a new behavior

The target of the application being installed is API level 29 (Android 10) or higher. Google points out that the target API level requirements will be raised in future Android versions, which is in line with Google Game's policy on API target requirements.

The program installation is either an update to itself or an update to an application that has been installed

The installer declares UPDATE_PACKAGES_WITHOUT_USER_ACTION permissions.

Therefore, when the App Store tries to start an installation session and use the new API, it should be possible to update without the user having to accept the update manually. This will make it faster to update applications in batches and make the experience more in line with the requirements of the Google Play store.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report