CN107360265A - 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 PDF

Info

Publication number
CN107360265A
CN107360265A CN201710385703.4A CN201710385703A CN107360265A CN 107360265 A CN107360265 A CN 107360265A CN 201710385703 A CN201710385703 A CN 201710385703A CN 107360265 A CN107360265 A CN 107360265A
Authority
CN
China
Prior art keywords
identification code
exclusive identification
equipment exclusive
intended application
mobile terminal
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
Application number
CN201710385703.4A
Other languages
Chinese (zh)
Other versions
CN107360265B (en
Inventor
周志刚
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710385703.4A priority Critical patent/CN107360265B/en
Publication of CN107360265A publication Critical patent/CN107360265A/en
Application granted granted Critical
Publication of CN107360265B publication Critical patent/CN107360265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/35Network 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of equipment exclusive identification code acquisition methods, device and mobile terminal, applied to Mobile Development field, including:When the intended application on detecting mobile terminal starts, the equipment exclusive identification code related to the intended application is read from M target location of mobile terminal respectively;If read the N number of equipment exclusive identification code related to intended 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 the equipment exclusive identification code related less than to intended application, new equipment exclusive identification code is generated according to the application related information of intended application, new equipment exclusive identification code is stored to M target location respectively, new equipment exclusive identification code is sent to server.Inefficient, the technical problem of poor compatibility by way of the present invention solves the unique ID of existing acquisition equipment, and then realize efficient, accurate acquisition equipment exclusive identification code.

Description

A kind of equipment exclusive identification code acquisition methods, device and mobile terminal
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 technology
At present, unique ID of an equipment can be generated in the equipment installed for the application on mobile terminal, this sets Installation is downloaded in the Android applications that standby unique ID is used for counting real user, and this unique ID can be associated with into user Register account number, for backstage counting user information when be known that whom user corresponding to unique ID is, while work as user The user can also be counted on when deleting application and by unique ID come association user.
At present, the unique ID of most of equipment acquisition methods are that the hardware information based on mobile terminal combines generation one Individual unique ID, still, the mobile terminal of different vendor may have differences, than if desired for the hardware device for obtaining mobile terminal Information, so that can be than relatively time-consuming.Meanwhile because the support of its operating system for using of distinct device or its hardware information is not It is the same, therefore, for some mobile terminals, some hardware informations may obtain less than.Set it can be seen that prior art obtains Standby unique ID not only inefficients, and poor compatibility.
The content of the invention
The embodiment of the present invention solves by providing a kind of equipment exclusive identification code acquisition methods, device and mobile terminal The existing mode inefficient for obtaining the unique ID of equipment, the technical problem of poor compatibility.
In a first aspect, the embodiment of the present invention provides a kind of equipment exclusive identification code acquisition methods, including:
When the intended application on detecting mobile terminal starts, read respectively from M target location of the mobile terminal The equipment exclusive identification code related to the intended application is taken, M is the integer more than 1;
If reading the N number of equipment exclusive identification code related to the intended application, from N number of equipment unique mark 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 M positive integer;
If the equipment exclusive identification code related less than to the intended application is read, according to the application of the intended application Relevant information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored to the M target respectively Position, the new equipment exclusive identification code is sent to the server.
Optionally, the equipment exclusive identification code new according to the generation of the application related information of the intended application, including:
The OS Type and the target being adapted to according to the Apply Names of the intended application, the intended application should Time parameter generates the new equipment exclusive identification code.
Optionally, if the M target location includes:The position for being used for storage system setting of the mobile terminal, The peripheral memory of the mobile terminal, and the position for being used to store application configuration of the mobile terminal, it is described by described in New equipment exclusive identification code stores to the M target location respectively, including:
The new equipment exclusive identification code is write to the position for being used for storage system and setting of the mobile terminal;
The new equipment exclusive identification code is write in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is write to the position for being used to store application configuration of the mobile terminal.
Optionally, it is described to identify target device exclusive identification code from N number of equipment exclusive identification code, including:
By being contrasted 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, before the intended application on mobile terminal is detected starts, methods described also includes:
When detecting that the intended application is installed in the mobile terminal, according to the application name of the intended application Claim, the system when OS Type of intended application adaptation and the intended 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 location simultaneously.
Second aspect, the embodiment of the present invention provide a kind of equipment exclusive identification code acquisition device, including:
Identification code reading unit, on detecting mobile terminal intended application start when, respectively from the movement The equipment exclusive identification code related to the intended application is read in M target location of terminal, and M is the integer more than 1;
Identification code recognition unit, if for reading the N number of equipment exclusive identification code related to the intended application, from Target device exclusive identification code is identified in N number of equipment exclusive identification code;
First identification code transmitting element, for the target device exclusive identification code to be sent into server, N to be less than or Positive integer equal to M;
Identification code generation unit, if for reading the equipment exclusive identification code related less than to the intended application, root New equipment exclusive identification code is generated according to the application related information of the intended application;
Second identification code transmitting element, for the new equipment exclusive identification code to be stored to the M target respectively Position;
Code memory unit is identified, for the new equipment exclusive identification code to be sent into 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 intended application, the intended application should Time parameter generates the new equipment exclusive identification code.
Optionally, if the M target location includes:The position for being used for storage system setting of the mobile terminal, The peripheral memory of the mobile terminal, and the position for being used to store application configuration of the mobile terminal, the identification code Memory cell, it is specifically used for:
The new equipment exclusive identification code is write to the position for being used for storage system and setting of the mobile terminal;
The new equipment exclusive identification code is write in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is write 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 contrasted 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, including:
Memory, it is configured to the instruction of storage one or more;
Processor, it is configured to perform one or more instruction stored in the memory, one or more instruction One or more processors execution is configured as, one or more instruction is at least used for:
When the intended application on detecting mobile terminal starts, read from M target location of the mobile terminal and The related equipment exclusive identification code of the intended application, M are the integer more than 1;
If reading the N number of equipment exclusive identification code related to the intended application, from N number of equipment unique mark 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 M positive integer;
If the equipment exclusive identification code related less than to the intended application is read, according to the application of the intended application Relevant information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored to the M target respectively Position, and the new equipment exclusive identification code is sent to the server.
The one or more technical schemes 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 intended application because the equipment exclusive identification code for being sent to server is related to intended application Information generates new equipment exclusive identification code, and is directed to intended application without reading hardware information from mobile terminal to carry out generation Equipment exclusive identification code, therefore, reduce the time of generation equipment exclusive identification code, and the application for obtaining intended application is related Information, operated relative to reading hardware information more timesaving, and will not be obtained not because terminal models, manufacturer etc. are different Arrive, thus according to the application related information of intended application generate new equipment exclusive identification code technical scheme compatibility it is more preferable, It is more efficient.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this For the those of ordinary skill of field, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other Accompanying 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.
Embodiment
In view of there is the mode inefficient for the unique ID for obtaining equipment, the technical problem of poor compatibility, this hair in prior art It is as follows that bright embodiment provides a kind of equipment exclusive identification code acquisition methods, device and mobile terminal, general thought:
When the intended application on detecting mobile terminal starts, read respectively from M target location of mobile terminal and The related equipment exclusive identification code of the intended application, M are the integer more than 1;If read related to intended application N number of Equipment exclusive identification code, target device exclusive identification code is identified 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 it is unique to read the equipment related less than to intended application Identification code, new equipment exclusive identification code is generated according to the application related information of intended application, by new equipment exclusive identification code Store respectively to M target location, new equipment exclusive identification code is sent to server.
It is related according to the application of intended application because the equipment exclusive identification code for being sent to server is related to intended application Information generates new equipment exclusive identification code, and is directed to intended application without reading hardware information from mobile terminal to carry out generation Equipment exclusive identification code, therefore, reduce the time of generation equipment exclusive identification code, and the application for obtaining intended application is related Information, operated relative to reading hardware information more timesaving, and will not be obtained not because terminal models, manufacturer etc. are different Arrive, therefore the technical scheme of server is sent to according to the new equipment exclusive identification code of the application related information of intended application generation Compatibility is more preferable, more efficient.
In order to be better understood from above-mentioned technical proposal, below in conjunction with Figure of description and specific embodiment to upper Technical scheme is stated to be described in detail.
With reference to shown in figure 1, a kind of equipment exclusive identification code acquisition methods provided in an embodiment of the present invention, it is characterised in that Including:
S101, when the intended application on detecting mobile terminal starts, respectively from the reading of M target location of mobile terminal The equipment exclusive identification code related to intended application is taken, M is the integer more than 1.
The embodiment of the present invention does not limit from M target location and reads the equipment exclusive identification code related to intended application (i.e.: The unique ID of equipment) when execution sequencing, can be simultaneously from the reading of M target location and target in specific implementation process Using the equipment exclusive identification code of correlation, can also be read successively from M target location with random order related to intended application Equipment exclusive identification code.
M target location is presets, the equipment exclusive identification code related to intended application of M target location storage Certain before starting intended application for this starts what is generated during application target, it may be possible to which initial start-up is also likely to be middle time Start.
Such as including 3 target locations:Mobile terminal is used for position, the peripheral hardware of mobile terminal that storage system is set The position for being used to store application configuration of memory and mobile terminal.
When the intended application on detecting mobile terminal starts, from the position for being used for storage system and setting of mobile terminal Put, the peripheral memory of mobile terminal and read related to intended application set respectively for storing the position of application configuration Standby exclusive identification code.
It should be noted that if the OS Type of mobile terminal is Android, mobile terminal is used to store The position of application configuration is that SharedPreferences files are in Android platform at SharedPreferences files A lightweight storage class.
Different reading results based on S101, rear extended meeting performs different flows, to obtain the real equipment of intended application Exclusive identification code.If specifically, reading the N number of equipment exclusive identification code related to intended application, following steps are performed S102~S103, if reading the N number of equipment exclusive identification code related less than to intended application, execution following steps S102 '~ S103 ', it is described separately below:
Situation one:
First, S102 is performed:Identify that target device is unique from the N number of equipment exclusive identification code related to intended application Identification code, N are the positive integer less than or equal to M.
Specifically, generally, it can be read from each position of M target location related to intended application Equipment exclusive identification code, identify target device only from the M equipment exclusive identification code related to intended application read One identification code, due to may be deleted by user stored in one of target location or multiple target locations with intended application phase The equipment exclusive identification code of pass, it can only just read the equipment exclusive identification code related to intended application less than M.
For example the equipment exclusive identification code stored on peripheral memory is easily deleted manually by user by mistake, now, from The equipment exclusive identification code related less than to intended application is just read on the peripheral memory of mobile terminal.
Specifically, by being contrasted to the N number of equipment exclusive identification code related to intended application read, with from N The most equipment exclusive identification code of number of repetition is contrasted in individual 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 which storage equipment exclusive identification code when Remain able to get the real equipment exclusive identification code of intended application.
In specific implementation process, if including 3 target locations:The position for being used for storage system and setting of mobile terminal Put, the position for being used to store application configuration of the peripheral memory of mobile terminal and mobile terminal, then S102 includes:From shifting The position for being used to store application configuration for being used for position, mobile terminal that storage system sets of dynamic terminal, mobile terminal it is outer If at least one position in memory reads the equipment exclusive identification code related to intended application, then from the whole read Target device exclusive identification code is identified in equipment exclusive identification code.
Under normal circumstances, 3 target locations can read equipment exclusive identification code, and 3 equipment obtained are unique Identification code is all consistent, is possible to user certainly and deletes equipment exclusive identification code on peripheral memory, or HACK is repaiied Wherein some equipment exclusive identification code is changed.
Therefore, in specific implementation process, in order to improve the authenticity for obtaining equipment unique ID, if from mobile terminal For storage system set position, mobile terminal peripheral memory and mobile terminal be used for store application configuration Position reads 3 equipment exclusive identification codes altogether, then 3 equipment exclusive identification codes is contrasted, to contrast 3 equipment only Number of repetition is most in one identification code one is used as target device exclusive identification code.If specifically, contrast 3 equipment only One identification code is consistent, that is, characterizes same equipment exclusive identification code and be repeated 3 times, be none of the equipment of position is uniquely marked Know code to be changed, then target device identification code is used as in the equipment exclusive identification code being repeated 3 times;If contrast 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 of a position Changed, 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, notification server equipment exclusive identification code is tampered, And step S102 '~S103 ' is performed, will to generate new equipment exclusive identification code according to the application related information of intended application New equipment exclusive identification code is sent to server and stored again to 3 target locations.
If from the position for being used for storage system setting of mobile terminal, the peripheral memory of mobile terminal and movement The position for being used to store 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 contrast 2 Equipment exclusive identification code is inconsistent, then notification server equipment exclusive identification code is tampered, and performs step S102 '~S103 ', To generate new equipment exclusive identification code according to the application related information of intended application, new equipment exclusive identification code is sent to Server simultaneously stores to 3 target locations again.
If from the position for being used for storage system setting of mobile terminal, the peripheral memory of mobile terminal and movement The position for being used to store application configuration of terminal reads 1 equipment exclusive identification code altogether, then notification server equipment is uniquely marked Know code to be tampered, and perform step S102 '~S103 ', to generate new equipment only according to the application related information of intended application One identification code, new equipment exclusive identification code is sent to server and stored again to 3 target locations.
Below, so that the operating system of mobile terminal is android system as an example, provide from mobile terminal and be used for storage system Read altogether the position for being used to store application configuration for position, the peripheral memory of mobile terminal and the mobile terminal that system is set The implementation of equipment exclusive identification code:
In specific implementation process, it can be used for what storage system was set 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 set for storage system Read equipment exclusive identification code in position:
String str1=Settings.System.getString (getContentResolver (), " my- deviceid");
Wherein, the str1 read is then represented from the equipment unique mark read for the opening position that storage system is set Code.
, can be by the way that mode be implemented as follows, from the position for storing application configuration in specific implementation process (in SharedPreferences files) reads equipment exclusive identification code.
SharedPreferences lSP=getSharedPreferences (" my-deviceid ", 0);
String str2=lSP.getString (" deviceid ", null);
Wherein, the str2 read then represents the equipment unique mark read from SharedPreferences files Code.
In 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 sdcard/my-deviceid.txt " file:
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 variables In:
FileInputStream stream=new FileInputStream (file);
stream.read(deviceId);
stream.close();
After S102, S103 is then performed:The target device exclusive identification code that will identify that is sent to server.
Situation two:
Perform S102 ':New equipment exclusive identification code is generated according to the application related information of intended application.
Specifically, the application related information of intended application includes:The Apply Names of intended application, the behaviour of intended application adaptation Make system type, the time parameter of intended application.
On the basis of UUID (general unique identifier, Universally Unique Identifier), composite object Apply Names, OS Type, the time parameter of intended application of intended application adaptation of application, the MD5 algorithm meters passed through Calculate as new equipment exclusive identification code.
It should be noted that intended application can be to be installed on any application of mobile terminal, it is specifically as follows social logical Interrogate application, instrument application, game application, audio-visual entertainment applications, such as network direct broadcasting APP.
The OS Type of intended application adaptation may be Android or IOS.
The time parameter of intended application, system time when can be this startup of intended application, or during current system Between.
In specific implementation process, by reading system file "/proc/sys/kernel/random/uuid ", with generation One UUID (general unique identifier, Universally Unique Identifier).
Specifically, system file is opened with read-only mode by system function fopen first:
FILE*f=fopen ("/proc/sys/kernel/random/uuid ", " r ");
Wherein, parameter " r " sign 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 variables:
fgets(&uuid,64,f);
Then, by MD5 algorithms, the OS Type and mesh being adapted to by the Apply Names of intended application, intended application The time parameter for marking application generates new exclusive identification code jointly with the UUID read from reading system file:
DeviceId=MD5.create (uuid+time+ " android "+" xx ");
Wherein, MD5.create is then the interface of MD5 algorithms, and uuid is then UUID generated above.
Time is then time parameter, and the operating system of " android " sign mobile terminal is android system, and xx is then The Apply Names of intended application, the deviceId ultimately generated are then an equipment exclusive identification codes.
By present embodiment, realize and generate the Apply Names comprising intended application, mesh by reading system file The equipment exclusive identification code of the OS Type of mark application adaptation and the time parameter of intended application.
After S102 ', S103 ' is then performed:New equipment exclusive identification code is stored to M target location respectively, New equipment exclusive identification code is sent to server.
S103 ' may include steps of S1031 '~S1034 ', and S1031 '~S1034 ' can successively sequentially successively Perform, can also perform simultaneously.
S1031’:By the position for being used for storage system and setting of new equipment exclusive identification code write-in mobile terminal;
S1032’:By 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’:Give new equipment exclusive identification code to server.
Specifically, in S1031 ', after new equipment exclusive identification code is generated according to S102 ', if mobile terminal OS Type is Android, then the memory interface provided by android system During Settings.System.putString sets new equipment exclusive identification code writing system:
Settings.System.putString(getContentResolver(),"my-deviceid", deviceId);
Wherein, Settings.System.putString be android system provide memory interface, " my- Deviceid " is the KEY values of storage, and deviceId is then the equipment exclusive identification code of storage.
Specifically, in S1033 ', new equipment exclusive identification code is write into the position for storing application configuration, it is specific logical Cross following manner realization:
First, one is obtained by the system function getSharedPreferences of Android system SharedPreferences objects:
SharedPreferences lSPreferences=getSharedPreferences (" my-deviceid ", 0);
Wherein, parameter " my-deviceid " is the title of the SharedPreferences objects obtained.
Then, editable object localEditor is obtained by SharedPreferences objects:
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 ', new equipment exclusive identification code is write to the peripheral memory of mobile terminal, it is specific logical Cross following manner realization:
The state of peripheral memory is obtained by system function getExternalStorageState, if return value SdStatus is equal to Environment.MEDIA_MOUNTED, then illustrates to write in peripheral memory, otherwise can write Enter:
String sdStatus=Environment.getExternalStorageState ();
If can write, 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 as above step, 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 real download peace of intended application Loading amount so that server identifies the register account number associated by mobile terminal, is easy to the information of the server statistics registered user, Simultaneously when registered user's delete target is applied, server can also count on registered user delete target application.
It should be noted that the N number of equipment exclusive identification code related to intended application read in S102, it may be possible to When detecting that intended application is installed in mobile terminal, according to the Apply Names of intended application, the operation of intended application adaptation System type and intended application are installed on system time during mobile terminal, generate original equipment exclusive identification code, will be original Equipment exclusive identification code simultaneously be stored in M target location.
It should be noted that the N number of equipment exclusive identification code related to intended application read in S102, it may be possible to Original equipment exclusive identification code, it is also possible to once read the equipment exclusive identification code related less than to intended application upper In the case of, the new equipment exclusive identification code that regenerates.Either which kind of situation, the side all described according to S102 '~S103 ' Formula generates equipment exclusive identification code, and stores to M target location, for example stores to the position set for storage system, uses In the position of storage application configuration and peripheral memory.
Based on same inventive concept, the embodiments of the invention provide a kind of equipment exclusive identification code acquisition device, with reference to figure 2 It is shown, including:
Identification code reading unit 201, on detecting mobile terminal intended application start when, respectively from the shifting The equipment exclusive identification code related to the intended application is read in M target location of dynamic terminal, and M is the integer more than 1;
Identification code recognition unit 202, if for reading the N number of equipment unique mark related to the intended application Code, target device exclusive identification code is identified from N number of equipment exclusive identification code;
First identification code transmitting element 203, for the target device exclusive identification code to be sent into server, N is small In or equal to M positive integer;
Identification code generation unit 204, if for reading the equipment exclusive identification code related less than to the intended application, New equipment exclusive identification code is generated according to the application related information of the intended application;
Second identification code transmitting element 205, for the new equipment exclusive identification code to be stored to the M mesh respectively Cursor position;
Code memory unit 206 is identified, for the new equipment exclusive identification code to be sent into 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 intended application, the intended application should Time parameter generates the new equipment exclusive identification code.
Optionally, if the M target location includes:The position for being used for storage system setting of the mobile terminal, The peripheral memory of the mobile terminal, and the position for being used to store application configuration of the mobile terminal, the identification code Memory cell 206, is specifically used for:
The new equipment exclusive identification code is write to the position for being used for storage system and setting of the mobile terminal;
The new equipment exclusive identification code is write in the peripheral memory of the mobile terminal;
The new equipment exclusive identification code is write 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 contrasted 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.
By 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 the equipment exclusive identification code acquisition methods described in the embodiment of the present invention, the affiliated skill in this area Art personnel can understand the 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, belong to the scope of the invention to be protected.
Based on same inventive concept, the embodiments of the invention provide a kind of mobile terminal, including:
Memory, it is configured to the instruction of storage one or more;
Processor, it is configured to perform one or more instruction stored in the memory, one or more instruction One or more processors execution is configured as, one or more instruction is at least used for:
When the intended application on detecting mobile terminal starts, read from M target location of the mobile terminal and The related equipment exclusive identification code of the intended application, M are the integer more than 1;
If reading the N number of equipment exclusive identification code related to the intended application, from N number of equipment unique mark 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 M positive integer;
If the equipment exclusive identification code related less than to the intended application is read, according to the application of the intended application Relevant information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored to the M target respectively 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 With the specific work process of mobile terminal, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
Technical scheme in the embodiments of the present invention, at least has the following technical effect that or advantage:
It is related according to the application of intended application because the equipment exclusive identification code for being sent to server is related to intended application Information generates new equipment exclusive identification code, and is directed to intended application without reading hardware information from mobile terminal to carry out generation Equipment exclusive identification code, therefore, reduce the time of generation equipment exclusive identification code, and the application for obtaining intended application is related Information, operated relative to reading hardware information more timesaving, and will not be obtained not because terminal models, manufacturer etc. are different Arrive, thus according to the application related information of intended application generate new equipment exclusive identification code technical scheme compatibility it is more preferable, It is more efficient.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

  1. A kind of 1. equipment exclusive identification code acquisition methods, it is characterised in that including:
    When the intended application on detecting mobile terminal starts, read respectively from M target location of the mobile terminal and The related equipment exclusive identification code of the intended application, M are the integer more than 1;
    If reading the N number of equipment exclusive identification code related to the intended application, from N number of equipment exclusive identification code Target device exclusive identification code is identified, the target device exclusive identification code is sent to server, N is less than or equal to M Positive integer;
    It is related according to the application of the intended application if reading the equipment exclusive identification code related less than to the intended application Information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored to the M target location respectively, The new equipment exclusive identification code is sent to the server.
  2. 2. equipment exclusive identification code acquisition methods as claimed in claim 1, it is characterised in that described according to the intended application Application related information generate new equipment exclusive identification code, including:
    According to the Apply Names of the intended application, the OS Type of intended application adaptation and the intended application Time parameter generates the new equipment exclusive identification code.
  3. 3. equipment exclusive identification code acquisition methods as claimed in claim 1 or 2, it is characterised in that if the M target position Put including:The mobile terminal is used for position, the peripheral memory of the mobile terminal that storage system is set, 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 Individual target location, including:
    The new equipment exclusive identification code is write to the position for being used for storage system and setting of the mobile terminal;
    The new equipment exclusive identification code is write in the peripheral memory of the mobile terminal;
    The new equipment exclusive identification code is write to the position for being used to store application configuration of the mobile terminal.
  4. 4. equipment exclusive identification code acquisition methods as claimed in claim 1, it is characterised in that it is described from N number of equipment only Target device exclusive identification code is identified in one identification code, including:
    By being contrasted to N number of equipment exclusive identification code, to contrast repetition from N number of equipment exclusive identification code The most equipment exclusive identification code of number is as the target device exclusive identification code.
  5. 5. equipment exclusive identification code acquisition methods as claimed in claim 1, it is characterised in that detecting movement eventually described Before intended application on end starts, methods described also includes:
    When detecting that the intended application is installed in the mobile terminal, according to the Apply Names of the intended application, institute State the OS Type of intended application adaptation and the system time when intended application is installed on the mobile terminal, generation Original equipment exclusive identification code;
    The original equipment exclusive identification code is stored in the M target location simultaneously.
  6. A kind of 6. equipment exclusive identification code acquisition device, it is characterised in that including:
    Identification code reading unit, on detecting mobile terminal intended application start when, respectively from the mobile terminal M target location read the equipment exclusive identification code related to the intended application, M is the integer more than 1;
    Identification code recognition unit, if for reading the N number of equipment exclusive identification code related to the intended application, from described Target device exclusive identification code is identified in N number of equipment exclusive identification code;
    First identification code transmitting element, for the target device exclusive identification code to be sent into server, N be less than or equal to M positive integer;
    Identification code generation unit, if for reading the equipment exclusive identification code related less than to the intended application, according to institute The application related information for stating intended application generates new equipment exclusive identification code;
    Second identification code transmitting element, for the new equipment exclusive identification code to be stored to the M target location respectively;
    Code memory unit is identified, for the new equipment exclusive identification code to be sent into the server.
  7. 7. equipment exclusive identification code acquisition device as claimed in claim 6, it is characterised in that the identification code generation unit, It is specifically used for:
    According to the Apply Names of the intended application, the OS Type of intended application adaptation and the intended application Time parameter generates the new equipment exclusive identification code.
  8. 8. equipment exclusive identification code acquisition device as claimed in claims 6 or 7, it is characterised in that if the M target position Put including:The mobile terminal is used for position, the peripheral memory of the mobile terminal that storage system is set, and described The position for being used to store application configuration of mobile terminal, the mark code memory unit, is specifically used for:
    The new equipment exclusive identification code is write to the position for being used for storage system and setting of the mobile terminal;
    The new equipment exclusive identification code is write in the peripheral memory of the mobile terminal;
    The new equipment exclusive identification code is write to the position for being used to store application configuration of the mobile terminal.
  9. 9. equipment exclusive identification code acquisition device as claimed in claim 6, it is characterised in that the identification code recognition unit, It is specifically used for:
    By being contrasted to N number of equipment exclusive identification code, to contrast repetition from N number of equipment exclusive identification code The most equipment exclusive identification code of number is as the target device exclusive identification code.
  10. A kind of 10. mobile terminal, it is characterised in that including:
    Memory, it is configured to the instruction of storage one or more;
    Processor, is configured to perform one or more instruction stored in the memory, one or more instruction by with One or more processors execution is set to, one or more instruction is at least used for:
    When the intended application on detecting mobile terminal starts, from the reading of M target location of the mobile terminal with it is described The related equipment exclusive identification code of intended application, M are the integer more than 1;
    If reading the N number of equipment exclusive identification code related to the intended application, from N number of equipment exclusive identification code Target device exclusive identification code is identified, the target device exclusive identification code is sent to server, N is less than or equal to M Positive integer;
    It is related according to the application of the intended application if reading the equipment exclusive identification code related less than to the intended application Information generates new equipment exclusive identification code, and the new equipment exclusive identification code is stored to the M target location respectively, And the new equipment exclusive identification code is sent to the server.
CN201710385703.4A 2017-05-26 2017-05-26 A kind of equipment exclusive identification code acquisition methods, device and mobile terminal Active CN107360265B (en)

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 true CN107360265A (en) 2017-11-17
CN107360265B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN111371755A (en) * 2020-02-24 2020-07-03 平安科技(深圳)有限公司 Voiceprint data processing method and device, computer equipment and storage medium
CN112507291A (en) * 2020-11-18 2021-03-16 北京深思数盾科技股份有限公司 Method and device for generating unique identifier of Android device

Citations (5)

* Cited by examiner, † Cited by third party
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
US20110295996A1 (en) * 2010-05-28 2011-12-01 At&T Intellectual Property I, L.P. Methods to improve overload protection for a home subscriber server (hss)
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110295996A1 (en) * 2010-05-28 2011-12-01 At&T Intellectual Property I, L.P. Methods to improve overload protection for a home subscriber server (hss)
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)

