Method for pre-installing third-party application as system application in cloud mobile phone

By setting up a configuration list of uninstallable applications in the cloud computer system and dynamically configuring third-party applications as system applications, the system image size limitation and compatibility problems in the existing technology are solved, and efficient cloud computer system performance and user custom needs are achieved.

CN119576352APending Publication Date: 2025-03-07GUANGDONG YUEWUJI NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411631248.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When the existing cloud machine system is pre-installed as a system application, the system image size exceeds the limit, extends the startup time of the cloud machine, affects performance indicators, and cannot achieve dynamic configuration, and limited compatibility and scalability.

Method used

By setting the uninstallable application configuration list deleteAppFileter under the /data/local/config/ path of the cloud machine system, add the cloud application package name of the third-party application that needs to be preinstalled as a system application to the configuration list, and make corresponding settings during installation and restart to ensure that the system application properties and data of the third-party application are not deleted or uninstalled.

Benefits of technology

It realizes dynamic configuration of third-party applications as system applications without affecting the startup time and performance indicators of the cloud computer, breaking through the system image size limitation, improving the compatibility and scalability of the cloud computer system, and meeting users' custom needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576352A_ABST
    Figure CN119576352A_ABST
Patent Text Reader

Abstract

The invention provides a method for pre-installing a third-party application as a system application in a cloud mobile phone, which comprises the following steps of: setting a configuration list deeleteAppFilm of applications which cannot be uninstalled under / data / local / control / path of a cloud mobile phone system, and adding a cloud application package name of the third-party application which needs to be pre-installed as the system application into the configuration list deeleteAppFilm; when the cloud application is installed, marking the third-party application appearing in the configuration list deeleteAppFilm as a system application, and when the cloud application is installed, marking the third-party application appearing in the configuration list deeleteAppFilm as the system application; the method comprises the following steps: when a cloud machine system is restarted, setting application data of a third-party application appearing in a configuration list deeleteAppFilm to be undeletable; and when the cloud application is unloaded, the third-party application appearing in the configuration list deeleteAppFilm is set to be ununmountable. According to the method, the third-party application is pre-installed into the system application in a dynamic configuration mode, the limitation of the size of a system mirror image of a cloud machine system can be broken through, multiple third-party applications can be pre-installed into the system application conveniently, the compatibility and expansibility of the cloud machine system are improved, and the user-defined requirement of a user is better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud phones, and in particular to a method for preinstalling third-party applications as system applications in a cloud phone. Background Art

[0002] Cloud phone, also known as cloud machine, is a virtualized Android system running on the cloud server based on end-to-end virtualization technology.

[0003] Since the size of the system partition of the cloud machine system is fixed, if the size of the system image of the cloud machine exceeds the size of the system partition of the cloud machine system, the memory of the next partition will be occupied when the system partition is upgraded, resulting in confusion of the baseline partition address, cloud machine upgrade failure, cloud machine startup crash, etc. Therefore, the size of the system image of the cloud machine is strictly limited.

[0004] In the existing cloud machine system, if third-party applications need to be pre-installed as system applications, they can only be configured as system applications using a fixed image, which will undoubtedly increase the size of the system image. If too many system applications are configured, the size of the system image will exceed the limit, prolonging the cloud machine startup time and affecting the cloud machine startup performance indicators. On the other hand, this configuration method cannot achieve dynamic configuration, has limited compatibility and scalability, and cannot meet the user's customization needs. Summary of the invention

[0005] The purpose of the present invention is to provide a method for pre-installing third-party applications as system applications in a cloud phone in response to the defects of the prior art, so as to dynamically configure third-party applications as system application attributes in the cloud phone system without affecting the cloud phone startup time and cloud phone performance indicators.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] A method for preinstalling a third-party application as a system application in a cloud phone, characterized by comprising:

[0008] Set the configuration list deleteAppFileter of non-uninstallable applications in the / data / local / config / path of the cloud machine system, and add the cloud application package names of third-party applications that need to be pre-installed as system applications to the configuration list deleteAppFileter;

[0009] When installing cloud applications, third-party applications that appear in the configuration list deleteAppFileter are marked as system applications;

[0010] When the cloud machine system is restarted, the application data of third-party applications that appear in the configuration list deleteAppFileter will be set to be non-deletable;

[0011] When uninstalling cloud applications, third-party applications that appear in the configuration list deleteAppFileter are set to be non-uninstallable.

[0012] Furthermore, when installing cloud applications, the method for marking third-party applications that appear in the configuration list deleteAppFileter as system applications is as follows:

[0013] When installing the cloud application, the verifyPendingInstall-->installPackageLI method of the PMS service is called through Binder communication to install it, and the PackageParser.java-->parseBaseApkCommon method is called to parse the APK of the cloud application, fill in the Package information, and return a Package object;

[0014] When the PackageParser.java-->parseBaseApkCommon method parses the cloud application's APK, it obtains the cloud application's CustomUtil configuration item and sets the Package's applicationinfo.flags parameter to the system application.

[0015] Furthermore, when the cloud machine system is restarted, the method for setting the application data of the third-party application that appears in the configuration list deleteAppFileter to be non-deletable is:

[0016] When the cloud machine system is restarted and the PMS service executes the removePackageLI process, it obtains the configuration list deleteAppFileter and sets the application data of the third-party applications in the configuration list deleteAppFileter located in the / data / app directory to be non-deletable.

[0017] Furthermore, when uninstalling a cloud application, the method for setting the third-party application that appears in the configuration list deleteAppFileter to be non-uninstallable is:

[0018] Add a filter in the deletePackageAsUser() method of the PMS service to filter the cloud application uninstallation process according to the configuration list deleteAppFileter;

[0019] When the cloud machine system uninstalls a cloud application, it calls the deletePackageAsUser() method of the PMS service through Binder communication. The filter in the deletePackageAsUser() method obtains the PID process number of the caller and queries the cloud application package name to be uninstalled based on the PID process number. If the cloud application package name to be uninstalled exists in the configuration list deleteAppFileter, uninstallation is not allowed.

[0020] The present invention adds an application uninstallation source judgment function during the application uninstallation process, and mainly determines whether the application is allowed to be uninstalled based on the configuration list and the application uninstallation source. At the same time, when the application is installed, the third-party application is set as a system application attribute according to the configuration list to ensure that the application data of the application will not be deleted when the cloud machine system is restarted.

[0021] The present invention adopts a dynamic configuration method to pre-install third-party applications as system applications. The related applications do not need to be fixed in the system image, which can break through the limitation of the system image size of the cloud machine system and facilitate the pre-installation of multiple third-party applications as system applications, thereby improving the compatibility and scalability of the cloud machine system and better meeting the user's customization needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of a method for preinstalling a third-party application as a system application in a cloud phone provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0024] like Figure 1 As shown, an embodiment of the present invention provides a method for preinstalling a third-party application as a system application in a cloud phone, including:

[0025] Set the configuration list deleteAppFileter of non-uninstallable applications in the / data / local / config / path of the cloud machine system, and add the cloud application package names of third-party applications that need to be pre-installed as system applications to the configuration list deleteAppFileter;

[0026] When installing cloud applications, third-party applications that appear in the configuration list deleteAppFileter are marked as system applications;

[0027] When the cloud machine system is restarted, the application data of third-party applications that appear in the configuration list deleteAppFileter will be set to be non-deletable;

[0028] When uninstalling cloud applications, third-party applications that appear in the configuration list deleteAppFileter are set to be non-uninstallable.

[0029] In the prior art, cloud machine systems generally use methods such as installPackage in the PM (PackageManager) command to install cloud applications. When installing a cloud application, the verifyPendingInstall->installPackageLI method of the PMS service is called through Binder communication to install it, and the PackageParser.java->parseBaseApkCommon method is called to parse the APK of the cloud application, fill in the Package information, and return a Package object.

[0030] As an improvement, the method of marking the third-party application appearing in the configuration list deleteAppFileter as a system application when installing the cloud application in the present invention further includes:

[0031] When the PackageParser.java-->parseBaseApkCommon method parses the cloud application's APK, it obtains the cloud application's CustomUtil configuration item and sets the Package's applicationinfo.flags parameter to the system application.

[0032] In the prior art, when the cloud machine system is restarted, the PMS (PackageManagerService) service will execute the scanPackageLI process and the removePackageLI process. The scanPackageLI process will scan the / data / app directory of the cloud machine system and determine whether the Package of the non-system application exists in the directory. If not, the application data of the non-system application in the / data / app directory will be deleted through the removePackageLI process.

[0033] As an improvement, the method of setting the application data of the third-party application appearing in the configuration list deleteAppFileter to be non-deletable when the cloud machine system is restarted is:

[0034] When the cloud machine system is restarted and the PMS service executes the removePackageLI process, it obtains the configuration list deleteAppFileter and sets the application data of the third-party applications in the configuration list deleteAppFileter located in the / data / app directory to be non-deletable.

[0035] In the prior art, the cloud application uninstallation process is mainly performed through two methods: PackageManager.deletePackage and adb command. Both methods ultimately require calling the deletePackageAsUser() method of the PMS service through Binder communication to uninstall the application.

[0036] As an improvement, when uninstalling a cloud application, the method of setting the third-party application appearing in the configuration list deleteAppFileter to be non-uninstallable is:

[0037] Add a filter in the deletePackageAsUser() method of the PMS service to filter the cloud application uninstallation process according to the configuration list deleteAppFileter;

[0038] When the cloud machine system uninstalls a cloud application, it calls the deletePackageAsUser() method of the PMS service through Binder communication. The filter in the deletePackageAsUser() method obtains the PID process number of the caller and queries the cloud application package name to be uninstalled based on the PID process number. If the cloud application package name to be uninstalled exists in the configuration list deleteAppFileter, uninstallation is not allowed.

[0039] The present invention adds an application uninstallation source judgment function during the application uninstallation process, and mainly determines whether the application is allowed to be uninstalled based on the configuration list and the application uninstallation source. At the same time, when the application is installed, the third-party application is set as a system application attribute according to the configuration list to ensure that the application data of the application will not be deleted when the cloud machine system is restarted.

[0040] The present invention adopts a dynamic configuration method to pre-install third-party applications as system applications. The related applications do not need to be fixed in the system image, which can break through the limitation of the system image size of the cloud machine system and facilitate the pre-installation of multiple third-party applications as system applications, thereby improving the compatibility and scalability of the cloud machine system and better meeting the user's customization needs.

[0041] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for preinstalling a third-party application as a system application in a cloud phone, characterized in that: include: Set the configuration list deleteAppFileter of non-uninstallable applications in the / data / local / config / path of the cloud machine system, and add the cloud application package names of third-party applications that need to be pre-installed as system applications to the configuration list deleteAppFileter; When installing cloud applications, third-party applications that appear in the configuration list deleteAppFileter are marked as system applications; When the cloud machine system is restarted, the application data of third-party applications that appear in the configuration list deleteAppFileter will be set to be non-deletable; When uninstalling cloud applications, third-party applications that appear in the configuration list deleteAppFileter are set to be non-uninstallable.

2. The method according to claim 1, characterized in that When installing cloud applications, the method to mark third-party applications that appear in the configuration list deleteAppFileter as system applications is as follows: When installing the cloud application, the verifyPendingInstall-->installPackageLI method of the PMS service is called through Binder communication to install it, and the PackageParser.java-->parseBaseApkCommon method is called to parse the APK of the cloud application, fill in the Package information, and return a Package object; When the PackageParser.java-->parseBaseApkCommon method parses the cloud application's APK, it obtains the cloud application's CustomUtil configuration item and sets the Package's applicationinfo.flags parameter to the system application.

3. The method according to claim 1, characterized in that When the cloud machine system restarts, the method to set the application data of third-party applications that appear in the configuration list deleteAppFileter to be non-deletable is: When the cloud machine system is restarted and the PMS service executes the removePackageLI process, it obtains the configuration list deleteAppFileter and sets the application data of the third-party applications in the configuration list deleteAppFileter located in the / data / app directory to be non-deletable.

4. The method according to claim 1, characterized in that: When uninstalling cloud applications, the method to set the third-party applications that appear in the configuration list deleteAppFileter to be non-uninstallable is: Add a filter in the deletePackageAsUser() method of the PMS service to filter the cloud application uninstallation process according to the configuration list deleteAppFileter; When the cloud machine system uninstalls a cloud application, it calls the deletePackageAsUser() method of the PMS service through Binder communication. The filter in the deletePackageAsUser() method obtains the PID process number of the caller and queries the cloud application package name to be uninstalled based on the PID process number. If the cloud application package name to be uninstalled exists in the configuration list deleteAppFileter, uninstallation is not allowed.