The content of the invention
The present invention solves the technical problem of providing a kind of the program bag custom-built system and method for customizing of mobile terminal,
Allow the user to the program bag of self-defining operation system.
In order to solve the above technical problems, one aspect of the present invention is:A kind of program of mobile terminal is provided
Bag method for customizing, the first platform, which is provided with, unpacks module and packetization module, is respectively used to realize de-packaging operation and the packing of program bag
Operation, the second platform are provided with modular converter, and program bag method for customizing includes:Using modular converter second is migrated to by module is unpacked
De-packaging operation is carried out in platform and to program bag on the second platform;The program bag after unpacking is compiled on the second platform
Volume;Packetization module is migrated in the second platform using modular converter and beaten to the program bag after editor on the second platform
Package operation.
Wherein, module will be unpacked using modular converter to migrate in the second platform and carry out program bag on the second platform
The step of de-packaging operation, further comprises:To the first kind image file and Second Type mirror in program bag on the second platform
As file carries out de-packaging operation respectively;Packetization module is migrated in the second platform using modular converter and right on the second platform
The step of program bag after editor carries out packaging operation further comprises:To the first kind mirror in program bag on the second platform
As file and Second Type image file carry out packaging operation respectively.
Wherein, the step of Second Type image file progress de-packaging operation in program bag, is being included on the second platform:
De-packaging operation is carried out after idle memory space in Second Type image file is removed.
Wherein, include enter edlin to the program bag after unpacking on the second platform the step of:To solution on the second platform
Program bag after bag at least one of is increased, replaced, being deleted newly operation.
Wherein, program bag includes system file and user area profile;System file includes system application, picture, moved
Picture and the tinkle of bells;User partition image file is applied including user;Edit package is carried out to the program bag after unpacking on the second platform
Include and edlin is entered to picture, animation, the tinkle of bells or user application.
Wherein, module will be unpacked using modular converter to migrate in the second platform and carry out program bag on the second platform
The step of de-packaging operation, includes:Picture, animation, the tinkle of bells and user are applied and are presented in visual pattern on the second platform;
Carrying out edit step to the program bag after unpacking on two platforms includes:Picture, animation, the tinkle of bells or user application are visualized
Editor.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of journey of mobile terminal is provided
Sequence bag custom-built system, the program bag custom-built system include the first platform and the second platform, and the first platform includes unpacking module and beaten
Bag module, the second platform include modular converter, unpack module and packetization module be respectively used to realize program bag de-packaging operation and
Packaging operation;Modular converter be used for will unpack module migrate in the second platform with the second platform to the program of the first platform
Bag carries out de-packaging operation, and modular converter is used to incite somebody to action after user enters edlin on the second platform to the program bag after unpacking
Packetization module migrates in the second platform and carries out packaging operation to the program bag after editor.
Wherein, unpacking module includes the first unpacking module and the second unpacking module, and packetization module includes the first packetization module
With the second packetization module;First unpacking module and the first packetization module are respectively used to the first kind image file in program bag
Unpacked and packaging operation, the second unpacking module and the second packetization module are respectively used to the Second Type mirror image in program bag
File is unpacked and packaging operation.
Wherein, the second unpacking module is carried out after the idle memory space in Second Type image file is removed to it
De-packaging operation.
Wherein, program bag includes system file and user area profile;System file includes system application, picture, moved
Draw, the tinkle of bells, user area profile includes user and applied, the program bag after unpacking is entered the scope of edlin including to picture,
Edlin is entered in animation, the tinkle of bells or user's application.
The beneficial effects of the invention are as follows:It is different from the situation of prior art, the program bag customization side of mobile terminal of the present invention
Method sets modular converter by setting to unpack in the first platform in module and packetization module, the second platform, modular converter will unpack
Module, which is migrated in the second platform, to be enabled a user to carry out de-packaging operation to program bag on the second platform, and second
Enter edlin on platform to the program bag after unpacking, recycle modular converter to migrate to packetization module in the second platform so that making
User carries out packaging operation on the second platform to program bag, and in above process, user can be on the second platform according to certainly
Content in oneself hobby adjustment programme bag so that the program bag of each mobile terminal can be unusual, even and if with
Family needs factory reset, and the application in program bag will not also lose, and lifting user uses the satisfaction of mobile terminal.
Embodiment
Refering to Fig. 1, the program bag custom-built system of mobile terminal of the present invention includes the first platform 1 and the second platform 2.First is flat
Platform 1 includes the operation platform of the program bag of the mobile terminals such as mobile phone, tablet personal computer, such as the operation platform of Android system
Linux etc..The second platform 2 i.e. operation platform of general PC, such as windows platform etc..
First platform 1 includes unpacking module 11 and packetization module 12.Unpack the unpacking behaviour that module 11 is used to realize program bag
Make, packetization module 12 is used for the packaging operation for realizing program bag.Program bag includes system file and user area profile.System
File includes system application, picture, animation, the tinkle of bells etc., and user area profile includes user's application etc..
Generally, the program bag of mobile terminal includes two kinds of image file.For example, use Android system
Program of mobile terminal bag include the image file of the two kinds of file system of ext4 and yaffs2.If want to mobile terminal
Program bag carry out de-packaging operation, then be respectively required for carrying out de-packaging operation respectively to two kinds of image file.Unpack module 11
Module 111 and second, which is unpacked, including first unpacks module 112.First unpacking module 111 is used to enter first kind image file
Row de-packaging operation, second, which unpacks module 112, is used to carry out de-packaging operation to Second Type image file.For example, first unpacks mould
Block 111 is from the untar open source code of yaffs2 image files under the linux system of the Internet download, and it is used for pair
Yaffs2 image files carry out de-packaging operation;Second, which unpacks module 112, is used to carry out de-packaging operation to ext4 image files.Come in
One step reference picture 2A and Fig. 2 B, ext4 image file 3 is the image file with idle memory space, i.e., it is spare lattice
The image file of formula, under Linux platform, if wanting the ext4 image files of spare forms to untie, it is necessary to first spare lattice
The image file 3 of formula changes into the image file 3 ' of non-spare forms, that is, the idle of image file 3 for removing spare forms is deposited
Space 31 is stored up, remaining i.e. data space 32, then the image file 3 ' of non-spare forms is untied again.I.e. second solution
Bag module 112 need to first remove the idle memory space 31 in Second Type image file, then to the mirror image of non-spare forms
File 3 ' carries out de-packaging operation.
Packetization module 12 includes the first packetization module 121 and the second packetization module 122.First packetization module 121 and second
Packetization module 122 is corresponding with the first unpacking unpacking of module 111 and second module 112 respectively, is respectively used to first kind mirror
As file and Second Type image file carry out packaging operation.In the Android system engineering compiling stage, the He of the first packetization module 121
Second packetization module 122 can applied including system, all system files such as picture, animation, the tinkle of bells and including user's application etc.
All user area profiles inside carry out packaging operation and generate image file system.img and userdata.img, i.e.,
Generate the program bag of mobile terminal.
Modular converter 21 is set in second platform 2.The modular converter 21 can be under the running environment of the second platform 2
An application module in people's computer.Can also be that third party is published on internet, user is downloaded to one in the second platform 2
Individual application module.Modular converter 21 is used to transplant the packetization module 11 of the first platform 1 and unpacking module 12 in the second platform 2
In, and the program by the control realization of user or other users to the second platform 2 to the mobile terminal of the first platform 1 of application
Bag self-defined editor and regenerate.The implication that user and other users are controlled the second platform 2 is user and other make
User is operated by mouse or keyboard on PC.
The specific implementation process of program bag customization includes:
Modular converter 21 transplants the unpacking module 11 including unpacking module 112 including the first unpacking module 111 and second
Into the second platform 2, de-packaging operation is carried out to the program bag of the first platform 1 on the second platform 2.
After the program bag of first platform 1 unpacks picture, animation, the tinkle of bells and user's application etc. by the second platform 2 with visual
The form of change is presented to user, and allows user on the second platform at least one in picture, animation, the tinkle of bells and user application
Item enters edlin.Wherein, picture includes status bar picture, desktop wallpaper etc.;Animation includes boot animation and shutdown animation;The tinkle of bells
Including power-on ring and power-off ring, ring of alarm clock and incoming ring tone etc..The implication of editor includes at least one in newly-increased, replacement, deletion
Operation.For example, newly-increased one or more user's applications, replacement incoming ring tone, the one or more users' applications of deletion etc..In addition,
Editor also includes user to the cloth including application shortcut (that is, desktop layouts file) and the desktop elements of widget elements
Office carries out visualizing adjustment etc..
After user completes personalized Resources Customization, the first packetization module 121 and second dozen will be included by modular converter 21
Packetization module 12 including bag module 122 is transplanted on the second platform 2 and to the preset text of the system file after editor and user area
Part carries out packaging operation and forms new program bag.
New program bag is downloaded on mobile terminal by user.
When the application system of mobile terminal is Android system, because case sensitive be present in Android system file,
Then need unpack and packaging operation during do the processing of case sensitive.Specific practice be when de-packaging operation,
If it find that filename is identical, then automatic renaming and filename mapping table is write, reflected according to filename when packaging operation
Firing table is renamed as raw filename.For example, refer to Fig. 3, during de-packaging operation, exist simultaneously under same catalogue
Music.apk and MusiC.apk two systems files, then respectively automatic RNTO Music.apk → music.apk_1 and
Music.apk → music.apk_2 simultaneously writes filename mapping table, according to filename mapping table RNTO again during packaging operation
Raw filename.
With further reference to Fig. 4, the present invention also provides a kind of and program bag custom-built system of aforementioned mobile terminal implementation
The method for customizing of the program bag of mobile terminal, the method for customizing include corresponding to example:
Step S10, the unpacking module 11 of first platform 1 is migrated in the second platform 2 and using modular converter 21
De-packaging operation is carried out to program bag on two platforms 1.
Generally, the program bag of mobile terminal includes two kinds of image file.For example, use Android system
Program of mobile terminal bag include the image file of the two kinds of file system of ext4 and yaffs2.If want to mobile terminal
Program bag carry out de-packaging operation, then be respectively required for carrying out de-packaging operation respectively to two kinds of image file.Modular converter 21
First unpacking module 111 and second is unpacked into module 112 and migrates to the second platform 2, and is divided by the two on the second platform 2
Other first kind image file and Second Type image file in program bag carries out de-packaging operation respectively.For example, the first solution
Bag module 111 is from the untar open source code of yaffs2 image files under the linux system of the Internet download, and it is used for pair
Yaffs2 image files carry out de-packaging operation;Second, which unpacks module 112, is used to carry out de-packaging operation to ext4 image files.Second
Unpacking module 112 need to first remove the idle memory space 31 in Second Type image file, then to the mirror of non-spare forms
As file 3 ' carries out de-packaging operation.
Program bag includes system file and user area profile;System file includes system application, picture, animation and bell
Sound;User area profile is applied including user.After de-packaging operation, program bag includes picture, animation, the tinkle of bells and user's application
All Files Deng including is presented on the second platform 2 with visual pattern.
With further reference to Fig. 5, carrying out de-packaging operation to the program bag of the first platform 1 by the second platform 2 makes user should
The process of desktop parsing is actually carried out to the first platform 1 with the process being presented in visual form on the second platform 2.Desktop
The step of parsing, includes:The image file in the program bag of first platform 1 is unpacked on the second platform 2 to obtain user's application
System installation package file;Then, decompiling is carried out to user's application;Further, desktop layouts file and widget members are parsed
Element;Then, the desktop and main menu of the first platform 1 are shown on the second platform 2, desktop is parsed.
Step S20, edlin is entered to the program bag after unpacking on the second platform 2.
In this step, at least one in being applied on the second platform 2 to picture, animation, the tinkle of bells and user is carried out visually
Change editor.Entering the scope of edlin to the program bag after unpacking on the second platform 2 is included to picture, animation, the tinkle of bells and user
At least one in enters edlin.Editor be included on the second platform 2 program bag after unpacking is increased newly, replaced,
At least one of deletion operation.
With further reference to Fig. 6, the program bag after being unpacked by the second platform 2 to the first platform 1 carries out visual edit
Process include carrying out visual edit to user's application, the process actually carries out the process that desktop regenerates.Desktop generates
Process include:Desktop layouts and menu order are adjusted on the second platform;Then, desktop layouts file is regenerated;
Next, recompilating user's application, desktop regenerates process completion.
Step S30, the packetization module 12 of first platform 1 is migrated in the second platform 2 and using modular converter 21
Packaging operation is carried out to the program bag after editor on two platforms 2.
First packetization module 121 and the second packetization module 122 are migrated to the second platform and by the two by modular converter 21
Packing behaviour is carried out respectively to the first kind image file in program bag and Second Type image file respectively on the second platform
Make to regenerate the program bag of mobile terminal.
Program bag after packaging operation is downloaded to after mobile terminal and forms new system configuration on mobile terminals.
Prior art is different from, the program bag method for customizing of mobile terminal of the present invention unpacks by being set in the first platform 1
Modular converter 21 is set in module 11 and packetization module 12, the second platform 2, and modular converter 21 migrates to second by module 11 is unpacked
Enable a user to carry out program bag on the second platform 2 de-packaging operation in platform 2, and to solution on the second platform 2
Program bag after bag enters edlin, recycles modular converter 21 to migrate to packetization module 12 and causes user in second platform 2
On the second platform 2 to program bag carry out packaging operation, in above process, user can on the second platform according to oneself
The content liked in adjustment programme bag so that the program bag of each mobile terminal can be unusual, even and if user's need
Want factory reset, the application in program bag will not also lose, and lifting user uses the satisfaction of mobile terminal.
Embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize the present invention
The equivalent structure or equivalent flow conversion that specification and accompanying drawing content are made, or directly or indirectly it is used in other related technologies
Field, it is included within the scope of the present invention.