CN107704334A - A kind of SDK processing method and mobile terminal - Google Patents

A kind of SDK processing method and mobile terminal Download PDF

Info

Publication number
CN107704334A
CN107704334A CN201710953545.8A CN201710953545A CN107704334A CN 107704334 A CN107704334 A CN 107704334A CN 201710953545 A CN201710953545 A CN 201710953545A CN 107704334 A CN107704334 A CN 107704334A
Authority
CN
China
Prior art keywords
configuration information
sdk
application program
mobile terminal
match
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
Application number
CN201710953545.8A
Other languages
Chinese (zh)
Inventor
胡延成
潘维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710953545.8A priority Critical patent/CN107704334A/en
Publication of CN107704334A publication Critical patent/CN107704334A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0796Safety measures, i.e. ensuring safe condition in the event of error, e.g. for controlling element
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability

Abstract

The invention provides the processing method of SDK a kind of and mobile terminal, this method includes:As application call SDK, SDK configuration information table is obtained;Configuration information in configuration information table is matched with the configuration information of application program;If the match is successful, allow application call SDK;If it fails to match, forbid application call SDK.The present invention improves the accuracy of SDK configuration information detection, and improves detection efficiency, and then improves Consumer's Experience.

Description

A kind of SDK processing method and mobile terminal
Technical field
The present embodiments relate to the processing method and mobile terminal of the communications field, more particularly to a kind of SDK.
Background technology
With the development of mobile terminal, requirement of the people to the application in mobile terminal also more and more higher.Each application is The function of itself is enriched, then can access third-party SDK (Software Development Kit, SDK) Meet demand.
SDK is during application program is accessed, it is necessary to which the demand according to SDK changes the configuration of application program itself, bag Include resource file and configuration file etc..In the prior art, the detection of configuration file and resource file often relies on operation Personnel.
But if occur resource file or configuration file error in access procedure, and operating personnel do not detect error By mistake, then for user when using the function related to SDK, application program, which will occur, can not call SDK, or even application crash The problem of, have a strong impact on Consumer's Experience.
The content of the invention
The embodiment of the present invention provides a kind of SDK processing method, to solve in the prior art, SDK configuration file and money The detection of source file depends on operating personnel, if occurring resource file or configuration file error in access procedure, and operates Personnel do not detect and made mistake, then for user when using the function related to SDK, application program will can not call SDK, or even collapse Burst, the problem of having had a strong impact on Consumer's Experience.
In order to solve the above-mentioned technical problem, the present invention is realized in:
The invention provides a kind of SDK processing method, methods described is applied to mobile terminal, and methods described includes:
As application call SDK, SDK configuration information table is obtained;
Configuration information in configuration information table is matched with the configuration information of application program;
If the match is successful, allow application call SDK;
If it fails to match, forbid application call SDK.
On the other hand, present invention also offers a kind of mobile terminal, the mobile terminal to include:
Acquisition module, for as application call SDK, obtaining SDK configuration information table;
Matching module, for the configuration information in configuration information table to be matched with the configuration information of application program;
Allow module, if for the match is successful, allow application call SDK;
Disabled module, if for it fails to match, forbid application call SDK.
The embodiment of the present invention additionally provides a kind of mobile terminal, including:Memory, processor and storage are on a memory simultaneously The processing routine for the SDK that can be run on a processor, realized when SDK processing routine is executed by processor shown in the present invention The step of any one SDK processing method.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored with computer-readable recording medium SDK processing routine, the processing of any one SDK shown in the present invention is realized when SDK processing routine is executed by processor The step of method.
So, in the embodiment of the present invention, by the configuration information table for as application call SDK, obtaining SDK;It will match somebody with somebody The configuration information put in information table is matched with the configuration information of application program;If the match is successful, application program is allowed to adjust Use SDK;If it fails to match, forbid application call SDK, effectively improve the accuracy of SDK configuration information detection, and And detection efficiency is improved, and then improve Consumer's Experience.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of one of flow chart of processing method of SDK in the embodiment of the present invention;
Fig. 2 is the two of the flow chart of the processing method of a kind of SDK in the embodiment of the present invention;
Fig. 3 is the three of the flow chart of the processing method of a kind of SDK in the embodiment of the present invention;
Fig. 4 is one of block diagram of mobile terminal in the embodiment of the present invention;
Fig. 5 is the two of the block diagram of the mobile terminal in the embodiment of the present invention;
Fig. 6 is the three of the block diagram of the mobile terminal in the embodiment of the present invention;
Fig. 7 is the four of the block diagram of the mobile terminal in the embodiment of the present invention;
Fig. 8 is the structural representation of the mobile terminal in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Embodiment one
Reference picture 1, a kind of flow chart of SDK processing method in the embodiment of the present invention is shown, is specifically included:
Step 101, as application call SDK, SDK configuration information table is obtained.
Specifically, in an embodiment of the present invention, if the mobile terminal in mobile terminal calls mounted SDK, Acquisition for mobile terminal SDK configuration information table.
In an embodiment of the present invention, SDK configuration information table is configured by SDK developer, configuration information table In include but is not limited to configuration item and resource bag etc. needed for SDK installations.
Step 102, the configuration information in configuration information table is matched with the configuration information of application program.
Specifically, in an embodiment of the present invention, mobile terminal is by the configuration information and application program in configuration information table Configuration information matched.In one embodiment, for application program during SDK is accessed, application program will be according to SDK Demand, the corresponding configuration information for changing application.
Step 103, if the match is successful, application call SDK is allowed.
Specifically, in an embodiment of the present invention, if configuration information and application program in SDK configuration information table is matched somebody with somebody The match is successful for confidence breath, then can determine that SDK has been successfully accessed application program, mobile terminal allows application call SDK.
Step 104, if it fails to match, application call SDK is forbidden.
Specifically, in an embodiment of the present invention, if configuration information and application program in SDK configuration information table is matched somebody with somebody It fails to match for confidence breath, then can determine that SDK accesses application program not successfully, i.e. in access procedure, application program is not matched somebody with somebody accurately The configuration information of correlation is put, mobile terminal will forbid application call SDK, to avoid the generation of program crashing phenomenon.
To sum up, the technical scheme in the embodiment of the present invention, by the way that as application call SDK, obtain SDK matches somebody with somebody confidence Cease table;Configuration information in configuration information table is matched with the configuration information of application program;If the match is successful, allowing should With routine call SDK;If it fails to match, forbid application call SDK.So as to by automatic detection, substitute artificial inspection Survey, effectively improve the accuracy of SDK configuration information detection, and improve detection efficiency, and then improve Consumer's Experience.
Embodiment two
Reference picture 2, a kind of flow chart of SDK processing method in the embodiment of the present invention is shown, is specifically included:
Step 201, as application call SDK, SDK configuration information table is obtained.
Specifically, in an embodiment of the present invention, if the mobile terminal in mobile terminal calls mounted SDK, Acquisition for mobile terminal SDK configuration information table.
In an embodiment of the present invention, step 201 specifically includes:
1) during application program installs SDK, the configuration information related to SDK in more new application;
2) whether monitoring application program runs SDK in real time;
3) if so, then under SDK specified path, SDK configuration information table is obtained.
Specifically, in an embodiment of the present invention, mobile terminal is during application program installs SDK, renewal application The configuration information related to SDK in program, configuration item and/or installation resource bag are including but not limited to installed.
Then, whether mobile terminal monitors whether application program runs SDK in real time, i.e., SDK is called.If so, then Mobile terminal obtains SDK configuration information table under SDK specified path.In an embodiment of the present invention, SDK matches somebody with somebody confidence Breath table is configured in advance by SDK developer, and is deposited under SDK specified path.
Step 202, if application program calls SDK to be first, by least one configuration information in allocation list and application The configuration information of program is compared one by one.
Specifically, in an embodiment of the present invention, if mobile terminal detects mobile terminal, this calls SDK to be adjusted to be first With the calling first after, i.e. SDK access, then at least one configuration information in SDK allocation lists and application program are matched somebody with somebody into confidence Breath is compared one by one.
In one embodiment, application program is during SDK is accessed, and application program is corresponding by the demand according to SDK Change the configuration information of application.
Step 203, if the configuration information of any one configuration information and application program at least one configuration information differs Cause, it is determined that it fails to match for configuration information table.
Specifically, in an embodiment of the present invention, if any one configuration information and application at least one configuration information The configuration information of program is inconsistent, then can determine that SDK setup errors in access, i.e. application program is not configured correctly needed for SDK Configuration file or resource bag, mobile terminal determines configuration information table, and it fails to match, into step 205.
If conversely, accordant configuration information of each configuration information with application program at least one configuration information, Then mobile terminal determines configuration information table the match is successful, into step 204.
Step 204, if the match is successful, application call SDK is allowed.
Step 205, if it fails to match, application call SDK is forbidden.
To sum up, the technical scheme in the embodiment of the present invention, by the way that as application call SDK, obtain SDK matches somebody with somebody confidence Cease table;Configuration information in configuration information table is matched with the configuration information of application program;If the match is successful, allowing should With routine call SDK;If it fails to match, forbid application call SDK.So as to by automatic detection, substitute artificial inspection Survey, effectively improve the accuracy of SDK configuration information detection, and improve detection efficiency, and then improve Consumer's Experience.
Embodiment three
Reference picture 3, a kind of flow chart of SDK processing method in the embodiment of the present invention is shown, is specifically included:
Step 301, as application call SDK, SDK configuration information table is obtained.
Specifically, in an embodiment of the present invention, if the mobile terminal in mobile terminal calls mounted SDK, Acquisition for mobile terminal SDK configuration information table.
Step 302, if application program has called SDK at least once, whether detection SDK is updated.
Specifically, in an embodiment of the present invention, if mobile terminal detects this calling of mobile terminal, SDK is non-first Call, i.e. SDK has been employed routine call and crossed at least once, then whether mobile terminal detection SDK is updated.
Step 303, if so, then entering at least one renewal configuration information in allocation list and the configuration information of application program Row compares one by one.
Specifically, in an embodiment of the present invention, mobile terminal is by least one renewal configuration information in SDK allocation lists With the configuration information of application program one by one compared with.In an embodiment of the present invention, updating configuration information includes the current of SDK The version deleted resource bag of version and/or deleted configuration item than before.Illustrate:In SDK renewal processes, using journey Sequence needs corresponding modification to be currently configured, and in one embodiment, SDK renewals need the A moneys in version before application program deletion Wrap in source.A resources bag is to update one of configuration information.Mobile terminal detects SDK current versions after more redaction, then will A resources bag is compared with the configuration information of application program, whether there is with detecting A resources bag in the configuration information of application program In.
Step 304, if the configuration of any one renewal configuration information and application program at least one renewal configuration information Information is consistent, it is determined that it fails to match for configuration information table.
Specifically, in an embodiment of the present invention, if confidence is matched somebody with somebody in any one renewal at least one renewal configuration information Breath and the accordant configuration information of application program, that is, be present in the configuration information of application program, you can determine SDK renewal processes In, application program fails correctly to carry out the renewal of configuration information according to upgrading demand for SDK, you can determines that configuration information table matches Failure, into step 306.
If conversely, configuration information of all renewal configuration informations at least one renewal configuration information with application program It is inconsistent, you can to determine in SDK renewal processes, the configuration information update of application program is correct, then mobile terminal can determine that configuration The match is successful for information table, into step 305.
Technical scheme in the embodiment of the present invention by being matched to the fresh information of the SDK after renewal, so as to A kind of reverse-examination mode is realized, to detect whether application program correctly updates configuration information according to upgrading demand for SDK, is effectively avoided The problem of mistake in renewal process causes application crash occurs, and improves Consumer's Experience.
Step 305, if the match is successful, application call SDK is allowed.
Step 306, if it fails to match, application call SDK is forbidden.
To sum up, the technical scheme in the embodiment of the present invention, by the way that as application call SDK, obtain SDK matches somebody with somebody confidence Cease table;Configuration information in configuration information table is matched with the configuration information of application program;If the match is successful, allowing should With routine call SDK;If it fails to match, forbid application call SDK.So as to by automatic detection, substitute artificial inspection Survey, effectively improve the accuracy of SDK configuration information detection, and improve detection efficiency, and then improve Consumer's Experience.
Example IV
Reference picture 4, show a kind of block diagram of mobile terminal 400 in the embodiment of the present invention.Specifically include:
Acquisition module 401, for as application call SDK, obtaining SDK configuration information table.
Specifically, in an embodiment of the present invention, if the mobile terminal in mobile terminal calls mounted SDK, Acquisition module 401 obtains SDK configuration information table.
In an embodiment of the present invention, SDK configuration information table is configured by SDK developer, configuration information table In include but is not limited to configuration file and resource bag etc. needed for SDK installations.
Matching module 402, for the configuration information in configuration information table to be matched with the configuration information of application program.
Specifically, in an embodiment of the present invention, matching module 402 is by the configuration information in configuration information table and applies journey The configuration information of sequence is matched.In one embodiment, application program is during SDK is accessed, and application program is by foundation SDK demand, the corresponding configuration information for changing application.
Allow module 403, if for the match is successful, allow application call SDK.
Specifically, in an embodiment of the present invention, if configuration information and application program in SDK configuration information table is matched somebody with somebody The match is successful for confidence breath, then can determine that SDK has been successfully accessed application program, it is allowed to which module 403 allows application call SDK.
Disabled module 404, if for it fails to match, forbid application call SDK.
Specifically, in an embodiment of the present invention, if configuration information and application program in SDK configuration information table is matched somebody with somebody It fails to match for confidence breath, then can determine that SDK accesses application program not successfully, i.e. in access procedure, application program is not matched somebody with somebody accurately The configuration information of correlation is put, disabled module 404 will forbid application call SDK, to avoid the generation of program crashing phenomenon.
Reference picture 5, in a preferred embodiment of the invention, on the basis of Fig. 4, matching module 402 is further Including:
First comparison sub-module 4021, will be at least one in allocation list if calling SDK for application program to be first The configuration information of configuration information and application program one by one compared with, wherein, configuration information includes installation resource bag and/or installation Configuration item;
First determination sub-module 4022, if for any one configuration information and application program at least one configuration information Configuration information it is inconsistent, it is determined that it fails to match for configuration information table.
Reference picture 6, in a preferred embodiment of the invention, on the basis of Fig. 4, matching module 402 is further Including:
Detection sub-module 4023, if having called SDK at least once for application program, whether detection SDK is updated;
Second comparison sub-module 4024, for if so, then by least one renewal configuration information in allocation list and application The configuration information of program is compared one by one, wherein, current version of the renewal configuration information including SDK than before deleted by version Resource bag and/or deleted configuration item;
Second determination sub-module 4025, if for it is at least one renewal configuration information in any one renewal configuration information with The accordant configuration information of application program, it is determined that it fails to match for configuration information table.
Reference picture 7, in a preferred embodiment of the invention, on the basis of Fig. 4, acquisition module 401 is further Including:
Submodule 4011 is updated, it is related to SDK in more new application during SDK is installed in application program Configuration information;
Submodule 4012 is monitored, for monitoring whether application program runs SDK in real time;
Acquisition submodule 4013, for if so, then under SDK specified path, obtaining SDK configuration information table.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in Fig. 1 to Fig. 3 embodiment of the method Each process, to avoid repeating, repeat no more here.
To sum up, the mobile terminal in the embodiment of the present invention, by the way that as application call SDK, obtain SDK matches somebody with somebody confidence Cease table;Configuration information in configuration information table is matched with the configuration information of application program;If the match is successful, allowing should With routine call SDK;If it fails to match, forbid application call SDK.So as to by automatic detection, substitute artificial inspection Survey, effectively improve the accuracy of SDK configuration information detection, and improve detection efficiency, and then improve Consumer's Experience.
Embodiment five
Fig. 8 is a kind of hardware architecture diagram for the mobile terminal 500 for realizing each embodiment of the present invention,
The mobile terminal 500 includes but is not limited to:It is radio frequency unit 501, mixed-media network modules mixed-media 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The part such as 510 and power supply 511.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 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.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet personal computer, notebook computer, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 510, for as application call SDK, obtaining SDK configuration information table;By in configuration information table Configuration information matched with the configuration information of application program;If the match is successful, allow application call SDK;If With failure, then forbid application call SDK.
To sum up, the mobile terminal in the embodiment of the present invention, by the way that as application call SDK, obtain SDK matches somebody with somebody confidence Cease table;Configuration information in configuration information table is matched with the configuration information of application program;If the match is successful, allowing should With routine call SDK;If it fails to match, forbid application call SDK.So as to by automatic detection, substitute artificial inspection Survey, effectively improve the accuracy of SDK configuration information detection, and improve detection efficiency, and then improve Consumer's Experience.
It should be understood that in the embodiment of the present invention, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 510;In addition, will be up Data are sent to base station.Generally, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 502 and accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be receiving by radio frequency unit 501 or mixed-media network modules mixed-media 502 or in memory 509 It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 503 can also be provided and moved The audio output for the specific function correlation that dynamic terminal 500 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input block 504 is used to receive audio or video signal.Input block 504 can include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 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.Picture frame after processing may be displayed on display unit 506.Picture frame after the processing of graphics processor 5041 can be deposited Storage is transmitted in memory 509 (or other storage mediums) or via radio frequency unit 501 or mixed-media network modules mixed-media 502.Mike Wind 5042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 also includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity transducer can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, will not be repeated here.
Display unit 506 is used for the information for showing the information inputted by user or being supplied to user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 5061.
User input unit 507 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 507 include contact panel 5071 and Other input equipments 5072.Contact panel 5071, 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 5071 or in contact panel 5071 Neighbouring operation).Contact panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area Manage the order that device 510 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 5071.Except contact panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 5071 can be covered on display panel 5061, when contact panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touch The type for touching event provides corresponding visual output on display panel 5061.Although in fig. 8, contact panel 5071 and display Panel 5061 is the part independent as two to realize the input of mobile terminal and output function, but in some embodiments In, can be integrated by contact panel 5071 and display panel 5061 and realize input and the output function of mobile terminal, it is specific this Place does not limit.
Interface unit 508 is the interface that external device (ED) is connected with mobile terminal 500.For example, external device (ED) can include Line or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 500 can be used in the He of mobile terminal 500 Data are transmitted between external device (ED).
Memory 509 can be used for storage software program and various data.Memory 509 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 509 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 510 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 509, and call and be stored in storage Data in device 509, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) to all parts power supply, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, memory 509, is stored in On memory 509 and the computer program that can be run on the processor 510, the computer program are performed by processor 510 Each process of the above-mentioned SDK of Shi Shixian processing method embodiment, and identical technique effect can be reached, to avoid repeating, this In repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each process of above-mentioned SDK processing method embodiment, and energy when being executed by processor Reach identical technique effect, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
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 device 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 device 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 device.
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 a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, belong within the protection of the present invention.

Claims (10)

  1. A kind of 1. SDK SDK processing method, applied to mobile terminal, it is characterised in that methods described includes:
    As application call SDK, the configuration information table of the SDK is obtained;
    Configuration information in the configuration information table is matched with the configuration information of the application program;
    If the match is successful, allow SDK described in the application call;
    If it fails to match, forbid SDK described in the application call.
  2. 2. according to the method for claim 1, it is characterised in that the configuration information and institute by the configuration information table The step of configuration information of application program is matched is stated, is specifically included:
    If the application program to call the SDK for the first time, by least one configuration information in the allocation list with it is described The configuration information of application program is compared one by one, wherein, the configuration information includes installation resource bag and/or installation configuration ;
    If any one configuration information and the configuration information of the application program at least one configuration information are inconsistent, Determine that it fails to match for the configuration information table.
  3. 3. according to the method for claim 1, it is characterised in that the configuration information and institute by the configuration information table The step of configuration information of application program is matched is stated, is specifically included:
    If the application program has called the SDK at least once, detect whether the SDK is updated;
    If so, then by the configuration information of at least one renewal configuration information in the allocation list and the application program carry out by One compares, wherein, the current version of the renewal configuration information including the SDK than before the deleted resource bag of version and/ Or deleted configuration item;
    If any one renewal configuration information and the configuration information of the application program at least one renewal configuration information Unanimously, it is determined that it fails to match for the configuration information table.
  4. 4. according to the method for claim 1, it is characterised in that it is described as application call SDK, obtain the SDK Configuration information table the step of, specifically include:
    During the application program installs the SDK, update and related to the SDK in the application program match somebody with somebody confidence Breath;
    Monitor whether the application program runs the SDK in real time;
    If so, then under the specified path of the SDK, the configuration information table of the SDK is obtained.
  5. A kind of 5. mobile terminal, it is characterised in that including:
    Acquisition module, for as application call SDK, obtaining the configuration information table of the SDK;
    A matching module, for the configuration information of the configuration information in the configuration information table and the application program to be carried out Match somebody with somebody;
    Allow module, if for the match is successful, allow SDK described in the application call;
    Disabled module, if for it fails to match, forbid SDK described in the application call.
  6. 6. mobile terminal according to claim 5, it is characterised in that the matching module further comprises:
    First comparison sub-module, if for the application program to call the SDK for the first time, by the allocation list at least The configuration information of one configuration information and the application program one by one compared with, wherein, the configuration information includes installation and provided Source is wrapped and/or installation configuration item;
    First determination sub-module, if for any one configuration information at least one configuration information and the application program Configuration information it is inconsistent, it is determined that it fails to match for the configuration information table.
  7. 7. mobile terminal according to claim 5, it is characterised in that the matching module further comprises:
    Detection sub-module, if having called the SDK at least once for the application program, whether the SDK is detected by more Newly;
    Second comparison sub-module, for if so, then by least one renewal configuration information in the allocation list and the application The configuration information of program is compared one by one, wherein, it is described to update current version of the configuration information including SDK version than before This deleted resource bag and/or deleted configuration item;
    Second determination sub-module, if for it is described it is at least one renewal configuration information in any one renewal configuration information with it is described The accordant configuration information of application program, it is determined that it fails to match for the configuration information table.
  8. 8. mobile terminal according to claim 5, it is characterised in that the acquisition module further comprises:
    Update submodule, during the SDK is installed in the application program, update in the application program with it is described Configuration information related SDK;
    Submodule is monitored, for monitoring whether the application program runs the SDK in real time;
    Acquisition submodule, for if so, then under the specified path of the SDK, obtaining the configuration information table of the SDK.
  9. A kind of 9. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The SDK run on processor processing routine is stated, the processing routine of the SDK is realized that right such as will during the computing device The step of seeking the processing method of the SDK any one of 1 to 4.
  10. 10. a kind of computer-readable recording medium, it is characterised in that be stored with SDK's on the computer-readable recording medium Processing routine, realized when the processing routine of the SDK is executed by processor such as the SDK any one of Claims 1-4 The step of processing method.
CN201710953545.8A 2017-10-13 2017-10-13 A kind of SDK processing method and mobile terminal Pending CN107704334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710953545.8A CN107704334A (en) 2017-10-13 2017-10-13 A kind of SDK processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710953545.8A CN107704334A (en) 2017-10-13 2017-10-13 A kind of SDK processing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107704334A true CN107704334A (en) 2018-02-16

Family

ID=61183718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710953545.8A Pending CN107704334A (en) 2017-10-13 2017-10-13 A kind of SDK processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107704334A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117647A (en) * 2018-07-17 2019-01-01 众安信息技术服务有限公司 A kind of the permission control management method and management system of mobile application SDK
CN110597492A (en) * 2019-08-07 2019-12-20 深圳市元征科技股份有限公司 Method for calling module and related product
CN111443907A (en) * 2020-03-12 2020-07-24 厦门网宿有限公司 Method and device for calling SDK function

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505549A (en) * 2008-02-04 2009-08-12 华为技术有限公司 Configuration method and apparatus for terminal equipment
CN102426639A (en) * 2011-09-26 2012-04-25 宇龙计算机通信科技(深圳)有限公司 Information safety monitoring method and device
CN102447732A (en) * 2011-10-11 2012-05-09 浪潮电子信息产业股份有限公司 Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development
CN104156235A (en) * 2014-07-22 2014-11-19 北京奇虎科技有限公司 Browser plugin and/or extension updating method and device
CN105095006A (en) * 2015-07-21 2015-11-25 北京金山安全软件有限公司 Method and device for repairing software installation failure
CN106452835A (en) * 2016-08-31 2017-02-22 福建联迪商用设备有限公司 Method and device for updating software to terminal with specific hardware configurations
CN106484484A (en) * 2016-10-20 2017-03-08 广东欧珀移动通信有限公司 Application program installs management method and terminal unit

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505549A (en) * 2008-02-04 2009-08-12 华为技术有限公司 Configuration method and apparatus for terminal equipment
CN102426639A (en) * 2011-09-26 2012-04-25 宇龙计算机通信科技(深圳)有限公司 Information safety monitoring method and device
CN102426639B (en) * 2011-09-26 2015-04-08 宇龙计算机通信科技(深圳)有限公司 Information safety monitoring method and device
CN102447732A (en) * 2011-10-11 2012-05-09 浪潮电子信息产业股份有限公司 Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development
CN104156235A (en) * 2014-07-22 2014-11-19 北京奇虎科技有限公司 Browser plugin and/or extension updating method and device
CN105095006A (en) * 2015-07-21 2015-11-25 北京金山安全软件有限公司 Method and device for repairing software installation failure
CN106452835A (en) * 2016-08-31 2017-02-22 福建联迪商用设备有限公司 Method and device for updating software to terminal with specific hardware configurations
CN106484484A (en) * 2016-10-20 2017-03-08 广东欧珀移动通信有限公司 Application program installs management method and terminal unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117647A (en) * 2018-07-17 2019-01-01 众安信息技术服务有限公司 A kind of the permission control management method and management system of mobile application SDK
CN110597492A (en) * 2019-08-07 2019-12-20 深圳市元征科技股份有限公司 Method for calling module and related product
CN110597492B (en) * 2019-08-07 2023-12-08 深圳市元征科技股份有限公司 Module calling method and related products
CN111443907A (en) * 2020-03-12 2020-07-24 厦门网宿有限公司 Method and device for calling SDK function

