CN107360265B - A kind of equipment exclusive identification code acquisition methods, device and mobile terminal - Google Patents
A kind of equipment exclusive identification code acquisition methods, device and mobile terminal Download PDFInfo
- Publication number
- CN107360265B CN107360265B CN201710385703.4A CN201710385703A CN107360265B CN 107360265 B CN107360265 B CN 107360265B CN 201710385703 A CN201710385703 A CN 201710385703A CN 107360265 B CN107360265 B CN 107360265B
- Authority
- CN
- China
- Prior art keywords
- identification code
- exclusive identification
- equipment exclusive
- mobile terminal
- target
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/35—Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
Abstract
The invention discloses a kind of equipment exclusive identification code acquisition methods, device and mobile terminals, applied to Mobile Development field, it include: to read equipment exclusive identification code relevant to the target application from M target position of mobile terminal respectively when detecting the target application starting on mobile terminal;If reading N number of equipment exclusive identification code relevant to target application, target device exclusive identification code is identified from N number of equipment exclusive identification code, target device exclusive identification code is sent to server, if read less than equipment exclusive identification code relevant to target application, new equipment exclusive identification code is generated according to the application related information of target application, new equipment exclusive identification code is stored respectively to M target position, new equipment exclusive identification code is sent to server.It solves the technical issues of existing mode inefficient for obtaining the unique ID of equipment, poor compatibility through the invention, and then realizes efficient, accurate acquisition equipment exclusive identification code.
Description
Technical field
The present invention relates to Mobile Development field more particularly to a kind of equipment exclusive identification code acquisition methods, device and movement
Terminal.
Background technique
Currently, can generate unique ID an of equipment in the equipment installed for the application on mobile terminal, this is set
Standby unique ID is used to count the Android application downloading installation of real user, and this unique ID can be associated with user
Register account number, for backstage counting user information when be known that whom the corresponding user of the unique ID is, while working as user
The user can also be counted on and by unique ID when deleting application come association user.
Currently, the acquisition methods of most of unique ID of equipment are that the hardware information based on mobile terminal combines generation one
A unique ID, still, the mobile terminal of different vendor may have differences, for example need to obtain the hardware device of mobile terminal
Information, thus can be than relatively time-consuming.Meanwhile because the support of distinct device its operating system or its hardware information that use is not
It is the same, therefore, for some mobile terminals, certain hardware informations may obtain less than.It can be seen that prior art acquisition is set
Standby unique ID not only inefficient, but also poor compatibility.
Summary of the invention
The embodiment of the present invention is solved by providing a kind of equipment exclusive identification code acquisition methods, device and mobile terminal
The technical issues of existing mode inefficient for obtaining the unique ID of equipment, poor compatibility.
In a first aspect, the embodiment of the present invention provides a kind of equipment exclusive identification code acquisition methods, comprising:
When detecting the target application starting on mobile terminal, read respectively from M target position of the mobile terminal
Equipment exclusive identification code relevant to the target application is taken, M is the integer greater than 1;
If reading N number of equipment exclusive identification code relevant to the target application, from N number of equipment unique identification
Target device exclusive identification code is identified in code, the target device exclusive identification code is sent to server, N is to be less than or wait
In the positive integer of M;
If read less than equipment exclusive identification code relevant to the target application, according to the application of the target application
Relevant information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored respectively to the M target
The new equipment exclusive identification code is sent to the server by position.
Optionally, the application related information according to the target application generates new equipment exclusive identification code, comprising:
The OS Type and the target being adapted to according to the Apply Names of the target application, the target application are answered
Time parameter generates the new equipment exclusive identification code.
Optionally, if the M target position include: the mobile terminal for storage system setting position,
The peripheral memory of the mobile terminal and the mobile terminal for storing the position of application configuration, it is described will be described
New equipment exclusive identification code is stored respectively to the M target position, comprising:
The new equipment exclusive identification code is written to the position for being used for storage system setting of the mobile terminal;
The new equipment exclusive identification code is written in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is written to the position for being used to store application configuration of the mobile terminal.
It is optionally, described to identify target device exclusive identification code from N number of equipment exclusive identification code, comprising:
By being compared to N number of equipment exclusive identification code, to be contrasted from N number of equipment exclusive identification code
The most equipment exclusive identification code of number of repetition is as the target device exclusive identification code.
Optionally, described before detecting the target application starting on mobile terminal, the method also includes:
When detecting that the target application is installed in the mobile terminal, according to the application name of the target application
Claim, the system when OS Type of target application adaptation and the target application are installed on the mobile terminal when
Between, generate original equipment exclusive identification code;
The original equipment exclusive identification code is stored in the M target position simultaneously.
Second aspect, the embodiment of the present invention provide a kind of equipment exclusive identification code acquisition device, comprising:
Identification code reading unit, for detect on mobile terminal target application starting when, respectively from the movement
Equipment exclusive identification code relevant to the target application is read in M target position of terminal, and M is the integer greater than 1;
Identification code recognition unit, if for reading N number of equipment exclusive identification code relevant to the target application, from
Target device exclusive identification code is identified in N number of equipment exclusive identification code;
First identifier code transmission unit, for the target device exclusive identification code to be sent to server, N be less than or
Positive integer equal to M;
Identification code generation unit, if for reading less than equipment exclusive identification code relevant to the target application, root
New equipment exclusive identification code is generated according to the application related information of the target application;
Second identification code transmission unit, for being stored the new equipment exclusive identification code respectively to the M target
Position;
Code memory unit is identified, for the new equipment exclusive identification code to be sent to the server.
Optionally, the identification code generation unit, is specifically used for:
The OS Type and the target being adapted to according to the Apply Names of the target application, the target application are answered
Time parameter generates the new equipment exclusive identification code.
Optionally, if the M target position include: the mobile terminal for storage system setting position,
The position for being used to store application configuration of the peripheral memory of the mobile terminal and the mobile terminal, the identification code
Storage unit is specifically used for:
The new equipment exclusive identification code is written to the position for being used for storage system setting of the mobile terminal;
The new equipment exclusive identification code is written in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is written to the position for being used to store application configuration of the mobile terminal.
Optionally, the identification code recognition unit, is specifically used for:
By being compared to N number of equipment exclusive identification code, to be contrasted from N number of equipment exclusive identification code
The most equipment exclusive identification code of number of repetition is as the target device exclusive identification code.
The third aspect, the embodiment of the present invention provide a kind of mobile terminal, comprising:
Memory is configured to one or more instruction of storage;
Processor is configured to execute one or more instruction stored in the memory, one or more instruction
It is configured as one or more processors execution, one or more instruction is at least used for:
Detect on mobile terminal target application starting when, from M target position of the mobile terminal read and
The relevant equipment exclusive identification code of the target application, M are the integer greater than 1;
If reading N number of equipment exclusive identification code relevant to the target application, from N number of equipment unique identification
Target device exclusive identification code is identified in code, the target device exclusive identification code is sent to server, N is to be less than or wait
In the positive integer of M;
If read less than equipment exclusive identification code relevant to the target application, according to the application of the target application
Relevant information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored respectively to the M target
Position, and the new equipment exclusive identification code is sent to the server.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
It is related according to the application of target application since the equipment exclusive identification code for being sent to server is related to target application
Information generates new equipment exclusive identification code, and does not have to read hardware information from mobile terminal generate for target application
Equipment exclusive identification code therefore reduce the time of generating device exclusive identification code, and the application for obtaining target application is related
Information is to operate relative to reading hardware information more timesaving, and will not obtain not because terminal models, manufacturer etc. are different
Arrive, thus the technical solution compatibility for generating according to the application related information of target application new equipment exclusive identification code it is more preferable,
It is more efficient.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is the flow chart of equipment exclusive identification code acquisition methods provided in an embodiment of the present invention;
Fig. 2 is the structure chart of equipment exclusive identification code acquisition device provided in an embodiment of the present invention.
Specific embodiment
In view of the prior art there is technical issues that obtain equipment unique ID mode inefficient, this hair
It is as follows that bright embodiment provides a kind of equipment exclusive identification code acquisition methods, device and mobile terminal, general thought:
Detect on mobile terminal target application starting when, respectively from M target position of mobile terminal read and
The relevant equipment exclusive identification code of the target application, M are the integer greater than 1;If read relevant to target application N number of
Equipment exclusive identification code, identifies target device exclusive identification code from N number of equipment exclusive identification code, and target device is uniquely marked
Know code and be sent to server, N is the positive integer less than or equal to M;If read unique less than equipment relevant to target application
Identification code generates new equipment exclusive identification code according to the application related information of target application, by new equipment exclusive identification code
It is stored respectively to M target position, new equipment exclusive identification code is sent to server.
It is related according to the application of target application since the equipment exclusive identification code for being sent to server is related to target application
Information generates new equipment exclusive identification code, and does not have to read hardware information from mobile terminal generate for target application
Equipment exclusive identification code therefore reduce the time of generating device exclusive identification code, and the application for obtaining target application is related
Information is to operate relative to reading hardware information more timesaving, and will not obtain not because terminal models, manufacturer etc. are different
It arrives, therefore the technical solution that new equipment exclusive identification code is sent to server is generated according to the application related information of target application
Compatibility is more preferable, more efficient.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
Technical solution is stated to be described in detail.
Refering to what is shown in Fig. 1, a kind of equipment exclusive identification code acquisition methods provided in an embodiment of the present invention, which is characterized in that
Include:
S101, detect on mobile terminal target application starting when, respectively from M target position of mobile terminal reading
Equipment exclusive identification code relevant to target application is taken, M is the integer greater than 1.
The embodiment of the present invention does not limit from M target position and reads equipment exclusive identification code relevant to target application (i.e.:
The unique ID of equipment) when execution sequencing in the specific implementation process can be simultaneously from the reading of M target position and target
Using relevant equipment exclusive identification code, can also successively be read from M target position with random order related to target application
Equipment exclusive identification code.
M target position is to preset, the equipment exclusive identification code relevant to target application of M target position storage
It is generated when certain starting application target before starting target application for this, it may be possible to which initial start-up is also likely to be intermediate time
Starting.
For example, include 3 target positions: mobile terminal for storage system setting position, mobile terminal peripheral hardware
The position for being used to store application configuration of memory and mobile terminal.
When detecting the target application starting on mobile terminal, from the position of mobile terminal being arranged for storage system
It sets, the peripheral memory of mobile terminal and the position for storing application configuration read set relevant to target application respectively
Standby exclusive identification code.
It should be noted that mobile terminal is used to store if the OS Type of mobile terminal is Android
The position of application configuration is at SharedPreferences file, and SharedPreferences file is in Android platform
A lightweight storage class.
Different readings based on S101 are as a result, rear extended meeting executes different processes, to obtain the real equipment of target application
Exclusive identification code.Specifically, executing following steps if reading N number of equipment exclusive identification code relevant to target application
S102~S103, if reading N number of equipment exclusive identification code relevant less than to target application, execution following steps S102 '~
S103 ' is described separately below:
Situation one:
Firstly, executing S102: identifying that target device is unique from N number of equipment exclusive identification code relevant to target application
Identification code, N are the positive integer less than or equal to M.
Specifically, under normal circumstances, can be read from each position of M target position relevant to target application
Equipment exclusive identification code identifies target device only from the M equipment exclusive identification code relevant to target application read
One identification code, due to may be deleted by user stored in one of target position or multiple target positions with target application phase
The equipment exclusive identification code of pass can only just read the equipment exclusive identification code relevant to target application less than M.
For example, the equipment exclusive identification code stored on peripheral memory is easy accidentally to be deleted manually by user, at this point, from
It is just read less than equipment exclusive identification code relevant to target application on the peripheral memory of mobile terminal.
Specifically, by being compared to the N number of equipment exclusive identification code relevant to target application read, with from N
The most equipment exclusive identification code of number of repetition is contrasted in a equipment exclusive identification code as target device exclusive identification code, from
And improve obtain equipment exclusive identification code authenticity, it is ensured that have modified some of them storage equipment exclusive identification code when
It still is able to get the true equipment exclusive identification code of target application.
In the specific implementation process, if including 3 target positions: the position for storage system setting of mobile terminal
It sets, the position for being used to store application configuration of the peripheral memory of mobile terminal and mobile terminal, then S102 includes: from shifting
Dynamic terminal for the position of storage system setting, the position for storing application configuration of mobile terminal, mobile terminal it is outer
If at least one position in memory reads equipment exclusive identification code relevant to target application, then from the whole read
Target device exclusive identification code is identified in equipment exclusive identification code.
Under normal conditions, 3 target positions can read equipment exclusive identification code, and 3 equipment obtained are unique
Identification code is all consistent, and is possible to that user deletes equipment exclusive identification code on peripheral memory or HACK is repaired certainly
Wherein some equipment exclusive identification code is changed.
Therefore, in the specific implementation process, in order to improve the authenticity for obtaining the unique ID of equipment, if from mobile terminal
For the position of storage system setting, the peripheral memory of mobile terminal and mobile terminal for storing application configuration
Position reads 3 equipment exclusive identification codes altogether, then compares to 3 equipment exclusive identification codes, to contrast 3 equipment only
Number of repetition is most in one identification code one is used as target device exclusive identification code.Specifically, if contrasting 3 equipment only
One identification code is consistent, that is, characterizes the same equipment exclusive identification code and be repeated 3 times, is none of the equipment of position is uniquely marked
Know code to be modified, is then used as target device identification code in the equipment exclusive identification code being repeated 3 times;If contrasting 2 therein
Equipment exclusive identification code is consistent, that is, characterizes same equipment exclusive identification code and be repeated 2 times, there is the equipment exclusive identification code an of position
It is modified, then using the equipment exclusive identification code being repeated twice as target device identification code.
If it is inconsistent to contrast 3 equipment exclusive identification codes, tell the server equipment exclusive identification code is tampered,
And step S102 '~S103 ' is executed, and new equipment exclusive identification code is generated with the application related information according to target application, it will
New equipment exclusive identification code is sent to server and is stored again to 3 target positions.
If from mobile terminal for the position of storage system setting, the peripheral memory of mobile terminal and movement
The position for storing application configuration of terminal reads 2 equipment exclusive identification codes altogether, if it is unique to contrast same equipment
Identification code is repeated 2 times, then using the equipment exclusive identification code being repeated 2 times as target device exclusive identification code.If contrasting 2
Equipment exclusive identification code is inconsistent, then tell the server equipment exclusive identification code is tampered, and executes step S102 '~S103 ',
New equipment exclusive identification code is generated with the application related information according to target application, and new equipment exclusive identification code is sent to
Server is simultaneously stored again to 3 target positions.
If from mobile terminal for the position of storage system setting, the peripheral memory of mobile terminal and movement
The position for storing application configuration of terminal reads 1 equipment exclusive identification code altogether, then tell the server equipment is uniquely marked
Know code to be tampered, and execute step S102 '~S103 ', new equipment is generated only with the application related information according to target application
New equipment exclusive identification code is sent to server and is stored again to 3 target positions by one identification code.
In the following, providing from mobile terminal so that the operating system of mobile terminal is android system as an example for storing system
It reads altogether the position for storing application configuration of the position of system setting, the peripheral memory of mobile terminal and mobile terminal
The implementation of equipment exclusive identification code:
In the specific implementation process, it can be used for what storage system was arranged from mobile terminal by the way that mode is implemented as follows
Position acquisition equipment exclusive identification code:
Function reading Settings.System.getString is set by calling, with from being arranged for storage system
Read equipment exclusive identification code in position:
String str1=Settings.System.getString (getContentResolver (), " my-
deviceid");
Wherein, the str1 read then indicates the equipment unique identification read from the position being arranged for storage system
Code.
It in the specific implementation process, can be by the way that mode be implemented as follows, from the position for storing application configuration
(in SharedPreferences file) reads equipment exclusive identification code.
SharedPreferences lSP=getSharedPreferences (" my-deviceid ", 0);
String str2=lSP.getString (" deviceid ", null);
Wherein, the str2 read then indicates the equipment unique identification read from SharedPreferences file
Code.
In the specific implementation process, can by the way that mode is implemented as follows, from read peripheral memory file it is entitled "/
The equipment exclusive identification code read in the file of sdcard/my-deviceid.txt ":
File file=new File ("/sdcard/my-deviceid.txt ");
Then a file input stream is defined, the unique ID of equipment is read from peripheral memory and reads deviceId variable
In:
FileInputStream stream=new FileInputStream (file);
stream.read(deviceId);
stream.close();
After S102, then execute S103: the target device exclusive identification code that will identify that is sent to server.
Situation two:
It executes S102 ': generating new equipment exclusive identification code according to the application related information of target application.
Specifically, the application related information of target application includes: the behaviour of the Apply Names of target application, target application adaptation
Make the time parameter of system type, target application.
On the basis of UUID (Universally Unique Identifier, Universally Unique Identifier), composite object
The Apply Names of application, the OS Type of target application adaptation, target application time parameter, by MD5 algorithm meter
Calculating is new equipment exclusive identification code.
It should be noted that target application can be to be installed on any application of mobile terminal, it is specifically as follows social logical
Interrogate application, tool application, game application, audio-visual entertainment applications, such as network direct broadcasting APP.
The OS Type of target application adaptation may be Android or IOS.
The time parameter of target application, can for target application this starting when system time or current system when
Between.
In specific implementation process, by reading system file "/proc/sys/kernel/random/uuid ", to generate
One UUID (Universally Unique Identifier, Universally Unique Identifier).
Specifically, opening system file by system function fopen first with read-only mode:
FILE*f=fopen ("/proc/sys/kernel/random/uuid ", " r ");
Wherein, parameter " r " mark is opened with read-only mode.
Then, the UUID read by a storage variable storage of definition from reading system file:
Char uuid [64]={ 0 };
The content in system file is read followed by, calling system function fgets, to read UUID and be stored in
In uuid variable:
fgets(&uuid,64,f);
Then, by MD5 algorithm, the OS Type and mesh being adapted to by the Apply Names of target application, target application
The time parameter for marking application generates new exclusive identification code with the UUID read from reading system file jointly:
DeviceId=MD5.create (uuid+time+ " android "+" xx ");
Wherein, MD5.create is then the interface of MD5 algorithm, and uuid is then UUID generated above.
Time is then time parameter, and the operating system that " android " indicates mobile terminal is android system, and xx is then
The Apply Names of target application, the deviceId ultimately generated are then an equipment exclusive identification codes.
By present embodiment, realizes by reading system file and generate the Apply Names comprising target application, mesh
The equipment exclusive identification code of the time parameter of the OS Type and target application of mark application adaptation.
After S102 ', S103 ' is then executed: new equipment exclusive identification code is stored respectively to M target position,
New equipment exclusive identification code is sent to server.
S103 ' may include steps of S1031 '~S1034 ', and S1031 '~S1034 ' can successively sequentially successively
It executes, also may be performed simultaneously.
S1031 ': by the position for being used for storage system setting of new equipment exclusive identification code write-in mobile terminal;
S1032 ': will be in the peripheral memory of new equipment exclusive identification code write-in mobile terminal;
S1033 ': by the position for being used to store application configuration of new equipment exclusive identification code write-in mobile terminal;
S1034 ': new equipment exclusive identification code is given to server.
Specifically, in S1031 ', after generating new equipment exclusive identification code according to S102 ', if mobile terminal
OS Type is Android, then the memory interface provided by android system
Settings.System.putString will be in new equipment exclusive identification code writing system setting:
Settings.System.putString(getContentResolver(),"my-deviceid",
deviceId);
Wherein, Settings.System.putString is the memory interface that android system provides, " my-
Deviceid " is the KEY value of storage, and deviceId is then the equipment exclusive identification code of storage.
Specifically, in S1033 ', new equipment exclusive identification code write-in is used to store the position of application configuration, it is specific logical
Under type such as is crossed to realize:
Firstly, the system function getSharedPreferences by Android system obtains one
SharedPreferences object:
SharedPreferences lSPreferences=getSharedPreferences (" my-deviceid ",
0);
Wherein, parameter " my-deviceid " is the title of the SharedPreferences object obtained.
Then, editable object localEditor is obtained by SharedPreferences object:
SharedPreferences.Editor localEditor=lSPreferences.edit ();
Followed by by editable object, by the position of new equipment exclusive identification code write-in storage application configuration.
localEditor.putString("deviceid",deviceId);
Specifically, in S1032 ' in, it is specific logical by the peripheral memory of new equipment exclusive identification code write-in mobile terminal
Under type such as is crossed to realize:
The state of peripheral memory is obtained by system function getExternalStorageState, if return value
SdStatus is equal to Environment.MEDIA_MOUNTED, then illustrates to be written in peripheral memory, otherwise can write
Enter:
String sdStatus=Environment.getExternalStorageState ();
If can be written into, created under peripheral memory for storing one file of new equipment exclusive identification code,
For example, file name is /sdcard/my-deviceid.txt
File file=new File ("/sdcard/my-deviceid.txt ");
By new equipment exclusive identification code, the equipment exclusive identification code of generation is written to by following file write-in stream
In the file/sdcard/my-deviceid.txt created under peripheral memory.
FileOutputStream stream=new FileOutputStream (file);
stream.write(deviceId);
stream.close();
By step as above, target device exclusive identification code or new equipment exclusive identification code are sent to server,
So that server based on the exclusive identification code of each mobile terminal reporting, can count the true downloading peace of target application
Loading amount, so that server identifies register account number associated by mobile terminal, convenient for the information of server statistics registration user,
Simultaneously when registration user delete target is in application, server can also count on registration user delete target application.
It should be noted that the N number of equipment exclusive identification code relevant to target application read in S102, it may be possible to
When detecting that target application is installed in mobile terminal, according to the Apply Names of target application, the operation of target application adaptation
System type and target application are installed on system time when mobile terminal, generate original equipment exclusive identification code, will be original
Equipment exclusive identification code be stored in M target position simultaneously.
It should be noted that the N number of equipment exclusive identification code relevant to target application read in S102, it may be possible to
Original equipment exclusive identification code, it is also possible in upper primary reading less than equipment exclusive identification code relevant to target application
In the case of, the new equipment exclusive identification code that regenerates.No matter what kind of situation it is, all according to S102 '~S103 ' description side
Formula generating device exclusive identification code, and store to M target position, for example store to the position being arranged for storage system, use
Position and peripheral memory in storage application configuration.
Based on the same inventive concept, the embodiment of the invention provides a kind of equipment exclusive identification code acquisition device, with reference to Fig. 2
It is shown, comprising:
Identification code reading unit 201, for detect on mobile terminal target application starting when, respectively from the shifting
Equipment exclusive identification code relevant to the target application is read in M target position of dynamic terminal, and M is the integer greater than 1;
Identification code recognition unit 202, if for reading N number of equipment unique identification relevant to the target application
Code, identifies target device exclusive identification code from N number of equipment exclusive identification code;
First identifier code transmission unit 203, for the target device exclusive identification code to be sent to server, N is small
In or equal to M positive integer;
Identification code generation unit 204, if for reading less than equipment exclusive identification code relevant to the target application,
New equipment exclusive identification code is generated according to the application related information of the target application;
Second identification code transmission unit 205, for being stored the new equipment exclusive identification code respectively to the M mesh
Cursor position;
Code memory unit 206 is identified, for the new equipment exclusive identification code to be sent to the server.
Optionally, the identification code generation unit, is specifically used for:
The OS Type and the target being adapted to according to the Apply Names of the target application, the target application are answered
Time parameter generates the new equipment exclusive identification code.
Optionally, if the M target position include: the mobile terminal for storage system setting position,
The position for being used to store application configuration of the peripheral memory of the mobile terminal and the mobile terminal, the identification code
Storage unit 206, is specifically used for:
The new equipment exclusive identification code is written to the position for being used for storage system setting of the mobile terminal;
The new equipment exclusive identification code is written in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is written to the position for being used to store application configuration of the mobile terminal.
Optionally, the identification code recognition unit 202, is specifically used for:
By being compared to N number of equipment exclusive identification code, to be contrasted from N number of equipment exclusive identification code
The most equipment exclusive identification code of number of repetition is as the target device exclusive identification code.
Since the device that the present embodiment is introduced is equipment exclusive identification code acquisition methods institute in the implementation embodiment of the present invention
The device of use, so based on equipment exclusive identification code acquisition methods described in the embodiment of the present invention, the affiliated skill in this field
Art personnel can understand the specific embodiment and its various change form of the device of the present embodiment, so herein for the electricity
How sub- equipment realizes that the method in the embodiment of the present invention is no longer discussed in detail.As long as those skilled in the art implement this hair
Device used by equipment exclusive identification code acquisition methods in bright embodiment belongs to the range of the invention to be protected.
Based on the same inventive concept, the embodiment of the invention provides a kind of mobile terminals, comprising:
Memory is configured to one or more instruction of storage;
Processor is configured to execute one or more instruction stored in the memory, one or more instruction
It is configured as one or more processors execution, one or more instruction is at least used for:
Detect on mobile terminal target application starting when, from M target position of the mobile terminal read and
The relevant equipment exclusive identification code of the target application, M are the integer greater than 1;
If reading N number of equipment exclusive identification code relevant to the target application, from N number of equipment unique identification
Target device exclusive identification code is identified in code, the target device exclusive identification code is sent to server, N is to be less than or wait
In the positive integer of M;
If read less than equipment exclusive identification code relevant to the target application, according to the application of the target application
Relevant information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored respectively to the M target
Position, and the new equipment exclusive identification code is sent to the server.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
It with the specific work process of mobile terminal, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Technical solution in the embodiments of the present invention, at least have the following technical effects or advantages:
It is related according to the application of target application since the equipment exclusive identification code for being sent to server is related to target application
Information generates new equipment exclusive identification code, and does not have to read hardware information from mobile terminal generate for target application
Equipment exclusive identification code therefore reduce the time of generating device exclusive identification code, and the application for obtaining target application is related
Information is to operate relative to reading hardware information more timesaving, and will not obtain not because terminal models, manufacturer etc. are different
Arrive, thus the technical solution compatibility for generating according to the application related information of target application new equipment exclusive identification code it is more preferable,
It is more efficient.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of equipment exclusive identification code acquisition methods characterized by comprising
Detect on mobile terminal target application starting when, respectively from M target position of the mobile terminal read and
The relevant equipment exclusive identification code of the target application, M are the integer greater than 1;
If reading N number of equipment exclusive identification code relevant to the target application, from N number of equipment exclusive identification code
It identifies target device exclusive identification code, specifically includes: by being compared to N number of equipment exclusive identification code, with from institute
It states and contrasts the most equipment exclusive identification code of number of repetition in N number of equipment exclusive identification code and uniquely marked as the target device
Know code;
The target device exclusive identification code is sent to server, N is the positive integer less than or equal to M;
It is related according to the application of the target application if read less than equipment exclusive identification code relevant to the target application
Information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored respectively to the M target position,
The new equipment exclusive identification code is sent to the server.
2. equipment exclusive identification code acquisition methods as described in claim 1, which is characterized in that described according to the target application
Application related information generate new equipment exclusive identification code, comprising:
According to the Apply Names of the target application, the OS Type of target application adaptation and the target application
Time parameter generates the new equipment exclusive identification code.
3. equipment exclusive identification code acquisition methods as claimed in claim 1 or 2, which is characterized in that if M target position
Set includes: the mobile terminal for the position of storage system setting, the peripheral memory of the mobile terminal and described
The position for being used to store application configuration of mobile terminal, it is described to store the new equipment exclusive identification code to the M respectively
A target position, comprising:
The new equipment exclusive identification code is written to the position for being used for storage system setting of the mobile terminal;
The new equipment exclusive identification code is written in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is written to the position for being used to store application configuration of the mobile terminal.
4. equipment exclusive identification code acquisition methods as described in claim 1, which is characterized in that detecting movement eventually described
Before target application starting on end, the method also includes:
When detecting that the target application is installed in the mobile terminal, according to the Apply Names of the target application, institute
The OS Type and the target application for stating target application adaptation are installed on the system time when mobile terminal, generate
Original equipment exclusive identification code;
The original equipment exclusive identification code is stored in the M target position simultaneously.
5. a kind of equipment exclusive identification code acquisition device characterized by comprising
Identification code reading unit, for detect on mobile terminal target application starting when, respectively from the mobile terminal
M target position read relevant to target application equipment exclusive identification code, M is the integer greater than 1;
Identification code recognition unit, if for reading N number of equipment exclusive identification code relevant to the target application, from described
Target device exclusive identification code is identified in N number of equipment exclusive identification code, specifically includes: specifically including: by N number of setting to described
Standby exclusive identification code compares, unique to contrast the most equipment of number of repetition from N number of equipment exclusive identification code
Identification code is as the target device exclusive identification code;
First identifier code transmission unit, for the target device exclusive identification code to be sent to server, N be less than or equal to
The positive integer of M;
Identification code generation unit, if for reading less than equipment exclusive identification code relevant to the target application, according to institute
The application related information for stating target application generates new equipment exclusive identification code;
Second identification code transmission unit, for being stored the new equipment exclusive identification code respectively to the M target position;
Code memory unit is identified, for the new equipment exclusive identification code to be sent to the server.
6. equipment exclusive identification code acquisition device as claimed in claim 5, which is characterized in that the identification code generation unit,
It is specifically used for:
According to the Apply Names of the target application, the OS Type of target application adaptation and the target application
Time parameter generates the new equipment exclusive identification code.
7. such as equipment exclusive identification code acquisition device described in claim 5 or 6, which is characterized in that if M target position
Set includes: the mobile terminal for the position of storage system setting, the peripheral memory of the mobile terminal and described
The position for being used to store application configuration of mobile terminal, the mark code memory unit are specifically used for:
The new equipment exclusive identification code is written to the position for being used for storage system setting of the mobile terminal;
The new equipment exclusive identification code is written in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is written to the position for being used to store application configuration of the mobile terminal.
8. a kind of mobile terminal characterized by comprising
Memory is configured to one or more instruction of storage;
Processor is configured to execute one or more instruction stored in the memory, and one or more instruction is matched
It is set to one or more processors execution, one or more instruction is at least used for:
Detect on mobile terminal target application starting when, from M target position of the mobile terminal reading with it is described
The relevant equipment exclusive identification code of target application, M are the integer greater than 1;
If reading N number of equipment exclusive identification code relevant to the target application, from N number of equipment exclusive identification code
It identifies target device exclusive identification code, specifically includes: by being compared to N number of equipment exclusive identification code, with from institute
It states and contrasts the most equipment exclusive identification code of number of repetition in N number of equipment exclusive identification code and uniquely marked as the target device
Know code;
The target device exclusive identification code is sent to server, N is the positive integer less than or equal to M;
It is related according to the application of the target application if read less than equipment exclusive identification code relevant to the target application
Information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored respectively to the M target position,
And the new equipment exclusive identification code is sent to the server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385703.4A CN107360265B (en) | 2017-05-26 | 2017-05-26 | A kind of equipment exclusive identification code acquisition methods, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385703.4A CN107360265B (en) | 2017-05-26 | 2017-05-26 | A kind of equipment exclusive identification code acquisition methods, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107360265A CN107360265A (en) | 2017-11-17 |
CN107360265B true CN107360265B (en) | 2019-11-01 |
Family
ID=60272123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710385703.4A Active CN107360265B (en) | 2017-05-26 | 2017-05-26 | A kind of equipment exclusive identification code acquisition methods, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107360265B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108287662A (en) * | 2017-12-08 | 2018-07-17 | 五八有限公司 | Obtain method, equipment and the computer readable storage medium of equipment unique mark |
CN108830113A (en) * | 2018-06-14 | 2018-11-16 | 山东浪潮通软信息科技有限公司 | A kind of acquisition methods of Android device unique identification |
CN110619205A (en) * | 2019-08-29 | 2019-12-27 | 北京浪潮数据技术有限公司 | Machine feature code processing method and device |
CN111371755B (en) * | 2020-02-24 | 2023-01-10 | 平安科技(深圳)有限公司 | Voiceprint data processing method and device, computer equipment and storage medium |
CN112507291B (en) * | 2020-11-18 | 2022-09-13 | 深思数盾(天津)科技有限公司 | Method and device for generating unique identifier of Android device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023857A (en) * | 2010-12-02 | 2011-04-20 | 清华大学 | ServiceOS-based multi-platform application program service management method and system |
CN102421098A (en) * | 2010-09-27 | 2012-04-18 | 中国移动通信集团公司 | User authentication method, device and system |
CN103001934A (en) * | 2011-09-16 | 2013-03-27 | 腾讯科技(深圳)有限公司 | Terminal application login method and terminal application login system |
CN103023876A (en) * | 2012-11-22 | 2013-04-03 | 中国科学院声学研究所 | Network terminal, security certification and registration activation methods thereof and server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9535762B2 (en) * | 2010-05-28 | 2017-01-03 | At&T Intellectual Property I, L.P. | Methods to improve overload protection for a home subscriber server (HSS) |
-
2017
- 2017-05-26 CN CN201710385703.4A patent/CN107360265B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102421098A (en) * | 2010-09-27 | 2012-04-18 | 中国移动通信集团公司 | User authentication method, device and system |
CN102023857A (en) * | 2010-12-02 | 2011-04-20 | 清华大学 | ServiceOS-based multi-platform application program service management method and system |
CN103001934A (en) * | 2011-09-16 | 2013-03-27 | 腾讯科技(深圳)有限公司 | Terminal application login method and terminal application login system |
CN103023876A (en) * | 2012-11-22 | 2013-04-03 | 中国科学院声学研究所 | Network terminal, security certification and registration activation methods thereof and server |
Non-Patent Citations (1)
Title |
---|
《数字对象唯一标识在中国科学数据领域中的应用研究》;涂勇等;《数字图书馆论坛》;20130825(第8期);第31-36页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107360265A (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107360265B (en) | A kind of equipment exclusive identification code acquisition methods, device and mobile terminal | |
CN106502725B (en) | Upgrade method, equipment and the electronic equipment of application program | |
CN107729227B (en) | Application program test range determining method, system, server and storage medium | |
CN108647143A (en) | MOCK interface test methods, device, computer equipment and storage medium | |
CN108415708A (en) | Processing method, device, equipment and the storage medium of application program installation kit size | |
CN105117205A (en) | Web page editing method and web page editing device | |
CN108446398A (en) | A kind of generation method and device of database | |
CN107608663A (en) | A kind of development approach and device of Mobile solution plug-in unit and Mobile solution | |
CN103617055B (en) | A kind of method, apparatus and browser for starting application program in a browser | |
CN106528422B (en) | A kind of method and apparatus of detection java applet page disturbance | |
CN115794641A (en) | Method, device and equipment for making number based on business process and storage medium | |
CN108733557A (en) | A kind of test point generation method and device | |
CN106293679B (en) | A kind of element term conflict processing method and device | |
CN105094768A (en) | Application interface generation method and application interface generation device | |
KR101624387B1 (en) | Method for software asset management based on software birthmark and apparatus thereof | |
CN110083493A (en) | A kind of embedded system failure self-recovery method, terminal device and storage medium | |
CN104778071A (en) | Intelligent rule multi-language type interpretation system and creation method for same | |
CN108845799B (en) | Visual program verification method and device and computer readable storage medium | |
CN106776803A (en) | The update method and device of a kind of log recording | |
CN106210025B (en) | Application program download determines method and device | |
CN109597706A (en) | It is a kind of to check the detection method of variance data, apparatus and system | |
CN108845857A (en) | A kind of icon management method and device based on cloud platform | |
CN106713666A (en) | Recognition display method and device of verification information | |
CN111597112B (en) | Automatic test method and device and electronic equipment | |
CN114625372A (en) | Automatic component compiling method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |