CN104166554A - Software developing method and installation method supporting multiple operation systems - Google Patents

Software developing method and installation method supporting multiple operation systems Download PDF

Info

Publication number
CN104166554A
CN104166554A CN201410408191.5A CN201410408191A CN104166554A CN 104166554 A CN104166554 A CN 104166554A CN 201410408191 A CN201410408191 A CN 201410408191A CN 104166554 A CN104166554 A CN 104166554A
Authority
CN
China
Prior art keywords
software
operating system
file
identiflication number
address code
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.)
Granted
Application number
CN201410408191.5A
Other languages
Chinese (zh)
Other versions
CN104166554B (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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN201410408191.5A priority Critical patent/CN104166554B/en
Publication of CN104166554A publication Critical patent/CN104166554A/en
Application granted granted Critical
Publication of CN104166554B publication Critical patent/CN104166554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a software developing method and installation method supporting multiple operation systems. The method comprises the steps that A. software is defined as a software head part and a software body in advance; B. recognition serial numbers of various operation system names are generated in the software head part, and corresponding address codes are set; and C. installation files which are related to the address codes in a corresponding mode and support different operation systems are generated in the software body. The mode that one installation file supports the various operation systems is used, so that a user does not need to pay attention to a mobile phone operation system when software is installed, and when the different operation systems carry out software sharing, the mobile phone operation systems of two parties do not need to be considered.

Description

A kind of software development methodology and installation method of supporting multiple operating system
Technical field
The present invention relates to intelligent mobile terminal application, in particular a kind of software development methodology and installation method of supporting multiple operating system.
Background technology
The operating system of mobile terminal is divided a variety of, and the mobile terminal operating system of main flow has iOS, Android, WindowsPhone at present.In mobile terminal prior art, the software that function is identical, it is different using its installation file of mobile terminal of different operating system.With regard to adept machine QQ, the mobile phone QQ installation file being arranged in iOS is different with the mobile phone QQ installation file being arranged in Android.Therefore, cause need to providing different installation files for different operating system with a software, cannot accomplish that an installation file can be arranged in different mobile phone operating systems, this will bring following trouble:
1), as iOS user, to want that the installation file of sharing its certain software by wireless mode becomes to Android user impossible;
2), some smart phone users may not understand oneself use be what operating system, cannot correctly download to the installation file of software.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the invention provides a kind of software development methodology and installation method of supporting multiple operating system, make user in the time of mounting software without pay close attention to mobile phone operating system, and when between different operating system, carry out software share time also without consideration both sides mobile phone operating system.
The technical scheme adopting is as follows:
A software development methodology of supporting multiple operating system, comprises step:
A, be software head and software agent by software definition in advance;
B, in software head, generate the identiflication number of each OS name, and corresponding address code is set;
C, in software agent, generate and the installation file of the corresponding associated support different operating system of address code.
The software development methodology of described support multiple operating system, wherein, described address code comprises:
The file size of the start address of software agent and coupling respective operations system installation file.
A software installation method of supporting multiple operating system, comprises step:
D, obtain current operation system title, and this OS name is converted to identiflication number;
E, in software head, search whether there is this identiflication number, if existed, perform step F, otherwise point out this software to install;
F, from software agent, obtain corresponding associated installation file according to address code corresponding to this identiflication number, and install.
The software installation method of described support multiple operating system wherein, also comprised before described step D:
D01, in advance the identiflication number corresponding with OS name be set in software head, and the address code corresponding with identiflication number be set in software head, and in software agent setting and the corresponding associated installation file of this address code.
The software installation method of described support multiple operating system, wherein, described step e specifically comprises:
E1, the identiflication number of changing according to OS name carry out identiflication number and search in software head;
If E2 finds this identiflication number in software head, enter step F, otherwise enter step e 3;
E3, point out this software to install.
The software installation method of described support multiple operating system, wherein, described step F specifically comprises:
F1, obtain corresponding address code according to the identiflication number in software head;
F2, point to corresponding associated installation file in software agent according to this address code;
F3, obtain this installation file, and install.
The software installation method of described support multiple operating system, wherein, described address code comprises: the file size of the start address of software agent and coupling respective operations system installation file.
Beneficial effect of the present invention:
Compared with prior art, a kind of software development methodology and installation method of supporting multiple operating system provided by the invention, owing to having adopted the mode of an installation file support several operation systems, make user in the time of mounting software without pay close attention to mobile phone operating system, and when between different operating system, carry out software share time also without consideration both sides mobile phone operating system.
Brief description of the drawings
Fig. 1 is the flow chart of steps that the present invention supports the software development methodology of multiple operating system;
Fig. 2 is the composition schematic diagram that the present invention supports software in the software development methodology of multiple operating system;
Fig. 3 is the flow chart of steps that the present invention supports the software installation method of multiple operating system;
Fig. 4 is the composition schematic diagram that the present invention supports micro-letter software in the concrete Application Example of software installation method of multiple operating system;
Fig. 5 is the software header addresses code rules of arrangement schematic diagram of micro-letter software in Fig. 4.
Embodiment
The invention provides a kind of software development methodology and installation method of supporting multiple operating system, for making object of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of steps that the present invention supports the software development methodology of multiple operating system, the software development methodology of described support multiple operating system, and it comprises the following steps:
Step S100, be software head and software agent by software definition in advance.
Step S200, in software head, generate the identiflication number of each OS name, and corresponding address code is set.
Step S300, in software agent, generate and the installation file of the corresponding associated support different operating system of address code.
Shown in Fig. 2, Fig. 2 is the composition schematic diagram that the present invention supports software in the software development methodology of multiple operating system, to support three kinds of operating systems (OS1, OS2, OS3, note: OS:Operating System) be example, the software that generates support multiple operating system as herein described comprises the following steps:
A1, obtain the software installation file in these three kinds of operating systems: OS1_sw_file, OS2_sw_file, OS3_sw_file, wherein, OS1_sw_file installation file can be installed in OS1 operating system, OS2_sw_file installation file can be installed in OS2 operating system, and OS3_sw_file installation file can be installed in OS3 operating system.
A2, to generate software head 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 start address of software agent is sw_real_base, the file size of OS1_sw_file is OS1_sw_file_size, the file size of OS2_sw_file is OS2_sw_file_size, the file size of OS3_sw_file is OS3_sw_file_size, the rules of arrangement of address code is the file size that next address code deducts this address code, so, the address code of OS1 is: sw_real_base+0, the address code of OS2 is: sw_real_base+OS1_sw_file_size, the address code of OS3 is: 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 systems, and wherein, OS1_sw_file is the installation file of OS1 operating system, and OS2_sw_file is the installation file of OS3 operating system, and OS3_sw_file is the installation file of OS3 operating system.
As shown in Figure 3, Fig. 3 is the flow chart of steps that the present invention supports the software installation method of multiple operating system, the software installation method of described support multiple operating system, and it comprises the following steps:
Step S400, obtain current operation system title, and this OS name is converted to identiflication number.Existing common mobile terminal operating system has iOS, Android, WindowsPhone, so according to the difference of operating system, it is carried out respectively to identiflication number.
Certainly, the identiflication number corresponding with OS name also should be set in advance before carrying out step S400 in software head, and the address code corresponding with identiflication number is set in software head, and arrange and the corresponding associated installation file of this address code in software agent.That is to say, in software head, identiflication number is set, and this identiflication number is corresponding with the identiflication number that OS name transforms, after only finding corresponding OS name identiflication number in software head, just be associated with installation file corresponding in software agent according to corresponding address code, can carry out the installation of software.
Software in the present invention comprises two parts: software head and software agent, wherein, software head comprises operating system (this software can be installed in which operating system) and an address code corresponding to each operating system that this software is supported, this address code is specially the start address of software agent and the file size of coupling respective operations system installation file, and software agent comprises the installation file that supported operating system is corresponding.
Step S500, in software head, search whether there is this identiflication number, if existed, perform step S600, otherwise point out this software to install.This step S500 specifically comprises:
Step S510, the identiflication number of changing according to OS name carry out identiflication number and search in software head.In software head, be provided with the title identiflication number of all operations system that this software can support, so, only need in this software head, search whether there be the identiflication number corresponding with current operation system title, enter afterwards step S520.
If step S520 finds this identiflication number in software head, enter step S600, otherwise enter step S530.If found corresponding OS name identiflication number in this software head, illustrate that this software can support this operating system, enter step S600; If for finding this OS name identiflication number, illustrate that this software can not support this operating system in this software head, enter step S530.
Step S530, point out this software to install.This software of prompting user cannot be installed in this operating system, illustrates that the operating system that this software can be supported does not comprise current operation system.
Step S600, from software agent, obtain the installation file of respective operations system according to address code corresponding to this identiflication number, and install.This step S600 specifically comprises:
Step S610, obtain corresponding address code according to the identiflication number in software head.In software head, identiflication number is that address code is one to one, i.e. a corresponding address code of OS name identiflication number, and only have by this address code and could in software agent, find corresponding installation file.
Step S620, point to corresponding associated installation file in software agent according to this address code.OS name identiflication number is corresponding one by one with address code, and is one to one for the installation file of different operating system in address code and software agent.
Step S630, obtain this installation file, and install.Obtain address code installation file pointed, and install in this operating system.
Below in conjunction with a concrete Application Example, the present invention is further described:
To support micro-letter software of iOS, Android, WindowsPhone operating system and method that this micro-letter software is installed in these three kinds of operating systems as example.
As shown in Figure 4, Fig. 4 is the composition schematic diagram that the present invention supports micro-letter software in the concrete Application Example of software installation method of multiple operating system.
In software head, 0xdeadbeef0026 is the identiflication number of iOS operating system, and 0xdeadbeef0012 is the identiflication number of Android operating system, and 0xdeadbeef0029 is the identiflication number of WindowsPhone operating system.The start address of software agent is sw_real_base, the file size of iOS_sw_file is iOS_sw_file_size, the file size of Android_sw_file is Android_sw_file_size, the file size of WindowsPhone_sw_file is WindowsPhone_sw_file_size, the rules of arrangement of location code as described above, accordingly, the address code of iOS is: sw_real_base+0, the address code of Android is: sw_real_base+iOS_sw_file_size, the address code of WindowsPhone is: sw_real_base+iOS_sw_file_size+Android_sw_file_size.
Software agent is made up of successively the installation file of iOS, Android, the micro-letter software of the upper installation of WindowsPhone.In software agent, iOS_sw_file is the installation file of the existing micro-letter software that can install on iOS; Android_sw_file is the installation file of the existing micro-letter software that can install on Android; WindowsPhone_sw_file is the installation file of the existing micro-letter software that can install on WindowsPhone.
In the time that micro-letter software of supporting iOS, Android, tri-kinds of operating systems of WindowsPhone is installed, concrete steps are as follows:
Step S10, obtain current operation system title, and OS name is converted to identiflication number.Enter afterwards step S20.
Step S20, in software head, search the identiflication number that whether has this OS name, if existed, perform step S30, otherwise point out this software to install.
Step S30, obtain address code corresponding to this identiflication number in software head, from this address code, obtain the installation file of respective operations system in software agent, and install.
Wherein, in described step S10, OS name is converted to identiflication number, is specially the prior agreement identiflication number relation corresponding with operating system, as identiflication number 0xdeadbeef0012 in the present embodiment represents Android; In the time getting OS name and be Android, be converted to identiflication number 0xdeadbeef0012 so.
Described step S20, is specially the content of searching 0xdeadbeef beginning in this micro-letter installation file, adds that two bytes next are operating system identiflication number; In micro-letter installation file, search all contents with 0xdeadbeef beginning and add that two bytes thereafter just can know that this micro-letter installation file supports the operating system of which identiflication number.By the identiflication number that obtains in determining step S10 whether therein, just can know that can this micro-letter installation file be arranged in this mobile phone.The identiflication number being for example converted to by OS name in step S10 is 0xdeadbeef006, cannot use the micro-letter installation file in software agent; The identiflication number being for example converted to by OS name in step S10 is again 0xdeadbeef029, can use the micro-letter installation file in software agent.
Described step S30, is specially the byte number that obtains the start address of the software agent after corresponding identiflication number and the file size of coupling respective operations system installation file.The content that the byte number of the file size of this coupling respective operations system installation file deducts this identiflication number 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 micro-letter software in Fig. 4, for example, establishes:
IOS_sw_file_size=0x111111 byte;
Android_sw_file_size=0x22222222 byte;
WindowsPhone_sw_file_size=0x3333 byte.
In software head address code as shown in Figure 5, wherein, sw_real_base can be calculated by following mode:
The byte number of an identiflication number is that the byte number that the byte number of 6, iOS_sw_file_size is 3, Android_sw_file_size is 4:
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 is made up of iOS_sw_file, the Android_sw_file of 0x22222222 byte, the WindowsPhone_sw_file of 0x3333 byte of 0x111111 byte successively.
In sum, a kind of software development methodology and installation method of supporting multiple operating system provided by the present invention, owing to having adopted the mode of an installation file support several operation systems, make user in the time of mounting software without pay close attention to mobile phone operating system, and when between different operating system, carry out software share time also without consideration both sides mobile phone operating system.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (7)

