CN107015816A - Operating system update method, device and a kind of intelligent terminal - Google Patents

Operating system update method, device and a kind of intelligent terminal Download PDF

Info

Publication number
CN107015816A
CN107015816A CN201710376661.8A CN201710376661A CN107015816A CN 107015816 A CN107015816 A CN 107015816A CN 201710376661 A CN201710376661 A CN 201710376661A CN 107015816 A CN107015816 A CN 107015816A
Authority
CN
China
Prior art keywords
backstage
android
optimization
starting
file
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.)
Pending
Application number
CN201710376661.8A
Other languages
Chinese (zh)
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.)
Whaley Technology Co Ltd
Original Assignee
Whaley Technology Co Ltd
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 Whaley Technology Co Ltd filed Critical Whaley Technology Co Ltd
Priority to CN201710376661.8A priority Critical patent/CN107015816A/en
Publication of CN107015816A publication Critical patent/CN107015816A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

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

Abstract

The invention discloses a kind of operating system update method, the operating system is Android primary system or the flavor based on Android primary system.In escalation process, old system file is replaced with new system file first, system is then restarted for the first time;In first time restarts systematic procedure, the application file for self-starting of only being started shooting to the All Files under system framework catalogue and needing carries out dex2oat optimizations.The invention also discloses a kind of operating system update device and a kind of intelligent terminal.Compared with prior art, the system upgrade time can be greatly reduced in the present invention, lift Consumer's Experience, and realizes simply, applied widely.

Description

Operating system update method, device and a kind of intelligent terminal
Technical field
The present invention relates to a kind of operating system update method, more particularly to a kind of Android(Android)Native system or The operating system update method of flavor based on Android primary system.
Background technology
Android system is a kind of freedom based on Linux and the operating system of open source code, is mainly used for movement and sets Standby, such as smart mobile phone and tablet personal computer are led and developed by Google companies and open mobile phone alliance.With intellectualized technology Development, Android primary system and the flavor based on Android primary system(For the sake of description, hereafter it is referred to as Android system)It is applied to all kinds of intelligent terminals, such as mobile phone, TV, digital camera, game machine, machine top more and more widely Box, onboard system etc..
The upgrading flow of Android system standard is:Upgrading data are obtained by modes such as OTA first, then with new system File replaces old system file, then restarts system;, can be to all application programs in systematic procedure is restarted(APP)Peace Tall and erect installation kit (Android Package, referred to as APK), and all jar under/system/framework catalogues are done Dex2oat optimizes.So-called dex2oat, as the term suggests dex file to oat file, i.e., turn the dex bytecodes in apk It is changed to the primary code of ELF format.When there is more application program, the overlong time of this process, Consumer's Experience is very poor.
The content of the invention
The technical problems to be solved by the invention are to overcome prior art, and not enough there is provided a kind of operating system update side Method, can be greatly reduced the system upgrade time, lift Consumer's Experience.
It is of the invention specific using following technical scheme solution above-mentioned technical problem:
Operating system update method, the operating system is Android primary system or the Derivative line based on Android primary system System, in escalation process, old system file is replaced with new system file, system is then restarted for the first time first;First It is secondary to restart in systematic procedure, only to the All Files under system framework catalogue and need start shooting self-starting application file Carry out dex2oat optimizations.
Further, this method also includes:Restart in first time in systematic procedure, start a backstage Optimization Progress, Backstage carries out dex2oat optimizations to the application file of non-start self-starting.
Preferably, the backstage Optimization Progress has the priority lower than Android launcher.
Preferably, the backstage Optimization Progress is arranged to self-starting process of starting shooting.
Preferably, the backstage Optimization Progress is according to the order of frequency of usage from big to small in nearest a cycle, rear Platform carries out dex2oat optimizations to the application file of non-start self-starting.
Further, this method also includes:Android launcher is examined first after some application start instruction is connected to Look into whether the odex files corresponding to the application program have generated, in this way, then start the application program;Otherwise, Android starts Device sends a preferential optimization request preferentially optimized to the application program to the backstage Optimization Progress, then waits until Application program optimization is completed, and starts the application program.
Following technical scheme also can obtain according to identical invention thinking:
Operating system update device, the operating system is Android primary system or the Derivative line based on Android primary system System, the device includes:
Data replacement module is then heavy for the first time for replacing old system file with new system file in escalation process Starting system;
Optimization module, for restarting in first time in systematic procedure, only to the All Files and needs under system framework catalogue The application file of start self-starting carries out dex2oat optimizations.
Further, the device also includes:
Process initiation module, for restarting in first time in systematic procedure, starts a backstage Optimization Progress, is opened on backstage non- The application file of machine self-starting carries out dex2oat optimizations.
Preferably, the backstage Optimization Progress has the priority lower than Android launcher.
Preferably, the backstage Optimization Progress is arranged to self-starting process of starting shooting.
Preferably, the backstage Optimization Progress is according to the order of frequency of usage from big to small in nearest a cycle, rear Platform carries out dex2oat optimizations to the application file of non-start self-starting.
The device also include be arranged in Android launcher with lower component:
Module is checked, for after Android launcher is connected to some application start instruction, checking corresponding to the application program Odex files whether generated;
Request module, for when checking that the odex files corresponding to the module discovery application program are not generated, generating one The preferential optimization request preferentially optimized to the application program, and sent to the backstage Optimization Progress;
Control module is waited, for the mistake that platform Optimization Progress is optimized to the application program for asking preferentially to optimize in the rear Cheng Zhong, control Android launcher is waited, and control Android launcher starts the application program after optimization is completed.
It is mechanical, electrical that aforesaid operations system upgrade device can be applied to the existing all kinds of hands using Android system as operating system Depending on, the intelligent terminal such as digital camera, game machine, set top box, onboard system.It can obtain following technical scheme again accordingly:
A kind of intelligent terminal, it has operating system, and the operating system is for Android primary system or based on Android primary system The flavor of system, the intelligent terminal has as above operating system update device described in any technical scheme.
Compared with prior art, the invention has the advantages that:
The present invention in system upgrade first time restarting process, only to the All Files under system framework catalogue and need start The application file of self-starting carries out dex2oat optimizations, and remaining application file is excellent in backstage progress dex2oat Change, now Android launcher can normally start.Significantly shorten the time required to restarting for the first time during system upgrade, improve Consumer's Experience.
The present invention utilizes the background process with lower priority, according to frequency of usage in nearest a cycle from big to small Order, dex2oat optimizations are carried out successively to remaining application file;And when user will use some application program, The application file is preferentially optimized, while controlling Android launcher to wait, these application programs can be avoided to greatest extent Delay during startup.
The inventive method is realized simple, it is only necessary to Android framework(android framework)Part and Android start Device(android launcher)Change on a small quantity.The present invention is applicable not only to primary android system, applies also for Other derivation operation systems developed based on android system, such as the YUNOS systems of Ali, therefore the scope of application is wider.
Brief description of the drawings
Fig. 1 is the structured flowchart of operating system update device of the present invention in preferred embodiment;
Fig. 2 is the schematic flow sheet of operating system update device progress system upgrade of the present invention in preferred embodiment.
Embodiment
The standard upgrade flow of existing Android system is:AKU is obtained by modes such as OTA first, AKU is then used In new system file replace old system file, then restart system;, can be to all application programs in systematic procedure is restarted (APP)Android installation kit (Android Package, referred to as APK), and the institute under/system/framework catalogues Some jar files do dex2oat optimizations;Finally, Android launcher starts, and whole escalation process is completed.It is more in application program In the case of, system starts overlong time for the first time(Up to 5 minutes even more than more than ten minutes), have a strong impact on customer experience.
For this problem, resolving ideas of the invention is to use lazy formula optimal way, only by under system framework catalogue All Files and need start shooting self-starting application file dex2oat optimizations are carried out in first time start-up course, and Remaining application file then carries out Continuous optimization after completing to start for the first time by a background process.
For the ease of public understanding, come further detailed to technical solution of the present invention progress below with a preferred embodiment Explanation.
Operating system update apparatus structure in the present embodiment is as shown in figure 1, it includes:Data replacement module, optimization mould Block, process initiation module, inspection module, request module, wait control module;Wherein, data replacement module is used to upgrade System file new Cheng Zhongyong replaces old system file, and system is then restarted for the first time;Optimization module is used in first time weight During starting system, only to the All Files under system framework catalogue and need start shooting self-starting application file carry out Dex2oat optimizes;Process initiation module is used to restart in systematic procedure in first time, starts a backstage Optimization Progress, rear Platform carries out dex2oat optimizations to the application file of non-start self-starting.As shown in figure 1, these three modules are arranged at Android In the Android frame part of system.
Check that module is used for after Android launcher is connected to some application start instruction, check that application program institute is right Whether the odex files answered have generated;Request module is used to check the odex texts corresponding to the module discovery application program When part is not generated, one preferential optimization request for preferentially being optimized to the application program of generation, and to the backstage optimize into Journey is sent;Control module is waited to be used for what platform Optimization Progress in the rear was optimized to the application program for asking preferentially to optimize During, control Android launcher is waited, and control Android launcher starts the application program after optimization is completed.Such as Fig. 1 institutes Show, these three modules are arranged in Android launcher.
The flow of system upgrade is carried out as shown in Fig. 2 specifically including following steps using said apparatus:
S1, data replacement module replace old system file with new system file;
New system file can be complete system file or difference AKU in AKU;The acquisition of AKU Mode both can be OTA modes or local acquisition.
S2, beginning first time system reboot.
S3, dex2oat optimize;
During first time system reboot, optimization module is by calling dex2oat instruments to all under system framework catalogue File(All jar files under/system/framework catalogues)And need the application file of start self-starting Carry out dex2oat optimizations;These start self-starting application programs are preset by system or by user's sets itself.
S4, process initiation module start backstage Optimization Progress;
Backstage Optimization Progress carries out dex2oat optimizations on backstage to the application file that remaining not yet optimizes.In order to not influence Android launcher starts application program, and the priority of backstage Optimization Progress preferably is set below into the preferential of Android launcher Level.In order to reduce APP toggle speed as far as possible, Consumer's Experience is further improved, it is preferable that backstage Optimization Progress is according to nearest The order of frequency of usage from big to small in a cycle, is carried out on backstage to the application file of non-start self-starting Dex2oat optimizes.In order to prevent also application file does not optimize completion from just being shut down or standby, process initiation The backstage Optimization Progress started is set to self-starting process of starting shooting by module;So, even if occurring above-mentioned situation, then open again During dynamic system, backstage Optimization Progress meeting automatic start operation continues excellent to remaining application file progress dex2oat Change, completed until all application files optimize, backstage Optimization Progress is exited.
S5, Android launcher start, and first time system reboot is completed.
Whether the odex files of S6, inspection module check currently corresponding to application program to be started have generated;In this way, then Turn S8;Otherwise, S7 is turned;
When user will use some APP, the icon of the APP on Android launcher can be clicked on, i.e., sends startup to Android launcher The instruction of the APP.After Android launcher is connected to some application start instruction, check that module can be right to application program institute Whether the odex files answered, which have generated, is checked, if corresponding odex files have been present, performs S8, otherwise, Perform S7.
S7, request module send preferential optimization request, meanwhile, wait control module control Android launcher to wait until Application program optimization to be started is completed;Turn S8;
Because the odex files corresponding to current application program to be started not yet complete optimization, it is impossible to opened by Android launcher Dynamic, now, request module generates a preferential optimization request preferentially optimized to the application program, and excellent to the backstage Change process is sent;During backstage Optimization Progress carries out dex2oat optimizations to the application program, control module control is waited Android launcher remains waiting for state, until the application program optimization after the completion of, corresponding odex file generateds, backstage optimize into Cheng Jixu is optimized according to the secondary ordered pair remaining applications originally set;Then perform S8.
S8, Android launcher start application program;
Android launcher starts current application program to be started by normal flow.

