CN104166554B - A kind of software development methodology and installation method for supporting multiple operating system - Google Patents
A kind of software development methodology and installation method for supporting multiple operating system Download PDFInfo
- Publication number
- CN104166554B CN104166554B CN201410408191.5A CN201410408191A CN104166554B CN 104166554 B CN104166554 B CN 104166554B CN 201410408191 A CN201410408191 A CN 201410408191A CN 104166554 B CN104166554 B CN 104166554B
- Authority
- CN
- China
- Prior art keywords
- software
- identiflication number
- operating system
- address code
- 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.)
- Active
Links
Abstract
The invention discloses a kind of software development methodology and installation method for supporting multiple operating system, the method comprising the steps of:A, by software definition it is in advance software head and software agent;B, the identiflication number of each OS name, and address code corresponding to setting are generated in software head;C, the installation file of the support different operating system of association corresponding with address code is generated in software agent;The mode of several operation systems is supported as a result of an installation file, user is paid close attention to mobile phone operating system when installing software, and when carrying out software between different operating system and sharing without the mobile phone operating system for considering both sides.
Description
Technical field
The present invention relates to intelligent mobile terminal application field, more particularly to a kind of software for supporting multiple operating system to open
Forwarding method and installation method.
Background technology
The operating system of mobile terminal point many kinds, at present the mobile terminal operating system of main flow have iOS, Android,
WindowsPhone.In mobile terminal in the prior art, function identical software, using different operating system mobile terminal its
Installation file is different.For adept machine QQ, the mobile phone QQ installation files in iOS are with being arranged on Android
In mobile phone QQ installation files be different.Therefore, cause to need to provide not for different operating system with a software
Same installation file, it can not accomplish that an installation file can be arranged in different mobile phone operating systems, this will bring following
Trouble:
1), the installation file of as iOS user thinking wirelessly to share its certain software turns into not to Android user
May;
2), some smart phone users may not know about what operating system oneself used, can not correctly download to
The installation file of software.
Therefore, prior art has yet to be improved and developed.
The content of the invention
In view of above-mentioned the deficiencies in the prior art, the present invention provides a kind of software development methodology and peace for supporting multiple operating system
Dress method, user is set to pay close attention to mobile phone operating system when installing software, and when carrying out software between different operating system
Without the mobile phone operating system for considering both sides when shared.
Used technical scheme is as follows:
A kind of software development methodology for supporting multiple operating system, including step:
A, by software definition it is in advance software head and software agent;
B, the identiflication number of each OS name, and address code corresponding to setting are generated in software head;
C, the installation file of the support different operating system of association corresponding with address code is generated in software agent.
The software development methodology of described support multiple operating system, wherein, the address code includes:
The initial address of software agent and the file size of matching respective operations system installation file.
A kind of software installation method for supporting multiple operating system, including step:
D, current operation system title is obtained, and the OS name is converted into identiflication number;
E, search whether the identiflication number be present in software head, if there is step F is then performed, otherwise prompt this soft
Part can not be installed;
F, the address code according to corresponding to the identiflication number obtains the installation file of corresponding association from software agent, and pacifies
Dress.
The software installation method of described support multiple operating system, wherein, also include before the step D:
D01, identiflication number corresponding with OS name is set in software head in advance, and set in software head
Address code corresponding with identiflication number is put, and the installation file of association corresponding with the address code is set in software agent.
The software installation method of described support multiple operating system, wherein, the step E is specifically included:
Numbering is identified in software head and searches for E1, the identiflication number changed according to OS name;
If E2, finding the identiflication number in software head, into step F, otherwise into step E3;
E3, the software is prompted not install.
The software installation method of described support multiple operating system, wherein, the step F is specifically included:
Address code corresponding to F1, the identiflication number acquisition in software head;
F2, the installation file that association is corresponded in software agent is pointed to according to the address code;
F3, the installation file is obtained, and installed.
The software installation method of described support multiple operating system, wherein, the address code includes:The starting of software agent
Address and the file size of matching respective operations system installation file.
Beneficial effects of the present invention:
Compared with prior art, a kind of software development methodology for supporting multiple operating system provided by the invention and installation side
Method, the mode of several operation systems is supported as a result of an installation file, user is paid close attention to hand when installing software
Machine operating system, and when carrying out software between different operating system and sharing without the mobile phone operating system for considering both sides.
Brief description of the drawings
Fig. 1 is the step flow chart for the software development methodology that the present invention supports multiple operating system;
Fig. 2 be the present invention support multiple operating system software development methodology in software composition schematic diagram;
Fig. 3 is the step flow chart for the software installation method that the present invention supports multiple operating system;
Fig. 4 be the present invention support multiple operating system software installation method concrete application embodiment in wechat software composition
Schematic diagram;
Fig. 5 is the software header addresses code rules of arrangement schematic diagram of wechat software in Fig. 4.
Embodiment
The invention provides a kind of software development methodology and installation method for supporting multiple operating system, to make the mesh of the present invention
, technical scheme and advantage it is clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the step flow chart for the software development methodology that the present invention supports multiple operating system, the branch
The software development methodology of multiple operating system is held, it comprises the following steps:
Step S100, by software definition it is in advance software head and software agent.
Step S200, the identiflication number of each OS name, and address corresponding to setting are generated in software head
Code.
Step S300, the installation text of the support different operating system of association corresponding with address code is generated in software agent
Part.
With reference to shown in Fig. 2, Fig. 2 be the present invention support multiple operating system software development methodology in software composition signal
Figure, to support three kinds of operating systems(OS1, OS2, OS3, note:OS:Operating System)Exemplified by, generation is as described herein
The software of multiple operating system is supported to comprise the following steps:
A1, obtain the software installation files in these three operating systems:OS1_sw_file、OS2_sw_file、OS3_sw_
File, wherein, OS1_sw_file installation files can be installed in OS1 operating systems, and OS2_sw_file installation files can be in OS2
Installed in operating system, OS3_sw_file installation files can be installed in OS3 operating systems.
A2, generation software head are as follows:
OS1:sw_real_base + 0;
OS2:sw_real_base + OS1_sw_file_size;
OS3:sw_real_base + OS1_sw_file_size + OS2_sw_file_size;
Wherein, the initial address of software agent is sw_real_base, and OS1_sw_file file size is OS1_sw_
File_size, OS2_sw_file file size are OS2_sw_file_size, and OS3_sw_file file size is
OS3_sw_file_size, the rules of arrangement of address code are the file sizes that next address code subtracts this address code, then, OS1
Address code be:Sw_real_base+0, OS2 address code is:Sw_real_base+OS1_sw_file_size, OS3
Address code be:sw_real_base + OS1_sw_file_size + OS2_sw_file_size.
A3, generation software agent:
OS1_sw_file;
OS2_sw_file;
OS3_sw_file;
Software agent is made up of successively the installation file of above-mentioned three kinds of operating system, wherein, OS1_sw_file grasps for OS1
Make the installation file of system, OS2_sw_file is the installation file of OS3 operating systems, and OS3_sw_file is OS3 operating systems
Installation file.
As shown in figure 3, Fig. 3 is the step flow chart for the software installation method that the present invention supports multiple operating system, the branch
The software installation method of multiple operating system is held, it comprises the following steps:
Step S400, current operation system title is obtained, and the OS name is converted into identiflication number.It is existing normal
The mobile terminal operating system seen has iOS, Android, WindowsPhone, then according to the difference of operating system, to its point
Numbering is not identified.
Certainly, should also be set in advance in software head before step S400 is carried out corresponding with OS name
Identiflication number, and address code corresponding with identiflication number is set in software head, and set and the address in software agent
The installation file of the corresponding association of code.That is, identiflication number is set in software head, and the identiflication number and operating system
The identiflication number of title conversion is corresponding, only found in software head corresponding to OS name identiflication number it
Afterwards, corresponding installation file in software agent is just associated with according to corresponding address code, the installation of software can be carried out.
Software in the present invention includes two parts:Software head and software agent, wherein, software head includes the software
The operating system supported(I.e. the software can be installed in which operating system)And an address code corresponding to each operating system,
The address code is specially the file size of the initial address and matching respective operations system installation file of software agent, and software master
Body then includes installation file corresponding to supported operating system.
Step S500, search whether the identiflication number be present in software head, it is no if there is then execution step S600
The software is then prompted not install.Step S500 is specifically included:
Step S510, numbering is identified in software head and searches for the identiflication number changed according to OS name.
The title identiflication number for all operating systems that the software can be supported is provided with software head, then, only need to be soft at this
Identiflication number corresponding with current operation system title is searched whether in part head, afterwards into step S520.
If step S520, finding the identiflication number in software head, into step S600, otherwise into step
S530.If having found corresponding OS name identiflication number in the software head, illustrate that the software can be supported
The operating system, then into step S600;If it is to find the OS name identiflication number, explanation in the software head
The software can not support the operating system, then into step S530.
Step S530, the software is prompted not install.This software of prompting user can not be installed in this operating system, say
The operating system that the bright software can be supported does not include current operation system.
Step S600, according to corresponding to the identiflication number, address code obtains the installation of respective operations system from software agent
File, and install.Step S600 is specifically included:
Step S610, address code corresponding to the identiflication number acquisition in software head.Identify and compile in software head
Number it is that address code is one-to-one, the i.e. corresponding address code of an OS name identiflication number, and only passes through
The address code could find corresponding installation file in software agent.
Step S620, the installation file of corresponding association in software agent is pointed to according to the address code.OS name is known
It Bian Hao not corresponded with address code, and address code is one by one with the installation file in software agent for different operating system
It is corresponding.
Step S630, the installation file is obtained, and is installed.The installation file pointed by address code is obtained, and at this
Installed in operating system.
The present invention is further described with reference to a concrete application embodiment:
To support the wechat software of iOS, Android, WindowsPhone operating system and the wechat software at these three
Exemplified by the method installed in operating system.
As shown in figure 4, Fig. 4 be the present invention support multiple operating system software installation method concrete application embodiment in wechat
The composition schematic diagram of software.
In software head, 0xdeadbeef0026 is the identiflication number of iOS operating systems, and 0xdeadbeef0012 is
The identiflication number of Android operation system, 0xdeadbeef0029 are the identiflication number of WindowsPhone operating systems.Software
The initial address of main body is sw_real_base, and iOS_sw_file file size is iOS_sw_file_size, Android_
Sw_file file size is Android_sw_file_size, and WindowsPhone_sw_file file size is
WindowsPhone_sw_file_size, such as above-mentioned address code rules of arrangement, accordingly, iOS address code is:sw_
Real_base+0, Android address code is:Sw_real_base+iOS_sw_file_size, WindowsPhone
Address code be:sw_real_base + iOS_sw_file_size + Android_sw_file_size.
Software agent is made up of successively the installation file that wechat software is installed on iOS, Android, WindowsPhone.
In software agent, iOS_sw_file is the installation file of the existing wechat software that can be installed on iOS;Android_sw_
File is the installation file of the existing wechat software that can be installed on Android;WindowsPhone_sw_file is existing
The wechat software that can be installed on WindowsPhone installation file.
When the wechat software of tri- kinds of operating systems of iOS, Android, WindowsPhone is supported in installation, specific steps are such as
Under:
Step S10, current operation system title is obtained, and OS name is converted into identiflication number.Enter afterwards
Step S20.
Step S20, the identiflication number in the presence of the OS name is searched whether in software head, if there is then holding
Row step S30, otherwise prompts the software not install.
Step S30, address code corresponding to the identiflication number in software head is obtained, software agent is obtained from the address code
The installation file of middle respective operations system, and install.
Wherein, OS name is converted to identiflication number in the step S10, be specially in advance agreement identiflication number with
Relation corresponding to operating system, as identiflication number 0xdeadbeef0012 represents Android in the present embodiment;So when getting
When OS name is Android, identiflication number 0xdeadbeef0012 is converted to.
The step S20, the content of 0xdeadbeef beginnings is searched specially in the wechat installation file, plus below
Two bytes are operating system identiflication number;All contents with 0xdeadbeef beginnings are searched in wechat installation file simultaneously
It just may know that the wechat installation file supports the operating system of which identiflication number plus two bytes thereafter.By judging to walk
Wherein whether the identiflication number obtained in rapid S10, it is possible to knows that can the wechat installation file be arranged in the mobile phone.Example
Identiflication number as being converted in step S10 by OS name is 0xdeadbeef006, then can not use software master
Wechat installation file in body;In another example the identiflication number being converted in step S10 by OS name is
0xdeadbeef029, then it can use the wechat installation file in software agent.
The step S30, specially obtain the initial address behaviour corresponding with matching of the software agent after corresponding identiflication number
Make the byte number of the file size of system installation file.The byte number of the file size of the matching respective operations system installation file
The content that this identiflication number is subtracted by the content of next identiflication number obtains afterwards.
As shown in figure 5, Fig. 5 is the software header addresses code rules of arrangement schematic diagram of wechat software in Fig. 4, for example, setting:
IOS_sw_file_size=0x111111 bytes;
Android_sw_file_size=0x22222222 bytes;
WindowsPhone_sw_file_size=0x3333 bytes.
Then in software head address code as shown in figure 5, wherein, sw_real_base can be calculated by the following manner:
The byte number that the byte number of one identiflication number is 6, iOS_sw_file_size is 3, Android_sw_file_
Size byte number is 4, then:
6*3+[sw_real_base/255]+[(sw_real_base+0x111111)/255]+[(sw_real_base+
0x111111+0x22222222)/255]=sw_real_base, wherein [] represents round numbers part, calculate to obtain sw_real_base
=26, i.e. 0x1a.
Software agent successively by 0x111111 bytes iOS_sw_file, 0x22222222 byte Android_sw_
The WindowsPhone_sw_file compositions of file, 0x3333 byte.
In summary, a kind of software development methodology and installation method for supporting multiple operating system provided by the present invention, by
In the mode for employing an installation file support several operation systems, user is set to pay close attention to mobile phone operation when installing software
System, and when carrying out software between different operating system and sharing without the mobile phone operating system for considering both sides.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.
Claims (4)
1. a kind of software development methodology for supporting multiple operating system, it is characterised in that including step:
A, by software definition it is in advance software head and software agent;
B, the identiflication number of each OS name, and address code corresponding to setting are generated in software head;
C, the installation file of the support different operating system of association corresponding with address code is generated in software agent;
The address code includes:The initial address of software agent and the file size of matching respective operations system installation file;
The identiflication number of OS name corresponds with the address code, and the address code in the software agent with being directed to
The installation file of different operating system is also one-to-one;
The identiflication number set in the software head, and the identiflication number is corresponding with OS name identiflication number
, after corresponding OS name identiflication number is only found in software head, software is just associated with according to address code
Corresponding installation file in main body, carries out the installation of software.
2. a kind of software installation method for supporting multiple operating system, it is characterised in that including step:
D, current operation system title is obtained, and the OS name is converted into identiflication number;
E, search whether the identiflication number be present in software head, if there is then perform step F, otherwise prompt the software without
Method is installed;
F, the address code according to corresponding to the identiflication number obtains the installation file of corresponding association from software agent, and installs;
Also include before the step D:
D01, corresponding with OS name identiflication number is set in software head in advance, and set in software head and
Address code corresponding to identiflication number, and the installation file of corresponding with address code association is set in software agent;
The address code includes:The initial address of software agent and the file size of matching respective operations system installation file;
The identiflication number of OS name corresponds with the address code, and the address code in the software agent with being directed to
The installation file of different operating system is also one-to-one;
The identiflication number set in the software head, and the identiflication number is corresponding with OS name identiflication number
, after corresponding OS name identiflication number is only found in software head, software is just associated with according to address code
Corresponding installation file in main body, carries out the installation of software.
3. the software installation method of the support multiple operating system according to claim 2, it is characterised in that the step E
Specifically include:
Numbering is identified in software head and searches for E1, the identiflication number changed according to OS name;
If E2, finding the identiflication number in software head, into step F, otherwise into step E3;
E3, the software is prompted not install.
4. the software installation method according to claim 2 for supporting multiple operating system, it is characterised in that the step F tools
Body includes:
Address code corresponding to F1, the identiflication number acquisition in software head;
F2, the installation file that association is corresponded in software agent is pointed to according to the address code;
F3, the installation file is obtained, and installed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410408191.5A CN104166554B (en) | 2014-08-19 | 2014-08-19 | A kind of software development methodology and installation method for supporting multiple operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410408191.5A CN104166554B (en) | 2014-08-19 | 2014-08-19 | A kind of software development methodology and installation method for supporting multiple operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104166554A CN104166554A (en) | 2014-11-26 |
CN104166554B true CN104166554B (en) | 2018-04-06 |
Family
ID=51910388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410408191.5A Active CN104166554B (en) | 2014-08-19 | 2014-08-19 | A kind of software development methodology and installation method for supporting multiple operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104166554B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765633A (en) * | 2015-04-22 | 2015-07-08 | 浪潮电子信息产业股份有限公司 | Installation method and device for server operation system and mobile storage device |
CN106095514B (en) * | 2016-06-22 | 2019-05-03 | 深圳市波普安创技术有限公司 | The file installation kit and its generation method for down loading of compatible operating system |
CN108089885A (en) * | 2017-12-28 | 2018-05-29 | Tcl移动通信科技(宁波)有限公司 | A kind of USB driving installation processes method, mobile terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5931909A (en) * | 1996-04-19 | 1999-08-03 | Sun Microsystems, Inc. | System for multiple-client software installation and upgrade |
CN101694624A (en) * | 2009-10-19 | 2010-04-14 | 中兴通讯股份有限公司 | Method for processing compact disc image files of software installation package and device |
CN102520948A (en) * | 2011-12-09 | 2012-06-27 | 福建联迪商用设备有限公司 | Application program maintenance and update method and device |
-
2014
- 2014-08-19 CN CN201410408191.5A patent/CN104166554B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5931909A (en) * | 1996-04-19 | 1999-08-03 | Sun Microsystems, Inc. | System for multiple-client software installation and upgrade |
CN101694624A (en) * | 2009-10-19 | 2010-04-14 | 中兴通讯股份有限公司 | Method for processing compact disc image files of software installation package and device |
CN102520948A (en) * | 2011-12-09 | 2012-06-27 | 福建联迪商用设备有限公司 | Application program maintenance and update method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104166554A (en) | 2014-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107943486B (en) | Multi-language code compiling method, multi-language code distributing method, multi-language code compiling device, multi-language code distributing device and multi-language code system | |
CN102779151B (en) | The searching method of application program, Apparatus and system | |
US9823909B1 (en) | Program code conversion for cross-platform compatibility | |
CN103514006A (en) | Method and system of upgrade of pre-installed applications of Android system | |
CN103713902B (en) | A kind of BOA Compilation Methods and system based on android system | |
CN103294514A (en) | System software release integrated method, compiling server and system | |
CN106325965B (en) | The Compilation Method and device of operating system | |
CN104166554B (en) | A kind of software development methodology and installation method for supporting multiple operating system | |
RU2011101770A (en) | METHOD FOR ACCESS TO APPLICATIONS IN A PROTECTED MOBILE ENVIRONMENT | |
CN106055375B (en) | Application program installation method and device | |
CN104144466A (en) | Access method for sensor in Internet of Things, Internet of Things system and server | |
WO2021120327A1 (en) | Firmware updating method and apparatus, and headset and computer readable storage medium | |
CN104021336A (en) | Information processing method and device | |
CN105630518A (en) | Method and device for updating resources of Android application software | |
CN103176811A (en) | Third party application installation method and third party application installation system | |
CN104516755A (en) | Installation package generating method and device | |
CN106873966B (en) | Application program development method and device | |
CN103019764B (en) | The detection method of Andriod resource bag installability and system | |
CN103164237A (en) | Firmware upgrade method and system | |
CN104166576A (en) | System platform for providing program installation package | |
CN105653298A (en) | Application program update method and terminal | |
CN102158434A (en) | Intelligent gateway and method for realizing application program management on intelligent gateway | |
CN110837391B (en) | Application program hot updating method and device, storage medium and electronic equipment | |
CN104182260A (en) | Method for providing installation packages of application programs | |
WO2016041499A1 (en) | Application downloading method and mobile terminal |
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 |