CN107436792A - ROM adaptation methods, equipment and storage medium - Google Patents
ROM adaptation methods, equipment and storage medium Download PDFInfo
- Publication number
- CN107436792A CN107436792A CN201710609212.3A CN201710609212A CN107436792A CN 107436792 A CN107436792 A CN 107436792A CN 201710609212 A CN201710609212 A CN 201710609212A CN 107436792 A CN107436792 A CN 107436792A
- Authority
- CN
- China
- Prior art keywords
- patch
- rom
- code
- tablet menu
- functional characteristic
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/443—Optimisation
Abstract
The invention discloses a kind of ROM adaptation methods, equipment and storage medium, the ROM adaptation methods comprise the following steps:Platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch are obtained according to the ROM Configuration Requests of triggering and merge script;Call the patch merging script to read the functional characteristic in the functional characteristic tablet menu line by line, and the patch in the patch tablet menu associated with the functional characteristic is merged, to obtain merging patch;The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation ROM.The present invention automation of this adaptation procedure, can effectively be reduced human cost, improve Adaption efficiency by functional characteristic tablet menu and patch inventory in the case where functional characteristic has renewal with fast adaptation ROM.
Description
Technical field
The present invention relates to internet arena, more particularly to a kind of ROM adaptation methods, equipment and storage medium.
Background technology
With the fast development of mobile terminal technology, new technology continues to bring out, and Android development companies are, it is necessary in platform
Mobile terminal is developed on the basis of manufacturer, substantially mobile terminal manufacturer can be adapted to the Android platform of multiple platform vendors, by
In the versatility of Android platform, mobile terminal manufacturer can develop the software of oneself and the frame part to Android platform enters
Row customization.
This customization, it is defined as the ROM of mobile terminal manufacturer, it is independently developed that the ROM includes mobile terminal manufacturer
APK, the APK of Android platform, and the custom-modification for Android platform baseline.Because Android platform can be regular
Redaction is issued, causes the custom-modification of Android platform baseline unavailable, it is therefore desirable to applicability is carried out to custom-modification and repaiied
Change, i.e., custom-modification will be adapted to Android platform.At present, commonly rely on exploitation tester be customized modification with
The adaptation of Android platform, but more exploitation tester is needed, human cost is higher, and Adaption efficiency is relatively low.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of ROM adaptation methods, equipment and storage medium, it is intended to solve manpower into
This higher, relatively low technical problem of Adaption efficiency.
To achieve the above object, the present invention provides a kind of ROM adaptation methods, and the ROM adaptation methods comprise the following steps:
It is clear that platform base code, versatility code, functional characteristic tablet menu, patch are obtained according to the ROM Configuration Requests of triggering
Single table and patch merge script;
Call the patch to merge script and read functional characteristic in the functional characteristic tablet menu line by line, and will with it is described
Patch in the patch tablet menu of functional characteristic association merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation
ROM。
Alternatively, it is described clear according to the ROM Configuration Requests of triggering acquisition platform base code, versatility code, functional characteristic
Before single table, patch tablet menu and patch merge the step of script, the ROM adaptation methods also include:
The code uploading instructions of triggering are received, and code upload interface is shown according to the code uploading instructions;
The code data uploaded based on the code upload interface is received, and judges whether the code data is in code
Database;
When the code data is not in code database, ROM Configuration Requests are triggered.
It is alternatively, described that the platform base code, the versatility code and the merging patch are merged into compiling,
After obtaining the step of being adapted to ROM, the ROM adaptation methods also include:
The adaptation ROM is issued to mobile terminal, so that the mobile terminal is based on the adaptation rom update local
ROM。
Alternatively, the ROM adaptation methods also include:
The functional characteristic tablet menu of triggering and the configuration-direct of patch tablet menu are received, and is shown according to the configuration-direct
The configuration interface of functional characteristic tablet menu and patch tablet menu;
Functional characteristic and patch based on configuration interface configuration are received, and according to the functional characteristic and the patch
Systematic function characteristic tablet menu and patch tablet menu.
Alternatively, the platform base code, the versatility code, the functional characteristic tablet menu, the patch inventory
Table and the patch merge script and are stored in code server.
In addition, to achieve the above object, the present invention also provides a kind of ROM adapting appts, and the ROM adapting appts include:
Memory, processor and it is stored in the ROM adaptation procedures that can be run on the memory and on the processor, the ROM
Following steps are realized when adaptation procedure is by the computing device:
It is clear that platform base code, versatility code, functional characteristic tablet menu, patch are obtained according to the ROM Configuration Requests of triggering
Single table and patch merge script;
Call the patch to merge script and read functional characteristic in the functional characteristic tablet menu line by line, and will with it is described
Patch in the patch tablet menu of functional characteristic association merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation
ROM。
The present invention also provides a kind of computer-readable recording medium, and ROM is stored with the computer-readable recording medium
Adaptation procedure, the ROM adaptation procedures realize following steps when being executed by processor:
It is clear that platform base code, versatility code, functional characteristic tablet menu, patch are obtained according to the ROM Configuration Requests of triggering
Single table and patch merge script;
Call the patch to merge script and read functional characteristic in the functional characteristic tablet menu line by line, and will with it is described
Patch in the patch tablet menu of functional characteristic association merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation
ROM。
The present invention according to the ROM Configuration Requests of triggering obtain platform base code, versatility code, functional characteristic tablet menu,
Patch tablet menu and patch merge script, then call patch merging script to read the work(in the functional characteristic tablet menu line by line
Energy characteristic, and the patch in the patch tablet menu associated with the functional characteristic is merged, to obtain merging patch, finally will
The platform base code, versatility code and merging patch merge compiling, and to obtain adaptation ROM, it is special that this programme passes through function
Property tablet menu and patch inventory, can be in the case where functional characteristic has renewal, can be with fast adaptation ROM, this adaptation procedure
Automation, human cost is effectively reduced, improve Adaption efficiency.
Brief description of the drawings
Fig. 1 is the device structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to;
Fig. 2 is the schematic flow sheet of ROM adaptation methods first embodiment of the present invention;
Fig. 3 is a hardware architecture diagram of mobile terminal in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of ROM adaptation methods second embodiment of the present invention;
Fig. 5 is the schematic flow sheet of ROM adaptation methods 3rd embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
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.
The primary solutions of the embodiment of the present invention are:Platform base code is obtained according to the ROM Configuration Requests of triggering, led to
Merge script with code, functional characteristic tablet menu, patch tablet menu and patch, then call the patch to merge script and read line by line
Functional characteristic in the functional characteristic tablet menu, and the patch in the patch tablet menu associated with the functional characteristic is closed
And to obtain merging patch, the platform base code, versatility code and merging patch are finally merged into compiling, to obtain
It is adapted to ROM.
Because Android platform can regularly publish redaction, cause the custom-modification of Android platform baseline unavailable,
Therefore need to carry out applicability modification to custom-modification, i.e. custom-modification will be adapted to Android platform.At present, typically rely on
Modification is customized in exploitation tester to be adapted to Android platform, but the more exploitation tester of needs, human cost
Higher, Adaption efficiency is relatively low.
To solve the above problems, the present invention provides a solution, this programme passes through functional characteristic tablet menu and patch
Inventory, the automation of this adaptation procedure, it can effectively be subtracted with fast adaptation ROM in the case where functional characteristic has renewal
Few human cost, improves Adaption efficiency.
As shown in figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to.
Equipment of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, pocket computer etc. with aobvious
Show the packaged type terminal device of function, can also be fixed terminal equipment.
As shown in figure 1, the equipment can include:Processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to realize the connection communication between these components.
User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), optional user interface
1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that the device structure shown in Fig. 1 does not form the restriction to equipment, can wrap
Include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module, Subscriber Interface Module SIM and ROM adaptation procedures.
In the equipment shown in Fig. 1, processor 1001 can be used for calling the ROM adaptation journeys stored in memory 1005
Sequence, and perform following steps:
It is clear that platform base code, versatility code, functional characteristic tablet menu, patch are obtained according to the ROM Configuration Requests of triggering
Single table and patch merge script;
Call the patch to merge script and read functional characteristic in the functional characteristic tablet menu line by line, and will with it is described
Patch in the patch tablet menu of functional characteristic association merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation
ROM。
Further, processor 1001 can call the ROM adaptation procedures stored in memory 1005, also perform following walk
Suddenly:
The code uploading instructions of triggering are received, and code upload interface is shown according to the code uploading instructions;
The code data uploaded based on the code upload interface is received, and judges whether the code data is in code
Database;
When the code data is not in code database, ROM Configuration Requests are triggered.
Further, processor 1001 can call the ROM adaptation procedures stored in memory 1005, also perform following walk
Suddenly:
The adaptation ROM is issued to mobile terminal, so that the mobile terminal is based on the adaptation rom update local
ROM。
Further, processor 1001 can call the ROM adaptation procedures stored in memory 1005, also perform following walk
Suddenly:
The functional characteristic tablet menu of triggering and the configuration-direct of patch tablet menu are received, and is shown according to the configuration-direct
The configuration interface of functional characteristic tablet menu and patch tablet menu;
Functional characteristic and patch based on configuration interface configuration are received, and according to the functional characteristic and the patch
Systematic function characteristic tablet menu and patch tablet menu.
Each specific embodiment of the specific embodiment of ROM adapting appts of the present invention and following ROM adaptation methods is essentially identical,
Therefore not to repeat here.
The present invention provides a kind of ROM adaptation methods.
Reference picture 2, Fig. 2 are the schematic flow sheet of ROM adaptation methods first embodiment of the present invention.
In the present embodiment, the ROM adaptation methods include:
Step S101, platform base code, versatility code, functional characteristic inventory are obtained according to the ROM Configuration Requests of triggering
Table, patch tablet menu and patch merge script;
The ROM adaptation methods are applied to ROM adapting appts, and the ROM adapting appts include code server and issuing service
Device, the code server are stored with platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch and closed
And script etc., and the platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge script point
Region individually stores.The platform base code comes from platform vendor, such as high pass or other third-party platform manufacturers, and this is logical
It is ROM general with code, for ensureing the versatility of ROM after custom-modification, the functional characteristic tablet menu includes mobile terminal
Comprising functional characteristic, such as automatic bright screen display function, breath light function, U.S. face function or other functions, and each function
The coupling of characteristic and platform baseline code can have one or to individual patch, said one or patch with patch tablet menu and function
Characteristic is associated, and the patch merges script, is to be write with script, for applying patch automatically, realizes the conjunction of patch
And the patch is git patches.
Because the opening of android system, ROM is all referring to the various hairs for android system in most cases
Row version.Two major classes are generally divided into, a kind of is the master ROM for coming from mobile-phone manufacturers officials, and feature is stable, functionally with manufacturer
Customize and have nothing in common with each other;Another kind is to develop the primary ROM that fan is independently compiled using the source code of official's issue, and feature is
It is adjusted according to user's real needs, ROM is more met the use habit of different regions user.
After Android platform issues redaction, exploitation tester needs to issue redaction to mobile terminal user
ROM to be released modification code is uploaded to code server by ROM, now, exploitation tester, and code server receives modification
Code, and judge to whether there is the modification code in the code server, if there is no the modification code, then trigger ROM and fit
Transmitted with request, and by the ROM Configuration Requests of triggering to publisher server, then the publisher server please based on ROM adaptations
Ask, platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch are obtained from code server and is closed
And script, and cache the platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch and merge script.
In specific implementation, the functional characteristic inventory in the ROM adapting appts timing acquisition code servers, when detecting
When the functional characteristic inventory updates, ROM Configuration Requests are triggered, then transmit the ROM Configuration Requests to publisher server.Another
In one specific implementation, the platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge script
Can be tested developer configuration, such as platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and
Patch merges the deletion of script, and platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge
Script increases, and platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge script
Modification.
Step S102, the patch merging script is called to read the functional characteristic in the functional characteristic tablet menu line by line,
And merge the patch in the patch tablet menu associated with the functional characteristic, to obtain merging patch;
Publisher server in the ROM adapting appts is getting platform base code, versatility code, functional characteristic inventory
After table, patch tablet menu and patch merge script, call the patch to merge script and read line by line in the functional characteristic tablet menu
Functional characteristic, and the patch tablet menu associated with the functional characteristic is obtained, patch is then read from the patch tablet menu, and will
The patch read is merged into the patch library of the platform baseline code, until the patch in the patch tablet menu of association merges
Into patch library, so as to obtain merging patch.
In specific implementation, when the patch tablet menu associated with the functional characteristic has multiple, according to association patch tablet menu
Numbering, obtain association patch tablet menu successively, and patch read from the patch tablet menu got, while will read
Patch is merged into the patch library of the platform baseline code, until the patch in the patch tablet menu of association is merged into patch library
In.
Step S103, the platform base code, the versatility code and the merging patch are merged into compiling, with
Obtain adaptation ROM.
Publisher server in the ROM adapting appts is after merging patch is obtained, by the platform base code, the general generation
Code and the merging patch are merged, and then the platform base code after merging, versatility code and merging patch are compiled,
ROM is adapted to obtain.In specific implementation, after adaptation ROM is obtained, adaptation ROM is stored, and remind test development personnel to enter
Row adaptation ROM checking, after adaptation ROM is by checking, adaptation ROM can issue to mobile terminal user, certainly, should
ROM adapting appts can also verify adaptation ROM automatically, to realize adaptation and the automation of issue.
Further, the ROM adapting appts will be issued to mobile terminal by the adaptation ROM of checking, the mobile terminal from
Adaptation ROM is downloaded in the ROM adapting appts, and according to adaptation rom update local ROM.The mobile terminal includes such as intelligence
Can mobile phone, tablet personal computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant,
PDA), portable media player (Portable Media Player, PMP), guider and wearable device etc..Fig. 3 is
A hardware architecture diagram of mobile terminal in the embodiment of the present invention, as shown in figure 3, the mobile terminal 100 can include:RF
(Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) inputs
Unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor
The part such as 110 and power supply 111.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 3 is not formed
Restriction to mobile terminal, mobile terminal can be included than illustrating more or less parts, either combine some parts or
Different part arrangements.The all parts of mobile terminal are specifically introduced with reference to Fig. 3:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.WiFi belongs to short range wireless transmission technology, moves
Dynamic terminal can help user to send and receive e-mail, browse webpage and access streaming video etc. by WiFi module 102, and it is use
Family provides wireless broadband internet and accessed.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display panel 1061, and proximity transducer can close display surface when mobile terminal 100 is moved in one's ear
Plate 1061 and/or backlight.Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display is single
Member 106 may include display panel 1061, can use liquid crystal display (Liquid Crystal Display, LCD), You Jifa
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Move
Dynamic terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 can pass through electricity
Management system and processor 110 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
In the present embodiment, the present invention obtains platform base code, versatility code, work(according to the ROM Configuration Requests of triggering
Energy characteristic tablet menu, patch tablet menu and patch merge script, then call the patch to merge script and read function spy line by line
Property tablet menu in functional characteristic, and the patch in the patch tablet menu associated with the functional characteristic is merged, to obtain
Merge patch, the platform base code, versatility code and merging patch are finally merged into compiling, to obtain adaptation ROM, this
Scheme, can be in the case where functional characteristic has renewal by functional characteristic tablet menu and patch inventory, can be with fast adaptation
ROM, this adaptation procedure automation, effectively reduces human cost, improves Adaption efficiency.
Further, reference picture 4, propose ROM adaptation methods of the present invention based on above-mentioned first embodiment second are implemented
Example, the difference with previous embodiment is, before step S101, the ROM adaptation methods also include:
Step S104, the code uploading instructions of triggering are received, and show that code uploads boundary according to the code uploading instructions
Face;
Step S105, the code data uploaded based on the code upload interface is received, and judge that the code data is
It is no to be in code database;
Step S106, when the code data is not in code database, trigger ROM Configuration Requests.
The ROM adapting appts receive the code uploading instructions of exploitation tester's triggering, and according to the code uploading instructions
Code upload interface is shown, the code upload interface upload code data, ROM adapting appts can be based on by then developing tester
Receive test development personnel and be based on the code upload interface upload code data, and judge whether the code data is in code number
According to storehouse, i.e. whether the code data is fresh code data, if the code data is not in code database, i.e. the code data
For fresh code data, then ROM Configuration Requests are triggered.
In the present embodiment, the present invention is easy to develop tester's upload code data by showing code upload interface,
It is automatic to trigger ROM Configuration Requests meanwhile ROM adapting appts are when the code data of upload is not at code database, without opening
Hair tester triggers manually.
Further, reference picture 5, the of ROM adaptation methods of the present invention is proposed based on above-mentioned first or second embodiments
Three embodiments, the difference with previous embodiment are that the ROM adaptation methods also include:
Step S107, the functional characteristic tablet menu of triggering and the configuration-direct of patch tablet menu are received, and matched somebody with somebody according to described
Put the configuration interface of instruction display function characteristic tablet menu and patch tablet menu;
Step S108, functional characteristic and patch based on configuration interface configuration are received, and according to the functional characteristic
With the patch systematic function characteristic tablet menu and patch tablet menu.
The ROM adapting appts receive the functional characteristic tablet menu of triggering and the configuration-direct of patch tablet menu, and according to this
The configuration interface of configuration-direct display function characteristic tablet menu and patch tablet menu, then receive based on configuration interface configuration
Functional characteristic and patch, and according to the functional characteristic and the patch systematic function characteristic tablet menu and patch tablet menu, while
The functional characteristic tablet menu and patch tablet menu are stored in code server.
In the present embodiment, the present invention is easy to by display function characteristic tablet menu and the configuration interface of patch tablet menu
Develop tester's configuration feature characteristic tablet menu and patch tablet menu.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with ROM adaptation procedures, the ROM adaptation procedures realize following steps when being executed by processor:
It is clear that platform base code, versatility code, functional characteristic tablet menu, patch are obtained according to the ROM Configuration Requests of triggering
Single table and patch merge script;
Call the patch to merge script and read functional characteristic in the functional characteristic tablet menu line by line, and will with it is described
Patch in the patch tablet menu of functional characteristic association merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation
ROM。
The computer-readable recording medium is applied to ROM adapting appts, and the ROM adapting appts include code server and hair
Cloth server, the code server be stored with platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and
Patch merges script etc., and the platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge
Script subregion individually stores.The platform base code comes from platform vendor, such as high pass or other third-party platform factories
Business, the versatility code are that ROM is general, and for ensureing the versatility of ROM after custom-modification, the functional characteristic tablet menu includes moving
The functional characteristic that dynamic terminal includes, such as automatic bright screen display function, breath light function, U.S. face function or other functions, and often
The coupling of individual functional characteristic and platform baseline code can have one or to individual patch, said one or patch with patch tablet menu
It is associated with functional characteristic, the patch merges script, is write with script, is applied patch for automatic, is realized and mend
The merging of fourth, the patch are git patches.
After Android platform issues redaction, exploitation tester needs to issue redaction to mobile terminal user
ROM to be released modification code is uploaded to code server by ROM, now, exploitation tester, and code server receives modification
Code, and judge to whether there is the modification code in the code server, if there is no the modification code, then trigger ROM and fit
Transmitted with request, and by the ROM Configuration Requests of triggering to publisher server, then the publisher server please based on ROM adaptations
Ask, platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch are obtained from code server and is closed
And script, and cache the platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch and merge script.
In specific implementation, the functional characteristic inventory in the ROM adapting appts timing acquisition code servers, when detecting
When the functional characteristic inventory updates, ROM Configuration Requests are triggered, then transmit the ROM Configuration Requests to publisher server.Another
In one specific implementation, the platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge script
Can be tested developer configuration, such as platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and
Patch merges the deletion of script, and platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge
Script increases, and platform base code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge script
Modification.
Publisher server in the ROM adapting appts is getting platform base code, versatility code, functional characteristic inventory
After table, patch tablet menu and patch merge script, call the patch to merge script and read line by line in the functional characteristic tablet menu
Functional characteristic, and the patch tablet menu associated with the functional characteristic is obtained, patch is then read from the patch tablet menu, and will
The patch read is merged into the patch library of the platform baseline code, until the patch in the patch tablet menu of association merges
Into patch library, so as to obtain merging patch.
In specific implementation, when the patch tablet menu associated with the functional characteristic has multiple, according to association patch tablet menu
Numbering, obtain association patch tablet menu successively, and patch read from the patch tablet menu got, while will read
Patch is merged into the patch library of the platform baseline code, until the patch in the patch tablet menu of association is merged into patch library
In.
Publisher server in the ROM adapting appts is after merging patch is obtained, by the platform base code, the general generation
Code and the merging patch are merged, and then the platform base code after merging, versatility code and merging patch are compiled,
ROM is adapted to obtain.In specific implementation, after adaptation ROM is obtained, adaptation ROM is stored, and remind test development personnel to enter
Row adaptation ROM checking, after adaptation ROM is by checking, adaptation ROM can issue to mobile terminal user, certainly, should
ROM adapting appts can also verify adaptation ROM automatically, to realize adaptation and the automation of issue.
The mobile terminal includes such as smart mobile phone, tablet personal computer, notebook computer, palm PC, personal digital assistant
(Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP),
Guider and wearable device etc..Fig. 3 is a hardware architecture diagram of mobile terminal in the embodiment of the present invention, such as Fig. 3 institutes
Show, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output
Unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface
The parts such as unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that show in Fig. 3
The mobile terminal structure gone out does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less portions
Part, either combine some parts or different parts arrangement.
In the present embodiment, the present invention obtains platform base code, versatility code, work(according to the ROM Configuration Requests of triggering
Energy characteristic tablet menu, patch tablet menu and patch merge script, then call the patch to merge script and read function spy line by line
Property tablet menu in functional characteristic, and the patch in the patch tablet menu associated with the functional characteristic is merged, to obtain
Merge patch, the platform base code, versatility code and merging patch are finally merged into compiling, to obtain adaptation ROM, this
Scheme, can be in the case where functional characteristic has renewal by functional characteristic tablet menu and patch inventory, can be with fast adaptation
ROM, this adaptation procedure automation, effectively reduces human cost, improves Adaption efficiency.
Further, when the ROM adaptation procedures are executed by processor, following steps are also realized:
The code uploading instructions of triggering are received, and code upload interface is shown according to the code uploading instructions;
The code data uploaded based on the code upload interface is received, and judges whether the code data is in code
Database;
When the code data is not in code database, ROM Configuration Requests are triggered.
Further, when the ROM adaptation procedures are executed by processor, following steps are also realized:
The adaptation ROM is issued to mobile terminal, so that the mobile terminal is based on the adaptation rom update local
ROM。
Further, when the ROM adaptation procedures are executed by processor, following steps are also realized:
The functional characteristic tablet menu of triggering and the configuration-direct of patch tablet menu are received, and is shown according to the configuration-direct
The configuration interface of functional characteristic tablet menu and patch tablet menu;
Functional characteristic and patch based on configuration interface configuration are received, and according to the functional characteristic and the patch
Systematic function characteristic tablet menu and patch tablet menu.
Each specific embodiment base of the specific embodiment of computer-readable recording medium of the present invention and above-mentioned ROM adaptation methods
This is identical, and therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification 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.
Claims (10)
1. a kind of read-only memory mirror image ROM adaptation methods, it is characterised in that the ROM adaptation methods comprise the following steps:
Platform base code, versatility code, functional characteristic tablet menu, patch tablet menu are obtained according to the ROM Configuration Requests of triggering
Merge script with patch;
The patch merging script is called to read the functional characteristic in the functional characteristic tablet menu line by line, and will be with the function
Patch in the patch tablet menu of association of characteristics merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation ROM.
2. ROM adaptation methods as claimed in claim 1, it is characterised in that described obtained according to the ROM Configuration Requests of triggering is put down
Before platform foundation code, versatility code, functional characteristic tablet menu, patch tablet menu and patch merge the step of script, the ROM
Adaptation method also includes:
The code uploading instructions of triggering are received, and code upload interface is shown according to the code uploading instructions;
The code data uploaded based on the code upload interface is received, and judges whether the code data is in code data
Storehouse;
When the code data is not in code database, ROM Configuration Requests are triggered.
3. ROM adaptation methods as claimed in claim 1, it is characterised in that it is described by the platform base code, it is described general
Code and the merging patch merge compiling, and after obtaining the step of being adapted to ROM, the ROM adaptation methods also include:
The adaptation ROM is issued to mobile terminal, so that the mobile terminal is based on the adaptation rom update local ROM.
4. ROM adaptation methods as claimed in claim 1, it is characterised in that the ROM adaptation methods also include:
The functional characteristic tablet menu of triggering and the configuration-direct of patch tablet menu are received, and according to the configuration-direct display function
The configuration interface of characteristic tablet menu and patch tablet menu;
Functional characteristic and patch based on configuration interface configuration are received, and is generated according to the functional characteristic and the patch
Functional characteristic tablet menu and patch tablet menu.
5. the ROM adaptation methods as any one of claim 1-4, it is characterised in that the platform base code, described
Versatility code, the functional characteristic tablet menu, the patch tablet menu and the patch merge script and are stored in code server.
6. a kind of ROM adapting appts, it is characterised in that the ROM adapting appts include:Memory, processor and it is stored in institute
The ROM adaptation procedures that can be run on memory and on the processor are stated, the ROM adaptation procedures are by the computing device
Shi Shixian following steps:
Platform base code, versatility code, functional characteristic tablet menu, patch tablet menu are obtained according to the ROM Configuration Requests of triggering
Merge script with patch;
The patch merging script is called to read the functional characteristic in the functional characteristic tablet menu line by line, and will be with the function
Patch in the patch tablet menu of association of characteristics merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation ROM.
7. ROM adapting appts as claimed in claim 6, it is characterised in that the ROM adaptation procedures are by the computing device
When, also realize following steps:
The code uploading instructions of triggering are received, and code upload interface is shown according to the code uploading instructions;
The code data uploaded based on the code upload interface is received, and judges whether the code data is in code data
Storehouse;
When the code data is not in code database, ROM Configuration Requests are triggered.
8. ROM adapting appts as claimed in claim 6, it is characterised in that the ROM adaptation procedures are by the computing device
When, also realize following steps:
The adaptation ROM is issued to mobile terminal, so that the mobile terminal is based on the adaptation rom update local ROM.
9. ROM adapting appts as claimed in claim 6, it is characterised in that the ROM adaptation procedures are by the computing device
When, also realize following steps:
The functional characteristic tablet menu of triggering and the configuration-direct of patch tablet menu are received, and according to the configuration-direct display function
The configuration interface of characteristic tablet menu and patch tablet menu;
Functional characteristic and patch based on configuration interface configuration are received, and is generated according to the functional characteristic and the patch
Functional characteristic tablet menu and patch tablet menu.
10. a kind of computer-readable recording medium, it is characterised in that be stored with ROM on the computer-readable recording medium and fit
With program, the ROM adaptation procedures realize following steps when being executed by processor:
Platform base code, versatility code, functional characteristic tablet menu, patch tablet menu are obtained according to the ROM Configuration Requests of triggering
Merge script with patch;
The patch merging script is called to read the functional characteristic in the functional characteristic tablet menu line by line, and will be with the function
Patch in the patch tablet menu of association of characteristics merges, to obtain merging patch;
The platform base code, the versatility code and the merging patch are merged into compiling, to obtain adaptation ROM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710609212.3A CN107436792A (en) | 2017-07-24 | 2017-07-24 | ROM adaptation methods, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710609212.3A CN107436792A (en) | 2017-07-24 | 2017-07-24 | ROM adaptation methods, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107436792A true CN107436792A (en) | 2017-12-05 |
Family
ID=60461150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710609212.3A Pending CN107436792A (en) | 2017-07-24 | 2017-07-24 | ROM adaptation methods, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107436792A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669677A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Loan platform function configuration method, unit and readable storage medium storing program for executing |
CN114115977A (en) * | 2021-11-11 | 2022-03-01 | 苏州浪潮智能科技有限公司 | BMC (baseboard management controller) mirror image construction method, system, terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160019054A1 (en) * | 2014-07-21 | 2016-01-21 | Sandisk Technologies Inc. | Method and System for Generating a ROM Patch |
CN105373390A (en) * | 2015-12-03 | 2016-03-02 | 北京小鸟科技发展有限责任公司 | OEM-oriented online software customization packaging release method and apparatus |
CN106293799A (en) * | 2015-06-23 | 2017-01-04 | 中兴通讯股份有限公司 | Android terminal ROM bag generates method and device |
CN106933591A (en) * | 2017-03-15 | 2017-07-07 | 东软集团股份有限公司 | The method and device that code merges |
-
2017
- 2017-07-24 CN CN201710609212.3A patent/CN107436792A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160019054A1 (en) * | 2014-07-21 | 2016-01-21 | Sandisk Technologies Inc. | Method and System for Generating a ROM Patch |
CN106293799A (en) * | 2015-06-23 | 2017-01-04 | 中兴通讯股份有限公司 | Android terminal ROM bag generates method and device |
CN105373390A (en) * | 2015-12-03 | 2016-03-02 | 北京小鸟科技发展有限责任公司 | OEM-oriented online software customization packaging release method and apparatus |
CN106933591A (en) * | 2017-03-15 | 2017-07-07 | 东软集团股份有限公司 | The method and device that code merges |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669677A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Loan platform function configuration method, unit and readable storage medium storing program for executing |
CN114115977A (en) * | 2021-11-11 | 2022-03-01 | 苏州浪潮智能科技有限公司 | BMC (baseboard management controller) mirror image construction method, system, terminal and storage medium |
CN114115977B (en) * | 2021-11-11 | 2024-01-12 | 苏州浪潮智能科技有限公司 | BMC mirror image construction method, system, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978176B (en) | Application programming interfaces call method, device and computer readable storage medium | |
CN107562864A (en) | A kind of advertisement screen method, mobile terminal and computer-readable recording medium | |
CN107276789A (en) | Daily record method for uploading, device and computer-readable recording medium | |
CN107273160A (en) | A kind of method and device of edition upgrading | |
CN108228222A (en) | A kind of upgrade method of firmware data, mobile terminal and computer storage media | |
CN111142930B (en) | Installation package file packaging method and device, terminal device and storage medium | |
CN108228230A (en) | Upgrade method, terminal and the computer readable storage medium of UFS firmwares | |
CN103488939A (en) | Method, device and terminal for prompting user | |
CN107704133A (en) | Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium | |
CN106484771B (en) | Different information file generated and application process, device | |
CN108958680A (en) | Display control method, device, display system and computer readable storage medium | |
CN108549826A (en) | Method of calibration, terminal, server and the readable storage medium storing program for executing of application program | |
CN108920054A (en) | A kind of application recommended method and terminal | |
CN106445719A (en) | Recovery-mode Recovery instruction reading and writing method and device | |
CN110580163A (en) | Method and device for manufacturing pendant through template and storage equipment | |
CN108804151A (en) | A kind of method and terminal of re-launching applications | |
CN107247560A (en) | Date storage method and mobile terminal | |
CN107765922A (en) | Card screen detection is with solving method, mobile terminal and computer-readable recording medium | |
CN109408080A (en) | A kind of method and terminal of application upgrade | |
CN107766222A (en) | Blank screen detection method, mobile terminal and computer-readable recording medium | |
CN107908491A (en) | Card screen detection is with solving method, mobile terminal and computer-readable recording medium | |
CN108200285A (en) | Reduce photographic method, mobile terminal and the computer readable storage medium of interference | |
CN107436792A (en) | ROM adaptation methods, equipment and storage medium | |
CN107967177A (en) | Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on kernel process | |
CN107704332A (en) | Freeze screen solution method, mobile terminal and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171205 |
|
RJ01 | Rejection of invention patent application after publication |