Claims (13)

1. operating system update method, the operating system is Android primary system or the Derivative line based on Android primary system System, in escalation process, old system file is replaced with new system file, system is then restarted for the first time first;Its feature It is, in first time restarts systematic procedure, only to the All Files under system framework catalogue and needs self-starting of starting shooting Application file carries out dex2oat optimizations.
2. method as claimed in claim 1, it is characterised in that this method also includes:Restart in first time in systematic procedure, start One backstage Optimization Progress, dex2oat optimizations are carried out on backstage to the application file of non-start self-starting.
3. method as claimed in claim 2, it is characterised in that the backstage Optimization Progress has lower than Android launcher excellent First level.
4. method as claimed in claim 2, it is characterised in that the backstage Optimization Progress is arranged to self-starting process of starting shooting.
5. method as claimed in claim 2, it is characterised in that the backstage Optimization Progress is used frequently according in nearest a cycle Secondary order from big to small, dex2oat optimizations are carried out on backstage to the application file of non-start self-starting.
6. such as any one of claim 2~5 methods described, it is characterised in that this method also includes:Android launcher is being connected to certain After individual application start instruction, first check for whether the odex files corresponding to the application program have generated, in this way, then open Move the application program;Otherwise, Android launcher to the backstage Optimization Progress send one the application program is preferentially carried out it is excellent The preferential optimization request changed, then waits until application program optimization completion, starts the application program.
7. operating system update device, the operating system is Android primary system or the Derivative line based on Android primary system System, it is characterised in that the device includes:
Data replacement module is then heavy for the first time for replacing old system file with new system file in escalation process Starting system;
Optimization module, for restarting in first time in systematic procedure, only to the All Files and needs under system framework catalogue The application file of start self-starting carries out dex2oat optimizations.
8. device as claimed in claim 7, it is characterised in that the device also includes:
Process initiation module, for restarting in first time in systematic procedure, starts a backstage Optimization Progress, is opened on backstage non- The application file of machine self-starting carries out dex2oat optimizations.
9. device as claimed in claim 8, it is characterised in that the backstage Optimization Progress has lower than Android launcher excellent First level.
10. device as claimed in claim 8, it is characterised in that the backstage Optimization Progress is arranged to self-starting process of starting shooting.
11. device as claimed in claim 8, it is characterised in that the backstage Optimization Progress in nearest a cycle according to using The order of the frequency from big to small, dex2oat optimizations are carried out on backstage to the application file of non-start self-starting.
12. such as any one of claim 7~11 described device, it is characterised in that the device also includes being arranged at Android launcher In with lower component:
Module is checked, for after Android launcher is connected to some application start instruction, checking corresponding to the application program Odex files whether generated;
Request module, for when checking that the odex files corresponding to the module discovery application program are not generated, generating one The preferential optimization request preferentially optimized to the application program, and sent to the backstage Optimization Progress;
Control module is waited, for the mistake that platform Optimization Progress is optimized to the application program for asking preferentially to optimize in the rear Cheng Zhong, control Android launcher is waited, and control Android launcher starts the application program after optimization is completed.
13. a kind of intelligent terminal, it has operating system, and the operating system is for Android primary system or based on Android primary The flavor of system, it is characterised in that the intelligent terminal has the operating system update as described in any one of claim 7~12 Device.
CN201710376661.8A 2017-05-25 2017-05-25 Operating system update method, device and a kind of intelligent terminal Pending CN107015816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710376661.8A CN107015816A (en) 2017-05-25 2017-05-25 Operating system update method, device and a kind of intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710376661.8A CN107015816A (en) 2017-05-25 2017-05-25 Operating system update method, device and a kind of intelligent terminal

Publications (1)

Publication Number Publication Date
CN107015816A true CN107015816A (en) 2017-08-04

Family

ID=59451452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710376661.8A Pending CN107015816A (en) 2017-05-25 2017-05-25 Operating system update method, device and a kind of intelligent terminal

Country Status (1)

Country Link
CN (1) CN107015816A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522034A (en) * 2018-09-27 2019-03-26 努比亚技术有限公司 A kind of optimizing application method, terminal and computer readable storage medium
CN109857474A (en) * 2017-11-30 2019-06-07 华为终端有限公司 Start the method and apparatus of application program
WO2019128380A1 (en) * 2017-12-27 2019-07-04 西安中兴新软件有限责任公司 Method and device for optimizing application program installation and terminal
WO2020015415A1 (en) * 2018-07-18 2020-01-23 华为技术有限公司 Method and apparatus for restarting terminal
CN112445487A (en) * 2019-09-02 2021-03-05 深圳Tcl新技术有限公司 Dex optimization method, system, intelligent terminal and storage medium
CN113419735A (en) * 2021-05-31 2021-09-21 荣耀终端有限公司 Plug-in optimization method and device
CN113485709A (en) * 2021-06-15 2021-10-08 荣耀终端有限公司 Application optimization method and device and electronic equipment
CN113741993A (en) * 2021-06-15 2021-12-03 荣耀终端有限公司 Method and device for compiling plug-in dex file
CN116643778A (en) * 2023-07-27 2023-08-25 荣耀终端有限公司 Application program optimization method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130219307A1 (en) * 2012-02-21 2013-08-22 Artisan Mobile, Inc. System and method for runtime user interface management
CN103377067A (en) * 2012-04-13 2013-10-30 富泰华工业(深圳)有限公司 Application program loading system and application program loading method
EP2765750A1 (en) * 2013-02-08 2014-08-13 Nxp B.V. Controlling application access to mobile device functions
CN104461631A (en) * 2014-12-09 2015-03-25 广东欧珀移动通信有限公司 OTA (over-the-air) technology based system upgrading method and OTA technology based system upgrading device
CN105278989A (en) * 2015-10-12 2016-01-27 邱寅峰 Fast loading method of APK file
CN106126203A (en) * 2016-06-15 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of OTA start accelerated method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130219307A1 (en) * 2012-02-21 2013-08-22 Artisan Mobile, Inc. System and method for runtime user interface management
CN103377067A (en) * 2012-04-13 2013-10-30 富泰华工业(深圳)有限公司 Application program loading system and application program loading method
EP2765750A1 (en) * 2013-02-08 2014-08-13 Nxp B.V. Controlling application access to mobile device functions
CN104461631A (en) * 2014-12-09 2015-03-25 广东欧珀移动通信有限公司 OTA (over-the-air) technology based system upgrading method and OTA technology based system upgrading device
CN105278989A (en) * 2015-10-12 2016-01-27 邱寅峰 Fast loading method of APK file
CN106126203A (en) * 2016-06-15 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of OTA start accelerated method and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857474A (en) * 2017-11-30 2019-06-07 华为终端有限公司 Start the method and apparatus of application program
WO2019128380A1 (en) * 2017-12-27 2019-07-04 西安中兴新软件有限责任公司 Method and device for optimizing application program installation and terminal
WO2020015415A1 (en) * 2018-07-18 2020-01-23 华为技术有限公司 Method and apparatus for restarting terminal
CN110737476A (en) * 2018-07-18 2020-01-31 华为技术有限公司 terminal restarting method and device
CN109522034A (en) * 2018-09-27 2019-03-26 努比亚技术有限公司 A kind of optimizing application method, terminal and computer readable storage medium
CN112445487A (en) * 2019-09-02 2021-03-05 深圳Tcl新技术有限公司 Dex optimization method, system, intelligent terminal and storage medium
CN113419735A (en) * 2021-05-31 2021-09-21 荣耀终端有限公司 Plug-in optimization method and device
CN113419735B (en) * 2021-05-31 2022-04-19 荣耀终端有限公司 Plug-in optimization method and device
CN113485709A (en) * 2021-06-15 2021-10-08 荣耀终端有限公司 Application optimization method and device and electronic equipment
CN113741993A (en) * 2021-06-15 2021-12-03 荣耀终端有限公司 Method and device for compiling plug-in dex file
CN113741993B (en) * 2021-06-15 2022-07-01 荣耀终端有限公司 Method and device for compiling plug-in dex file
CN113485709B (en) * 2021-06-15 2022-10-14 荣耀终端有限公司 Application optimization method and device and electronic equipment
CN116643778A (en) * 2023-07-27 2023-08-25 荣耀终端有限公司 Application program optimization method and electronic equipment
CN116643778B (en) * 2023-07-27 2024-03-19 荣耀终端有限公司 Application program optimization method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107015816A (en) Operating system update method, device and a kind of intelligent terminal
CN106843933A (en) A kind of leak restorative procedure of application program, mobile terminal and patch server
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
CN101950253B (en) Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface
CN108027741A (en) Document handling method, device, terminal and storage medium based on patch upgrading
CN110427385B (en) Block chain data updating method, related node and block chain
WO2015139246A1 (en) Method and device for synchronizing application data
CN105260209A (en) Hot-update solution of program
CN101315605A (en) Automatic upgrading method of panel TV software based on USB port
CN102662699A (en) Method for updating NFC (Near Field Communication) firmware of mobile terminal and mobile terminal
CN101826026A (en) Embedded equipment and on-line updating system and method of firmware in embedded equipment
CN102609274B (en) A kind of quick startup optimization method of system and television set
RU2625562C2 (en) Method and device for the system upgrading
CN106775873B (en) Method and equipment for updating mobile phone software and acquiring patch file
CN107291510A (en) A kind of Linux inter-vehicle information systems quick start method
CN101719075A (en) Method for switching theme of Java virtual machine and terminal device
CN102624875B (en) Method for replacing or updating language packs of terminal equipment
CN102646043A (en) Method and device for upgrading mobile terminal software and mobile terminal
CN104657161A (en) Method and device for updating firmware of mobile terminal
CN103176582A (en) Power supply sequential control device and adjusting method for power supply time sequence delay time
CN103220342A (en) Grouped remote and synchronous program updating method for terminals
CN106874040A (en) Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services
CN110275719B (en) Cloud physical host operating system deployment method based on domestic CPU and operating system
CN108459868A (en) A kind of software start-up method, device, terminal and storage medium
CN107436756A (en) One kind applies update method, server, terminal and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170804