WO2019128380A1 - 一种优化应用程序安装的方法、装置及终端 - Google Patents

一种优化应用程序安装的方法、装置及终端 Download PDF

Info

Publication number
WO2019128380A1
WO2019128380A1 PCT/CN2018/109845 CN2018109845W WO2019128380A1 WO 2019128380 A1 WO2019128380 A1 WO 2019128380A1 CN 2018109845 W CN2018109845 W CN 2018109845W WO 2019128380 A1 WO2019128380 A1 WO 2019128380A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
installation
mode
speed
optimization
Prior art date
Application number
PCT/CN2018/109845
Other languages
English (en)
French (fr)
Inventor
刘小锐
张丽娜
Original Assignee
西安中兴新软件有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2019128380A1 publication Critical patent/WO2019128380A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • the present disclosure relates to the field of terminal technologies, and in particular, to a method, an apparatus, and a terminal for optimizing application installation.
  • APKs Android packages
  • the current application is getting bigger and bigger, and some larger applications may trigger the phone's timeout mechanism during installation, which may result in unsuccessful installation. Or even if the installation is successful, the installation time will be too long and the user experience will be bad. With the further development of the application, the size of the APK continues to increase.
  • Dex2oat is an executable file that compiles dex bytecode into oat format. By pre-translating the original dex file, the startup speed of the application can be accelerated.
  • Dex2oat is optimized in units of methods in the dex file. When dex2oat is optimized, it will optimize a certain amount of methods as needed. As shown in Table 1 below, according to the amount of the optimized method, it can be divided into the following five optimization modes:
  • the solidified optimization mode (for example, the default speed mode recommended by google) is difficult to achieve satisfactory results for all application installation processes and application startup speeds.
  • the technical problem to be solved by the embodiments of the present disclosure is to provide a method, a device, and a terminal for optimizing application installation, which can dynamically match an installation policy according to characteristics of an application program, and improve installation and startup performance of the application.
  • Embodiments of the present disclosure provide a method for optimizing application installation, including:
  • the application is optimally installed according to the determined installation optimization mode.
  • Embodiments of the present disclosure also provide an apparatus for optimizing application installation, including:
  • An information acquisition module configured to obtain installation information of an application to be installed
  • a mode selection module configured to determine an installation optimization mode for accelerating application startup according to the obtained installation information
  • the application install module optimizes the installation of the application according to the determined installation optimization mode.
  • the embodiment of the present disclosure further provides a terminal, including:
  • the embodiment of the present disclosure further provides a computer readable storage medium, where the program for optimizing application installation is stored on the computer readable storage medium, and the program installed by the optimization application is implemented by the processor to implement the optimized application installation.
  • a method, an apparatus, and a terminal for optimizing application installation provided by an embodiment of the present disclosure determine an installation information for an application to be installed, and determine, according to the obtained installation information, an application for speeding up application startup.
  • the optimization mode is installed, and the application is optimized and installed according to the determined installation optimization mode, and the installation strategy can be dynamically matched according to the characteristics of the application, thereby improving the installation and startup performance of the application.
  • FIG. 1 is a flowchart of a method for optimizing application installation according to Embodiment 1 of the present disclosure
  • FIG. 2 is a schematic diagram of an apparatus for optimizing application installation according to Embodiment 2 of the present disclosure.
  • an embodiment of the present disclosure provides a method for optimizing application installation, including:
  • Step S110 obtaining installation information of an application to be installed
  • Step S120 determining an installation optimization mode for accelerating application startup according to the obtained installation information
  • Step S130 the application is optimally installed according to the determined installation optimization mode.
  • the method may also include the following features:
  • the installation information includes at least one of the following: an installation package size of the application, a name of the application, and an installation path of the application;
  • the installation optimization mode for accelerating application startup is determined according to the obtained installation information, including:
  • the installation speed of the application, the startup speed of the application, and the size of the application footprint are taken as three reference dimensions, and the installation performance of the application to be installed in various installation optimization modes is evaluated according to a preset selection strategy. Choose to install optimization mode;
  • the preset selection policy includes:
  • a frequently used application selects from an application-optimized installation optimization mode
  • the application whose package size exceeds the first threshold is selected from the installation optimization mode with fast installation speed;
  • the application whose remaining storage space under the installation path is smaller than the second threshold is selected from the installation optimization mode with small application footprint;
  • the installation package size is not large (for example, no Applications that exceed the first threshold) can also be selected from more installation optimization modes, not limited to the installation optimization mode with fast application installation speed; the remaining storage space under the installation path is sufficient (such as An application that is greater than or equal to the second threshold) can also be selected from more installation optimization modes, and is not limited to selecting from an installation optimization mode with a small application footprint;
  • the installation optimization mode includes: a dex2oat optimization mode under an Android system;
  • the dex2oat optimization mode includes: a space mode, a balanced mode, a speed mode, an Everything mode, and a Time mode;
  • the installation performance corresponding to the space mode includes: an application installation space is small, an application installation speed is fast, and an application startup speed is slow;
  • the installation performance corresponding to the balance mode includes: the application installation takes up less space, the installation speed is faster, and the startup speed is slower;
  • the installation performance corresponding to the speed mode includes: the application installation space is medium, the application installation speed is medium, and the application startup speed is medium;
  • the installation performance corresponding to the mode of the mode includes: the application installation takes up a large space, the application installation speed is slow, and the application startup speed is fast;
  • the installation performance corresponding to the aging mode includes: the application installation takes up a large space, the application installation speed is slow, and the application startup speed is fast.
  • the installation optimization mode is selected according to a preset selection policy, including:
  • the application installation speed As the reference dimension, install an application whose package size exceeds the first threshold (for example, 100 Mbytes), select an installation optimization mode from the speed mode, balance mode, and space mode. The faster the installation, the better. An application whose installation package size does not exceed the first threshold (for example, 100 Mbytes), and selects an installation optimization mode from the speed mode, the balance mode, and the aging mode;
  • the first threshold for example, 100 Mbytes
  • the application with the remaining storage space under the installation path is smaller than the second threshold (for example, 50%), and selecting an installation optimization mode from the speed mode, the balance mode, and the space mode, occupying space The smaller the better; the application with the remaining storage space under the installation path greater than or equal to the second threshold (such as 50%), select an installation optimization mode from the speed mode, the balance mode, and the aging mode;
  • the second threshold for example, 50%
  • the installation optimization mode with the fastest application startup speed is selected from the plurality of installation optimization modes as the final installation optimization mode.
  • the method further includes:
  • an embodiment of the present disclosure provides an apparatus for optimizing application installation, including:
  • the information obtaining module 201 is configured to obtain installation information of the application to be installed
  • the mode selection module 202 is configured to determine an installation optimization mode for accelerating application startup according to the acquired installation information
  • the application installation module 203 optimizes the installation of the application according to the determined installation optimization mode.
  • the installation information includes at least one of the following: an installation package size of the application, a name of the application, and an installation path of the application.
  • the mode selection module is configured to determine an installation optimization mode for accelerating application startup according to the obtained installation information in the following manner: installing the application, starting the application, and using the application.
  • the size of the space is used as three reference dimensions, and the installation performance of the application to be installed in various installation optimization modes is evaluated, and the installation optimization mode is selected according to a preset selection policy.
  • the preset selection policy includes:
  • a frequently used application selects from an application-optimized installation optimization mode
  • the application whose package size exceeds the first threshold is selected from the installation optimization mode with fast installation speed;
  • the application with the remaining storage space under the installation path smaller than the second threshold is selected from the installation optimization mode with small application footprint.
  • the installation package size is not large (for example, no Applications that exceed the first threshold) can also be selected from more installation optimization modes, not limited to the installation optimization mode with fast application installation speed; the remaining storage space under the installation path is sufficient (such as An application that is greater than or equal to the second threshold) can also be selected from more installation optimization modes, and is not limited to selecting from an installation optimization mode with a small application footprint;
  • the installation optimization mode includes: a dex2oat optimization mode under an Android system;
  • the dex2oat optimization mode includes: a spatial mode, a balanced mode, a speed mode, a balanced mode, and an aging mode;
  • the installation performance corresponding to the space mode includes: the application installation space is small, the application installation speed is fast, and the application startup speed is slow; the installation performance corresponding to the balance mode includes: the application installation takes up less space.
  • the installation speed is faster, and the startup speed is slower;
  • the installation performance corresponding to the speed mode includes: the application installation space is medium, the application installation speed is medium, and the application startup speed is medium;
  • the installation performance corresponding to the balance mode includes : The application installation takes up a lot of space, the application installation speed is slower, and the application startup speed is faster;
  • the installation performance corresponding to the aging mode includes: the application installation takes up a large space, the application installation speed is slow, and the application The startup speed is fast.
  • the mode selection module is configured to select an installation optimization mode according to a preset selection policy in the following manner:
  • the application with the package size exceeding the first threshold selects an installation optimization mode from the speed mode, the balance mode, and the space mode.
  • the first threshold application selects an installation optimization mode from the speed mode, the balance mode, and the aging mode;
  • the application occupying space is used as the reference dimension, and the remaining storage space in the installation path is smaller than the second threshold. Select an installation optimization mode from the speed mode, the balance mode, and the space mode, and the smaller the space, the better; An application in which the remaining storage space in the installation path is greater than or equal to the second threshold, and an installation optimization mode is selected from the speed mode, the balance mode, and the aging mode;
  • the installation optimization mode with the fastest application startup speed is selected from the plurality of installation optimization modes as the final installation optimization mode.
  • the mode selection module is further configured to: after acquiring the installation information of the application to be installed, acquire the frequency of use of the application according to the name of the application: send the name of the application to And receiving, by the server, the average usage frequency information of the application obtained by the network statistics database for the usage behavior statistics of the multiple users according to the name of the application; or querying the local statistics according to the name of the application The usage frequency information of the application obtained by the database for the usage behavior of the end user.
  • An embodiment of the present disclosure provides a terminal, including:
  • An embodiment of the present disclosure provides a computer readable storage medium having stored thereon a program for optimizing application installation, where the program installed by the optimization application is executed by the processor to implement the above-mentioned Embodiment 1 The steps of the method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本公开提供了一种优化应用程序安装的方法、装置及终端。所述优化应用程序安装的方法包括:获取待安装的应用程序的安装信息;根据获取到的安装信息确定设置为加速应用程序启动的安装优化模式;根据确定出的安装优化模式对所述应用程序进行优化安装。 (图1)

Description

一种优化应用程序安装的方法、装置及终端
相关申请的交叉引用
本公开要求于2017年12月27日提交的申请号为201711448658.9的中国专利申请的优先权,其全部内容通过引用结合在本文中。
技术领域
本公开涉及终端技术领域,尤其涉及的是一种优化应用程序安装的方法、装置及终端。
背景技术
随着移动互联网的高速发展,手机已经成为用户个人的信息中心、媒体中心和娱乐中心。手机上会安装大量的安卓安装包(Android Package,简称APK),并且APK的更新频率也非常高。因此,应用安装场景是用户使用手机过程中最频繁的几种系统操作场景之一。
目前的应用程序越做越大,一些较大的应用程序在安装时可能会触发手机的超时(timeout)机制而导致安装不成功。或者即使最终能安装成功,安装时间过长也会导致用户体验不好。后续随着应用的进一步发展,APK的大小还有继续增大的趋势。
另一方面,目前的应用程序安装包(APK)的内容越来越复杂,应用程序启动时加载的内容也越来越多,自安卓(Android)L版本之后,Android通过引入dex2oat技术来提升应用程序启动速度。dex2oat是将dex字节码编译成oat格式的可执行文件,通过将原来的dex文件做预先的翻译,从而可以加快应用程序的启动速度。
dex2oat是以dex文件中的方法(method)为单位进行优化的。dex2oat在优化时,会根据需要优化一定量的method。如下表1所示,根据优化的method的量的多少,可以分为如下的五种优化模式:
Figure PCTCN2018109845-appb-000001
表1
由于不同的dex2oat优化模式会有不同的优化效果,因此,固化的优化模式(比如,google默认推荐的speed模式)很难使所有应用程序的安装过程和应用启动速度都达到令用户满意 的效果。
发明内容
本公开实施例所要解决的技术问题是提供一种优化应用程序安装的方法、装置及终端,能够根据应用程序的特点动态匹配安装策略,提升应用程序的安装、启动性能。
本公开实施例提供一种优化应用程序安装的方法,包括:
获取待安装的应用程序的安装信息;
根据获取到的安装信息确定用于加速应用程序启动的安装优化模式;
根据确定出的安装优化模式对所述应用程序进行优化安装。
本公开实施例还提供一种优化应用程序安装的装置,包括:
信息获取模块,设置为获取待安装的应用程序的安装信息;
模式选择模块,设置为根据获取到的安装信息确定用于加速应用程序启动的安装优化模式;
应用程序安装模块,根据确定出的安装优化模式对所述应用程序进行优化安装。
本公开实施例还提供一种终端,包括:
存储器、处理器及存储在所述存储器上并可在所述处理器上运行的优化应用程序安装的程序,所述优化应用程序安装的程序被所述处理器执行时实现上述优化应用程序安装的方法的步骤。
本公开实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有优化应用程序安装的程序,所述优化应用程序安装的程序被处理器执行时实现上述优化应用程序安装的方法的步骤
与相关技术相比,本公开实施例提供的一种优化应用程序安装的方法、装置及终端,通过获取待安装的应用程序的安装信息并根据获取到的安装信息确定用于加速应用程序启动的安装优化模式,根据确定出的安装优化模式对所述应用程序进行优化安装,能够根据应用程序的特点动态匹配安装策略,提升应用程序的安装、启动性能。
附图说明
图1为本公开实施例1的一种优化应用程序安装的方法流程图;
图2为本公开实施例2的一种优化应用程序安装的装置示意图。
具体实施方式
为使本公开的目的、技术方案和优点更加清楚明白,下文中将结合附图对本公开的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例1
如图1所示,本公开实施例提供了一种优化应用程序安装的方法,包括:
步骤S110,获取待安装的应用程序的安装信息;
步骤S120,根据获取到的安装信息确定用于加速应用程序启动的安装优化模式;
步骤S130,根据确定出的安装优化模式对所述应用程序进行优化安装。
所述方法还可以包括下述特点:
在一种实施方式中,所述安装信息包括以下信息的至少一种:应用程序的安装包大小、应用程序的名称和应用程序的安装路径;
在一种实施方式中,根据获取到的安装信息确定用于加速应用程序启动的安装优化模式,包括:
将应用程序的安装速度、应用程序的启动速度以及应用程序占用空间的大小作为三个参考维度,评估所述待安装的应用程序在各种安装优化模式下的安装性能,根据预设的选择策略选择安装优化模式;
在一种实施方式中,所述预设的选择策略包括:
以应用程序的启动速度作为参考维度,使用频率高的应用程序从应用程序启动速度快的安装优化模式中选择;和
以应用程序的安装速度作为参考维度,安装包大小超过第一阈值的应用程序从安装速度快的安装优化模式中选择;和
以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值的应用程序从应用程序占用空间小的安装优化模式中选择;
其中,对于使用频率不高的应用程序,可以从更多的安装优化模式中进行选择,而不限于从应用程序启动速度快的安装优化模式中进行选择;对于安装包大小不大(比如,没有超过第一阈值)的应用程序,也可以从更多的安装优化模式中进行选择,而不限于从应用程序安装速度快的安装优化模式中进行选择;对于安装路径下的剩余存储空间充裕(比如,大于或等于第二阈值)的应用程序,也可以从更多的安装优化模式中进行选择,而不限于从应用程序占用空间小的安装优化模式中进行选择;
在一种实施方式中,所述安装优化模式包括:安卓系统下的dex2oat优化模式;
其中,所述dex2oat优化模式包括:空间(Space)模式、平衡(Balanced)模式、速度(Speed)模式、兼顾(Everything)模式和时效(Time)模式;
其中,所述空间模式对应的安装性能包括:应用程序安装占用空间小,应用程序安装速度快,和应用程序启动速度慢;
所述平衡模式对应的安装性能包括:应用程序安装占用空间较小,安装速度较快,和启动速度较慢;
所述速度模式对应的安装性能包括:应用程序安装占用空间中等,应用程序安装速度中等,和应用程序启动速度中等;
所述兼顾模式对应的安装性能包括:应用程序安装占用空间较大,应用程序安装速度较慢,和应用程序启动速度较快;
所述时效模式对应的安装性能包括:应用程序安装占用空间大,应用程序安装速度慢,和应用程序启动速度快。
在一种实施方式中,根据预设的选择策略选择安装优化模式,包括:
以应用程序的使用频率作为参考维度,将应用程序按照使用频率由高到低进行排名,属于排名在前N位的应用程序,从速度模式,兼顾模式和时效模式中选择一种安装优化模式,启动速度越快越好;不属于排名在前N位的应用程序,从速度模式,平衡模式和空间模式中选择一种安装优化模式;
以应用程序的安装速度作为参考维度,安装包大小超过第一阈值(比如100M字节)的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,安装速度越快越好;安装包大小没有超过第一阈值(比如100M字节)的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值(比如50%)的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,占用空间越小越好;安装路径下的剩余存储空间大于或等于第二阈值(比如50%)的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
在三个参考维度都经过评估后,如果选出了多种安装优化模式,则从所述多种安装优化模式中选择应用程序启动速度最快的一种安装优化模式作为最终的安装优化模式。
在一种实施方式中,在获取待安装的应用程序的安装信息后,所述方法还包括:
根据所述应用程序的名称获取所述应用程序的使用频率,包括:
将所述应用程序的名称发送给服务器,然后接收所述服务器根据所述应用程序的名称查询网络统计数据库针对多个用户的使用行为统计得到的所述应用程序的平均使用频率信息;或者,根据所述应用程序的名称查询本地统计数据库针对本终端用户的使用行为统计得到的所述应用程序的使用频率信息。
实施例2
如图2所示,本公开实施例提供了一种优化应用程序安装的装置,包括:
信息获取模块201,设置为获取待安装的应用程序的安装信息;
模式选择模块202,设置为根据获取到的安装信息确定用于加速应用程序启动的安装优化模式;
应用程序安装模块203,根据确定出的安装优化模式对所述应用程序进行优化安装。
在一种实施方式中,所述安装信息包括以下信息的至少一种:应用程序的安装包大小、应用程序的名称和应用程序的安装路径。
在一种实施方式中,模式选择模块,设置为采用以下方式根据获取到的安装信息确定用于加速应用程序启动的安装优化模式:将应用程序的安装速度、应用程序的启动速度以及应用程序占用空间的大小作为三个参考维度,评估所述待安装的应用程序在各种安装优化模式下的安装性能,根据预设的选择策略选择安装优化模式。
在一种实施方式中,所述预设的选择策略包括:
以应用程序的启动速度作为参考维度,使用频率高的应用程序从应用程序启动速度快的安装优化模式中选择;和
以应用程序的安装速度作为参考维度,安装包大小超过第一阈值的应用程序从安装速度快的安装优化模式中选择;和
以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值的应用程序从应用程序占用空间小的安装优化模式中选择。
其中,对于使用频率不高的应用程序,可以从更多的安装优化模式中进行选择,而不限于从应用程序启动速度快的安装优化模式中进行选择;对于安装包大小不大(比如,没有超过第一阈值)的应用程序,也可以从更多的安装优化模式中进行选择,而不限于从应用程序安装速度快的安装优化模式中进行选择;对于安装路径下的剩余存储空间充裕(比如,大于或等于第二阈值)的应用程序,也可以从更多的安装优化模式中进行选择,而不限于从应用程序占用空间小的安装优化模式中进行选择;
在一种实施方式中,所述安装优化模式包括:安卓系统下的dex2oat优化模式;
所述dex2oat优化模式包括:空间模式、平衡模式、速度模式、兼顾模式和时效模式;
其中,所述空间模式对应的安装性能包括:应用程序安装占用空间小,应用程序安装速度快,和应用程序启动速度慢;所述平衡模式对应的安装性能包括:应用程序安装占用空间较小,安装速度较快,和启动速度较慢;所述速度模式对应的安装性能包括:应用程序安装占用空间中等,应用程序安装速度中等,和应用程序启动速度中等;所述兼顾模式对应的安装性能包括:应用程序安装占用空间较大,应用程序安装速度较慢,和应用程序启动速度较快;所述时效模式对应的安装性能包括:应用程序安装占用空间大,应用程序安装速度慢,和应用程序启动速度快。
在一种实施方式中,模式选择模块,设置为采用以下方式根据预设的选择策略选择安装优化模式:
以应用程序的使用频率作为参考维度,将应用程序按照使用频率由高到低进行排名,属于排名在前N位的应用程序,从速度模式,兼顾模式和时效模式中选择一种安装优化模式,启动速度越快越好;不属于排名在前N位的应用程序,从速度模式,平衡模式和空间模式中选择一种安装优化模式;
以应用程序的安装速度作为参考维度,安装包大小超过第一阈值的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,安装速度越快越好;安装包大小没有超过第一阈值的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,占用空间越小越好;安装路径下的剩余存储空间大于或等于第二阈值的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
在三个参考维度都经过评估后,如果选出了多种安装优化模式,则从所述多种安装优化 模式中选择应用程序启动速度最快的一种安装优化模式作为最终的安装优化模式。
在一种实施方式中,模式选择模块,还设置为获取待安装的应用程序的安装信息后,根据所述应用程序的名称获取所述应用程序的使用频率:将所述应用程序的名称发送给服务器,然后接收所述服务器根据所述应用程序的名称查询网络统计数据库针对多个用户的使用行为统计得到的所述应用程序的平均使用频率信息;或者,根据所述应用程序的名称查询本地统计数据库针对本终端用户的使用行为统计得到的所述应用程序的使用频率信息。
实施例3
本公开实施例提供了一种终端,包括:
存储器、处理器及存储在所述存储器上并可在所述处理器上运行的优化应用程序安装的程序,所述优化应用程序安装的程序被所述处理器执行时实现上述实施例1中的方法的步骤。
实施例4
本公开实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有优化应用程序安装的程序,所述优化应用程序安装的程序被处理器执行时实现上述实施例1中的方法的步骤。
需要说明的是,本公开还可有其他多种实施例,在不背离本公开精神及其实质的情况下,熟悉本领域的技术人员可根据本公开作出各种相应的改变和变形,但这些相应的改变和变形都应属于本公开所附的权利要求的保护范围。

Claims (16)

  1. 一种优化应用程序安装的方法,包括:
    获取待安装的应用程序的安装信息;
    根据获取到的安装信息确定设置为加速应用程序启动的安装优化模式;
    根据确定出的安装优化模式对所述应用程序进行优化安装。
  2. 如权利要求1所述的方法,其中:
    所述安装信息包括以下信息的至少一种:应用程序的安装包大小、应用程序的名称和应用程序的安装路径。
  3. 如权利要求2所述的方法,其中:
    所述根据获取到的安装信息确定设置为加速应用程序启动的安装优化模式,包括:
    将应用程序的安装速度、应用程序的启动速度以及应用程序占用空间的大小作为三个参考维度,评估所述待安装的应用程序在各种安装优化模式下的安装性能,根据预设的选择策略选择安装优化模式。
  4. 如权利要求3所述的方法,其中:
    所述预设的选择策略包括:
    以应用程序的启动速度作为参考维度,使用频率高的应用程序从应用程序启动速度快的安装优化模式中选择;和
    以应用程序的安装速度作为参考维度,安装包大小超过第一阈值的应用程序从安装速度快的安装优化模式中选择;和
    以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值的应用程序从应用程序占用空间小的安装优化模式中选择。
  5. 如权利要求4所述的方法,其中:
    所述安装优化模式包括:安卓系统下的dex2oat优化模式;
    所述dex2oat优化模式包括:空间模式、平衡模式、速度模式、兼顾模式和时效模式;
    其中,所述空间模式对应的安装性能包括:应用程序安装占用空间小,应用程序安装速度快,和应用程序启动速度慢;所述平衡模式对应的安装性能包括:应用程序安装占用空间较小,安装速度较快,和启动速度较慢;所述速度模式对应的安装性能包括:应用程序安装占用空间中等,应用程序安装速度中等,和应用程序启动速度中等;所述兼顾模式对应的安装性能包括:应用程序安装占用空间较大,应用程序安装速度较慢,和应用程序启动速度较快;所述时效模式对应的安装性能包括:应用程序安装占用空间大,应用程序安装速度慢,和应用程序启动速度快。
  6. 如权利要求5所述的方法,其中:
    所述根据预设的选择策略选择安装优化模式,包括:
    以应用程序的使用频率作为参考维度,将应用程序按照使用频率由高到低进行排名,属于排名在前N位的应用程序,从速度模式,兼顾模式和时效模式中选择一种安装优化 模式,启动速度越快越好;不属于排名在前N位的应用程序,从速度模式,平衡模式和空间模式中选择一种安装优化模式;
    以应用程序的安装速度作为参考维度,安装包大小超过第一阈值的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,安装速度越快越好;安装包大小没有超过第一阈值的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
    以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,占用空间越小越好;安装路径下的剩余存储空间大于或等于第二阈值的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
    在三个参考维度都经过评估后,如果选出了多种安装优化模式,则从所述多种安装优化模式中选择应用程序启动速度最快的一种安装优化模式作为最终的安装优化模式。
  7. 如权利要求4所述的方法,在获取待安装的应用程序的安装信息后,其中,所述方法还包括:
    根据所述应用程序的名称获取所述应用程序的使用频率,包括:
    将所述应用程序的名称发送给服务器,然后接收所述服务器根据所述应用程序的名称查询网络统计数据库针对多个用户的使用行为统计得到的所述应用程序的平均使用频率信息;或者,根据所述应用程序的名称查询本地统计数据库针对本终端用户的使用行为统计得到的所述应用程序的使用频率信息。
  8. 一种优化应用程序安装的装置,包括:
    信息获取模块,设置为获取待安装的应用程序的安装信息;
    模式选择模块,设置为根据获取到的安装信息确定设置为加速应用程序启动的安装优化模式;
    应用程序安装模块,根据确定出的安装优化模式对所述应用程序进行优化安装。
  9. 如权利要求8所述的装置,其中:
    所述安装信息包括以下信息的至少一种:应用程序的安装包大小、应用程序的名称和应用程序的安装路径。
  10. 如权利要求9所述的装置,其中:
    模式选择模块,设置为采用以下方式根据获取到的安装信息确定设置为加速应用程序启动的安装优化模式:
    将应用程序的安装速度、应用程序的启动速度以及应用程序占用空间的大小作为三个参考维度,评估所述待安装的应用程序在各种安装优化模式下的安装性能,根据预设的选择策略选择安装优化模式。
  11. 如权利要求10所述的装置,其中:
    所述预设的选择策略包括:
    以应用程序的启动速度作为参考维度,使用频率高的应用程序从应用程序启动速度快 的安装优化模式中选择;和
    以应用程序的安装速度作为参考维度,安装包大小超过第一阈值的应用程序从安装速度快的安装优化模式中选择;和
    以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值的应用程序从应用程序占用空间小的安装优化模式中选择。
  12. 如权利要求11所述的装置,其中:
    所述安装优化模式包括:安卓系统下的dex2oat优化模式;
    所述dex2oat优化模式包括:空间模式、平衡模式、速度模式、兼顾模式和时效模式;
    其中,所述空间模式对应的安装性能包括:应用程序安装占用空间小,应用程序安装速度快,和应用程序启动速度慢;所述平衡模式对应的安装性能包括:应用程序安装占用空间较小,安装速度较快,和启动速度较慢;所述速度模式对应的安装性能包括:应用程序安装占用空间中等,应用程序安装速度中等,和应用程序启动速度中等;所述兼顾模式对应的安装性能包括:应用程序安装占用空间较大,应用程序安装速度较慢,和应用程序启动速度较快;所述时效模式对应的安装性能包括:应用程序安装占用空间大,应用程序安装速度慢,和应用程序启动速度快。
  13. 如权利要求12所述的装置,其中:
    模式选择模块,设置为采用以下方式根据预设的选择策略选择安装优化模式:
    以应用程序的使用频率作为参考维度,将应用程序按照使用频率由高到低进行排名,属于排名在前N位的应用程序,从速度模式,兼顾模式和时效模式中选择一种安装优化模式,启动速度越快越好;不属于排名在前N位的应用程序,从速度模式,平衡模式和空间模式中选择一种安装优化模式;
    以应用程序的安装速度作为参考维度,安装包大小超过第一阈值的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,安装速度越快越好;安装包大小没有超过第一阈值的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
    以应用程序占用空间的大小作为参考维度,安装路径下的剩余存储空间小于第二阈值的应用程序,从速度模式、平衡模式和空间模式中选择一种安装优化模式,占用空间越小越好;安装路径下的剩余存储空间大于或等于第二阈值的应用程序,从速度模式、兼顾模式和时效模式中选择一种安装优化模式;
    在三个参考维度都经过评估后,如果选出了多种安装优化模式,则从所述多种安装优化模式中选择应用程序启动速度最快的一种安装优化模式作为最终的安装优化模式。
  14. 如权利要求11所述的装置,其中:
    模式选择模块,还设置为获取待安装的应用程序的安装信息后,根据所述应用程序的名称获取所述应用程序的使用频率:将所述应用程序的名称发送给服务器,然后接收所述服务器根据所述应用程序的名称查询网络统计数据库针对多个用户的使用行为统计得到的所述应用程序的平均使用频率信息;或者,根据所述应用程序的名称查询本地统计数据 库针对本终端用户的使用行为统计得到的所述应用程序的使用频率信息。
  15. 一种终端,包括:
    存储器、处理器及存储在所述存储器上并可在所述处理器上运行的优化应用程序安装的程序,所述优化应用程序安装的程序被所述处理器执行时实现如权利要求1-7中任一项所述的优化应用程序安装的方法的步骤。
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有优化应用程序安装的程序,所述优化应用程序安装的程序被处理器执行时实现如权利要求1-7中任一项所述的优化应用程序安装的方法的步骤。
PCT/CN2018/109845 2017-12-27 2018-10-11 一种优化应用程序安装的方法、装置及终端 WO2019128380A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711448658.9 2017-12-27
CN201711448658.9A CN108228200A (zh) 2017-12-27 2017-12-27 一种优化应用程序安装的方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2019128380A1 true WO2019128380A1 (zh) 2019-07-04

Family

ID=62649168

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109845 WO2019128380A1 (zh) 2017-12-27 2018-10-11 一种优化应用程序安装的方法、装置及终端

Country Status (2)

Country Link
CN (1) CN108228200A (zh)
WO (1) WO2019128380A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228200A (zh) * 2017-12-27 2018-06-29 中兴通讯股份有限公司 一种优化应用程序安装的方法、装置及终端
CN112540769A (zh) * 2020-12-29 2021-03-23 Oppo广东移动通信有限公司 编译处理方法、装置、电子设备以及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919425A (zh) * 2017-02-28 2017-07-04 上海传英信息技术有限公司 一种应用程序安装优化的方法
US20170220335A1 (en) * 2016-02-02 2017-08-03 ZeroTurnaround AS System and Method for Fast Initial and Incremental Deployment of Apps
CN107015816A (zh) * 2017-05-25 2017-08-04 微鲸科技有限公司 操作系统升级方法、装置及一种智能终端
CN108228200A (zh) * 2017-12-27 2018-06-29 中兴通讯股份有限公司 一种优化应用程序安装的方法、装置及终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677907A (zh) * 2013-12-03 2014-03-26 曙光信息产业(北京)有限公司 环境预测类应用组件的安装方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170220335A1 (en) * 2016-02-02 2017-08-03 ZeroTurnaround AS System and Method for Fast Initial and Incremental Deployment of Apps
CN106919425A (zh) * 2017-02-28 2017-07-04 上海传英信息技术有限公司 一种应用程序安装优化的方法
CN107015816A (zh) * 2017-05-25 2017-08-04 微鲸科技有限公司 操作系统升级方法、装置及一种智能终端
CN108228200A (zh) * 2017-12-27 2018-06-29 中兴通讯股份有限公司 一种优化应用程序安装的方法、装置及终端