Similar Documents

Publication Publication Date Title
CN107943551A (en) A kind of screen display method and mobile terminal
CN108845853A (en) A kind of application program launching method and mobile terminal
CN107608514A (en) Information processing method and mobile terminal
CN108762640A (en) A kind of display methods and terminal of barrage information
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN108762869A (en) A kind of information processing method and mobile terminal
CN107678829A (en) A kind of application control method and mobile terminal
CN110445984A (en) A kind of shooting reminding method and electronic equipment
CN108469968A (en) A kind of applied program processing method and mobile terminal
CN107679514A (en) A kind of face identification method and electronic equipment
CN109743503A (en) Reminding method and terminal
CN108898555A (en) A kind of image processing method and terminal device
CN108541015A (en) A kind of signal strength reminding method and mobile terminal
CN109144703A (en) A kind of processing method and its terminal device of multitask
CN109145731A (en) A kind of fingerprint identification method, device and mobile terminal
CN108512980A (en) A kind of detection method and mobile terminal of mobile terminal
CN109379700A (en) Localization method and mobile terminal
CN107704334A (en) A kind of SDK processing method and mobile terminal
CN108009031A (en) The control method and mobile terminal of a kind of application program
CN110096203A (en) A kind of screenshot method and mobile terminal
CN110191426A (en) A kind of method and terminal of information sharing
CN110213438A (en) A kind of processing method and terminal device of application program
CN110012151A (en) A kind of information display method and terminal device

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: 20180216

RJ01 Rejection of invention patent application after publication