Summary of the invention
For this reason, it may be necessary to provide the technical scheme that a kind of Android simulator application program runs, in order to solve Android simulator owing to loading default library file to run application program, causing cannot be compatible between application program and simulator, it is easy to the problem made a mistake。
For achieving the above object, a kind of Android simulator application program operation method is inventor provided, it is characterised in that said method comprising the steps of:
Android simulator resolves application program, and obtains the identification information that application program is corresponding, sends identification information to server;
The server identification information according to application program and the corresponding relation of configuration information, send configuration information corresponding for application program to Android simulator;
Android simulator receives configuration information, and loads the library file that this configuration information is corresponding from default memory element。
Further, the identification information that described application program is corresponding is the bag name that application program is corresponding。
Further, described configuration information is the CPU architecture type running this application program, then described in, " identification information of application program and the corresponding relation of configuration information " including: the Bao Mingyu of application program runs the corresponding relation of the CPU architecture type of this application program。
Further, described CPU architecture type includes x86 type, armeabi type and armeabi-v7a type。
Further, described method also includes:
Identification information corresponding for application program is sent to server by Android simulator after md5 encrypts。
Inventor additionally provides a kind of Android simulator application program running gear, and described device is connected with server, and described device includes resolution unit, communication unit and library file loading unit;
Described resolution unit is used for resolving application program, and obtains the identification information that application program is corresponding;
Described communication unit is for sending identification information to server;
Configuration information corresponding for application program, for the corresponding relation of the identification information according to application program with configuration information, is sent to Android simulator by described server;
Described communication unit is additionally operable to receive configuration information, and described library file loading unit for loading the library file that this configuration information is corresponding from default memory element。
Further, the identification information that described application program is corresponding is the bag name that application program is corresponding。
Further, described configuration information is the CPU architecture type running this application program, then described in, " identification information of application program and the corresponding relation of configuration information " including: the Bao Mingyu of application program runs the corresponding relation of the CPU architecture type of this application program。
Further, described CPU architecture type includes x86 type, armeabi type and armeabi-v7a type。
Further, described device also includes ciphering unit, and described ciphering unit is for carrying out md5 encryption to the identification information that the application program that resolution unit is acquired is corresponding。
It is different from prior art, Android simulator application program operation method described in technique scheme and device, described method is applied to described device, said method comprising the steps of: first Android simulator resolves application program, and obtain the identification information that application program is corresponding, identification information is sent to server;Then the server identification information according to application program and the corresponding relation of configuration information, send configuration information corresponding for application program to Android simulator;Then Android simulator receives configuration information, and loads the library file that this configuration information is corresponding from default memory element。Owing to the library file that Android simulator is loaded is that the configuration information sent according to server goes to load, and the identification information one_to_one corresponding of configuration information and application program to be run, thus can ensure that the library file that Android simulator loads is the library file suitable with application program to be run, be not suitable for causing problem that cannot be compatible thus solving Android application program due to library file。
Detailed description of the invention
By describing the technology contents of technical scheme, structural feature in detail, being realized purpose and effect, below in conjunction with specific embodiment and coordinate accompanying drawing to be explained in detail。
Refer to Fig. 2, for the flow chart of the Android simulator application program operation method described in one embodiment of the invention。Described method may be used for solving the problem that Android application program is incompatible with Android simulator, said method comprising the steps of:
Initially enter step S201 Android simulator and resolve application program, and obtain the identification information that application program is corresponding, identification information is sent to server。In the present embodiment, the identification information that described application program is corresponding is the bag name that application program is corresponding。Each Android application program has the bag name of its correspondence, and Android simulator can resolve the bag name of application program to be installed, and sends bag name to server。In the present embodiment, identification information corresponding for application program is sent to server by Android simulator after md5 encrypts, and so can improve the safety in the bag name transmitting procedure of application program。
Then can enter the corresponding relation of the step S202 server identification information according to application program and configuration information, configuration information corresponding for application program is sent to Android simulator。In the present embodiment, described configuration information is the CPU architecture type running this application program, then described in, " identification information of application program and the corresponding relation of configuration information " including: the Bao Mingyu of application program runs the corresponding relation of the CPU architecture type of this application program。The corresponding relation of identification information and configuration information can be stored in server with the form of key-value pair in advance。In order to prevent server by malicious attack, Android simulator accesses server and adopts the POST request mode of HTTP protocol, identification information after encryption also includes check code, only after server is verified by check code, configuration information corresponding for this identification information just can be sent back Android simulator by server。Specifically, after server receives the request that Android simulator sends (after namely receiving identification information), the character string of the identification information after encryption can be obtained, and the character string (bag name) of the identification information obtained and check code can be carried out md5 calculating, if computation structure is with default identical, then by verifying, server is by the mapping table of the identification information of inquiry application Yu configuration information, and configuration information corresponding for the identification information by verifying is sent back Android simulator。
In the present embodiment, described CPU architecture type includes x86 type, armeabi type and armeabi-v7a type。When server does not inquire the key-value pair of Bao Mingyu CPU architecture type of application program, then server can return a null character string to Android simulator, after Android simulator receives null character string, the library file of the CPU architecture type of acquiescence can be loaded from memory element。In the present embodiment, the library file that library file is x86 type of the CPU architecture type of described acquiescence。When server inquires the key-value pair of Bao Mingyu CPU architecture type of application program, CPU architecture type corresponding for this bag name can be sent to Android simulator。
Then can enter step S203 Android simulator and receive configuration information, and from default memory element, load the library file that this configuration information is corresponding。Described default memory element is the memory element of storage Android application bag。The library file that Android is applied in the storage catalogue wrapped and be there is x86 type, armeabi type is three kinds different with armeabi-v7a type, after Android simulator receives CPU architecture type, library file corresponding to this receipts CPU architecture type can be loaded from the storage catalogue of Zhuo Yingyong bag in Android simulator。
Android simulator application program operation method described in technique scheme, described method is applied to described device, said method comprising the steps of: first Android simulator resolves application program, and obtains the identification information that application program is corresponding, identification information is sent to server;Then the server identification information according to application program and the corresponding relation of configuration information, send configuration information corresponding for application program to Android simulator;Then Android simulator receives configuration information, and loads the library file that this configuration information is corresponding from default memory element。Owing to the library file that Android simulator is loaded is that the configuration information sent according to server goes to load, and the identification information one_to_one corresponding of configuration information and application program to be run, thus can ensure that the library file that Android simulator loads is the library file suitable with application program to be run, be not suitable for causing problem that cannot be compatible thus solving Android application program due to library file。
Refer to Fig. 1, for the schematic diagram of Android simulator application program running gear described in another embodiment of the present invention。Described device is connected with server 105, and described device includes resolution unit 101, communication unit 103 and library file loading unit 104;
Described resolution unit 101 is used for resolving application program, and obtains the identification information that application program is corresponding;
Described communication unit 103 is for sending identification information to server;
Configuration information corresponding for application program, for the corresponding relation of the identification information according to application program with configuration information, is sent to Android simulator by described server 105;
Described communication unit 103 is additionally operable to receive configuration information, and described library file loading unit 104 is for loading, from default memory element 106, the library file that this configuration information is corresponding。
In the process using Android simulator application program running gear, first resolution unit resolves application program, and obtains the identification information that application program is corresponding, and identification information is sent to server by communication unit。In the present embodiment, the identification information that described application program is corresponding is the bag name that application program is corresponding。Each Android application program has the bag name of its correspondence, and Android simulator can resolve the bag name of application program to be installed, and sends bag name to server。As it is shown in figure 1, described device also includes ciphering unit 102, described ciphering unit 102 is for carrying out md5 encryption to the identification information that the application program that resolution unit is acquired is corresponding。
Then the server identification information according to application program and the corresponding relation of configuration information, send configuration information corresponding for application program to Android simulator。In the present embodiment, described configuration information is the CPU architecture type running this application program, then described in, " identification information of application program and the corresponding relation of configuration information " including: the Bao Mingyu of application program runs the corresponding relation of the CPU architecture type of this application program。The corresponding relation of identification information and configuration information can be stored in server with the form of key-value pair in advance。In order to prevent server by malicious attack, Android simulator accesses server and adopts the POST request mode of HTTP protocol, identification information after encryption also includes check code, only after server is verified by check code, configuration information corresponding for this identification information just can be sent back Android simulator by server。Specifically, after server receives the request that Android simulator sends (after namely receiving identification information), the character string of the identification information after encryption can be obtained, and the character string (bag name) of the identification information obtained and check code can be carried out md5 calculating, if computation structure is with default identical, then by verifying, server is by the mapping table of the identification information of inquiry application Yu configuration information, and configuration information corresponding for the identification information by verifying is sent back Android simulator。
In the present embodiment, described CPU architecture type includes x86 type, armeabi type and armeabi-v7a type。When server does not inquire the key-value pair of Bao Mingyu CPU architecture type of application program, then server can return a null character string to Android simulator, after Android simulator receives null character string, the library file of the CPU architecture type of acquiescence can be loaded from memory element。In the present embodiment, the library file that library file is x86 type of the CPU architecture type of described acquiescence。When server inquires the key-value pair of Bao Mingyu CPU architecture type of application program, CPU architecture type corresponding for this bag name can be sent to Android simulator。
Then communication unit receives configuration information, and library file loading unit loads the library file that this configuration information is corresponding from default memory element。Described default memory element is the memory element of storage Android application bag。The library file that Android is applied in the storage catalogue wrapped and be there is x86 type, armeabi type is three kinds different with armeabi-v7a type, after Android simulator receives CPU architecture type, library file corresponding to this receipts CPU architecture type can be loaded from the storage catalogue of Zhuo Yingyong bag in Android simulator。
Android simulator application program operation method described in technique scheme and device, described method is applied to described device, said method comprising the steps of: first Android simulator resolves application program, and obtains the identification information that application program is corresponding, identification information is sent to server;Then the server identification information according to application program and the corresponding relation of configuration information, send configuration information corresponding for application program to Android simulator;Then Android simulator receives configuration information, and loads the library file that this configuration information is corresponding from default memory element。Owing to the library file that Android simulator is loaded is that the configuration information sent according to server goes to load, and the identification information one_to_one corresponding of configuration information and application program to be run, thus can ensure that the library file that Android simulator loads is the library file suitable with application program to be run, be not suitable for causing problem that cannot be compatible thus solving Android application program due to library file。
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially。And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or terminal unit not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or terminal unit。When there is no more restriction, statement " including ... " or " comprising ... " key element limited, it is not excluded that there is also other key element in including the process of described key element, method, article or terminal unit。Additionally, in this article, " more than ", " less than ", " exceeding " etc. be interpreted as not including this number;" more than ", " below ", " within " etc. be interpreted as including this number。
Those skilled in the art are it should be appreciated that the various embodiments described above can be provided as method, device or computer program。These embodiments can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect。All or part of step in the method that the various embodiments described above relate to can be completed by the hardware that program carrys out instruction relevant, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method。Described computer equipment, includes but not limited to: personal computer, server, general purpose computer, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.;Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.。
The various embodiments described above are that flow chart and/or block diagram with reference to the method according to embodiment, equipment (system) and computer program describe。It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame。These computer program instructions can be provided to produce a machine to the processor of computer equipment so that the instruction performed by the processor of computer equipment is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions may be alternatively stored in the computer equipment readable memory that computer equipment can be guided to work in a specific way, the instruction making to be stored in this computer equipment readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction that performs on a computing device provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
Although the various embodiments described above being described; but those skilled in the art are once know basic creative concept; then these embodiments can be made other change and amendment; so the foregoing is only embodiments of the invention; not thereby the scope of patent protection of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include within the scope of patent protection of the present invention。