1. a software development methodology of supporting multiple operating system, is characterized in that, comprises step:
A, be software head and software agent by software definition in advance;
B, in software head, generate the identiflication number of each OS name, and corresponding address code is set;
C, in software agent, generate and the installation file of the corresponding associated support different operating system of address code.
2. the software development methodology of support multiple operating system according to claim 1, is characterized in that, described address code comprises:
The file size of the start address of software agent and coupling respective operations system installation file.
3. a software installation method of supporting multiple operating system, is characterized in that, comprises step:
D, obtain current operation system title, and this OS name is converted to identiflication number;
E, in software head, search whether there is this identiflication number, if existed, perform step F, otherwise point out this software to install;
F, from software agent, obtain corresponding associated installation file according to address code corresponding to this identiflication number, and install.
4. the software installation method of support multiple operating system according to claim 3, is characterized in that, before described step D, also comprises:
D01, in advance the identiflication number corresponding with OS name be set in software head, and the address code corresponding with identiflication number be set in software head, and in software agent setting and the corresponding associated installation file of this address code.
5. the software installation method of support multiple operating system according to claim 3, is characterized in that, described step e specifically comprises:
E1, the identiflication number of changing according to OS name carry out identiflication number and search in software head;
If E2 finds this identiflication number in software head, enter step F, otherwise enter step e 3;
E3, point out this software to install.
6. the software installation method of support multiple operating system according to claim 3, is characterized in that, described step F specifically comprises:
F1, obtain corresponding address code according to the identiflication number in software head;
F2, point to corresponding associated installation file in software agent according to this address code;
F3, obtain this installation file, and install.
7. the software installation method of support multiple operating system according to claim 6, is characterized in that, described address code comprises: the file size of the start address of software agent and coupling respective operations system installation file.
CN201410408191.5A 2014-08-19 2014-08-19 A kind of software development methodology and installation method for supporting multiple operating system Active CN104166554B (en)

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 true CN104166554A (en) 2014-11-26
CN104166554B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN106095514A (en) * 2016-06-22 2016-11-09 深圳市波普安创技术有限公司 The file installation kit of compatible operating system and generation method for down loading thereof
CN108089885A (en) * 2017-12-28 2018-05-29 Tcl移动通信科技(宁波)有限公司 A kind of USB driving installation processes method, mobile terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN106095514A (en) * 2016-06-22 2016-11-09 深圳市波普安创技术有限公司 The file installation kit of compatible operating system and generation method for down loading thereof
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

Also Published As

Publication number Publication date
CN104166554B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN103207794B (en) The sharing method of application program between mobile terminal in LAN
US9361090B2 (en) Apparatus and method of software implementation between a vehicle and mobile device
CN111045714B (en) Firmware updating method and device, earphone and computer readable storage medium
CN106055375B (en) Application program installation method and device
CN105677335A (en) Method and device for increasing first starting speed of mobile terminal
CN102523278B (en) Cloud-computing based service providing method and network operator server
CN103176811A (en) Third party application installation method and third party application installation system
CN104238878A (en) Method and device for starting application program or application program function
CN103514006A (en) Method and system of upgrade of pre-installed applications of Android system
CN102103510A (en) Installation method of JAVA application program and terminal device
CN105491081A (en) Method for forwarding of internal flow of application in mobile intelligent terminal
CN104053126A (en) Wireless communication terminal for displaying two-party positions in communication, apparatus and method
CN104572054A (en) Capability calling method and capability calling equipment
WO2016041499A1 (en) Application downloading method and mobile terminal
CN110837391B (en) Application program hot updating method and device, storage medium and electronic equipment
CN104166554A (en) Software developing method and installation method supporting multiple operation systems
CN102902560A (en) Download method and system of application program
CN105320540A (en) Batch installation method and system for Android applications
CN109032617B (en) Control method and control device for automatically deleting installation package
CN104038921A (en) Method and system for theme interaction between mobile terminals
CN109672907B (en) Material display processing method, device and equipment
WO2017201936A1 (en) Method and apparatus for replacing icon of application installation package, and electronic device
CN103440145A (en) Method and device for updating application programs and mobile terminal
CN105867922A (en) Differential upgrade method and system
EP3015990B1 (en) Information processing device, and destination information updating method and program

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