The content of the invention
The main object of the present invention is to provide a kind of device and method of software kit customization, in the feelings that software source code is lost
Original software can also be updated and be safeguarded under condition, so as to lift the efficiency of client software bag customization.
The present invention provides a kind of device of software kit customization, and the device is mounted with the first operating system and the second operation system
System, the device include:
Software kit splits module, for the software kit for needing modification is obtained in the backup of first operating system and right
The software kit is disassembled to obtain the file in the system partitioning in the software kit, and this document is stored in the first operating system
Under system folder in, the file in the system partitioning includes system file.
Creation module, for temporary folder is created under the second operating system, and replicates first operating system
File in system partitioning, and be stored in the temporary folder.
Program writing module, needs the application program of increase and corresponding storehouse for the write under second operating system
File, and the application program and corresponding library file of write are stored in the temporary folder, and by the temporary file
The file preserved in folder is copied in the system folder under the first operating system.
Software package module, for obtaining the file stored in the system folder of first operating system, and this is obtained
The file for taking is packed to generate corresponding software kit.And
Burning module, for the software kit of generation is burned onto in relevant device to complete the software customized of the equipment and more
Newly.
Further, the present invention also provides a kind of method of software kit customization, and the method includes:
The software kit for needing modification is obtained in the backup of the first operating system, and the software kit is disassembled to obtain
The file in system partitioning in the software kit, this document is stored in the system folder under first operating system, should
File in system partitioning includes system file.
Temporary folder is created under the second operating system.
The file in the system partitioning of first operating system is replicated, and is stored in the temporary folder.
The write under second operating system needs increased application program and corresponding library file, and being somebody's turn to do write
Application program and corresponding library file are stored in the temporary folder.
The file preserved in the temporary folder is copied in the system folder of the first operating system.
The file stored in the system folder for obtaining first operating system, and by the file of the acquisition packed with
Generate corresponding software kit.
The software kit of the generation is burned onto in corresponding equipment to complete the software customized of the equipment and update.
A kind of device and method of software kit customization that the present invention is provided, by disassembling for the backup software bag to obtaining,
By in the tmp files in the file mount in system partitioning to another operating system, and write need increased application program with
And the new software kit of generation is repacked, can be in the case where software source code be lost to original software relative to prior art
It is updated and safeguards, so as to lifts the efficiency of client software bag customization.
Specific embodiment
By describing technology contents of the invention, structural features in detail, realizing purpose and effect, below in conjunction with embodiment
And coordinate accompanying drawing to be explained in detail.
Fig. 1 is refer to, is a kind of high-level schematic functional block diagram of the software kit customizing device in embodiment of the present invention, at this
In embodiment, the device 10 is mounted with Android operation system the basic operation for realizing user, and the device 10 can be with
It is the intelligent electronic devices such as mobile phone, panel computer, personal digital assistant.The device 10 includes that browsing module 11, software kit splits
Module 12, creation module 13, program writing module 14, Software package module 15 and burning module 16.
The browsing module 11 is used for presentation user's operation interface, and user selects needs fixed by the user interface for presenting
The content of system:The software kit of needs, application program, configuration information etc..The software kit splits module 12 to be used to respond user clear
The selection operation of module 11 of looking at obtains the software kit for needing modification in the backup of the first operating system, and the software kit is carried out
Disassemble to obtain the file in the system partitioning in the software kit, the file in the system partitioning includes system file, and stores
In system folder under the first operating system, in the present embodiment, this document is stored in catalogue for system files
In.
When it is determined that needing to make the software kit of correspondence a certain customizing operating system, the exploitation of the customizing operating system is obtained
Tool-file, the developing instrument that software kit fractionation module 12 obtains the customizing operating system are disassembled to the software kit.
The creation module 13 is for creating temporary folder (tmp files) under the second operating system, and first is grasped
Making the file in the system partitioning of system carries out being duplicated and stored in the temporary folder, so as to by first operating system
File mount in system partitioning is in the tmp files in the second operating system.In the present embodiment, the first operation system
Unite as Android operation system, second operating system is linux operating systems, the creation module 13 is created under linux environment
Build the tmp files.
The program writing module 14 needs increased application program and corresponding for the write under the second operating system
Library file, and the application program and library file are stored in the temporary folder.In the present embodiment, the program writes mould
The application program of the write is stored under the file that catalogue is tmp/app by block 14, while the corresponding library file is replicated
To under file of the catalogue for tmp/lib.
After the program writing module 14 completes the increase of required application program, the creation module 13 is additionally operable to this is interim
The file preserved in file is copied in the system folder under the first operating system.
The file that the Software package module 15 is stored in being used to obtain the system folder, and the file of the acquisition is carried out
Pack to generate corresponding software kit.The burning module 16 is for the software kit that Software package module 15 is generated is burned onto accordingly
Equipment in, so as to complete the software customized of the equipment and update.Wherein, the equipment can carry out communication link with the device 10
The electronic equipment for connecing, and it is mounted with android system.
Fig. 2 is referred to, is the flow chart of invention software bag method for customizing, the method includes:
Step S20, the software kit split selection operation of the response user of module 12 in browsing module 11 in system backup
Obtaining needs the software kit of modification, and the software kit is disassembled to obtain the file in the system partitioning in the software kit,
Wherein, during the file in the system partitioning includes system file, and the system folder being stored under the first operating system.
In the present embodiment, this document is stored in catalogue in system files.
11 presentation user's operation interface of browsing module, user select to need customization by the user interface for presenting
Content:The software kit of needs, application program, configuration information etc..
Step S21, the creation module 13 create temporary folder under the second operating system, and by the first operating system
File in system partitioning carries out being duplicated and stored in the temporary folder, so as to by the system partitioning of first operating system
In file mount in the temporary folder in the second operating system.
In the present embodiment, first operating system is Android operation system, and second operating system is linux
Operating system, the creation module 13 create tmp files under linux environment.
Step S22, the program writing module 14 write the application program and right for needing to increase under the second operating system
The library file answered, and the application program and library file are stored in the temporary folder.In the present embodiment, the program is write
Enter module 14 application program of the write is stored under the file that catalogue is tmp/app, while by the corresponding library file
Copy under the file that catalogue is tmp/lib.
Step S23, the creation module 13 copy to the file preserved in the temporary folder under the first operating system
In system folder.
Step S24, the file that the Software package module 15 is stored in obtaining the system folder the file by the acquisition
Packed to generate corresponding software kit.
Step S25, the burning module 16 are burned onto the software kit that Software package module 15 is generated in corresponding equipment, from
And complete the software customized of the equipment and update.Wherein, the equipment can be that the electronics being communicatively coupled with the device 10 is set
It is standby, and it is mounted with android system.
A kind of device and method of software kit customization that the present invention is provided, by disassembling for the backup software bag to obtaining,
By in the tmp files in the file mount in system partitioning to another operating system, and write need increased application program with
And the new software kit of generation is repacked, can be in the case where software source code be lost to original software relative to prior art
It is updated and safeguards, so as to lifts the efficiency of client software bag customization.
Embodiments of the invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.