CN103914312B - The processing method of application program, device and electronic equipment - Google Patents

The processing method of application program, device and electronic equipment Download PDF

Info

Publication number
CN103914312B
CN103914312B CN201210592742.9A CN201210592742A CN103914312B CN 103914312 B CN103914312 B CN 103914312B CN 201210592742 A CN201210592742 A CN 201210592742A CN 103914312 B CN103914312 B CN 103914312B
Authority
CN
China
Prior art keywords
program
master processor
configuration file
file
interface
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.)
Active
Application number
CN201210592742.9A
Other languages
Chinese (zh)
Other versions
CN103914312A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210592742.9A priority Critical patent/CN103914312B/en
Publication of CN103914312A publication Critical patent/CN103914312A/en
Application granted granted Critical
Publication of CN103914312B publication Critical patent/CN103914312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A kind of processing method of application program, device and electronic equipment are the embodiment of the invention provides, the method for application program packing includes:Obtain interface program corresponding with the application program and master processor program;The interface program, the master processor program and configuration file are packed, obtain the first installation kit, the interface program is located at the Part I of first installation kit, the master processor program is located at the Part II of first installation kit, and the configuration file is located at the Part III of first installation kit;First installation kit is compressed;With decompressing function and detection electronic equipment whether will there is the monitoring programme of multiple operation system function and the first installation kit after compression to be integrated, application program after being packed.The connection that can be set up between each system by configuration file using method provided in an embodiment of the present invention, device and electronic equipment.

Description