Also Published As

Publication number Publication date
CN108228200A (zh) 2018-06-29

Similar Documents

Publication Publication Date Title
CN107832100B (zh) 一种apk插件的加载方法及其终端
US20170192819A1 (en) Method and electronic device for resource allocation
WO2017185616A1 (zh) 文件存储方法及电子设备
CN105760199B (zh) 一种应用资源加载方法及其设备
WO2019042180A1 (zh) 资源配置方法及相关产品
CN109829287A (zh) Api接口权限访问方法、设备、存储介质及装置
CN110888658B (zh) 应用程序中功能模块的动态化方法、装置及存储介质
WO2017185605A1 (zh) 文件管理方法及电子设备
CN113055451A (zh) 资源下载方法、装置、电子设备及存储介质
CN111258965B (zh) 一种数据获取方法、装置、电子设备及存储介质
US20170177255A1 (en) Method and electronic device for allocating dynamic memory resources
US9588757B2 (en) Data update method, user terminal, and data update system
CN113498622A (zh) 用于在无线通信网络中请求nssai的电子装置及其方法
WO2019128380A1 (zh) 一种优化应用程序安装的方法、装置及终端
CN107147921A (zh) 基于切片与智能cdn调度的视频播放加速方法和设备
WO2020088170A1 (zh) 域名系统配置方法及相关装置
CN104866339A (zh) Fota数据的分布式持久化管理方法、系统和装置
US8554999B2 (en) Methods for providing a response and systems thereof
CN107959667A (zh) 一种媒体分片的推送方法、服务器及客户端
CN109428788B (zh) 功能测试方法及系统
CN108108203B (zh) 用于安装包下载安装过程的方法、装置及系统
WO2017219729A1 (zh) 确定接入网络的方法及装置
US11262995B2 (en) Method and apparatus for downloading installation-free application
CN117473011A (zh) 数据同步方法、装置以及混合缓存系统
CN112073215B (zh) 一种实现应用的方法及业务控制器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18896029

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18896029

Country of ref document: EP

Kind code of ref document: A1