* Cited by examiner, † Cited by third party
Title
涂勇等: "《数字对象唯一标识在中国科学数据领域中的应用研究》", 《数字图书馆论坛》 *

Cited By (8)

* Cited by examiner, † Cited by third party
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
CN111371755A (en) * 2020-02-24 2020-07-03 平安科技(深圳)有限公司 Voiceprint data processing method and device, computer equipment and storage medium
WO2021169469A1 (en) * 2020-02-24 2021-09-02 平安科技(深圳)有限公司 Voiceprint data processing method and apparatus, computer device, and storage medium
CN111371755B (en) * 2020-02-24 2023-01-10 平安科技(深圳)有限公司 Voiceprint data processing method and device, computer equipment and storage medium
CN112507291A (en) * 2020-11-18 2021-03-16 北京深思数盾科技股份有限公司 Method and device for generating unique identifier of Android device
CN112507291B (en) * 2020-11-18 2022-09-13 深思数盾(天津)科技有限公司 Method and device for generating unique identifier of Android device

Also Published As

Publication number Publication date
CN107360265B (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN107360265B (en) A kind of equipment exclusive identification code acquisition methods, device and mobile terminal
CN104156414B (en) A kind of method for cleaning of garbage files, device and terminal
US9952834B2 (en) Distribution of applications with a saved state
CN104754062B (en) Information popularization method, server and user terminal based on internet
CN108804299A (en) Application exception processing method and processing device
US8250523B2 (en) Source code wrapper generation
CN104169902B (en) Synchronous local and remote data
CN108459964A (en) Test cases selection method, apparatus, equipment and computer readable storage medium
CN108363684A (en) List creation method, device and server
CN107608663A (en) A kind of development approach and device of Mobile solution plug-in unit and Mobile solution
CN108415708A (en) Processing method, device, equipment and the storage medium of application program installation kit size
CN105512294A (en) Multi-media file update prompting method and device
CN109189384A (en) A kind of multiplexing method and device of code
CN108446398A (en) A kind of generation method and device of database
CN103617055B (en) A kind of method, apparatus and browser for starting application program in a browser
CN105760761A (en) Software behavior analyzing method and device
CN112114823B (en) Burning reading system based on modified MAC address
KR101624387B1 (en) Method for software asset management based on software birthmark and apparatus thereof
CN103379145A (en) Information processing method, apparatus and system
CN108733557A (en) A kind of test point generation method and device
CN106776803A (en) The update method and device of a kind of log recording
CN106210025B (en) Application program download determines method and device
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN110825361B (en) Code modification method, device, equipment and readable storage medium
CN112817782B (en) Data acquisition reporting method and device, electronic 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