WO2016188060A1 - 应用程序安装包的处理方法及装置 - Google Patents

应用程序安装包的处理方法及装置 Download PDF

Info

Publication number
WO2016188060A1
WO2016188060A1 PCT/CN2015/095136 CN2015095136W WO2016188060A1 WO 2016188060 A1 WO2016188060 A1 WO 2016188060A1 CN 2015095136 W CN2015095136 W CN 2015095136W WO 2016188060 A1 WO2016188060 A1 WO 2016188060A1
Authority
WO
WIPO (PCT)
Prior art keywords
application installation
installation package
attribute
upgrade
compilation
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2015/095136
Other languages
English (en)
French (fr)
Inventor
吴俊洲
王舒捷
孙念
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to MX2016005288A priority Critical patent/MX358805B/es
Priority to JP2017519779A priority patent/JP6189000B2/ja
Priority to RU2016116026A priority patent/RU2651207C2/ru
Priority to KR1020167001449A priority patent/KR20160150100A/ko
Priority to BR112016010565A priority patent/BR112016010565A2/pt
Publication of WO2016188060A1 publication Critical patent/WO2016188060A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45516Runtime code conversion or optimisation

Definitions

  • the present disclosure relates to the field of mobile terminals, and in particular, to a method and an apparatus for processing an application installation package.
  • the APK (AndroidPackage, Android installation package) on the mobile terminal needs to be optimized.
  • the optimization process usually compiles the APK installed on the mobile terminal into binary code to speed up the execution of the code.
  • the present disclosure provides an application compiling method and apparatus.
  • the technical solution is as follows:
  • a method for processing an application installation package comprising:
  • the processing attribute of the application installation package is obtained; the processing attribute is: upgrade compilation attribute or idle compilation attribute;
  • the application installation package whose processing attribute is the upgrade compilation attribute is compiled.
  • the processing attributes of the application installation package are obtained, including:
  • the application installation package is not in the upgrade compilation list, it is detected whether the duration between the latest usage time and the current time of the application installation package exceeds a preset duration;
  • the method further includes:
  • the application installation package whose processing attribute is the idle compiled attribute is compiled.
  • the idle compilation condition includes at least one of the following conditions:
  • the current time belongs to an idle time period
  • the current power exceeds a preset threshold
  • the method further includes:
  • the application installation package is an application installation package that has not been compiled and the processing attribute is a free compilation property, the application installation package is compiled and the application installation package is started after the compilation is completed.
  • the method further includes:
  • a processing apparatus for an application installation package comprising:
  • the obtaining module is configured to: when an upgrade operation to the operating system is detected, obtain a processing attribute of the application installation package; and the processing attribute is: an upgrade compiled attribute or an idle compiled attribute;
  • the compiling module is configured to compile the application installation package whose processing attribute is the upgrade compile attribute during the upgrade process of the operating system.
  • the acquiring module includes:
  • the first detecting submodule is configured to detect, one by one, whether the application installation package to be compiled belongs to an upgrade compiled list;
  • the second detecting submodule is configured to detect, when not belonging to the upgrade compiling list, whether the duration between the latest usage time and the current time of the application installation package exceeds a preset duration;
  • the idle determination submodule is configured to determine that the processing attribute of the application installation package is an idle compilation attribute when the preset duration is exceeded;
  • the upgrade determination sub-module is configured to determine that the processing attribute of the application installation package is an upgrade compilation attribute when it belongs to the upgrade compilation list or does not exceed the preset duration.
  • the device further includes:
  • An idle detection module configured to detect whether the current running state meets an idle compile condition
  • the idle compilation module is configured to compile an application installation package whose processing attribute is an idle compilation attribute when the current running state meets the idle compilation condition.
  • the idle compilation condition includes at least one of the following conditions:
  • the current time belongs to an idle time period
  • the current power exceeds a preset threshold
  • the device further includes:
  • a signal receiving module configured to receive a start signal corresponding to the application installation package
  • a fourth detection module configured to detect whether the application installation package is an application installation package that has not been compiled and has a processing attribute of an idle compilation attribute
  • the startup compilation module is configured to compile the application installation package after the application installation package is an application installation package that has not been compiled and the processing attribute is the idle compilation property, and launch the application installation package after the compilation is completed.
  • the device further includes:
  • the setup module is configured to set the processing attributes of the application installation package in advance based on the importance level of the application installation package.
  • a processing apparatus for an application installation package comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the processing attribute of the application installation package is obtained; the processing attribute is: upgrade compilation attribute or idle compilation attribute;
  • the application installation package whose processing attribute is the upgrade compilation attribute is compiled.
  • FIG. 1 is a flowchart of a method for processing an application installation package according to an exemplary embodiment
  • FIG. 2 is a flowchart of a method of processing an application installation package according to another exemplary embodiment
  • FIG. 3A to FIG. 3C are schematic diagrams showing an interface of a method for processing an application installation package provided by the embodiment shown in FIG. 2;
  • FIG. 4 is a block diagram of a processing apparatus of an application installation package according to an exemplary embodiment
  • FIG. 5 is a block diagram of a processing apparatus of an application installation package according to another exemplary embodiment
  • FIG. 6 is a block diagram of a processing device of an application installation package, according to an exemplary embodiment.
  • the mobile terminals in this article can be mobile phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic The video specialist compresses the standard audio layer 4) the player and laptop portable computer and so on.
  • the compilation process of each APK takes several seconds to several minutes, and when all the APKs are compiled, the whole process is caused.
  • the upgrade process takes a long time. On a mobile phone with a low hardware configuration, the entire upgrade process can take several tens of minutes.
  • FIG. 1 is a flowchart of a method for processing an application installation package according to an exemplary embodiment. This embodiment is exemplified by applying the processing method of the application installation package to the mobile terminal. The method includes.
  • step 102 when an upgrade operation to the operating system is detected, the processing attribute of the application installation package is acquired; the processing attribute includes: an upgrade compilation attribute or an idle compilation attribute.
  • the operating system can be an Android operating system.
  • step 104 during the upgrade process of the operating system, the application installation package whose processing attribute is the upgrade compilation attribute is compiled.
  • the application compiling method provided in this embodiment skips the compiling process of part of the application installation package during the upgrade process; and solves the problem that compiling all application installation packages in the upgrade process may cause time-consuming upgrade process Too long a problem; achieved the time-consuming reduction of the upgrade process, and can not affect the user's normal use of the application installation package.
  • FIG. 2 is a flowchart of a method of processing an application installation package according to another exemplary embodiment. This embodiment is exemplified by applying the processing method of the application installation package to the mobile terminal. The method includes:
  • step 201 the processing attribute of the application installation package is set in advance according to the importance level of the application installation package.
  • the mobile terminal is a terminal running an Android operating system.
  • the application installation package is apk.
  • Processing attributes include: upgrade compilation attributes or idle compilation attributes.
  • the upgrade compilation attribute refers to the attribute that the application installation package needs to be compiled during the upgrade process;
  • the idle compilation attribute refers to the attribute that the application installation package is not compiled during the upgrade process.
  • the importance level of the application installation package can be preset by the system or by the user.
  • the application installation package necessary for the system to run is set to a high priority level; for the system to run an unnecessary application installation package, the application installation package that is not commonly used by the user is set to Low priority.
  • the frequency of use of the application installation package or the duration of the last used time from the current time can be used to characterize the application Whether the installation package is a common application installation package for users.
  • the processing properties can be set to upgrade compilation properties
  • the processing properties can be set to idle compilation properties.
  • the processing attribute may be a static attribute or an attribute dynamically detected by the mobile terminal.
  • step 201 may optionally include the following two steps.
  • the mobile terminal receives the first setting signal, and generates or modifies the upgrade compiled list according to the first setting signal.
  • the user may trigger a first setting signal in the mobile terminal, and the first setting signal may be a signal that is checked in the APK list.
  • the upgrade build list refers to the list of application installation packages that handle attributes as upgrade compilation properties.
  • the mobile terminal When the upgrade compilation list does not exist initially, the mobile terminal generates an upgrade compilation list according to the first setting signal. When the upgrade compilation list initially exists, the mobile terminal modifies the upgrade compilation list according to the first setting signal.
  • the initial upgrade compilation list is preset by the operating system.
  • the mobile terminal receives the second setting signal, and generates or modifies the preset duration according to the second setting signal.
  • the preset duration is a threshold for determining whether the application installation package belongs to a common application installation package.
  • the user can trigger a second setting signal in the mobile terminal, and the second setting signal can be a signal that slides in the duration slider.
  • the user slides the slider 32 in the duration slider to set the preset duration to 7 days.
  • the preset duration is the threshold used to determine if the application installation package is a common application installation package.
  • the mobile terminal When the preset duration does not exist initially, the mobile terminal generates a preset duration according to the second setting signal; when the preset duration initially exists, the mobile terminal modifies the preset duration according to the second setting signal.
  • the initial preset duration is preset by the operating system.
  • step 202 when the upgrade operation to the operating system is detected, it is detected one by one whether the application installation package belongs to the upgrade compilation list.
  • n application installation packages to be compiled in the mobile terminal, and n is a positive integer.
  • the n applications to be compiled include: the third-party application installation package installed by the user.
  • the n applications to be compiled include: the application installation package that comes with the system, and the third-party application installation package installed by the user.
  • the mobile terminal detects one by one whether the application installation package to be compiled belongs to the compiled whitelist.
  • step 203 If it belongs to the upgrade compilation list, go to step 203; if it does not belong to the upgrade compilation list, go to step 204.
  • step 203 the application installation package whose processing attribute is the upgrade compilation attribute is compiled.
  • the mobile terminal determines the processing attribute of the application installation package. To upgrade the compiled properties, compile the application installation package into a more efficient binary code file.
  • step 204 it is detected whether the duration between the latest usage time and the current time of the application installation package exceeds the preset duration.
  • the application installation package belongs to the common application, and the mobile terminal determines that the processing attribute of the application installation package is the upgrade compilation attribute, and proceeds to step 203.
  • the mobile terminal determines that the processing attribute of the application installation package is an idle compilation attribute, and proceeds to step 205.
  • step 205 the compilation process of the application installation package is skipped.
  • the mobile terminal After the n application installation packages are detected, the mobile terminal completes the upgrade process.
  • step 206 after the upgrade process is completed, it is detected whether the current running state meets the idle compile condition.
  • the idle compilation condition includes at least one of the following conditions:
  • the current time belongs to an idle time period
  • the current power exceeds a preset threshold
  • the idle compile condition is that the current time belongs to 11:30 pm to 6:00 am, and the current power is more than 50%, and no operation signal is received within the last 10 minutes.
  • step 207 if the current running state meets the idle compile condition, the application installation package whose processing attribute is the idle compiled attribute is compiled.
  • the mobile terminal When the mobile terminal meets the idle compile condition, it continues to compile and compile the application installation package whose processing attribute is the idle compilation attribute. If the idle compile condition is not met, the mobile terminal maintains the current running state.
  • the mobile terminal compiles the currently installed application installation package, and does not compile other uncompiled application installation packages, waiting for the next match. When the compilation condition is idle, continue compiling again.
  • steps 206 and 207 are optional steps.
  • step 208 a start signal corresponding to the application installation package is received.
  • the user can also manually launch the application installation package.
  • step 209 it is detected whether the application installation package is an application installation package that has not been compiled and whose processing attribute is an idle compilation attribute.
  • step 210 if the application installation package is an already compiled application installation package, the application installation package is started.
  • step 211 if the application installation package is an application installation package that has not been compiled and the processing attribute is an idle compilation attribute, the application installation package is compiled and the application installation package is started after the compilation is completed.
  • the mobile terminal can display a boot interface during the process of compiling the application installation package.
  • the boot interface Used to prompt the user to wait for the completion of the compilation process.
  • the mobile terminal displays a dialog box 34 during the compilation process, and the dialog box 34 displays the prompt information of "optimizing compilation, please wait a moment.".
  • the processing method of the application installation package provided in this embodiment solves the problem that the upgrade process takes too long and can be greatly shortened by compiling the necessary part of the application installation package during the upgrade process.
  • the upgrade is time-consuming and ensures the normal use of the application installation package and improves the user experience.
  • the processing method of the application installation package provided in this embodiment further automatically compiles the application installation package whose processing attribute is the idle compilation attribute when the current running state of the mobile terminal meets the idle compilation condition, thereby solving the upgrade process.
  • the processing method of the application installation package provided in this embodiment is also provided when the user needs to use the application installation package, if the current application installation package is an application installation package that has not been compiled and the processing attribute is an idle compilation attribute, Compiling the application installation package, because the compilation time of a single application installation package is limited, can still not affect the user's use of the application installation package.
  • FIG. 4 is a block diagram of a processing device for an application installation package according to an exemplary embodiment.
  • the processing device of the application installation package may be implemented as a mobile device by software, hardware, or a combination of both. All or part of the terminal.
  • the processing device of the application installation package includes, but is not limited to.
  • the obtaining module 420 is configured to acquire a processing attribute of the application installation package when the upgrade operation to the operating system is detected; and the processing attribute is: an upgrade compiled attribute or an idle compiled attribute.
  • the compiling module 440 is configured to compile an application installation package whose processing attribute is an upgrade compile attribute during an upgrade process of the operating system.
  • the processing device for the application installation package provided in this embodiment solves the problem that the upgrade process takes too long and can be greatly shortened by compiling the necessary partial application installation packages during the upgrade process.
  • the upgrade is time-consuming and ensures the normal use of the application installation package and improves the user experience.
  • FIG. 5 is a block diagram of a processing device for an application installation package according to an exemplary embodiment. As shown in FIG. 5, the processing device of the application installation package may be implemented by software, hardware, or a combination of both. All or part of the terminal. The processing device of the application installation package includes, but is not limited to.
  • the obtaining module 520 is configured to: when an upgrade operation to the operating system is detected, obtain a processing attribute of the application installation package; the processing attribute is: an upgrade compiled attribute or an idle compiled attribute;
  • the compiling module 540 is configured to compile an application installation package whose processing attribute is an upgrade compile attribute during an upgrade process of the operating system.
  • the obtaining module 520 includes:
  • the first detecting submodule 522 is configured to detect, on a case-by-case basis, whether the application installation package to be compiled belongs to an upgrade compiled list;
  • the second detecting sub-module 524 is configured to detect, when not belonging to the upgrade compiled list, whether the duration between the latest usage time and the current time of the application installation package exceeds a preset duration;
  • the idle determination submodule 526 is configured to determine that the processing attribute of the application installation package is an idle compilation attribute when the preset duration is exceeded;
  • the upgrade determination sub-module 528 is configured to determine that the processing attribute of the application installation package is an upgrade compilation attribute when it belongs to the upgrade compilation list or does not exceed the preset duration.
  • the device further includes:
  • the idle detection module 532 is configured to detect whether the current running state meets an idle compile condition
  • the idle compilation module 534 is configured to compile the application installation package whose processing attribute is the idle compilation attribute when the current running state meets the idle compilation condition.
  • the idle compilation condition includes at least one of the following conditions:
  • the current time belongs to an idle time period
  • the current power exceeds a preset threshold
  • the device further includes:
  • the signal receiving module 552 is configured to receive a start signal corresponding to the application installation package
  • the fourth detecting module 554 is configured to detect whether the application installation package is an application installation package that has not been compiled and the processing attribute is an idle compilation attribute;
  • the startup compilation module 556 is configured to compile the application installation package after the application installation package is an application installation package that has not been compiled and the processing attribute is a free compilation property, and launch the application installation package after the compilation is completed.
  • the device further includes:
  • the setting module 510 is configured to set the processing attribute of the application installation package in advance according to the importance level of the application installation package.
  • the processing device for the application installation package provided in this embodiment solves the problem that the upgrade process takes too long and can be greatly shortened by compiling the necessary partial application installation packages during the upgrade process.
  • the upgrade is time-consuming and ensures the normal use of the application installation package and improves the user experience.
  • the processing device for the application installation package provided in this embodiment further automatically compiles the application installation package whose processing attribute is the idle compilation attribute when the current running state of the mobile terminal meets the idle compilation condition, thereby solving the upgrade process.
  • the processing device for the application installation package provided in this embodiment is also provided when the user needs to use the application installation package, if the current application installation package is an application installation package that has not been compiled and the processing attribute is an idle compilation attribute, Compiling the application installation package, because the compilation time of a single application installation package is limited, can still not affect the user's use of the application installation package.
  • An exemplary embodiment of the present disclosure provides an apparatus for processing an application installation package, the apparatus comprising: a processor; a memory for storing processor-executable instructions;
  • processor is configured to:
  • the processing attribute of the application installation package is obtained; the processing attribute is: upgrade compilation attribute or idle compilation attribute;
  • the application installation package whose processing attribute is the upgrade compilation attribute is compiled.
  • FIG. 6 is a block diagram of a processing device of an application installation package, according to an exemplary embodiment.
  • device 600 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 600 can include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and Communication component 616.
  • Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 602 can include one or more processors 618 to execute instructions to perform all or part of the steps described above.
  • processing component 602 can include one or more modules to facilitate interaction between component 602 and other components.
  • processing component 602 can include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
  • Memory 604 is configured to store various types of data to support operation at device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 606 provides power to various components of device 600.
  • Power component 606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
  • the multimedia component 608 includes a screen between the device 600 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can sense not only the boundaries of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 608 includes a front camera and/or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 610 is configured to output and/or input an audio signal.
  • audio component 610 includes a microphone (MIC) that is configured to receive an external audio signal when device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 604 or transmitted via communication component 616.
  • audio component 610 also includes a speaker for outputting an audio signal.
  • the I/O interface 612 provides an interface between the processing component 602 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 614 includes one or more sensors for providing device 600 with a status assessment of various aspects.
  • sensor component 614 can detect an open/closed state of device 600, a relative positioning of components, such as a display and a keypad of device 600, and sensor component 614 can also detect a change in position of one component of device 600 or device 600, user The presence or absence of contact with device 600, device 600 orientation or acceleration/deceleration and temperature variation of device 600.
  • Sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 614 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices.
  • the device 600 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof.
  • communication component 616 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • communication component 616 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above described application compilation methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above described application compilation methods.
  • non-transitory computer readable storage medium comprising instructions, such as a package
  • the memory 604 of instructions is executable by the processor 618 of the apparatus 600 to perform the application compilation method described above.
  • the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of processing an application installation package, the method comprising:
  • the processing attribute of the application installation package is obtained; the processing attribute is: upgrade compilation attribute or idle compilation attribute;
  • the application installation package whose processing attribute is the upgrade compilation attribute is compiled.
  • obtain the processing attributes of the application installation package including:
  • the application installation package is not in the upgrade compilation list, it is detected whether the duration between the latest usage time and the current time of the application installation package exceeds a preset duration;
  • the method further includes:
  • the application installation package whose processing attribute is the idle compiled attribute is compiled.
  • the idle compilation condition includes at least one of the following conditions:
  • the current time belongs to an idle time period
  • the current power exceeds a preset threshold
  • the method further includes:
  • the application installation package is an application installation package that has not been compiled and the processing attribute is a free compilation property, the application installation package is compiled and the application installation package is started after the compilation is completed.
  • the method further includes:

Landscapes

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

Abstract

一种应用程序安装包的处理方法及装置,属于移动终端领域。所述方法包括:当监测到对操作系统的升级操作时,获取应用程序安装包的处理属性;所述处理属性包括:升级编译属性或空闲编译属性(102);所述操作系统的升级过程中,对所述处理属性为所述升级编译属性的应用程序安装包进行编译处理(104)。通过在升级过程中对必要的部分应用程序安装包进行编译,解决了升级过程的耗时太长的问题,能够实现大大缩短升级耗时且又能保证用户对应用程序安装包的正常使用效果,提升用户体验。

Description

应用程序安装包的处理方法及装置
本申请基于申请号为201510266977.2、申请日为2015年05月22日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及移动终端领域,特别涉及一种应用程序安装包的处理方法及装置。
背景技术
Android(安卓)系统的系统升级过程中,需要对移动终端上的APK(AndroidPackage,Android安装包)进行优化。在Android系统的5.0以上版本中,该优化过程通常是将移动终端上安装的APK编译为二进制代码,以加快代码的执行效率。
发明内容
为了克服相关技术中存在的问题,本公开提供一种应用程序编译方法及装置。所述技术方案如下:
根据本公开实施例的第一方面,提供了一种应用程序安装包的处理方法,该方法包括:
当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性为:升级编译属性或空闲编译属性;
在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
在一个可能的实施例中,获取应用程序安装包的处理属性,包括:
逐个检测应用程序安装包是否属于升级编译名单;
若应用程序安装包不属于升级编译名单,则检测应用程序安装包的最近一次使用时刻与当前时刻之间的时长是否超过预设时长;
若超过预设时长,则确定应用程序安装包的处理属性为空闲编译属性;
若属于升级编译名单或者未超过预设时长,则确定应用程序安装包的处理属性为升级编译属性。
在一个可能的实施例中,该方法还包括:
检测当前运行状态是否符合空闲编译条件;
若当前运行状态符合空闲编译条件,则对处理属性为空闲编译属性的应用程序安装包进行编译处理。
在一个可能的实施例中,该空闲编译条件包括如下条件中的至少一种:
当前时刻属于空闲时间段;
当前电量超过预设阈值;
当前处于充电状态;
在最近时间段内未接收到操作信号。
在一个可能的实施例中,该方法还包括:
接收对应于应用程序安装包的启动信号;
检测应用程序安装包是否为尚未编译且处理属性为空闲编译属性的应用程序安装包;
若应用程序安装包是尚未编译且处理属性为空闲编译属性的应用程序安装包,则对应用程序安装包进行编译处理,并在编译完毕后启动应用程序安装包。
在一个可能的实施例中,该方法还包括:
预先根据应用程序安装包的重要等级,设置应用程序安装包的处理属性。
根据本公开的第二方面,提供了一种应用程序安装包的处理装置,该装置包括:
获取模块,被配置为当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性为:升级编译属性或空闲编译属性;
编译模块,被配置为在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
在一个可能的实施例中,获取模块,包括:
第一检测子模块,被配置为逐个检测待编译的应用程序安装包是否属于升级编译名单;
第二检测子模块,被配置为在不属于升级编译名单时,检测应用程序安装包的最近一次使用时刻与当前时刻之间的时长是否超过了预设时长;
空闲确定子模块,被配置为在超过了预设时长时,确定应用程序安装包的处理属性为空闲编译属性;
升级确定子模块,被配置为在属于升级编译名单或者未超过预设时长时,确定应用程序安装包的处理属性为升级编译属性。
在一个可能的实施例中,该装置还包括:
空闲检测模块,被配置为检测当前运行状态是否符合空闲编译条件;
空闲编译模块,被配置为在当前运行状态符合空闲编译条件时,对处理属性为空闲编译属性的应用程序安装包进行编译处理。
在一个可能的实施例中,该空闲编译条件包括如下条件中的至少一种:
当前时刻属于空闲时间段;
当前电量超过预设阈值;
当前处于充电状态;
在最近时间段内未接收到操作信号。
在一个可能的实施例中,该装置还包括:
信号接收模块,被配置为接收对应于应用程序安装包的启动信号;
第四检测模块,被配置为检测应用程序安装包是否为尚未编译且处理属性为空闲编译属性的应用程序安装包;
启动编译模块,被配置为在应用程序安装包是尚未编译且处理属性为空闲编译属性的应用程序安装包,则对应用程序安装包进行编译处理,并在编译完毕后启动应用程序安装包。
在一个可能的实施例中,该装置还包括:
设置模块,被配置为预先根据应用程序安装包的重要等级,设置应用程序安装包的处理属性。
根据本公开的第三方面,提供了一种应用程序安装包的处理装置,该装置包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性为:升级编译属性或空闲编译属性;
在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
本公开的实施例提供的技术方案可以包括以下有益效果:
通过在升级过程中对必要的部分应用程序安装包进行编译,解决了升级过程的耗时太长的问题,能够实现大大缩短升级耗时且又能保证用户对应用程序安装包的正常使用效果,提升用户体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种应用程序安装包的处理方法的流程图;
图2是根据另一示例性实施例示出的一种应用程序安装包的处理方法的流程图;
图3A至图3C是图2所示实施例提供的应用程序安装包的处理方法在实施时的界面示意图;
图4是根据一示例性实施例示出的一种应用程序安装包的处理装置的框图;
图5是根据另一示例性实施例示出的一种应用程序安装包的处理装置的框图;
图6是根据一示例性实施例示出的一种应用程序安装包的处理装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图 时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
本文中的移动终端可以是手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器和膝上型便携计算机等等。
在操作系统的升级过程中,由于用户可能会在移动终端中安装几十个APK,每个APK的编译过程需要耗费几秒至几分钟不等,将全部APK都进行编译处理时,会导致整个升级过程的耗时较长。在硬件配置低的手机上,整个升级过程的耗时会持续几十分钟。
图1是根据一示例性实施例示出的一种应用程序安装包的处理方法的流程图。本实施例以该应用程序安装包的处理方法应用于移动终端中来举例说明。该方法包括。
在步骤102中,当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性包括:升级编译属性或空闲编译属性。
该操作系统可以是Android操作系统。
在步骤104中,在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
综上所述,本实施例提供的应用程序编译方法,通过在升级过程中跳过部分应用程序安装包的编译过程;解决了在升级过程编译全部应用程序安装包,会导致升级过程的耗时太长的问题;达到了既能减少升级过程的耗时,又能不影响用户对应用程序安装包的正常使用的效果。
图2是根据另一示例性实施例示出的一种应用程序安装包的处理方法的流程图。本实施例以该应用程序安装包的处理方法应用于移动终端中来举例说明。该方法包括:
在步骤201中,预先根据应用程序安装包的重要等级,设置应用程序安装包的处理属性。
在本实施例中,移动终端是运行有Android操作系统的终端。应用程序安装包是apk。
处理属性包括:升级编译属性或空闲编译属性。升级编译属性是指该应用程序安装包在升级过程需要进行编译处理的属性;空闲编译属性是指该应用程序安装包在升级过程中暂不进行编译处理的属性。
应用程序安装包的重要等级可以由系统预设,也可以由用户设置。可选地,对于系统运行必须的应用程序安装包、用户常用的应用程序安装包,设置为高优先级别;对于系统运行非必须的应用程序安装包、用户不常用的应用程序安装包,设置为低优先级别。应用程序安装包的使用频率或最近一次使用时刻距当前时刻的时长,可以用于表征该应用程序 安装包是否为用户常用的应用程序安装包。
对于高优先级别的应用程序安装包,处理属性可以设置为升级编译属性;
对于低优先级别的应用程序安装包,处理属性可以设置为空闲编译属性。
该处理属性可以是静态属性,也可以是移动终端动态检测出的属性。
在处理属性是移动终端动态检测出的属性时,步骤201可选包括如下两个步骤。
第一,移动终端接收第一设置信号,根据第一设置信号生成或修改升级编译名单。
用户可以在移动终端中触发第一设置信号,该第一设置信号可以是在APK列表中进行勾选的信号。
比如,如图3A所示,用户勾选“A游戏.apk、B优化大师.apk、C语音通讯.apk”加入升级编译名单。升级编译名单是指处理属性为升级编译属性的应用程序安装包的名单。
在该升级编译名单初始不存在时,移动终端根据第一设置信号生成升级编译名单;在该升级编译名单初始存在时,移动终端根据第一设置信号修改升级编译名单。
可选地,初始的升级编译名单由操作系统预设。
第二,移动终端接收第二设置信号,根据第二设置信号生成或修改预设时长。
该预设时长是用于判断应用程序安装包是否属于常用应用程序安装包的阈值。用户可以在移动终端中触发第二设置信号,该第二设置信号可以是在时长滑动条中进行滑动的信号。
比如,如图3B所示,用户在时长滑动条中滑动滑钮32,设置预设时长为7天。预设时长是用于判断应用程序安装包是否属于常用应用程序安装包的阈值。
在该预设时长初始不存在时,移动终端根据第二设置信号生成预设时长;在该预设时长初始存在时,移动终端根据第二设置信号修改预设时长。
可选地,初始的预设时长由操作系统预设。
在步骤202中,当监测到对操作系统的升级操作,逐个检测应用程序安装包是否属于升级编译名单。
在升级过程中需要编译APK时,移动终端中通常有n个待编译的应用程序安装包,n为正整数。
如果操作系统自带的应用程序安装包已经在服务器编译完毕,则n个待编译的应用程序包括:用户自己安装的第三方应用程序安装包。
如果操作系统自带的应用程序安装包未在服务器编译完毕,则n个待编译的应用程序包括:系统自带的应用程序安装包,和,用户自己安装的第三方应用程序安装包。
对于n个待编译的应用程序安装包,移动终端逐个检测待编译的应用程序安装包是否属于编译白名单。
若属于升级编译名单,则进入步骤203;若不属于升级编译名单,则进入步骤204。
在步骤203中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
在应用程序安装包属于升级编译名单时,移动终端确定该应用程序安装包的处理属性 为升级编译属性,将应用程序安装包编译为执行效率更高的二进制代码文件。
在步骤204中,检测应用程序安装包的最近一次使用时刻与当前时刻之间的时长是否超过了预设时长。
若未超过预设时长,则该应用程序安装包属于常用应用程序,移动终端确定该应用程序安装包的处理属性为升级编译属性,进入步骤203。
若超过了预设时长,则移动终端确定该应用程序安装包的处理属性为空闲编译属性,进入步骤205。
在步骤205中,跳过该应用程序安装包的编译过程。
在n个应用程序安装包均检测完毕后,移动终端完成升级过程。
在步骤206中,在升级过程完毕后,检测当前运行状态是否符合空闲编译条件。
在升级过程完毕后的正常使用过程中,移动终端可以检测当前运行状态是否符合空闲编译条件。该空闲编译条件包括如下条件中的至少一种:
当前时刻属于空闲时间段;
当前电量超过预设阈值;
当前处于充电状态;
在最近时间段内未接收到操作信号。
比如,空闲编译条件是当前时刻属于晚上11:30-凌晨6:00,且当前电量超过百分之五十,且在最近10分钟内未接收到操作信号。
在步骤207中,若当前运行状态符合空闲编译条件,则对处理属性为空闲编译属性的应用程序安装包进行编译处理。
移动终端在符合空闲编译条件时,继续编译对处理属性为空闲编译属性的应用程序安装包进行编译处理。若不符合空闲编译条件,则移动终端保持当前运行状态。
需要说明的一点是,若在继续编译过程中接收到操作信号,则移动终端将当前正在编译的应用程序安装包编译完毕后,将其他尚未编译的应用程序安装包暂不编译,等待下次符合空闲编译条件时,再行继续编译。
需要说明的另一点是,步骤206和步骤207是可选步骤。
在步骤208中,接收对应于应用程序安装包的启动信号。
在升级过程完毕后,用户还可以手动启动应用程序安装包。
在步骤209中,检测应用程序安装包是否为尚未编译且处理属性为空闲编译属性的应用程序安装包。
在步骤210中,若应用程序安装包是已经编译完毕的应用程序安装包,则启动应用程序安装包。
在步骤211中,若应用程序安装包是尚未编译且处理属性为空闲编译属性的应用程序安装包,则对应用程序安装包进行编译处理,并在编译完毕后启动应用程序安装包。
可选地,在编译应用程序安装包的过程中,移动终端可以显示引导界面。该引导界面 用于提示用户等待编译过程的完成。
比如,如图3C所示,移动终端在编译过程中显示对话框34,该对话框34中显示有“正在优化编译,请稍等….”的提示信息。
综上所述,本实施例提供的应用程序安装包的处理方法,通过在升级过程中对必要的部分应用程序安装包进行编译,解决了升级过程的耗时太长的问题,能够实现大大缩短升级耗时且又能保证用户对应用程序安装包的正常使用效果,提升用户体验。
本实施例提供的应用程序安装包的处理方法,还通过在移动终端的当前运行状态符合空闲编译条件时,继续将处理属性为空闲编译属性的应用程序安装包进行自动编译,解决了升级过程中被跳过的应用程序安装包无法正常运行的问题;达到了充分利用移动终端的空闲时间,提高资源利用率的效果。
本实施例提供的应用程序安装包的处理方法,还通过在用户需要使用应用程序安装包时,如果当前应用程序安装包是尚未编译且处理属性为空闲编译属性的应用程序安装包,则即时地编译应用程序安装包,由于单个应用程序安装包的编译耗时有限,仍然能够不影响用户对该应用程序安装包的使用的效果。
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。
图4是根据一示例性实施例示出的一种应用程序安装包的处理装置的框图,如图4所示,该应用程序安装包的处理装置可以通过软件、硬件或者两者的结合实现成为移动终端的全部或者一部分。该应用程序安装包的处理装置包括但不限于。
获取模块420,被配置为当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性为:升级编译属性或空闲编译属性。
编译模块440,被配置为在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
综上所述,本实施例提供的应用程序安装包的处理装置,通过在升级过程中对必要的部分应用程序安装包进行编译,解决了升级过程的耗时太长的问题,能够实现大大缩短升级耗时且又能保证用户对应用程序安装包的正常使用效果,提升用户体验。
图5是根据一示例性实施例示出的一种应用程序安装包的处理装置的框图,如图5所示,该应用程序安装包的处理装置可以通过软件、硬件或者两者的结合实现成为移动终端的全部或者一部分。该应用程序安装包的处理装置包括但不限于。
获取模块520,被配置为当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性为:升级编译属性或空闲编译属性;
编译模块540,被配置为在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
可选地,获取模块520,包括:
第一检测子模块522,被配置为逐个检测待编译的应用程序安装包是否属于升级编译名单;
第二检测子模块524,被配置为在不属于升级编译名单时,检测应用程序安装包的最近一次使用时刻与当前时刻之间的时长是否超过了预设时长;
空闲确定子模块526,被配置为在超过了预设时长时,确定应用程序安装包的处理属性为空闲编译属性;
升级确定子模块528,被配置为在属于升级编译名单或者未超过预设时长时,确定应用程序安装包的处理属性为升级编译属性。
可选地,该装置还包括:
空闲检测模块532,被配置为检测当前运行状态是否符合空闲编译条件;
空闲编译模块534,被配置为在当前运行状态符合空闲编译条件时,对处理属性为空闲编译属性的应用程序安装包进行编译处理。
可选地,空闲编译条件包括如下条件中的至少一种:
当前时刻属于空闲时间段;
当前电量超过预设阈值;
当前处于充电状态;
在最近时间段内未接收到操作信号。
可选地,该装置还包括:
信号接收模块552,被配置为接收对应于应用程序安装包的启动信号;
第四检测模块554,被配置为检测应用程序安装包是否为尚未编译且处理属性为空闲编译属性的应用程序安装包;
启动编译模块556,被配置为在应用程序安装包是尚未编译且处理属性为空闲编译属性的应用程序安装包,则对应用程序安装包进行编译处理,并在编译完毕后启动应用程序安装包。
可选地,该装置还包括:
设置模块510,被配置为预先根据应用程序安装包的重要等级,设置应用程序安装包的处理属性。
综上所述,本实施例提供的应用程序安装包的处理装置,通过在升级过程中对必要的部分应用程序安装包进行编译,解决了升级过程的耗时太长的问题,能够实现大大缩短升级耗时且又能保证用户对应用程序安装包的正常使用效果,提升用户体验。
本实施例提供的应用程序安装包的处理装置,还通过在移动终端的当前运行状态符合空闲编译条件时,继续将处理属性为空闲编译属性的应用程序安装包进行自动编译,解决了升级过程中被跳过的应用程序安装包无法正常运行的问题;达到了充分利用移动终端的空闲时间,提高资源利用率的效果。
本实施例提供的应用程序安装包的处理装置,还通过在用户需要使用应用程序安装包时,如果当前应用程序安装包是尚未编译且处理属性为空闲编译属性的应用程序安装包,则即时地编译应用程序安装包,由于单个应用程序安装包的编译耗时有限,仍然能够不影响用户对该应用程序安装包的使用的效果。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开一示例性实施例提供了一种应用程序安装包的处理装置,该装置包括:处理器;用于存储处理器可执行指令的存储器;
其中,该处理器被配置为:
当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性为:升级编译属性或空闲编译属性;
在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
图6是根据一示例性实施例示出的一种应用程序安装包的处理装置的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)接口612,传感器组件614,以及通信组件616。
处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器618来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。
存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。
多媒体组件608包括在装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。
I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到装置600的打开/关闭状态,组件的相对定位,例如组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述应用程序编译方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包 括指令的存储器604,上述指令可由装置600的处理器618执行以完成上述应用程序编译方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种应用程序安装包的处理方法,该方法包括:
当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;处理属性为:升级编译属性或空闲编译属性;
在操作系统的升级过程中,对处理属性为升级编译属性的应用程序安装包进行编译处理。
可选地,获取应用程序安装包的处理属性,包括:
逐个检测应用程序安装包是否属于升级编译名单;
若应用程序安装包不属于升级编译名单,则检测应用程序安装包的最近一次使用时刻与当前时刻之间的时长是否超过预设时长;
若超过预设时长,则确定应用程序安装包的处理属性为空闲编译属性;
若属于升级编译名单或者未超过预设时长,则确定应用程序安装包的处理属性为升级编译属性。
可选地,该方法还包括:
检测当前运行状态是否符合空闲编译条件;
若当前运行状态符合空闲编译条件,则对处理属性为空闲编译属性的应用程序安装包进行编译处理。
可选地,该空闲编译条件包括如下条件中的至少一种:
当前时刻属于空闲时间段;
当前电量超过预设阈值;
当前处于充电状态;
在最近时间段内未接收到操作信号。
可选地,该方法还包括:
接收对应于应用程序安装包的启动信号;
检测应用程序安装包是否为尚未编译且处理属性为空闲编译属性的应用程序安装包;
若应用程序安装包是尚未编译且处理属性为空闲编译属性的应用程序安装包,则对应用程序安装包进行编译处理,并在编译完毕后启动应用程序安装包。
可选地,该方法还包括:
预先根据应用程序安装包的重要等级,设置应用程序安装包的处理属性。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者 适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (13)

  1. 一种应用程序安装包的处理方法,其特征在于,所述方法包括:
    当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;所述处理属性为:升级编译属性或空闲编译属性;
    在所述操作系统的升级过程中,对所述处理属性为所述升级编译属性的应用程序安装包进行编译处理。
  2. 根据权利要求1所述的方法,其特征在于,所述获取应用程序安装包的处理属性,包括:
    逐个检测所述应用程序安装包是否属于升级编译名单;
    若所述应用程序安装包不属于所述升级编译名单,则检测所述应用程序安装包的最近一次使用时刻与当前时刻之间的时长是否超过预设时长;
    若超过所述预设时长,则确定所述应用程序安装包的处理属性为所述空闲编译属性;
    若属于所述升级编译名单或者未超过所述预设时长,则确定所述应用程序安装包的处理属性为所述升级编译属性。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    检测当前运行状态是否符合空闲编译条件;
    若所述当前运行状态符合所述空闲编译条件,则对所述处理属性为所述空闲编译属性的应用程序安装包进行编译处理。
  4. 根据权利要求3所述的方法,其特征在于,所述空闲编译条件包括如下条件中的至少一种:
    当前时刻属于空闲时间段;
    当前电量超过预设阈值;
    当前处于充电状态;
    在最近时间段内未接收到操作信号。
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:
    接收对应于所述应用程序安装包的启动信号;
    检测所述应用程序安装包是否为尚未编译且所述处理属性为空闲编译属性的应用程序安装包;
    若所述应用程序安装包是所述尚未编译且所述处理属性为空闲编译属性的应用程序安装包,则对所述应用程序安装包进行编译处理,并在编译完毕后启动所述应用程序安装包。
  6. 根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:
    预先根据所述应用程序安装包的重要等级,设置所述应用程序安装包的处理属性。
  7. 一种应用程序安装包的处理装置,其特征在于,所述装置包括:
    获取模块,被配置为当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;所述处理属性为:升级编译属性或空闲编译属性;
    编译模块,被配置为在所述操作系统的升级过程中,对所述处理属性为所述升级编译属性的应用程序安装包进行编译处理。
  8. 根据权利要求7所述的装置,其特征在于,所述获取模块,包括:
    第一检测子模块,被配置为逐个检测待编译的应用程序安装包是否属于升级编译名单;
    第二检测子模块,被配置为在不属于所述升级编译名单时,检测所述应用程序安装包的最近一次使用时刻与当前时刻之间的时长是否超过了预设时长;
    空闲确定子模块,被配置为在超过了所述预设时长时,确定所述应用程序安装包的处理属性为所述空闲编译属性;
    升级确定子模块,被配置为在属于所述升级编译名单或者未超过所述预设时长时,确定所述应用程序安装包的处理属性为所述升级编译属性。
  9. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    空闲检测模块,被配置为检测当前运行状态是否符合空闲编译条件;
    空闲编译模块,被配置为在所述当前运行状态符合所述空闲编译条件时,对所述处理属性为所述空闲编译属性的应用程序安装包进行编译处理。
  10. 根据权利要求7所述的装置,其特征在于,所述空闲编译条件包括如下条件中的至少一种:
    当前时刻属于空闲时间段;
    当前电量超过预设阈值;
    当前处于充电状态;
    在最近时间段内未接收到操作信号。
  11. 根据权利要求7至10任一所述的装置,其特征在于,所述装置还包括:
    信号接收模块,被配置为接收对应于应用程序安装包的启动信号;
    第四检测模块,被配置为检测所述应用程序安装包是否为尚未编译且所述处理属性为 空闲编译属性的应用程序安装包;
    启动编译模块,被配置为在所述应用程序安装包是所述尚未编译且所述处理属性为空闲编译属性的应用程序安装包,则对所述应用程序安装包进行编译处理,并在编译完毕后启动所述应用程序安装包。
  12. 根据权利要求7至10任一所述的装置,其特征在于,所述装置还包括:
    设置模块,被配置为预先根据所述应用程序安装包的重要等级,设置所述应用程序安装包的处理属性。
  13. 一种应用程序安装包的处理装置,其特征在于,所述装置包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    当监测到对操作系统的升级操作,获取应用程序安装包的处理属性;所述处理属性为:升级编译属性或空闲编译属性;
    在所述操作系统的升级过程中,对所述处理属性为所述升级编译属性的应用程序安装包进行编译处理。
PCT/CN2015/095136 2015-05-22 2015-11-20 应用程序安装包的处理方法及装置 Ceased WO2016188060A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
MX2016005288A MX358805B (es) 2015-05-22 2015-11-20 Método y aparato para procesar un paquete de instalación de una aplicación.
JP2017519779A JP6189000B2 (ja) 2015-05-22 2015-11-20 アプリケーションのインストールパッケージの処理方法、装置、プログラム及び記録媒体
RU2016116026A RU2651207C2 (ru) 2015-05-22 2015-11-20 Способ и аппарат для обработки пакета установки приложения
KR1020167001449A KR20160150100A (ko) 2015-05-22 2015-11-20 어플리케이션 인스톨 패키지의 처리 방법 및 장치, 프로그램 및 기록매체
BR112016010565A BR112016010565A2 (pt) 2015-05-22 2015-11-20 método e aparelho para processamento de pacote de instalação de aplicação.

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510266977.2 2015-05-22
CN201510266977.2A CN104951335B (zh) 2015-05-22 2015-05-22 应用程序安装包的处理方法及装置

Publications (1)

Publication Number Publication Date
WO2016188060A1 true WO2016188060A1 (zh) 2016-12-01

Family

ID=54166004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095136 Ceased WO2016188060A1 (zh) 2015-05-22 2015-11-20 应用程序安装包的处理方法及装置

Country Status (9)

Country Link
US (1) US20160342410A1 (zh)
EP (1) EP3096224B1 (zh)
JP (1) JP6189000B2 (zh)
KR (1) KR20160150100A (zh)
CN (1) CN104951335B (zh)
BR (1) BR112016010565A2 (zh)
MX (1) MX358805B (zh)
RU (1) RU2651207C2 (zh)
WO (1) WO2016188060A1 (zh)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951335B (zh) * 2015-05-22 2019-01-04 小米科技有限责任公司 应用程序安装包的处理方法及装置
CN105930151A (zh) * 2016-04-15 2016-09-07 北京小米移动软件有限公司 应用程序的编译方法、装置及终端
CN106528113A (zh) * 2016-10-25 2017-03-22 北京小米移动软件有限公司 文件编译方法及装置
EP3637251B1 (en) * 2017-05-17 2023-10-04 Huawei Technologies Co., Ltd. Method, device and terminal for executing hotpatch
CN107329778B (zh) * 2017-06-08 2021-01-12 Oppo广东移动通信有限公司 系统更新的方法及相关产品
CN107861730B (zh) * 2017-10-27 2020-10-30 维沃移动通信有限公司 一种应用程序的处理方法及移动终端
CN110162314B (zh) 2018-02-12 2022-03-29 华为云计算技术有限公司 一种软件升级管理的方法、服务器、终端、装置及存储介质
KR102257012B1 (ko) * 2019-01-14 2021-05-27 (주) 익투스지노믹스 다양한 클라우드에 적용 가능한 대용량 데이터 처리용 분산 처리 시스템의 설치방법
CN113031955A (zh) * 2019-12-24 2021-06-25 Oppo广东移动通信有限公司 应用程序预编译的方法、装置以及电子设备
CN111338636B (zh) * 2020-02-21 2023-09-26 北京小米松果电子有限公司 内核预处理方法、内核预处理装置及电子设备
CN113806160B (zh) * 2020-06-11 2024-02-02 中移(苏州)软件技术有限公司 一种监测配置文件的方法及装置、设备、存储介质
CN112256274A (zh) * 2020-10-21 2021-01-22 北京小米移动软件有限公司 应用程序的处理方法、装置及存储介质
US12229539B2 (en) 2021-08-02 2025-02-18 Samsung Electronics Co., Ltd. Application optimization method and apparatus supporting the same
KR20230019619A (ko) * 2021-08-02 2023-02-09 삼성전자주식회사 어플리케이션 최적화 방법 및 이를 지원하는 장치
CN114895948A (zh) * 2022-06-21 2022-08-12 Oppo广东移动通信有限公司 应用程序处理方法、装置、电子设备及可读存储介质
WO2024014695A1 (ko) * 2022-07-15 2024-01-18 삼성전자주식회사 상호작용에 의해 획득된 순서에 기반하여 패키지들을 컴파일하는 전자 장치 및 방법
WO2025009873A1 (ko) * 2023-07-05 2025-01-09 삼성전자 주식회사 전자 장치 및 어플리케이션을 최적화하는 방법

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546675A (zh) * 2010-12-08 2012-07-04 鸿富锦精密工业(深圳)有限公司 软件升级系统及方法
US20120284704A1 (en) * 2011-05-04 2012-11-08 Friedman Robert U Processing, modification, distribution of installation packages
CN103176774A (zh) * 2011-12-21 2013-06-26 中国移动通信集团广东有限公司 应用程序的编译方法、装置以及系统
CN104133699A (zh) * 2014-07-28 2014-11-05 广州视睿电子科技有限公司 设备系统软件升级方法与系统
CN104951335A (zh) * 2015-05-22 2015-09-30 小米科技有限责任公司 应用程序安装包的处理方法及装置

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5970249A (en) * 1997-10-06 1999-10-19 Sun Microsystems, Inc. Method and apparatus for performing byte-code optimization during pauses
US6865734B2 (en) * 1997-10-06 2005-03-08 Sun Microsystems, Inc. Method and apparatus for performing byte-code optimization during pauses
US6842894B1 (en) * 1999-04-05 2005-01-11 Gateway, Inc. Dynamic Compiling
US20040031029A1 (en) * 2002-08-06 2004-02-12 Kyu-Woong Lee Methods and systems for automatically updating software components in a network
US8321858B1 (en) * 2003-12-31 2012-11-27 Google Inc. Systems and methods for providing software updates
JP2005352625A (ja) * 2004-06-09 2005-12-22 Fujitsu Ltd ローカライズ版作成支援装置
KR100725386B1 (ko) * 2004-09-25 2007-06-07 삼성전자주식회사 가상 머신 어플리케이션을 실행하는 방법 및 그 방법을이용한 디지털 방송 수신기
US20060080656A1 (en) * 2004-10-12 2006-04-13 Microsoft Corporation Methods and instructions for patch management
US7546595B1 (en) * 2004-10-14 2009-06-09 Microsoft Corporation System and method of installing software updates in a computer networking environment
US7765538B2 (en) * 2004-10-29 2010-07-27 Hewlett-Packard Development Company, L.P. Method and apparatus for determining which program patches to recommend for installation
US7748000B2 (en) * 2006-07-27 2010-06-29 International Business Machines Corporation Filtering a list of available install items for an install program based on a consumer's install policy
JP2008269094A (ja) * 2007-04-17 2008-11-06 Toyota Motor Corp 情報処理装置、情報処理装置の最適化方法、プログラム
US20090328023A1 (en) * 2008-06-27 2009-12-31 Gregory Roger Bestland Implementing optimized installs around pre-install and post-install actions
US9003387B2 (en) * 2009-09-25 2015-04-07 Fisher-Rosemount Systems, Inc. Automated deployment of computer-specific software updates
US8966466B2 (en) * 2012-04-04 2015-02-24 Avago Technologies General Ip (Singapore) Pte. Ltd. System for performing firmware updates on a number of drives in an array with minimum interruption to drive I/O operations
US9542172B2 (en) * 2013-02-05 2017-01-10 Apple Inc. Automatic updating of applications
US9003386B2 (en) * 2013-02-28 2015-04-07 Sap Se Fallback system for software upgrade
RU2541120C2 (ru) * 2013-06-06 2015-02-10 Закрытое акционерное общество "Лаборатория Касперского" Система и способ обнаружения вредоносных исполняемых файлов на основании сходства ресурсов исполняемых файлов
US9715378B2 (en) * 2013-12-18 2017-07-25 International Business Machines Corporation Automated software update scheduling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546675A (zh) * 2010-12-08 2012-07-04 鸿富锦精密工业(深圳)有限公司 软件升级系统及方法
US20120284704A1 (en) * 2011-05-04 2012-11-08 Friedman Robert U Processing, modification, distribution of installation packages
CN103176774A (zh) * 2011-12-21 2013-06-26 中国移动通信集团广东有限公司 应用程序的编译方法、装置以及系统
CN104133699A (zh) * 2014-07-28 2014-11-05 广州视睿电子科技有限公司 设备系统软件升级方法与系统
CN104951335A (zh) * 2015-05-22 2015-09-30 小米科技有限责任公司 应用程序安装包的处理方法及装置

Also Published As

Publication number Publication date
RU2651207C2 (ru) 2018-04-18
BR112016010565A2 (pt) 2018-05-02
MX358805B (es) 2018-08-29
US20160342410A1 (en) 2016-11-24
CN104951335A (zh) 2015-09-30
JP2017524212A (ja) 2017-08-24
KR20160150100A (ko) 2016-12-28
CN104951335B (zh) 2019-01-04
EP3096224A1 (en) 2016-11-23
RU2016116026A (ru) 2017-10-30
MX2016005288A (es) 2017-04-25
JP6189000B2 (ja) 2017-08-30
EP3096224B1 (en) 2019-09-25

Similar Documents

Publication Publication Date Title
WO2016188060A1 (zh) 应用程序安装包的处理方法及装置
CN105955765B (zh) 应用预加载方法及装置
JP6355735B2 (ja) 省エネルギーモードを開始するための方法及び装置
WO2015172518A1 (zh) 应用程序的处理方法及装置
WO2017113660A1 (zh) 应用程序管理方法及装置
WO2019109564A1 (zh) 屏幕显示控制的方法和装置
WO2017152621A1 (zh) 温度控制方法及装置
WO2016090822A1 (zh) 对固件进行升级的方法及装置
CN104536783B (zh) 预留空间设置方法及装置
WO2016011743A1 (zh) 节省存储空间的方法和装置
WO2017113666A1 (zh) 应用界面切换方法及装置
WO2016150104A1 (zh) 应用主题的加载方法及装置
US9678868B2 (en) Method and device for optimizing memory
CN107094094B (zh) 应用程序的连网方法、装置及终端
CN105930213A (zh) 应用运行方法及装置
WO2016065820A1 (zh) 内存优化方法及装置
CN107885307B (zh) 设备控制方法及装置
CN105930151A (zh) 应用程序的编译方法、装置及终端
CN106528113A (zh) 文件编译方法及装置
CN107463372B (zh) 一种数据驱动的页面更新方法和装置
CN107423059A (zh) 页面的显示方法、装置及终端
CN106502740B (zh) 应用安装方法和装置
CN107463414B (zh) 应用安装方法及装置
CN104391742A (zh) 应用优化方法和装置
CN111290843A (zh) 进程管理方法及装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2017519779

Country of ref document: JP

Kind code of ref document: A

Ref document number: 20167001449

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2016/005288

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2016116026

Country of ref document: RU

Kind code of ref document: A

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

Ref document number: 15893129

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112016010565

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112016010565

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20160510

122 Ep: pct application non-entry in european phase

Ref document number: 15893129

Country of ref document: EP

Kind code of ref document: A1