CN105933887A - Adaption method and device applied to different dual-card smartphones - Google Patents
Adaption method and device applied to different dual-card smartphones Download PDFInfo
- Publication number
- CN105933887A CN105933887A CN201610249050.2A CN201610249050A CN105933887A CN 105933887 A CN105933887 A CN 105933887A CN 201610249050 A CN201610249050 A CN 201610249050A CN 105933887 A CN105933887 A CN 105933887A
- Authority
- CN
- China
- Prior art keywords
- basic function
- type
- function interface
- dual
- intelligent mobile
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses an adaption method and device applied to different dual-card smartphones. According to an embodiment, the method comprises steps of obtaining a basic functional interface adaptive to each card of the dual-card smartphones of different models in a real phone environment; combining the basic functional interfaces fulfilling the same function into the same basic functional interface library; obtaining a basic functional interface name of each basic functional interface of the dual-card smartphones of the different models from each basic functional interface library, and generating a configuration file for recording configuration information of each model; and according to the configuration files, calling the recorded basic functional interfaces to verify whether the configuration files are adaptive to the dual-card smartphones of the different models. The method organizes the interfaces according to method forms and achieves configuration and dynamic adaption.
Description
Technical field
The application relates to communication technical field, is specifically related to smart mobile phone technical field, especially relates to
And apply the adaptation method between different dual-card intelligent mobile phones and device.
Background technology
Smartphone software developer is developing a versatility application program (such as mobile phone bodyguard)
Time, it would be desirable to run on smart mobile phone as much as possible.For dual-card intelligent mobile phone, because
Before Android 5.1 (Android 5.1) system, official does not provide double card function, hands
It is customized that machine manufacturer is each correlated with, and the mode calling A card and B card is different, former
The method come can not accomplish versatility, it is necessary to every money mobile phone is studied and adaptive targetedly, from
Oneself provide an each mobile phone of compatibility have double-card interface SDK (SDK,
Software Development Kit).Currently known double-card mobile phone has had money more than 1500,
And also increasing, complete adaptation is long-term and that workload is a huge job.Therefore,
How on code succinctly, dynamically, that the most adaptive so many type covers double card is adaptive
The each side of process.
Summary of the invention
The purpose of the application is to propose a kind of adaptation side applied between different dual-card intelligent mobile phones
Method and device, solve the technical problem that background section above is mentioned.
First aspect, this application provides a kind of adaptation applied between different dual-card intelligent mobile phones
Method, described method includes: obtain the different machines for adaptive described application under prototype environment
The basic function interface of every card of the dual-card intelligent mobile phone of type, wherein, described basic function connects
Mouth includes: telephony feature interface, SMS interface, network function interface;By different type of machines
Dual-card intelligent mobile phone realize said function basic function interface group synthesize same basic function
Interface library, wherein, different basic function interface libraries have different basic function interface library titles;
Each basis merit of the dual-card intelligent mobile phone of different type of machines is obtained from each basic function interface library
The basic function interface name of energy interface, generates joining of the configuration information for recording each type
Putting file, wherein, the configuration information of single type includes: type designation, realize this single machine
The basic function interface name of the basic function interface of type and the basic function interface library of its correspondence
Basic function interface library title;Recorded basic function interface is called according to described configuration file
The most adaptive with the dual-card intelligent mobile phone of each type to verify described configuration file.
In certain embodiments, described method also includes: is called by described configuration file and is remembered
The basic function interface of record is with test reconstruct or the application of amendment.
In certain embodiments, when the size of described configuration file exceedes default threshold value, will
Described configuration file splits into multiple configuration file.
In certain embodiments, described method also includes: the configuration information according to each type will be each
The basic function interface group of type synthesizes the adaptive class of each type;Adaptive class by described each type
Obscure encryption.
In certain embodiments, described method also includes: each type is obscured the adaptation after encryption
Class wrapper is to being suitable to installation kit that cloud mode downloads or updating in bag.
Second aspect, this application provides a kind of adaptation applied between different dual-card intelligent mobile phones
Device, described device includes: acquiring unit, is configured to obtain under prototype environment for fitting
Join the basic function interface of every card of the dual-card intelligent mobile phone of the different type of machines of described application, its
In, described basic function interface includes: telephony feature interface, SMS interface, network merit
Can interface;Interface unit, is configured to the dual-card intelligent mobile phone of different type of machines is realized same merit
The basic function interface group of energy synthesizes same basic function interface library, wherein, different bases merits
Can have different basic function interface library titles by interface library;Dispensing unit, is configured to from respectively
Each basic function of the dual-card intelligent mobile phone obtaining different type of machines in individual basic function interface library connects
The basic function interface name of mouth, generates the configuration literary composition being used for recording the configuration information of each type
Part, wherein, the configuration information of single type includes: type designation, realize this single type
The basic function interface name of basic function interface and the basis of the basic function interface library of its correspondence
Functional interface library name;Running unit, be configured to according to described configuration file call record
Basic function interface to verify that the described configuration file dual-card intelligent mobile phone whether with each type is fitted
Join.
In certain embodiments, described running unit is also configured to: by described configuration file
Call recorded basic function interface with test reconstruct or the application of amendment.
In certain embodiments, described dispensing unit is also configured to: when described configuration file
When size exceedes default threshold value, described configuration file is split into multiple configuration file.
In certain embodiments, described dispensing unit is also configured to: according to the configuration of each type
The basic function interface group of each type is synthesized the adaptive class of each type by information;By described each type
Adaptive class obscure encryption.
In certain embodiments, described dispensing unit is also configured to: each type is obscured encryption
After adaptive class wrapper to being suitable to installation kit that cloud mode downloads or updating in bag.
What the application provided applies the adaptation method between different dual-card intelligent mobile phones and device, logical
Cross by method form tissue interface, it is achieved the configuration of adaptation, mobilism.
Accompanying drawing explanation
By reading retouching in detail with reference to made non-limiting example is made of the following drawings
Stating, other features, purpose and advantage will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is to apply one of adaptation method between different dual-card intelligent mobile phones according to the application
The flow chart of individual embodiment;
Fig. 3 a is the succession applying the adaptive class between different dual-card intelligent mobile phones in prior art
Relation schematic diagram;
Fig. 3 b is to apply the adaptation method between different dual-card intelligent mobile phones according to the application
Configuration file generates a schematic diagram of process;
Fig. 4 is to apply one of adaptation method between different dual-card intelligent mobile phones according to the application
The schematic diagram of the application scenarios of individual embodiment;
Fig. 5 is to apply the adaptation method between different dual-card intelligent mobile phones again according to the application
The flow chart of one embodiment;
Fig. 6 is to apply one of adaptive device between different dual-card intelligent mobile phones according to the application
The structural representation of individual embodiment;
Fig. 7 is adapted for the structure of the computer system of the server for realizing the embodiment of the present application
Schematic diagram.
Detailed description of the invention
With embodiment, the application is described in further detail below in conjunction with the accompanying drawings.It is appreciated that
, specific embodiment described herein is used only for explaining related invention, rather than to this
Bright restriction.It also should be noted that, for the ease of describe, accompanying drawing illustrate only with
About the part that invention is relevant.
It should be noted that in the case of not conflicting, the embodiment in the application and embodiment
In feature can be mutually combined.Describe this below with reference to the accompanying drawings and in conjunction with the embodiments in detail
Application.
Fig. 1 shows and can apply the application's to apply the adaptation between different dual-card intelligent mobile phones
The exemplary system architecture 100 of the embodiment of method or adaptive device.
As it is shown in figure 1, system architecture 100 can include terminal unit 101,102,103,
Network 104 and server 105.Network 104 is in order at terminal unit 101,102,103 and
The medium of communication link is provided between server 105.Network 104 can include various connection class
Type, the most wired, wireless communication link or fiber optic cables etc..
Terminal unit 101,102 can be dual-card intelligent mobile phone, and server 105 passes through network
104 pairs of dual-card intelligent mobile phones 101,102 carry out adaptation and obtain dual-card intelligent mobile phone 101,102
The basic function interface of every card.Terminal unit 103 can be to store dual-card intelligent mobile phone
101, the computer of the basic function interface of 102 every cards.Server 105 is by network 104
Directly obtain every basic function blocked of dual-card intelligent mobile phone 101,102 from terminal unit 103 to connect
Mouthful.
Server 105 can be to provide the server of various service, for example, it is possible to simulation is relevant
Interface be dual-card intelligent mobile phone 101,102 provide regression test environment server.Server
105 can also is that the installation kit applied into dual-card intelligent mobile phone 101,102 offer or update bag
Server.Such as, dual-card intelligent mobile phone 101,102 sends to server 105 and downloads application
Installation kit or the request of renewal bag, the type of dual-card intelligent mobile phone 101,102 is carried in described request
Mark.Installation kit or renewal bag that server 105 is applied according to model identification matched and searched send
To dual-card intelligent mobile phone 101,102.
It should be noted that applying of being provided of the embodiment of the present application is at different dual-card intelligent mobile phones
Between adaptation method typically performed by server 105, correspondingly, apply at different dual-card intelligents
Adaptive device between mobile phone is generally positioned in server 105.
It should be understood that the number of terminal unit, network and the server in Fig. 1 is only signal
Property.According to realizing needs, can have any number of terminal unit, network and server.
With continued reference to Fig. 2, it is shown that applying between different dual-card intelligent mobile phones according to the application
The flow chart of an embodiment of adaptation method.Described applies at different dual-card intelligent mobile phones
Between adaptation method, comprise the following steps:
Step 201, obtains the double card intelligence of the different type of machines being used for adaptation application under prototype environment
The basic function interface of every card of energy mobile phone.
In the present embodiment, the adaptation method between different dual-card intelligent mobile phones is applied to run on it
On electronic equipment (the such as server shown in Fig. 1) can by wired connection mode or
Radio connection receives the dual-card intelligent mobile phone of the different type of machines of adaptation application under prototype environment
Every card basic function interface message.The basic function interface of every card is typically with instead
Penetrate or reverse method obtains.
In the present embodiment, basic function interface includes: telephony feature interface, SMS connect
Mouth, network function interface, wherein, telephony feature interface, SMS interface, network function
Interface can be one or more, and basic function interface may also include other relevant to Mobile phone card
Functional interface.
Step 202, realizes the basic function of said function by the dual-card intelligent mobile phone of different type of machines
Interface group synthesizes same basic function interface library.
In the present embodiment, different basic function interface libraries have different basic function interface libraries
Title.Such as, type A: telephony feature interface is A-Call, and SMS interface is
A-SendMessage, network function interface is A-GetNetworkType;Type B: phone
Functional interface is B-Call, and SMS interface is B-SendMessage, network function interface
For B-GetNetworkType.By telephony feature interface and the telephony feature of type B of type A
Combination of interfaces is combined into telephony feature interface library, and named Call, this telephony feature together
Interface library includes telephony feature interface A-Call and B-Call.The SMS of type A is connect
Mouth is combined into SMS interface library together with the SMS combination of interfaces of type B, and orders
Entitled SendMessage, this SMS interface library includes SMS interface
A-SendMessage and B-SendMessage;By network function interface and the type B of type A
Network function combination of interfaces be combined into network function interface library together, and named
GetNetworkType, this network function interface library includes the interface of network function
A-GetNetworkType and B-GetNetworkType.
Step 203, obtains the dual-card intelligent hands of different type of machines from each basic function interface library
The basic function interface name of each basic function interface of machine, generates and is used for recording each type
The configuration file of configuration information.
In the present embodiment, the configuration information of single type includes: type designation, realize this list
The basic function interface name of the basic function interface of individual type and the basic function interface of its correspondence
The basic function interface library title in storehouse.Various types share a configuration file.
In some optional implementations of the present embodiment, when the size of configuration file exceedes pre-
If threshold value time, configuration file is split into multiple configuration file.Such as, pre-set when joining
Two content unduplicated configuration files are just splitted into when putting file more than 3KB.
In some optional implementations of the present embodiment, weight in configuration file can be automatically analyzed
Multiple configuration information, merges and has the type of the information of similarly configuring and delete the configuration information of repetition
After more new configuration file.So can reduce configuration file size.
Step 204, calls recorded basic function interface to verify configuration according to configuration file
File is the most adaptive with the dual-card intelligent mobile phone of each type.
In the present embodiment, verify and given birth in the case of there is no the code of amendment or reconstruction applications
Can the configuration file that become adaptive with the dual-card intelligent mobile phone of each type.Then adaptation is passed through
Configuration file is used for regression test.
In some optional implementations of the present embodiment, by configuration file call record
Basic function interface with test reconstruct or amendment application.Now there is no the situation of prototype
Under, the code of amendment or reconstruction applications can be tested, reach to test under prototype environment
Identical effect.Such as, PC is set up mock (simulation) regression test environment, presses
According to having verified that the adaptation code of reconstruct or amendment is tested by the configuration file passed through, use
Test code runs adaptive interface, simulates the object relied on that runs of these interfaces, output
Test data consistent with the test data predicting that we input, it is ensured that adaptation code exists
Amendment and reconstruct in the case of inorganic type ensure quality.
It is prior art to be applied between different dual-card intelligent mobile phones with continued reference to Fig. 3 a, Fig. 3 a
The schematic diagram 300 of inheritance of adaptation method class.The method has an open interface 301
With the base class 302 of interface, the adaptive class of the type A of brand X realizes 305, the machine of brand X
The adaptive class of type B realize 306 and the adaptive class of type C of brand Y realize 307, brand X
Type B adaptation class realize 306 and the adaptive class of type C of brand Y realize having between 307
One common base class of the appointment of common code realizes M304.Between different types, in order to
Multiplexing code and avoid redundancy, occurs in that disagreeableness inheritance, if occurring a machine again
Type, finds after adaptation that telephony feature interface method and SMS interface method realize with base class
N303 is identical, and it is identical that network function interface method realizes M304 with base class, then on java code
Just cannot followed by holding, can only replicating code completely, occur in that redundancy, very inflexible.
The application proposes a kind of adaptation side applied between different dual-card intelligent mobile phones to this problem
Method.Fig. 3 b is to apply the adaptation method between different dual-card intelligent mobile phones according to the present embodiment
Configuration file generates a schematic diagram 300 ' of process.As shown in Figure 3 b, although by public affairs
Interface 311 calls altogether, but but without the base class 312 of interface 311 in adaptation.In Fig. 3 b,
Telephony feature interface library 314 includes the telephony feature interface of each type, SMS interface library 315
Including the SMS interface of each type, network function interface library 316 includes the network of each type
Functional interface.Double card from the inner acquisition different type of machines of basic function interface library 314,315 and 316
The basic function interface name of the basic function interface of smart mobile phone, generates and is used for recording each machine
The configuration file 313 of the configuration information of type.
With further reference to Fig. 4, it illustrates the adaptation side applied between different dual-card intelligent mobile phones
The application scenarios schematic diagram 400 of one embodiment of method.In the application scenarios of Fig. 4, test
Application whether can adaptive different dual-card intelligent mobile phone time, server 401 runs application
Adaptive test code 402, adaptive test code 402 calling interface 403 of application, analog configuration
In file 404 corresponding type the dependence of various basic function interfaces and call realization, wherein,
Various basic function interfaces are stored in basic function interface library 405, basic function interface library 405
Including telephony feature storehouse 406, SMS storehouse 407 and network function storehouse 408.If this application
Can correctly call the different telephony feature interface of dual-card intelligent mobile phone, SMS interface and net
Network functional interface, then this application can adaptive different dual-card intelligent mobile phones, the data of output are with defeated
The test data predicting entered is consistent, then can ensure that adaptation code repairing in the case of inorganic type
Change and reconstruction quality.
Fig. 5 is to apply the adaptation method between different dual-card intelligent mobile phones again according to the application
The flow chart of one embodiment.Described applies the adaptation method between different dual-card intelligent mobile phones,
Comprise the following steps:
Step 501, obtains the double card intelligence of the different type of machines being used for adaptation application under prototype environment
The basic function interface of every card of energy mobile phone.
Step 502, realizes the basic function of said function by the dual-card intelligent mobile phone of different type of machines
Interface group synthesizes same basic function interface library.
Step 503, obtains the dual-card intelligent hands of different type of machines from each basic function interface library
The basic function interface name of each basic function interface of machine, generates and is used for recording each type
The configuration file of configuration information.
Step 504, calls recorded basic function interface to verify configuration according to configuration file
File is the most adaptive with the dual-card intelligent mobile phone of each type.
Owing to step 201-204 in step 501-504 and Fig. 2 is essentially identical, therefore at this
Repeat no more.
Step 505, according to the configuration information of each type by the basic function combination of interfaces of each type
Become the adaptive class of each type.
In the present embodiment, the configuration information of single type includes: type designation, realize this list
The basic function interface name of the basic function interface of individual type and the basic function interface of its correspondence
The basic function interface library title in storehouse.From basic function interface library, this is found for certain type
Basic function interface group in the configuration information of type synthesizes the adaptive class of this type.
Step 506, obscures encryption by the adaptive class of each type.
In the present embodiment, the encryption technology adaptive class to each type is obscured by common java
Carry out obscuring encryption and prevent decompiling, it is ensured that code safety.
Step 507, the adaptive class wrapper after each type is obscured encryption is downloaded to being suitable to cloud mode
Installation kit or update bag in.
In the present embodiment, (such as, adaptation code is not directly fixed in installation program of client
Android installation kit) in, and when running adaptation code, move with jar (java application) form
State loads.During adaptation code upgrading, dispose on the server, client downloading-running oneself
The code of type.So can reduce installation kit, also can save customer flow, it is ensured that generation simultaneously
The safety of code.
From figure 5 it can be seen that compared with the embodiment that Fig. 2 is corresponding, answering in the present embodiment
The flow process 500 being used in the adaptation method between different dual-card intelligent mobile phone highlights the peace generating encryption
Dress bag or the step of renewal bag.Thus, adaptation code can be added by the scheme that the present embodiment describes
Close, it is ensured that code security, and the adaptation code only loading this type can save customer flow,
Issue dynamic load with jar form and ensure can be applied to faster when there being adaptive achievement product
In.
With further reference to Fig. 6, as to the realization of method shown in above-mentioned each figure, the application provides
An a kind of embodiment of the adaptive device applied between different dual-card intelligent mobile phones, this device
Embodiment is corresponding with the embodiment of the method shown in Fig. 2, and this device specifically can apply to various
In electronic equipment.
As shown in Figure 6, the adaptation between different dual-card intelligent mobile phones is applied described in the present embodiment
Device 600 includes: acquiring unit 601, interface unit 602, dispensing unit 603 and operation are single
Unit 604.Wherein, acquiring unit 601 is configured to obtain under prototype environment for adaptive institute
State the basic function interface of every of dual-card intelligent mobile phone card of the different type of machines of application, wherein,
Described basic function interface includes: telephony feature interface, SMS interface, network function connect
Mouthful;Interface unit 602 is configured to the dual-card intelligent mobile phone of different type of machines is realized said function
Basic function interface group synthesize same basic function interface library, wherein, different basic functions
Interface library has different basic function interface library titles;Dispensing unit 603 is configured to from respectively
Each basic function of the dual-card intelligent mobile phone obtaining different type of machines in individual basic function interface library connects
The basic function interface name of mouth, generates the configuration literary composition being used for recording the configuration information of each type
Part, wherein, the configuration information of single type includes: type designation, realize this single type
The basic function interface name of basic function interface and the basis of the basic function interface library of its correspondence
Functional interface library name;Running unit 604 is configured to call according to described configuration file remembered
The basic function interface of record with verify described configuration file whether with the dual-card intelligent mobile phone of each type
Adaptive.
In the optional implementation of in the present embodiment some, running unit 604 also configures that use
In: call what recorded basic function interface reconstructed with test or revised by configuration file
Application.
In the optional implementation of in the present embodiment some, dispensing unit 603 also configures that use
In: when exceeding default threshold value when the size of configuration file, configuration file is split into multiple joining
Put file.
In the optional implementation of in the present embodiment some, dispensing unit 603 also configures that use
In: according to the configuration information of each type, the basic function interface group of each type is synthesized each type
Adaptive class;The adaptive class of each type is obscured encryption.
In the optional implementation of in the present embodiment some, dispensing unit 603 also configures that use
In: the adaptive class wrapper after each type is obscured encryption to be suitable to installation kit that cloud mode downloads or
Update in bag.
Below with reference to Fig. 7, it illustrates the server that is suitable to for realizing the embodiment of the present application
The structural representation of computer system 700.
As it is shown in fig. 7, computer system 700 includes CPU (CPU) 701, its
Can be according to the program being stored in read only memory (ROM) 702 or from storage part 708
It is loaded into the program in random access storage device (RAM) 703 and performs various suitable action
And process.In RAM 703, also storage has system 700 to operate required various program sums
According to.CPU 701, ROM702 and RAM 703 are connected with each other by bus 704.Input
/ output (I/O) interface 705 is also connected to bus 704.
It is connected to I/O interface 705: include the importation 706 of keyboard, mouse etc. with lower component;
Including such as cathode ray tube (CRT), liquid crystal display (LCD) etc. and speaker etc.
Output part 707;Storage part 708 including hard disk etc.;And include such as LAN card,
The communications portion 709 of the NIC of modem etc..Communications portion 709 is via such as
The network of the Internet performs communication process.Driver 710 is connected to I/O interface also according to needs
705.Detachable media 711, such as disk, CD, magneto-optic disk, semiconductor memory etc.,
Be arranged on as required in driver 710, in order to the computer program read from it according to
Needs are mounted into storage part 708.
Especially, according to embodiment of the disclosure, the process described above with reference to flow chart is permissible
It is implemented as computer software programs.Such as, embodiment of the disclosure and include a kind of computer journey
Sequence product, it includes the computer program being tangibly embodied on machine readable media, described meter
Calculation machine program comprises the program code for performing the method shown in flow chart.In such enforcement
In example, this computer program can be downloaded and installed from network by communications portion 709,
And/or be mounted from detachable media 711.At this computer program by CPU
(CPU), during 701 execution, the above-mentioned functions limited in the present processes is performed.
Flow chart in accompanying drawing and block diagram, it is illustrated that according to the various embodiment of the application system,
Architectural framework in the cards, function and the operation of method and computer program product.This point
On, each square frame in flow chart or block diagram can represent a unit, program segment or code
A part, a part for described unit, program segment or code comprise one or more for
Realize the executable instruction of the logic function of regulation.It should also be noted that at some as replacement
In realization, the function marked in square frame can also be sent out to be different from the order marked in accompanying drawing
Raw.Such as, two square frames succeedingly represented can essentially perform substantially in parallel, they
Sometimes can also perform in the opposite order, this is depending on involved function.It is also noted that
It is, the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart
Combination, can realize by the special hardware based system of the function or operation that perform regulation,
Or can realize with the combination of specialized hardware with computer instruction.
Being described in the embodiment of the present application involved unit can be real by the way of software
Existing, it is also possible to realize by the way of hardware.Described unit can also be arranged on process
In device, for example, it is possible to be described as: a kind of processor includes acquiring unit, interface unit, joins
Put unit and running unit.Wherein, the title of these unit be not intended that under certain conditions right
The restriction of this unit itself, such as, acquiring unit is also described as " obtaining at prototype ring
The basic merit of every card of the dual-card intelligent mobile phone of the different type of machines of adaptive described application it is used under border
The unit of energy interface ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media,
This nonvolatile computer storage media can be described in above-described embodiment included in device
Nonvolatile computer storage media;Can also be individualism, be unkitted allocate in terminal non-
Volatile computer storage medium.Above-mentioned nonvolatile computer storage media storage have one or
The multiple program of person, when one or more program is performed by an equipment so that described
Equipment: obtain the dual-card intelligent hands of the different type of machines being used for adaptive described application under prototype environment
The basic function interface of every card of machine, wherein, described basic function interface includes: phone merit
Can interface, SMS interface, network function interface;By the dual-card intelligent mobile phone of different type of machines
Realize said function basic function interface group synthesize same basic function interface library, wherein,
Different basic function interface libraries have different basic function interface library titles;From each basis merit
The basis of each basic function interface of the dual-card intelligent mobile phone of different type of machines is obtained in energy interface library
Functional interface title, generation is for recording the configuration file of the configuration information of each type, wherein,
The configuration information of single type includes: type designation, the basic function realizing this single type connect
The basic function interface name of mouth and the basic function interface library of the basic function interface library of its correspondence
Title;Recorded basic function interface is called to verify described configuration according to described configuration file
File is the most adaptive with the dual-card intelligent mobile phone of each type.
Above description is only the preferred embodiment of the application and saying institute's application technology principle
Bright.It will be appreciated by those skilled in the art that invention scope involved in the application, do not limit
In the technical scheme of the particular combination of above-mentioned technical characteristic, also should contain simultaneously without departing from
In the case of described inventive concept, above-mentioned technical characteristic or its equivalent feature carry out combination in any
And other technical scheme formed.Such as features described above and (but not limited to) disclosed herein
The technical characteristic with similar functions is replaced mutually and the technical scheme that formed.
Claims (10)
1. the adaptation method applied between different dual-card intelligent mobile phones, it is characterised in that bag
Include:
Obtain the dual-card intelligent mobile phone of the different type of machines being used for adaptive described application under prototype environment
Every card basic function interface, wherein, described basic function interface includes: telephony feature
Interface, SMS interface, network function interface;
The dual-card intelligent mobile phone of different type of machines is realized the basic function interface group synthesis of said function
Same basic function interface library, wherein, different basic function interface libraries have different bases
Functional interface library name;
Each base of the dual-card intelligent mobile phone of different type of machines is obtained from each basic function interface library
The basic function interface name of plinth functional interface, generates the configuration information for recording each type
Configuration file, wherein, the configuration information of single type includes: type designation, realize this list
The basic function interface name of the basic function interface of individual type and the basic function interface of its correspondence
The basic function interface library title in storehouse;
Recorded basic function interface is called with checking described configuration literary composition according to described configuration file
Part is the most adaptive with the dual-card intelligent mobile phone of each type.
The adaptation side applied between different dual-card intelligent mobile phones the most according to claim 1
Method, it is characterised in that described method also includes:
Call recorded basic function interface by described configuration file with test reconstruct or to repair
The application changed.
The adaptation side applied between different dual-card intelligent mobile phones the most according to claim 1
Method, it is characterised in that when the size of described configuration file exceedes default threshold value, by described
Configuration file splits into multiple configuration file.
The adaptation side applied between different dual-card intelligent mobile phones the most according to claim 1
Method, it is characterised in that described method also includes:
The basic function interface group of each type is synthesized each type by the configuration information according to each type
Adaptive class;
The adaptive class of described each type is obscured encryption.
The adaptation side applied between different dual-card intelligent mobile phones the most according to claim 4
Method, it is characterised in that described method also includes:
Adaptive class wrapper after each type is obscured encryption to be suitable to installation kit that cloud mode downloads or
Update in bag.
6. the adaptive device applied between different dual-card intelligent mobile phones, it is characterised in that bag
Include:
Acquiring unit, is configured to obtain under prototype environment for the difference of adaptive described application
The basic function interface of every card of the dual-card intelligent mobile phone of type, wherein, described basic function
Interface includes: telephony feature interface, SMS interface, network function interface;
Interface unit, is configured to the dual-card intelligent mobile phone of different type of machines is realized said function
Basic function interface group synthesizes same basic function interface library, and wherein, different basic functions connect
Mouth storehouse has different basic function interface library titles;
Dispensing unit, is configured to from each basic function interface library obtain the double of different type of machines
The basic function interface name of each basic function interface of card smart mobile phone, generates for record
The configuration file of the configuration information of each type, wherein, the configuration information of single type includes:
Type designation, realize the basic function interface name of the basic function interface of this single type and its
The basic function interface library title of corresponding basic function interface library;
Running unit, is configured to call recorded basic function according to described configuration file and connects
Mouth is the most adaptive with the dual-card intelligent mobile phone of each type to verify described configuration file.
The adaptive dress applied between different dual-card intelligent mobile phones the most according to claim 6
Put, it is characterised in that described running unit is also configured to:
Call recorded basic function interface by described configuration file with test reconstruct or to repair
The application changed.
The adaptive dress applied between different dual-card intelligent mobile phones the most according to claim 6
Put, it is characterised in that described dispensing unit is also configured to:
When the size of described configuration file exceedes default threshold value, described configuration file is split
Become multiple configuration file.
The adaptive dress applied between different dual-card intelligent mobile phones the most according to claim 6
Put, it is characterised in that described dispensing unit is also configured to:
The basic function interface group of each type is synthesized each type by the configuration information according to each type
Adaptive class;
The adaptive class of described each type is obscured encryption.
The adaptive dress applied between different dual-card intelligent mobile phones the most according to claim 9
Put, it is characterised in that described dispensing unit is also configured to:
Adaptive class wrapper after each type is obscured encryption to be suitable to installation kit that cloud mode downloads or
Update in bag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610249050.2A CN105933887B (en) | 2016-04-20 | 2016-04-20 | Apply the adaptation method and device between different dual-card intelligent mobile phones |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610249050.2A CN105933887B (en) | 2016-04-20 | 2016-04-20 | Apply the adaptation method and device between different dual-card intelligent mobile phones |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105933887A true CN105933887A (en) | 2016-09-07 |
CN105933887B CN105933887B (en) | 2019-04-26 |
Family
ID=56839505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610249050.2A Active CN105933887B (en) | 2016-04-20 | 2016-04-20 | Apply the adaptation method and device between different dual-card intelligent mobile phones |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933887B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857656A (en) * | 2019-01-18 | 2019-06-07 | 深圳壹账通智能科技有限公司 | Adaptation method, device, computer equipment and storage medium based on test |
CN112596804A (en) * | 2020-11-20 | 2021-04-02 | 珠海读书郎网络教育有限公司 | Function configuration method and system |
US20220327200A1 (en) * | 2019-07-26 | 2022-10-13 | Idemia Identity & Security | Dynamic adaption of a secure element execution environment to profiles |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110151858A1 (en) * | 2009-12-17 | 2011-06-23 | Shenzhen Futaihong Precision Industry Co., Ltd. | Wireless communication device |
CN102455907A (en) * | 2010-11-02 | 2012-05-16 | 上海晨兴希姆通电子科技有限公司 | Method for designing multi-card mobile phone application software |
CN103595867A (en) * | 2013-11-14 | 2014-02-19 | 北京奇虎科技有限公司 | Application program implementation method and device based on multi-card recognition |
CN105183484A (en) * | 2015-09-28 | 2015-12-23 | 北京奇虎科技有限公司 | Method and device for compatibility of multi-version application programming interface |
-
2016
- 2016-04-20 CN CN201610249050.2A patent/CN105933887B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110151858A1 (en) * | 2009-12-17 | 2011-06-23 | Shenzhen Futaihong Precision Industry Co., Ltd. | Wireless communication device |
CN102455907A (en) * | 2010-11-02 | 2012-05-16 | 上海晨兴希姆通电子科技有限公司 | Method for designing multi-card mobile phone application software |
CN103595867A (en) * | 2013-11-14 | 2014-02-19 | 北京奇虎科技有限公司 | Application program implementation method and device based on multi-card recognition |
CN105183484A (en) * | 2015-09-28 | 2015-12-23 | 北京奇虎科技有限公司 | Method and device for compatibility of multi-version application programming interface |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857656A (en) * | 2019-01-18 | 2019-06-07 | 深圳壹账通智能科技有限公司 | Adaptation method, device, computer equipment and storage medium based on test |
US20220327200A1 (en) * | 2019-07-26 | 2022-10-13 | Idemia Identity & Security | Dynamic adaption of a secure element execution environment to profiles |
CN112596804A (en) * | 2020-11-20 | 2021-04-02 | 珠海读书郎网络教育有限公司 | Function configuration method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105933887B (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10620944B2 (en) | Cloud-based decision management platform | |
CN110502222B (en) | AAR method, apparatus, medium, and device for outbound dependency on internal base repository | |
CN105893850A (en) | Bug fixing method and device | |
CN104965712B (en) | Application program method for reinforcing and protecting, device and mobile terminal | |
CN104331662B (en) | Android malicious application detection method and device | |
US8806437B2 (en) | Automated testing process | |
CN105718313A (en) | Application operation method and device | |
CN104200159B (en) | Configure the method and device of the authority of application program | |
CN112162753A (en) | Software deployment method and device, computer equipment and storage medium | |
CN105094878B (en) | A kind of method and apparatus of integrated system library file | |
CN110659206A (en) | Simulation architecture establishing method, device, medium and electronic equipment based on microservice | |
CN105653933A (en) | Plugin loading method and device | |
US10521199B2 (en) | System and method for developing mobile based applications using model driven development | |
CN109117143A (en) | A kind of application dispositions method and system | |
CN105933887A (en) | Adaption method and device applied to different dual-card smartphones | |
CN117093286B (en) | Plug-in generation method, device, equipment and computer readable storage medium | |
CN109033823A (en) | Method and apparatus for intelligent contract to be verified and run in block chain network | |
CN109857432A (en) | A kind of hot update method and device of game application | |
CN107508846A (en) | The update method and system and terminal device of applications client | |
CN105138399A (en) | Cross-platform mobile Web application runtime engine | |
CN110162310B (en) | Plug-in interface test method and device, computer equipment and storage medium | |
CN113495498A (en) | Simulation method, simulator, device, and medium for hardware device | |
Dürschmid et al. | Towards architectural styles for Android app software product lines | |
CN109298869A (en) | A kind of generation method and relevant apparatus of target channel packet | |
CN114677138B (en) | Data processing method, device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |