CN114125561B - Android smart television device identifier processing method and system - Google Patents
Android smart television device identifier processing method and system Download PDFInfo
- Publication number
- CN114125561B CN114125561B CN202111339031.6A CN202111339031A CN114125561B CN 114125561 B CN114125561 B CN 114125561B CN 202111339031 A CN202111339031 A CN 202111339031A CN 114125561 B CN114125561 B CN 114125561B
- Authority
- CN
- China
- Prior art keywords
- device identifier
- identifier
- state
- equipment
- application
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/4508—Management of client data or end-user data
- H04N21/4516—Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/818—OS software
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
- Storage Device Security (AREA)
Abstract
The invention provides an Android intelligent television device identifier processing system, which comprises: the storage module is used for encrypting and signing the device identifier data and then storing the encrypted and signed device identifier data on the data partition in a file mode; the service module is used for running a service process to provide service interface calling for the upper application, and the service module has read-write permission on the data partition file; the application encapsulation module is used for calling various interfaces supported by the service, encapsulating all the calls of the interfaces into a class, and compiling the class into a jar packet mode for multi-application integration and use; an application module to query for the device identifier by integrating the SDK. The method can realize the quick integration and the service interface calling of each application on the basis of ensuring the data security.
Description
Technical Field
The invention relates to the technical field of equipment identifier processing, in particular to an Android intelligent television equipment identifier processing method and system.
Background
The terminal device identifier system includes a device unique identifier UDID, an anonymous device identifier OAID, and the like, and because different characteristics of application scenarios of the identifiers are different, the terminal device identifier system cannot be realized in a manner similar to a manner of programming and storing an MAC address on a device in a mass production process. Therefore, when various device identifiers are dynamically generated and used, reasonable updating and safe storage of the device identifiers need to be maintained, and malicious tampering is prevented. The UDID and OAID identifiers realized in the patent are used for reading data into a memory for use after verifying and decrypting the signature of the data from the file in a mode of storing the data in a local file after encrypting and signing on one hand; on the other hand, a layered architecture based on a system native layer service and an application layer SDK packaging mode is beneficial to rapid integration and calling of service interfaces of all applications on the basis of data security guarantee.
Disclosure of Invention
The invention aims to provide an Android intelligent television device identifier processing method and system. So as to solve the technical problems existing in the background technology.
In order to achieve the purpose, the invention adopts the following technical scheme:
an Android smart television device identifier processing system, comprising: the storage module is used for encrypting and signing the device identifier data and then storing the encrypted and signed device identifier data on the data partition in a file mode; the service module is used for running a service process to provide service interface calling for the upper application, and the service module has read-write permission on the data partition file; the application encapsulation module is used for invoking various interfaces supported by the service, encapsulating all the invocations of the interfaces into one class, and compiling the classes into jar packets for multi-application integration and use; an application module to query for a device identifier by integrating the SDK.
In some embodiments, the device identifier comprises a reset OAID identifier.
Meanwhile, the invention also discloses an Android intelligent television device identifier processing method, which comprises the following steps:
step1: reading a current MAC address on equipment;
step2: reading the state of the equipment identifier system, judging whether the system is in an initialization state or a working state, entering Step3 if the system is in the initialization state, and jumping to Step7 if the system is in the working state;
step3: generating a unique device identifier based on the current MAC address;
step4: generating an anonymous device identifier based on the unique device identifier and the random parameter;
step5: encrypting the unique device identifier and storing the data subjected to signature processing into a unique device identifier file;
step6: encrypting the anonymous device identifier and storing the data subjected to signature processing into an anonymous device identifier file;
step7: judging whether the processing is normal or not, if so, setting the equipment identifier as a running state, otherwise, ending the process and setting the system state as a non-support equipment identifier;
step8: judging whether the current state is a working state, if so, reading the stored historical MAC address, and comparing whether the historical MAC address is the same as the current MAC address: if yes, jumping to Step3; otherwise, continuing Step9;
step9: checking the files stored on the data partition, if the files or the contents are damaged, jumping to Step3; otherwise, continuing Step10;
step10: the unique equipment identifier and/or anonymous equipment identifier file data stored in the data partition are subjected to signature verification and decryption and then are loaded into a memory and are available when service access is available;
step11: judging whether the processing is normal or not, if so, setting an identifier of the equipment supported by the equipment; otherwise, the state is set to the non-support state.
In some embodiments, the device identifier comprises a unique device identifier, an anonymous device identifier.
Meanwhile, the invention also discloses an identifier processing device of the Android intelligent television equipment, which comprises a processor and a memory; the memory is used for storing instructions, and the instructions when executed by the processor cause the apparatus to implement any one of the above Android smart television device identifier processing methods.
Meanwhile, the invention also discloses a computer-readable storage medium, wherein the storage medium stores computer instructions, and after the computer reads the computer instructions in the storage medium, the computer runs any one of the Android intelligent television equipment identifier processing methods.
Advantageous effects
The scheme of the invention designs the encapsulation of system native service and application SDK by relying on an Android hierarchical structure, and guarantees the safety of the equipment symbol identification data in dynamic generation, local storage and multi-application use.
Drawings
Fig. 1 is a schematic diagram of an Android smart television device identifier processing system according to the embodiment;
fig. 2 is a schematic flowchart of an Android smart television device identifier processing method according to the embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
On the contrary, this application is intended to cover any alternatives, modifications, equivalents, and alternatives that may be included within the spirit and scope of the application as defined by the appended claims. Furthermore, in the following detailed description of the present application, certain specific details are set forth in order to provide a thorough understanding of the present application. It will be apparent to one skilled in the art that the present application may be practiced without these specific details.
The Android smart television device identifier processing method and system according to the embodiment of the present application will be described in detail below with reference to fig. 1-2. It is to be noted that the following examples are only for explaining the present application and do not constitute a limitation to the present application.
Example 1
As shown in fig. 1, an Android smart television device identifier processing system includes:
the storage module is used for encrypting and signing the device identifier data and then storing the encrypted and signed device identifier data on the data partition in a file mode; in particular, in some embodiments, the storage module may be implemented by a storage layer on a file partition, such as the device identifier data store of fig. 1, for example, a system service implementing encryption and signature processing on the device identifier data and then storing the encrypted device identifier data in a file on the data partition.
The service module is used for running a service process to provide service interface calling for the upper application, and the service module has read-write permission on the data partition file; in some embodiments, the service module may be implemented by a system service layer, such as a system native service in fig. 1. Specifically, a system service layer is in a native, namely a platform layer, an executable program can be realized based on C/C + +, the system starts to run the service process in a background, and the service has read-write permission on data partition files and provides service interface calling for upper-layer application.
The application encapsulation module is used for invoking various interfaces supported by the service, encapsulating all the invocations of the interfaces into one class, and compiling the classes into jar packets for multi-application integration and use; in some embodiments, the application encapsulation module may be implemented by an application SDK encapsulation layer, such as the SDK (API) in fig. 1. Specifically, in the application SDK encapsulation layer, the application layer invokes various interfaces supported by the service by obtaining a system service mode, encapsulates all the invocations of the interfaces into one class, and compiles the class into a jar packet mode for multi-application integration and use.
An application module to query for the device identifier by integrating the SDK. In some embodiments, the application module may be implemented by one or more application layers, such as the system setup application, application APK-1, application APK-n, etc. of FIG. 1. Specifically, various application APKs may be integrated in the application layer, and the device identifier may be queried by integrating the SDK, such as resetting the OAID identifier by the system setting application.
The native service of the Android intelligent television equipment identifier processing system is used as a process in a core processing layer, and is responsible for generating equipment identifiers, monitoring equipment change to support updating of the identifiers, receiving a reset instruction, and simultaneously supporting active management and control of the system setting application on the equipment identifiers, such as closing and starting mechanisms of OAID equipment identifiers.
When the system is started, the service process starts to run and is added to the system service. And checking the state of the equipment identifier in the constructor of the added system service, generating based on the state, finishing data checking processing, loading normal and valid data into a memory, and providing the data for the service interface to access when calling.
In the application SDK packaging layer, the application SDK packaging is responsible for interaction with system native services in the application layer, and the core capability supported by the system services is packaged into a uniform API interface to be provided for each process of the application layer for use, so that integration and calling in each application are facilitated.
The application SDK package supports an authentication process for UDID device identifier access rights. Because the UDID device identifier is used as a unique identifier of the device and is not allowed to be accessed by all applications or processes, only the allowed applications can acquire a specific value of the UDID, and otherwise, an empty string is returned.
In summary, the system adopts a layered design of system native service and application layer SDK encapsulation, so that the generation, updating and storage safety of the device identifier is guaranteed, the rapid integration and calling of a service interface based on the SDK by upper layer application are facilitated, and the device identifier data is safely used through authentication. Meanwhile, data is safely stored in the file through encryption and signature means, the service is only operated when the system is started, the data is loaded into the memory after being checked, and the data is only provided for native service access of the system, so that the safety of the data in operation is improved.
Example 2
An Android intelligent television device identifier processing method comprises the following steps:
s1: reading a current MAC address (CurMAC) on a device;
s2: reading the state of the equipment identifier system, if the equipment identifier system is in an initialization state, continuing S3, and jumping to S7 in a working state;
s3: generating a Unique Device Identifier (UDID) based on a current MAC address;
s4: generating an anonymous device identifier (OAID) based on the UDID and the random parameter;
s5: encrypting the UDID and storing the data subjected to signature processing into a UDID file;
s6: encrypting the OAID and storing the data subjected to signature processing into an OAID file;
s7: if the processing is normal, setting the equipment identifier as a running state, otherwise, ending the process and setting the equipment identifier system state as a non-support equipment identifier system state;
s8: if the MAC address is in the working state, reading the stored historical MAC address (LstMAC), and comparing the historical MAC address with the current MAC address: if the two signals are the same, jumping to S3; otherwise, continuing S9;
s9: checking the files stored on the data partition, if the files or the contents are damaged, jumping to S3; otherwise, continuing S10;
s10: the UDID/OAID file data stored in the data partition is loaded into a memory after being checked and decrypted and is available for service access;
s11: normally processing, setting a device identifier system (including two device identifiers of UDID/OAID) supported by the device; otherwise, the state is set as the non-support state, and the process returns.
Meanwhile, the invention also discloses an identifier processing device of the Android intelligent television equipment, which comprises a processor and a memory; the memory is used for storing instructions, and the instructions when executed by the processor cause the apparatus to implement any one of the Android intelligent television equipment identifier processing methods.
Meanwhile, the invention also discloses a computer-readable storage medium, wherein the storage medium stores computer instructions, and after the computer reads the computer instructions in the storage medium, the computer runs any one of the Android intelligent television equipment identifier processing methods.
In summary, based on the technical scheme of the application, a business scene of a first-in queue is searched for when the BOM is delivered from a warehouse, and the method is based on the premise of multiple dimensions, multiple attributes, easy operation and expandability.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (4)
1. An Android intelligent television device identifier processing method is characterized by comprising the following steps:
step1: reading a current MAC address on equipment;
step2: reading the state of the equipment identifier system, judging whether the system is in an initialization state or a working state, entering Step3 if the system is in the initialization state, and jumping to Step7 if the system is in the working state;
step3: generating a unique device identifier based on the current MAC address;
step4: generating an anonymous device identifier based on the unique device identifier and the random parameter;
step5: encrypting the unique device identifier and storing the data subjected to signature processing into a unique device identifier file;
step6: encrypting the anonymous device identifier and storing the data subjected to signature processing into an anonymous device identifier file;
step7: judging whether the processing is normal or not, if so, setting the equipment identifier as a running state, otherwise, ending the process and setting the system state as a non-support equipment identifier;
step8: judging whether the current state is a working state, if so, reading the stored historical MAC address, and comparing whether the historical MAC address is the same as the current MAC address: if yes, jumping to Step3; otherwise, continuing Step9;
step9: checking the files stored on the data partition, if the files or the contents are damaged, jumping to Step3; otherwise, continuing Step10;
step10: the unique equipment identifier and/or anonymous equipment identifier file data stored in the data partition are subjected to signature verification and decryption and then are loaded into a memory and are available when service access is available;
step11: judging whether the processing is normal or not, if so, setting an identifier of the equipment supported by the equipment; otherwise, the state is set as the non-support state.
2. The Android smart television device identifier processing method of claim 1, wherein the device identifier comprises a unique device identifier and an anonymous device identifier.
3. An Android smart television device identifier processing apparatus, the apparatus comprising a processor and a memory; the memory is used for storing instructions, and the instructions when executed by the processor cause the apparatus to realize the Android smart television device identifier processing method as claimed in any one of claims 1 to 2.
4. A computer-readable storage medium, wherein the storage medium stores computer instructions, and when the computer reads the computer instructions in the storage medium, the computer executes the Android smart television device identifier processing method according to any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111339031.6A CN114125561B (en) | 2021-11-12 | 2021-11-12 | Android smart television device identifier processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111339031.6A CN114125561B (en) | 2021-11-12 | 2021-11-12 | Android smart television device identifier processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114125561A CN114125561A (en) | 2022-03-01 |
CN114125561B true CN114125561B (en) | 2022-12-13 |
Family
ID=80378963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111339031.6A Active CN114125561B (en) | 2021-11-12 | 2021-11-12 | Android smart television device identifier processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114125561B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090024530A1 (en) * | 2007-07-19 | 2009-01-22 | Mozes Incorporated | Automatic gift messaging system |
CN109743160A (en) * | 2018-12-20 | 2019-05-10 | 深圳市任子行科技开发有限公司 | Prevent the Android device unique identification acquisition methods and device of Hook falsification |
CN112507291A (en) * | 2020-11-18 | 2021-03-16 | 北京深思数盾科技股份有限公司 | Method and device for generating unique identifier of Android device |
-
2021
- 2021-11-12 CN CN202111339031.6A patent/CN114125561B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090024530A1 (en) * | 2007-07-19 | 2009-01-22 | Mozes Incorporated | Automatic gift messaging system |
CN109743160A (en) * | 2018-12-20 | 2019-05-10 | 深圳市任子行科技开发有限公司 | Prevent the Android device unique identification acquisition methods and device of Hook falsification |
CN112507291A (en) * | 2020-11-18 | 2021-03-16 | 北京深思数盾科技股份有限公司 | Method and device for generating unique identifier of Android device |
Also Published As
Publication number | Publication date |
---|---|
CN114125561A (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11651321B2 (en) | Secure shipping interactions using blockchains | |
US11516011B2 (en) | Blockchain data processing methods and apparatuses based on cloud computing | |
CN107851160B (en) | Techniques for trusted I/O of multiple coexisting trusted execution environments under ISA control | |
Ekberg et al. | The untapped potential of trusted execution environments on mobile devices | |
CN110032885B (en) | Method, node and storage medium for implementing privacy protection in block chain | |
CN110020549B (en) | Method, node and storage medium for implementing privacy protection in block chain | |
CN109784007B (en) | Byte code encryption method, byte code decryption method and terminal | |
CN105637800A (en) | Keying infrastructure | |
JP2016512407A (en) | Trusted Service Manager Trusted Security Zone Container for data protection and confidentiality | |
CN111612462B (en) | Method, node and storage medium for implementing privacy protection in blockchain | |
US20210157848A1 (en) | Methods, apparatus and systems to enforce data boundaries through the use of boundary labels | |
EP3384423B1 (en) | Device with multiple roots of trust | |
CN113986459A (en) | Control method and system for container access, electronic equipment and storage medium | |
CN110008737B (en) | Method, node and storage medium for implementing privacy protection in block chain | |
CN110059497B (en) | Method, node and storage medium for implementing privacy protection in block chain | |
CN111259364B (en) | Method, device, equipment and storage medium for using national secret encryption card | |
US20230012013A1 (en) | Secure device programming system with hardware security module and security interop layer | |
CN114125561B (en) | Android smart television device identifier processing method and system | |
CN113961939B (en) | Method and system for protecting safety of embedded operating system | |
CN104348952B (en) | A kind of control method of card AMS | |
WO2021233649A1 (en) | Secure element for securely processing digital information | |
CN116361239B (en) | Object identification synchronization method and device based on object characteristics and electronic equipment | |
WO2024001642A1 (en) | Management and control method for usb device, cloud device, terminal device, and storage medium | |
CN110990120B (en) | Inter-partition communication method and device for virtual machine monitor, storage medium and terminal | |
CN113434257B (en) | Docker operation method, docker operation device, server 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 |