The processing method of application program, device and electronic equipment
Technical field
The present invention relates to software technology field, in particular, be related to a kind of processing method of application program, device and Electronic equipment.
Background technology
With the development of electronic technology, the electronic product with multiple operating system is generated, by taking notebook as an example, had There is two kinds of CPU in the notebook of hybrid system Hybird, a kind of is X86 types, and a kind of is ARM types, in X86 The operating system of upper operation can have WIN7 operating systems, and the operating system run on ARM chips can have Android to operate System.The operating system operated on ARM is more more energy efficient than operating in the operating system on X86.
In order that electronic product has longer stand-by time, user is wished when the operation such as video and document is carried out, The system of energy-conservation is first switch to, is then operated accordingly in the system of energy-conservation.Also with described with hybrid system As a example by the notebook of Hybird, user needs to be seen a film in Android operation system, operates system in the Android first The application program that MPC etc. supports video format is installed first, because same file is in Android operation system in system In path it is inconsistent with path in WIN7 operating systems, so needing the video copy that will play to the Android In operating system, the system changeover program in end user's triggering WIN7 operating systems, after system switching, then described The file is opened in Android operation system.Because the system changeover program is stored in the WIN7 operating systems, above-mentioned Process needs the participation of user, and there is MPC etc. to support the soft of video format in the Android operation system In the case of the video that part and needs are played, it is also desirable to the first runtime changeover program from WIN7 operating systems of user, cut The Android operation system is changed to, the video for needing and playing is being opened.If user needs to play big game again, Need from Android operation system be converted to WIN7 operating systems when, it is also desirable to runtime changeover program first, switch to WIN7 operating systems, open the game.
Realize it is of the invention during, inventor is had found due to during packing, the relevant information of application program Only including a system, i.e. application program can only register in a system, it is impossible to be set up using the packing process of application program Connection between each system, so, it is necessary to user artificially carries out system switching after application program is installed.So invention human hair Existing prior art at least has a disadvantage that:The connection that the packing process of application program can not be set up between each operating system, enters And can not realize calling for complex system after application program is installed.
The content of the invention
In view of this, it is existing to overcome the invention provides a kind of processing method of application program, device and electronic equipment The problem of the connection that the packing process of application program can not be set up between each operating system in technology.
To achieve the above object, the present invention provides following technical scheme:
A kind of method of application program packing, including:
Obtain interface program corresponding with the application program and master processor program;
The interface program, the master processor program and configuration file are packed, the first installation kit is obtained, it is described Interface program is located at the Part I of first installation kit, and the master processor program is located at second of first installation kit Point, the configuration file is located at the Part III of first installation kit, and the configuration file includes:The interface program is installed System species and the master processor program install system species;
First installation kit is compressed;
Whether will there is the monitoring programme and pressure of multiple operation system function with decompressing function and detection electronic equipment The first installation kit after contracting is integrated, application program after being packed.
Preferably, the configuration file also includes:The modes to open a file that the application program is supported.
A kind of method that application program is installed, is applied to electronic equipment, including:
Receive the request for installing application program;
Monitoring programme is decompressed when electronic equipment is detected with multiple operating system to the first installation kit after compression, The first installation kit is obtained, first installation kit includes interface program, master processor program and configuration file, the interface program Positioned at the Part I of first installation kit, the master processor program is located at the Part II of first installation kit, described Configuration file is located at the Part III of first installation kit, and the configuration file includes:The system that the interface program is installed The system species that species and the master processor program are installed;
The interface program is arranged in the system that the interface program of configuration file record is installed;
The master processor program is arranged in the system that the master processor program of configuration file record is installed.
Wherein, the system that the interface program that the interface program is arranged on configuration file record is installed Include:
Judge that the system species that the interface program of the configuration file record is installed is current with the electronic equipment Whether system species is identical;
If it is, the interface program is installed under the current system, if it is not, then the interface program is passed through Data exchange channel is sent in the system installed to the interface program of configuration file record, and is installed.
Wherein, it is described that the master processor program is arranged on the master processor program installation that the configuration file is recorded System includes:
Judge that the system species that the master processor program of the configuration file record is installed is current with the electronic equipment System species it is whether identical;
If it is, install the master processor program under the current system, if it is not, then by the master processor program In the system that the master processor program sent to configuration file record by data exchange channel is installed, and pacified Dress.
Preferably, the configuration file also includes the modes to open a file that the application program is supported, methods described is also wrapped Include:
The modes to open a file that the application program recorded according to the configuration file is supported, by the application program branch The modes to open a file held is added in the unfolding mode of the application program respective file.
A kind of file call method, is applied to electronic equipment, including:
Receive the request for opening file;
System where the corresponding interface program of type of the file of configuration file record, runs the interface journey Sequence;
Where the corresponding master processor program of type of the file that current system is switched to the configuration file record System, and open the file in the system where the master processor program.
Wherein, the system where the master processor program is opened the file and is included:
The information of the file is sent into system to where the master processor program, institute by application programming interface The information for stating file includes filename and file path;
The file is opened in the system where the master processor program.
Wherein, also included before the request for receiving the opening file:
From the unfolding mode of the corresponding application program of type of the file of configuration file record, a dozen are selected Evolution formula.
A kind of device of application program packing, including:
Program module is obtained, for obtaining interface program corresponding with the application program and master processor program;
First packetization module, for the interface program, the master processor program and configuration file to be packed, obtains To the first installation kit, positioned at the Part I of first installation kit, the master processor program is located at described the interface program The Part II of the first installation kit, the configuration file is located at the Part III of first installation kit, the configuration file bag Include:The system species that the system species and the master processor program that the interface program is installed are installed;
Compression module, for first installation kit to be compressed;
Second packetization module, for that whether will have multiple operating system work(with decompressing function and detection electronic equipment The monitoring programme of energy is integrated with the first installation kit after compression, application program after being packed.
Preferably, the configuration file also includes:The modes to open a file that the application program is supported.
A kind of electronic equipment, including:
Receiver module, the request of the application program is installed for receiving;
Decompression module, for monitoring programme when electronic equipment is detected with multiple operating system, to after compression first Installation kit is decompressed, and obtains the first installation kit, and first installation kit includes interface program, master processor program and configuration text Part, the interface program is located at the Part I of first installation kit, and the master processor program is located at first installation kit Part II, the configuration file is located at the Part III of first installation kit, and the configuration file includes:The interface The system species that the system species and the master processor program that program is installed are installed;
First installs module, the interface program peace for the interface program to be arranged on configuration file record In the system of dress;
Second installs module, the main process task journey for the master processor program to be arranged on configuration file record In the system that sequence is installed.
Wherein, the first installation module includes:
Judging unit, system species and the electricity that the interface program for judging the configuration file record is installed Whether the current system species of sub- equipment is identical;
First installation unit, for being in the case of being, in the current system in the judged result of the judging unit It is lower that the interface program is installed;
Second installation unit, in the case of being no in the judged result of the judging unit, by the interface program In the system that the interface program sent to configuration file record by data exchange channel is installed, and installed.
Wherein, the second installation module includes:
Judging unit, judges the system species and the electronics of the master processor program installation of the configuration file record Whether the current system species of equipment is identical;
First installation unit, for being in the case of being, in the current system in the judged result of the judging unit It is lower that the master processor program is installed;
Second installation unit, in the case of being no in the judged result of the judging unit, by the main process task journey Sequence is sent in the system that the master processor program recorded to the configuration file is installed by data exchange channel, and is pacified Dress.
Preferably, the configuration file also includes the modes to open a file that the application program is supported, the electronic equipment Also include:
Add module, the modes to open a file that the application program for being recorded according to the configuration file is supported will The modes to open a file that the application program is supported is added in the unfolding mode of the application program respective file.
A kind of electronic equipment, including:
Receiver module, the request of the file is opened for receiving;
Operation module, for the system where the corresponding interface program of type of the file recorded in configuration file, Run the interface program;
Handover module, the corresponding master of type of the file for current system to be switched to the configuration file record System where processing routine, and open the file in the system where the master processor program.
Wherein, the handover module includes:
Transmitting element, for the information of the file to be sent to the master processor program by application programming interface The system at place, the information of the file includes filename and file path;
Opening unit, for opening the file in the system where the master processor program.
Preferably, also include:
Selecting module, the opening side of the corresponding application program of type of the file for being recorded from the configuration file In formula, a unfolding mode is selected.
Understood via above-mentioned technical scheme, using application program packaging method provided in an embodiment of the present invention, by interface Program, master processor program and configuration file are packed, and obtain the first installation kit, and interface program is located at the of the first installation kit A part, master processor program is located at the Part II of the first installation kit, and configuration file is located at the Part III of the first installation kit, will Whether first installation kit is compressed, and will have the prison of multiple operation system function with decompressing function and detection electronic equipment Control program is integrated with the first installation kit after compression, application program after being packed.Set when monitoring programme detects electronics During for having behaviour's system again, the system species and master processor program that the interface program that can be recorded according to configuration file is installed are pacified The system species of dress, master processor program and interface program are separately mounted in corresponding system, are so as to establish each Connection between system.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of flow chart of the method for application program packing provided in an embodiment of the present invention;
Fig. 2 is the level schematic diagram of the application program after a kind of packing provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of the installation method of application program provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of file call method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of the device of application program packing provided in an embodiment of the present invention;
Fig. 6 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 7 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
For the sake of quoting and understanding, the explanation of the technical term for hereinafter using, write a Chinese character in simplified form or abridge and be summarized as follows:
UI:User Interface, user interface;
AVI:Audio Video Interleaved, Audio Video Interleaved form;
APK:Android Package, Android installation kits;
API:Application Programming Interface, application programming interface.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Embodiment one
Accompanying drawing 1 is referred to, is a kind of method flow diagram of application program packing provided in an embodiment of the present invention, the method bag Include:
Step S101:Obtain interface program corresponding with application program and master processor program.
Master processor program and interface program can be obtained when being compiled to application program.
The master processor program of standard can be Android editions, or windows x86 editions.
Interface program mainly provides the user user interface UI(Such as icon), master processor program can also directly from network Side obtains, the master processor program of such as MPC.
Step S102:Interface program, master processor program and configuration file are packed, the first installation kit is obtained.
Interface program is located at the Part I of the first installation kit, and master processor program is located at the Part II of the first installation kit, Configuration file is located at the Part III of the first installation kit.
Configuration file includes:The system species that the system species and master processor program that interface program is installed are installed.
The system species of the installation of interface program can have one and can also have multiple, the system kind that master processor program is installed Class can have one and can also have multiple.The system kind that the system species of the installation of interface program can be installed with master processor program Class is identical, it is also possible to different.
Assuming that interface program(Hereinafter referred to as IM)Installation system be Windows systems or android system(That is IM== Windows or Android), master processor program(Hereinafter referred to as MM)Installation system be Windows systems or Android systems System(That is MM==Android or Windows).
If configuration file is the IM==Windows being defined as below, MM==Android, then interface program is installed to Windows, master processor program is arranged on Android.
If configuration file is the IM==Windows being defined as below, MM==Windows, then interface program is installed to Windows, master processor program is also mounted at Windows, in this case, it is possible to understand that into the application program of pure Windows.
If configuration file is the IM==Android being defined as below, MM==Windows, then interface program is installed to Android, master processor program is arranged on Windows.
If configuration file is the IM==Android being defined as below, MM==Android, then interface program is installed to Android, master processor program is also mounted at Android, in this case, it is possible to understand that into the application program of pure android.
If configuration file is IM==Android the or Windows, MM==Android being defined as below, then interface program Android system and Windows systems can be installed to, master processor program is arranged in android system.
If configuration file is IM==Android or Windows, MM==Android the or Windows being defined as below, So interface program can be installed to android system and Windows systems, and master processor program is arranged on android system And Windows systems.
Preferably, configuration file can also include the modes to open a file that application program is supported.
The modes to open a file that application program in the embodiment of the present invention is supported refers to file is opened under which system, such as Fruit master processor program is arranged in the first system, second system and the 3rd system, then the File Open that application program is supported Mode can include:Opened under the first system, opened under second system and opened under the 3rd system.
Can also be defined as below in configuration file:Support represents the file type that application program is supported, Support= =AVI or RM or RMVB(But it is not limited to these three forms).RM is streaming media video file format, and RMVB is video text Part form.
Step S103:First installation kit is compressed.
Step S104:Whether will there is the monitoring of multiple operation system function with decompressing function and detection electronic equipment Program is integrated with the first installation kit after compression, application program after being packed.
Monitoring programme have to compression after the first installation kit decompression function, can also detect whether electronic equipment has There is multiple operating system.
Fig. 2 is referred to, is the level schematic diagram of the application program after a kind of packing provided in an embodiment of the present invention.
From figure 2 it can be seen that interface program is located at the Part I of the first installation kit, master processor program is located at the first peace The Part II of bag is filled, configuration file is located at the Part III of the first installation kit, and monitoring programme file is located at the first installation kit Part IV.
Application program packaging method provided in an embodiment of the present invention, by interface program, master processor program and configuration file Packed, obtained the first installation kit, interface program is located at the Part I of the first installation kit, and master processor program is located at the first peace The Part II of bag is filled, configuration file is located at the Part III of the first installation kit, the first installation kit is compressed, will be with solution Whether compression function and detection electronic equipment have the first installation kit after the monitoring programme of operation system function again and compression Integrated, application program after being packed.When monitoring programme detect electronic equipment have grasp system again when, can be according to matching somebody with somebody Put file record interface program install system species and master processor program install system species, by master processor program with And interface program is separately mounted in corresponding system, so as to establish the connection between each system.
Embodiment two
Fig. 3 is referred to, is a kind of flow chart of the installation method of application program provided in an embodiment of the present invention, the present invention is real The packing process of the corresponding installation kit of application program in example is applied as described in embodiment one, the method includes:
Step S301:Receive the request for installing application program.
User can double-click the corresponding installation kit of the application program, now electronic equipment when needing to install application program The request of an installation application program can be produced.
Step S302:Monitoring programme when detecting electronic equipment there is multiple operating system, to the first installation kit after compression Decompressed, obtained the first installation kit.
First installation kit includes interface program, master processor program and configuration file, and interface program is located at the described first peace The Part I of bag is filled, master processor program is located at the Part II of first installation kit, and configuration file is located at the first installation kit Part III, configuration file includes:What the system species and the master processor program that the interface program is installed were installed is System species.
Preferably, configuration file can also include the modes to open a file that application program is supported.
Can also be defined as below in configuration file:Support represents the file type that application program is supported, Support= =AVI or RM or RMVB(But it is not limited to these three forms).RM is streaming media video file format, and RMVB is video text Part form, during installation, the file type that the application program that can be recorded according to configuration file is supported, by application program It is added in the opening type fashion of the file type that the application program is supported.
Step S303:The interface program is arranged in the system that the interface program of configuration file record is installed.
Specifically, can be the system species and the electricity of the interface program installation for judging the configuration file record Whether the current system species of sub- equipment is identical;If it is, the interface program is installed under the current system, if It is no, then the interface program is sent what the interface program recorded to the configuration file was installed by data exchange channel In system, and installed.
Step S304:The system that the master processor program that the master processor program is arranged on configuration file record is installed In.
Specifically, can be the system species of the master processor program installation for judging configuration file record with it is described Whether the current system species of electronic equipment is identical;If it is, the master processor program is installed under the current system, such as It is really no, then the master processor program is sent into the master processor program recorded to the configuration file by data exchange channel In the system of installation, and installed.
In order to those skilled in the art more understand the embodiment of the present invention, name a specific example and above-described embodiment is entered Row explanation.
Assuming that user installs application program in the electronic equipment with windows systems and android system, should It is defined as below with the configuration file in the corresponding installation kit of program:IM==windows, MM==Android.
The installation process of the master processor program of the application program includes:User double-clicks the application program in windows systems Installation kit, whether monitoring program detection electronic equipment have multiple operating system, and judge current system be windows systems also It is android system, due to being currently windows systems, so the master processor program of the application program is passed through into data exchange Passage is sent to android system;Android system is installed after the master processor program for receiving the application program(Can Installed with using APK installation methods of the prior art, due to being prior art, so no longer repeating one by one).Android systems Can include that a program installs monitoring module in system, the program installs monitoring module and can receive the main process task from other systems Program or interface program.Windows systems can also include that a program installs monitoring module.
Should if user installs in the electronic equipment with windows systems, android system and linux system Use program(User double-clicks the installation kit of the application program in windows systems), and in the corresponding installation kit of the application program It is defined as below in configuration file:During MM==Android or Linux, now need the master processor program of the application program Sent to linux system and android system by data exchange channel, linux system is receiving the application program After master processor program, installed, android system is installed after the master processor program for receiving the application program. Linux system can include that program installs monitoring module with android system.
The installation process of the interface program of the application program:User double-clicks the installation of the application program in windows systems Whether bag, monitoring program detection electronic equipment has multiple operating system, and judge current system be windows systems or Android system, due to being currently windows systems, so directly by the corresponding executable application programs of application program, dynamic Chained library and related resource file copy to corresponding catalogue in windows systems(The catalogue can have user to specify), to enter Row is installed.Because the system for being provided with interface program can create desktop icons, it is advantageous to, windows systems can be with Create desktop icons.When interface program is arranged on android system, android system can also create desktop icons.
When configuration file includes the unfolding mode that application program is supported, windows systems can be according to configuration file In record change windows systems in associated documents type unfolding mode, it is preferred that it is related in change windows systems The acquiescence unfolding mode of file type.
Should if user installs in the electronic equipment with windows systems, android system and linux system Use program(User double-clicks the installation kit of the application program in windows systems), and in the corresponding installation kit of the application program It is defined as below in configuration file:IM==windows or Android, now need to lead to the interface program of the application program Data exchange channel is crossed to send to android system, after android system receives the interface program of the application program, should Copied to the corresponding executable application programs of program, dynamic link library and related resource file corresponding in android system Catalogue(The catalogue can have user to specify), to be installed.So interface program is in android system and windows systems System has installation.
The installation process of the installation process of the master processor program of application program and the interface program of application program is without first Order, can perform simultaneously afterwards.Step S303 and step S304 does not have sequencing, can perform simultaneously.
Preferably, the embodiment of the present invention can also include step S305:According to the application that the configuration file is recorded The modes to open a file that program is supported, the application program correspondence is added to by the modes to open a file that the application program is supported In the unfolding mode of file.
Embodiment three
Fig. 4 is referred to, is a kind of flow chart of file call method provided in an embodiment of the present invention, in the embodiment of the present invention File the corresponding application program of type installation process as described in embodiment two, the method includes:
Step S401:Receive the request for opening file.
User can double-click the icon of this document when needing to open a certain file, and now electronic equipment can produce a dozen The request of open file.
Step S402:System where the corresponding interface program of type of the file of configuration file record, operation The interface program.
Step S403:Current system is switched to the corresponding main process task of type of the file of the configuration file record System where program, and open the file in the system where the master processor program.
Specifically, can be that the information of the file is sent to the master processor program by application programming interface The system at place, the information of file includes filename and file path, is opened in the system where the master processor program The file.
In order to those skilled in the art more understand the embodiment of the present invention, name a specific example and above-described embodiment is entered Row explanation.
Assuming that electronic equipment has windows systems and android system, matching somebody with somebody in the corresponding application program of this document File is put to be defined as below:IM==windows, MM==Android.
User be under windows systems double-click this document, monitoring programme detection current system be windows systems also It is android system, because current system is windows systems, now interface program can obtain the information of file(For example, Filename and file path), interface program sent to android system fileinfo by API, and android system is received To after fileinfo, corresponding master processor program is opened, and by this document information transmission to master processor program, master processor program connects After receiving fileinfo, it is possible to open this document.
If the system species that the master processor program in configuration file is installed has multiple(Such as the first system, second system And the 3rd system), needing to include the unfolding mode of application program in configuration file, the unfolding mode of application program can be wrapped Include:Under the first system open, under second system open and under the 3rd system open, for example, in configuration file just like Give a definition:MM==Android or Linux, then need to include the unfolding mode of application program in configuration file, when user exists When double-clicking the icon of this document, opening, the opening under linux system under android system can be displayed in, so that user selects, Interface program can be sent into the system of user's selection fileinfo according to the selection of user, and in the system of user's selection It is middle to open above-mentioned file.When the system species only one of which that the master processor program in configuration file is installed, can be with configuration file Such as the unfolding mode including application program, is not defined as below in configuration file:During MM==Android, can in configuration file Not include the unfolding mode of application program.
All preferred, the embodiment of the present invention can also include step S400:From the text of configuration file record In the unfolding mode of the corresponding application program of type of part, a unfolding mode is selected.
Can also be defined as below in configuration file:Support represents the file type that application program is supported, Support= =AVI or RM or RMVB(But it is not limited to these three forms).RM is streaming media video file format, and RMVB is video text Part form, this shows that the application program can support that the file of three types, i.e. media video file can apply journey by this Sequence is opened, and video file can be opened by the application program, and the file of Audio Video Interleaved form can also be by the application Program is opened.
Example IV
Method is described in detail in the invention described above disclosed embodiment, can be taken various forms for the method for the present invention Device realize, therefore the invention also discloses various devices, specific embodiment is given below and is described in detail.
Fig. 5 is referred to, is a kind of structural representation of the device of application program packing provided in an embodiment of the present invention, the dress Put including:Program module 501, the first packetization module 502, the packetization module 504 of compression module 503 and second are obtained, wherein:
Program module 501 is obtained, for obtaining interface program corresponding with the application program and master processor program.
First packetization module 502, for the interface program, the master processor program and configuration file to be beaten Bag, obtains the first installation kit.
Interface program is located at the Part I of the first installation kit, and master processor program is located at the Part II of the first installation kit, Configuration file is located at the Part III of the first installation kit, and configuration file includes:System species and main place that interface program is installed The system species that reason program is installed.
Preferably, configuration file also includes:The modes to open a file that the application program is supported.
Compression module 503, for the first installation kit to be compressed.
Second packetization module 504, for that whether will have multiple operation system with decompressing function and detection electronic equipment The monitoring programme of function of uniting is integrated with the first installation kit after compression, application program after being packed.
Application program packing apparatus provided in an embodiment of the present invention, obtains and the application journey program module 501 is obtained After the corresponding interface program of sequence and master processor program, by the way that the first packetization module 502 is by interface program, master processor program and matches somebody with somebody Put file to be packed, obtain the first installation kit, interface program is located at the Part I of the first installation kit, and master processor program is located at The Part II of the first installation kit, configuration file is located at the Part III of the first installation kit, is pacified first by compression module 503 Whether dress bag is compressed, will have with decompressing function and detection electronic equipment finally by the second packetization module 504 The monitoring programme of multiple operation system function is integrated with the first installation kit after compression, application program after being packed.Work as prison Control Programmable detection to electronic equipment have again grasp system when, can according to configuration file record interface program installation system kind The system species that class and master processor program are installed, corresponding system is separately mounted to by master processor program and interface program In, so as to establish the connection between each system.
Embodiment five
Fig. 6 is referred to, is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment bag Include:Receiver module 601, decompression module 602, first install module 603 and second and install module 604, wherein:
Receiver module 601, the request of the application program is installed for receiving
Decompression module 602, for monitoring programme when detecting electronic equipment there is multiple operating system, to after compression the One installation kit is decompressed, and obtains the first installation kit.
First installation kit includes interface program, master processor program and configuration file, and interface program is located at the described first peace The Part I of bag is filled, master processor program is located at the Part II of the first installation kit, and configuration file is located at the of the first installation kit Three parts, configuration file includes:The system species that the system species and master processor program that interface program is installed are installed.
First installs module 603, the interface journey for the interface program to be arranged on configuration file record In the system that sequence is installed.
First installation module 603 can include:Judging unit 6031, the boundary for judging the configuration file record Whether the system species that the system species of face program installation is current with the electronic equipment is identical;First installation unit 6032, uses In in the judged result of the judging unit in the case of being, the interface program to be installed under the current system;Second Installation unit 6033, in the case of being no in the judged result of the judging unit, data is passed through by the interface program Interchange channel is sent in the system installed to the interface program of configuration file record, and is installed.
Second installs module 604, the described main place for the master processor program to be arranged on configuration file record In the system that reason program is installed.
Second installation module 604 can include:Judging unit 6041, judges the main process task of the configuration file record Whether the system species that the system species of program installation is current with the electronic equipment is identical;First installation unit 6042, is used for It is in the case of being, the master processor program to be installed under the current system in the judged result of the judging unit;Second Installation unit 6043, in the case of being no in the judged result of the judging unit, by the master processor program by number In the system that the master processor program sent to configuration file record according to interchange channel is installed, and installed.
Preferably, above-mentioned electronic equipment can also include:Add module 605, for what is recorded according to the configuration file The modes to open a file that the application program is supported, the application is added to by the modes to open a file that the application program is supported In the unfolding mode of program respective file.
Embodiment six
Fig. 7 is referred to, is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment bag Include:Receiver module 701, operation module 702 and handover module 703, wherein:
Receiver module 701, the request of the file is opened for receiving
Operation module 702, be where for the corresponding interface program of type of the file recorded in configuration file System, runs the interface program.
Handover module 703, the type correspondence of the file for current system to be switched to the configuration file record Master processor program where system, and open the file in the system where the master processor program.
Handover module 703 can include:Transmitting element 7031, for the information of the file to be passed through into application programming Interface sends the system to where the master processor program, and the information of the file includes filename and file path;Open Unit 7032, for opening the file in the system where the master processor program.
Preferably, above-mentioned electronic equipment can also include:Selecting module 704, for the institute recorded from the configuration file State in the unfolding mode of the corresponding application program of type of file, select a unfolding mode.
In order to those skilled in the art more understand the embodiment of the present invention, a specific example is being lifted to calling file below The process that Shi Ruguo carries out system switching is illustrated.
Assuming that the interface program of Word is arranged on windows systems, the master processor program of Word is installed in android systems System.The interface program of game is arranged on Android system, and the master processor program of game is arranged on windows systems.
When user double-clicks the icon of a certain Word file under windows systems, electronic equipment can be according in configuration file Record automatically switch to Android system, and the information of file is sent to Android system, and by Android system In master processor program open, when user Android system double-click play when, the note that electronic equipment can be in configuration file Record automatically switches to windows systems, and the information of game is sent to windows systems, and by windows by API Master processor program in system is opened, and the information of game includes the title of game and the path of game.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
Also, it should be noted that herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and between not necessarily requiring or implying these entities or operate There is any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to contain Lid nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
The step of method or algorithm for being described with reference to the embodiments described herein, directly can be held with hardware, processor Capable software module, or the two combination is implemented.Software module can be placed in random access memory(RAM), internal memory, read-only deposit Reservoir(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In field in known any other form of storage medium.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The scope most wide for causing.

Claims (18)

1. a kind of method that application program is packed, it is characterised in that including:
Obtain interface program corresponding with the application program and master processor program;
The interface program, the master processor program and configuration file are packed, the first installation kit, the interface is obtained Program is located at the Part I of first installation kit, and the master processor program is located at the Part II of first installation kit, The configuration file is located at the Part III of first installation kit, and the configuration file includes:What the interface program was installed The system species that system species and the master processor program are installed;
First installation kit is compressed;
By it whether there is the monitoring programme of multiple operation system function and compress with decompressing function and detection electronic equipment after The first installation kit integrated, application program after being packed.
2. method according to claim 1, it is characterised in that the configuration file also includes:What the application program was supported Modes to open a file.
3. a kind of method that application program is installed, is applied to electronic equipment, it is characterised in that including:
Receive the request for installing application program;
Monitoring programme is decompressed when electronic equipment is detected with multiple operating system to the first installation kit after compression, is obtained First installation kit, first installation kit includes interface program, master processor program and configuration file, and the interface program is located at The Part I of first installation kit, the master processor program is located at the Part II of first installation kit, the configuration File is located at the Part III of first installation kit, and the configuration file includes:The system species that the interface program is installed And the system species that the master processor program is installed;
The interface program is arranged in the system that the interface program of configuration file record is installed;
The master processor program is arranged in the system that the master processor program of configuration file record is installed.
4. method according to claim 3, it is characterised in that described that the interface program is remembered installed in the configuration file The system that the interface program of record is installed includes:
Judge the system species that the interface program of the configuration file record the is installed system current with the electronic equipment Whether species is identical;
If it is, the interface program is installed under the current system, if it is not, then the interface program is passed through into data Interchange channel is sent in the system installed to the interface program of configuration file record, and is installed.
5. method according to claim 3, it is characterised in that described that the master processor program is arranged on the configuration file The system that the master processor program of record is installed includes:
Judge system species that the master processor program of configuration file record is installed it is current with the electronic equipment be Whether system species is identical;
If it is, the master processor program is installed under the current system, if it is not, then the master processor program is passed through Data exchange channel is sent in the system installed to the master processor program of configuration file record, and is installed.
6. method according to claim 3, it is characterised in that the configuration file also includes the text that the application program is supported Part unfolding mode, methods described also includes:
The modes to open a file that the application program recorded according to the configuration file is supported, the application program is supported Modes to open a file is added in the unfolding mode of the application program respective file.
7. a kind of file call method, is applied to electronic equipment, it is characterised in that including:
Receive the request for opening file;
System where the corresponding interface program of type of the file of configuration file record, runs the interface program;
It is where the corresponding master processor program of type of the file that current system is switched to the configuration file record System, and open the file in the system where the master processor program;
Wherein, the configuration file includes:What the system species and the master processor program that the interface program is installed were installed System species;
The interface program is arranged in the system that the interface program of configuration file record is installed;
The master processor program is arranged in the system that the master processor program of configuration file record is installed.
8. method according to claim 7, it is characterised in that the system where the master processor program is opened described File includes:
The information of the file is sent into system to where the master processor program, the text by application programming interface The information of part includes filename and file path;
The file is opened in the system where the master processor program.
9. method according to claim 7, it is characterised in that it is described receive the request for opening the file before also wrap Include:
From the unfolding mode of the corresponding application program of type of the file of configuration file record, a dozen evolutions are selected Formula.
10. the device that a kind of application program is packed, it is characterised in that including:
Program module is obtained, for obtaining interface program corresponding with the application program and master processor program;
First packetization module, for the interface program, the master processor program and configuration file to be packed, obtains One installation kit, the interface program is located at the Part I of first installation kit, and the master processor program is located at described first The Part II of installation kit, the configuration file is located at the Part III of first installation kit, and the configuration file includes:Institute State the system species that the system species and the master processor program of interface program installation are installed;
Compression module, for first installation kit to be compressed;
Second packetization module, for whether will there is multiple operation system function with decompressing function and detection electronic equipment Monitoring programme is integrated with the first installation kit after compression, application program after being packed.
11. devices according to claim 10, it is characterised in that the configuration file also includes:The application program is supported Modes to open a file.
12. a kind of electronic equipment, it is characterised in that including:
Receiver module, the request of application program is installed for receiving;
Decompression module, for monitoring programme when electronic equipment is detected with multiple operating system, installs to after compression first Bag is decompressed, and obtains the first installation kit, and first installation kit includes interface program, master processor program and configuration file, The interface program is located at the Part I of first installation kit, and the master processor program is located at the of first installation kit Two parts, the configuration file is located at the Part III of first installation kit, and the configuration file includes:The interface program The system species that the system species of installation and the master processor program are installed;
First installs module, what the interface program for the interface program to be arranged on configuration file record was installed In system;
Second installs module, the master processor program peace for the master processor program to be arranged on configuration file record In the system of dress.
13. according to claim 12 electronic equipment, it is characterised in that it is described first installation module include:
Judging unit, the system species that the interface program for judging the configuration file record is installed sets with the electronics Whether standby current system species is identical;
First installation unit, for being in the case of being, to pacify under the current system in the judged result of the judging unit Fill the interface program;
Second installation unit, in the case of being no in the judged result of the judging unit, the interface program is passed through Data exchange channel is sent in the system installed to the interface program of configuration file record, and is installed.
14. according to claim 12 electronic equipment, it is characterised in that it is described second installation module include:
Judging unit, judges the system species and the electronic equipment of the master processor program installation of the configuration file record Whether current system species is identical;
First installation unit, for being in the case of being, to pacify under the current system in the judged result of the judging unit Fill the master processor program;
Second installation unit, in the case of being no in the judged result of the judging unit, the master processor program is led to Cross data exchange channel to send into the system of the master processor program installation of configuration file record, and installed.
15. according to claim 12 electronic equipment, it is characterised in that the configuration file also include the application program branch The modes to open a file held, the electronic equipment also includes:
Add module, the modes to open a file that the application program for being recorded according to the configuration file is supported will be described The modes to open a file that application program is supported is added in the unfolding mode of the application program respective file.
16. a kind of electronic equipment, it is characterised in that including:
Receiver module, the request of file is opened for receiving;
Operation module, for the system where the corresponding interface program of type of the file recorded in configuration file, operation The interface program;
Handover module, the corresponding main process task of type of the file for current system to be switched to the configuration file record System where program, and open the file in the system where the master processor program;
Wherein, the configuration file includes:What the system species and the master processor program that the interface program is installed were installed System species;
The interface program is arranged in the system that the interface program of configuration file record is installed;
The master processor program is arranged in the system that the master processor program of configuration file record is installed.
17. according to claim 16 electronic equipment, it is characterised in that the handover module includes:
Transmitting element, for the information of the file to be sent to where the master processor program by application programming interface System, the information of the file includes filename and file path;
Opening unit, for opening the file in the system where the master processor program.
18. according to claim 16 electronic equipment, it is characterised in that also include:
Selecting module, the unfolding mode of the corresponding application program of type of the file for being recorded from the configuration file In, select a unfolding mode.
CN201210592742.9A 2012-12-31 2012-12-31 The processing method of application program, device and electronic equipment Active CN103914312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210592742.9A CN103914312B (en) 2012-12-31 2012-12-31 The processing method of application program, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592742.9A CN103914312B (en) 2012-12-31 2012-12-31 The processing method of application program, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN103914312A CN103914312A (en) 2014-07-09
CN103914312B true CN103914312B (en) 2017-06-27

Family

ID=51040017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592742.9A Active CN103914312B (en) 2012-12-31 2012-12-31 The processing method of application program, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN103914312B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965723B (en) * 2014-10-09 2019-01-08 腾讯科技(深圳)有限公司 The operation method and device of application program
CN105988834B (en) * 2015-02-12 2019-11-19 腾讯科技(深圳)有限公司 A kind of application installation package generates, installation method and device
CN106557687A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of authority control method and device of application program installation process
CN106557669A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of authority control method and device of application program installation process
CN106874038B (en) * 2017-01-13 2020-05-01 北京安云世纪科技有限公司 Application installation method and device and mobile terminal
CN110032542B (en) * 2019-04-19 2021-04-27 宁波三星医疗电气股份有限公司 Cramfs file system management method and device and electronic equipment
CN110908933A (en) * 2019-10-23 2020-03-24 深圳智链物联科技有限公司 Method and system compatible with Windows equipment and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639781A (en) * 2009-08-25 2010-02-03 厦门敏讯信息技术股份有限公司 Program installation method and programmable electronic equipment
CN101655805A (en) * 2009-09-18 2010-02-24 林克仁 Method and device for constructing multilayered virtual operating system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101761615B1 (en) * 2010-10-29 2017-08-04 엘지전자 주식회사 Mobile terminal and method for controlling the same
US20120278797A1 (en) * 2011-02-21 2012-11-01 Randy Kent Secrist Methods and systems for packaging encapsulated operating system and custom software for single stream multi-system installation
JP2013140516A (en) * 2012-01-05 2013-07-18 Sony Corp Information processing apparatus and display control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639781A (en) * 2009-08-25 2010-02-03 厦门敏讯信息技术股份有限公司 Program installation method and programmable electronic equipment
CN101655805A (en) * 2009-09-18 2010-02-24 林克仁 Method and device for constructing multilayered virtual operating system

Also Published As

Publication number Publication date
CN103914312A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
CN103914312B (en) The processing method of application program, device and electronic equipment
CN107172454B (en) Video recommendation method, medium, device and computing equipment
CN105183675B (en) To the access method of USB device, device, terminal, server and system
CN102662665B (en) Input subsystem enabling Android to support various sensors
US5835759A (en) Launching computer applications
CN102724356B (en) The information synchronization method and device of access device
CN103901307B (en) A kind of test system and method for on-board multimedia device
CN104424089A (en) Terminal testing method and device
CN103853658B (en) The automated testing method and Android device of recording and playback are carried out in Android device
CN104317648B (en) A kind of method and apparatus of monitoring advertisement
CN102523475B (en) Testing method and device for electronic products, and television set
CN104679581B (en) The method and device of running background program
CN103577225B (en) A kind of software installation method and device
CN105740144A (en) Automated testing method and system for Android mobile Terminal
CN101859251A (en) Method and device for installing embedded operating system
CN113868126A (en) Application debugging method, device and storage medium of equipment
CN109885781A (en) Mix page unified view method, apparatus, equipment and storage medium
CN104346195A (en) Software installing method and system
CN109697156A (en) A kind of starting time obtaining method, device, terminal device and storage medium
CN109375874A (en) A kind of call method of distributed storage, device and equipment
CN105760456B (en) A kind of method and apparatus keeping data consistency
CN106201287A (en) The broadcast state changing method of a kind of multimedia file and device
KR101478034B1 (en) Apparatus for analyzing code in contents, method thereof and computer recordable medium storing the method
CN209441385U (en) The communication detection system of train network control system
CN1315023C (en) Redirectional system and method of man-machine interactive input-output equipment of blind equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant