Summary of the invention
Fundamental purpose of the present invention, for a kind of device and method of software package customization is provided, also can be upgraded and safeguard original software in the situation that software source code is lost, thereby promotes the efficiency of client software bag customization.
The device that the invention provides a kind of software package customization, this device is mounted with the first operating system and the second operating system, and this device comprises:
Software package splits module, for obtain the software package that needs modification in the backup of this first operating system, and this software package is disassembled to obtain the file in the system partitioning in this software package, this document is stored in the system folder under the first operating system, and the file in this system partitioning comprises system file.
Creation module, for create temporary folder under the second operating system, and copies the file in the system partitioning of this first system, and is stored in this temporary folder.
Program writing module, for writing, need the application program of increase and corresponding library file under this second operating system, and this application program writing and corresponding library file are kept in this temporary folder, and by the file copy of preserving in this temporary folder in the system folder under the first operating system.
Software package module, the file of storing for obtaining the system folder of this first operating system, and the file that this is obtained packs to generate corresponding software package.And
Burning module, for being burned onto the software package of generation relevant device to complete the software customized of this equipment and to upgrade.
Further, the present invention also provides a kind of method of software package customization, and the method comprises:
In the backup of the first operating system, obtain the software package that needs modification, and this software package is disassembled to obtain the file in the system partitioning in this software package, this document is stored in the system folder under this first operating system, and the file in this system partitioning comprises system file.
Under the second operating system, create temporary folder.
Copy the file in the system partitioning of this first system, and be stored in this temporary folder.
Under this second operating system, write and need the application program of increase and corresponding library file, and this application program writing and corresponding library file are kept in this temporary folder.
By the file copy of preserving in this temporary folder in the system folder of the first operating system.
Obtain the file of storing in the system folder of this first operating system, and the file that this is obtained packs to generate corresponding software package.
The software package of this generation is burned onto in corresponding equipment to complete the software customized of this equipment and to upgrade.
The device and method of a kind of software package customization provided by the invention, by disassembling of the backup software bag to obtaining, by the file mount in system partitioning to the tmp file in another operating system, and write the application program that need to increase and repack the new software package of generation, with respect to prior art, can in the situation that software source code be lost, original software be upgraded and be safeguarded, thereby promote the efficiency that client software bag customizes.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, being realized object and effect, below in conjunction with embodiment and coordinate accompanying drawing to be explained in detail.
Please refer to Fig. 1, high-level schematic functional block diagram for a kind of software package customizing device in embodiment of the present invention, in the present embodiment, this device 10 is mounted with Android operating system and for realizing user's basic operation, this device 10 can be the intelligent electronic devices such as mobile phone, panel computer, personal digital assistant.This device 10 comprises browses module 11, software package fractionation module 12, creation module 13, program writing module 14, Software package module 15 and burning module 16.
This browses module 11 for presenting user interface, and user selects the content of needs customization by the user interface presenting: the software package of needs, application program, configuration information etc.This software package splits module 12 and obtains and need the software package revised for the backup that responds user and operate in the first operating system in the selection of browsing module 11, and this software package is disassembled to obtain the file in the system partitioning in this software package, file in this system partitioning comprises system file, and be stored in the system folder under the first operating system, in the present embodiment, to be stored in catalogue be in system file to this document.
When determining while need to make the software package of corresponding a certain customizing operating system, obtain the developing instrument file of this customizing operating system, this software package splits module 12 and obtains the developing instrument of this customizing operating system this software package is disassembled.
This creation module 13 for creating temporary folder (tmp file) under the second operating system, and the file in the system partitioning of the first system is copied and is stored in this temporary folder, thereby by the file mount in the system partitioning of this first system in the tmp file in the second operating system.In the present embodiment, this first operating system is Android operating system, and this second operating system is linux operating system, and this creation module 13 creates this tmp file under linux environment.
This program writing module 14 needs the application program of increase and corresponding library file for writing under the second operating system, and this application program and library file are kept in this temporary folder.In the present embodiment, the application program that this program writing module 14 writes this is kept under the file that catalogue is tmp/app, this corresponding library file is copied under the file that catalogue is tmp/lib simultaneously.
When this program writing module 14 completes after the increase of required application program, this creation module 13 also for file copy that this temporary folder is preserved in the system folder under the first operating system.
The file that this Software package module 15 is stored for obtaining this system folder, and the file that this is obtained packs to generate corresponding software package.This burning module 16 is burned onto corresponding equipment for the software package that Software package module 15 is generated, thereby completes the software customized of this equipment and upgrade.Wherein, this equipment can be to communicate with this device 10 electronic equipment being connected, and is mounted with Android system.
Referring to Fig. 2, is the process flow diagram of software package method for customizing of the present invention, and the method comprises:
Step S20, this software package splits module 12 response users and in the selection of browsing module 11 operates in system backup, obtains the software package that needs modification, and this software package is disassembled to obtain the file in the system partitioning in this software package, wherein, file in this system partitioning comprises system file, and is stored in the system folder under the first operating system.
In the present embodiment, to be stored in catalogue be in system file to this document.
This is browsed module 11 and presents user interface, and user selects the content of needs customization by the user interface presenting: the software package of needs, application program, configuration information etc.
Step S21, this creation module 13 creates temporary folder under the second operating system, and the file in the system partitioning of the first system is copied and is stored in this temporary folder, thereby by the file mount in the system partitioning of this first system in the temporary folder in the second operating system.
In the present embodiment, this first operating system is Android operating system, and this second operating system is linux operating system, and this creation module 13 creates tmp file under linux environment.
Step S22, this program writing module 14 writes under the second operating system needs the application program of increase and corresponding library file, and this application program and library file are kept in this temporary folder.In the present embodiment, the application program that this program writing module 14 writes this is kept under the file that catalogue is tmp/app, this corresponding library file is copied under the file that catalogue is tmp/lib simultaneously.
Step S23, this creation module 13 by the file copy of preserving in this temporary folder in the system folder under the first operating system.
Step S24, this Software package module 15 obtains the file of storing in this system folder and the file that this is obtained packs to generate corresponding software package.
Step S25, the software package that this burning module 16 generates Software package module 15 is burned onto in corresponding equipment, thereby completes the software customized of this equipment and upgrade.Wherein, this equipment can be to communicate with this device 10 electronic equipment being connected, and is mounted with Android system.
The device and method of a kind of software package customization provided by the invention, by disassembling of the backup software bag to obtaining, by the file mount in system partitioning to the tmp file in another operating system, and write the application program that need to increase and repack the new software package of generation, with respect to prior art, can in the situation that software source code be lost, original software be upgraded and be safeguarded, thereby promote the efficiency that client software bag customizes.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.