CN114125561A - Android intelligent television equipment identifier processing method and system - Google Patents

Android intelligent television equipment identifier processing method and system Download PDF

Info

Publication number
CN114125561A
CN114125561A CN202111339031.6A CN202111339031A CN114125561A CN 114125561 A CN114125561 A CN 114125561A CN 202111339031 A CN202111339031 A CN 202111339031A CN 114125561 A CN114125561 A CN 114125561A
Authority
CN
China
Prior art keywords
device identifier
service
data
application
identifier
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
CN202111339031.6A
Other languages
Chinese (zh)
Other versions
CN114125561B (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202111339031.6A priority Critical patent/CN114125561B/en
Publication of CN114125561A publication Critical patent/CN114125561A/en
Application granted granted Critical
Publication of CN114125561B publication Critical patent/CN114125561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management 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/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/818OS software

Abstract

The invention provides an Android intelligent television equipment 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 a device identifier by integrating the SDK. The method can realize the purpose of facilitating the rapid integration of each application and the calling of the service interface on the basis of ensuring the data security.

Description

Android intelligent television equipment identifier processing method and system
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 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 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:
step 1: reading a current MAC address on equipment;
step 2: 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;
step 3: generating a unique device identifier based on the current MAC address;
step 4: generating an anonymous device identifier based on the unique device identifier and the random parameter;
step 5: encrypting the unique device identifier and storing the data subjected to signature processing into a unique device identifier file;
step 6: encrypting the anonymous device identifier and storing the data subjected to signature processing into an anonymous device identifier file;
step 7: 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;
step 8: 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, jump to Step 3; otherwise, continuing to Step 9;
step 9: checking the file stored in the data partition, if the file or the content is damaged, jumping to Step 3; otherwise, continuing to Step 10;
step 10: the unique device identifier and/or anonymous device 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 for service access;
step 11: 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 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.
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 apparent, the present application is described in further 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 better 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 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 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; 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 packaging layer, the application layer calls various interfaces supported by the service by acquiring a system service mode, packages all the calls of the interfaces into one class, and compiles the class into a jar packet mode to provide for multi-application integration and use
An application module to query for a 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 an equipment identifier, monitoring the change of equipment to support the updating of the identifier, receiving a reset instruction, and simultaneously supporting the system to set the mechanism for actively controlling the equipment identifier by application, such as closing and starting the OAID equipment identifier.
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 device identifier system, if the state is the initialization state, continuing to S3, and jumping to S7 in the 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 yes, go to S3; otherwise, continuing to S9;
s9: checking the file stored on the data partition, if the file or content is corrupted, jumping to S3; otherwise, continuing to 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 supporting device identifier system (including two device identifiers of UDID/OAID) of the device; otherwise, setting the state as the non-support state and returning.
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 (6)

1. 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 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 a device identifier by integrating the SDK.
2. The Android smart television device identifier processing system of claim 1, wherein the device identifier comprises a reset OAID identifier.
3. An Android intelligent television device identifier processing method is characterized by comprising the following steps:
step 1: reading a current MAC address on equipment;
step 2: 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;
step 3: generating a unique device identifier based on the current MAC address;
step 4: generating an anonymous device identifier based on the unique device identifier and the random parameter;
step 5: encrypting the unique device identifier and storing the data subjected to signature processing into a unique device identifier file;
step 6: encrypting the anonymous device identifier and storing the data subjected to signature processing into an anonymous device identifier file;
step 7: 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;
step 8: 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 Step 3; otherwise, continuing to Step 9;
step 9: checking the files stored on the data partition, if the files or the contents are damaged, jumping to Step 3; otherwise, continuing to Step 10;
step 10: the unique device identifier and/or anonymous device 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 for service access;
step 11: 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.
4. The Android smart television device identifier processing method of claim 3, wherein the device identifier comprises a unique device identifier and an anonymous device identifier.
5. 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 according to any of claims 3 to 4.
6. 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 3 to 4.
CN202111339031.6A 2021-11-12 2021-11-12 Android smart television device identifier processing method and system Active CN114125561B (en)

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 true CN114125561A (en) 2022-03-01
CN114125561B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN114125561B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN105637800B (en) Key Infrastructures
CN109784007B (en) Byte code encryption method, byte code decryption method and terminal
WO2021217980A1 (en) Java code packing method and system
CN110032876B (en) Method, node and storage medium for implementing privacy protection in block chain
CN111680305A (en) Data processing method, device and equipment based on block chain
CN110033266B (en) Method, node and storage medium for implementing privacy protection in block chain
EP3384423B1 (en) Device with multiple roots of trust
CN113986459A (en) Control method and system for container access, electronic equipment and storage medium
CN110826031B (en) Encryption method, device, computer equipment and storage medium
WO2014203030A1 (en) Detection of data corruption in a data processing device
CN110059497B (en) Method, node and storage medium for implementing privacy protection in block chain
CN109784039B (en) Construction method of safe operation space of mobile terminal, electronic equipment and storage medium
CN101216758A (en) Smart card opening application development method
CN108134673A (en) A kind of method and device for generating whitepack library file
CN111259364B (en) Method, device, equipment and storage medium for using national secret encryption card
CN115378735A (en) Data processing method and device, storage medium and electronic equipment
CN108985096B (en) Security enhancement and security operation method and device for Android SQLite database
CN110008737B (en) Method, node and storage medium for implementing privacy protection in block chain
WO2017181968A1 (en) Method for processing application file, method and device for accessing application file, and storage medium
US11055428B1 (en) Systems and methods for encrypted container image management, deployment, and execution
CN114125561B (en) Android smart television device identifier processing method and system
CN103530169B (en) Method for protecting virtual machine files and user terminal
CN115062330B (en) TPM-based intelligent password key password application interface implementation method
CN110535642A (en) A kind of method, intelligent terminal and the storage medium of dispersion storage key
CN111143879A (en) Android platform SD card file protection method, terminal device 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