CN111222140A - Secure memory allocation method and device - Google Patents

Secure memory allocation method and device Download PDF

Info

Publication number
CN111222140A
CN111222140A CN201811412525.0A CN201811412525A CN111222140A CN 111222140 A CN111222140 A CN 111222140A CN 201811412525 A CN201811412525 A CN 201811412525A CN 111222140 A CN111222140 A CN 111222140A
Authority
CN
China
Prior art keywords
time
historical data
playing
drm
secure memory
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
CN201811412525.0A
Other languages
Chinese (zh)
Other versions
CN111222140B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201811412525.0A priority Critical patent/CN111222140B/en
Publication of CN111222140A publication Critical patent/CN111222140A/en
Application granted granted Critical
Publication of CN111222140B publication Critical patent/CN111222140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The disclosure provides a secure memory allocation method and device, and relates to the technical field of smart homes. The disclosed secure memory allocation method includes: determining a set of historical data corresponding to the current starting time according to the starting time in the historical data, wherein the historical data comprises the starting time and the playing starting time of the digital rights management DRM film source; determining the secure memory allocation time according to the information of the starting playing time of the DRM film source in the historical data set; and allocating the secure memory at the secure memory allocation time. By the method, the historical data can be screened according to the starting time, and the proper safe memory allocation time can be estimated according to the screened historical data, so that the safe memory does not need to be allocated continuously, the allocation time of the safe memory accords with the use habit of a user, the user does not need to wait for allocation after selecting to play, and the allocation efficiency of the safe memory is improved.

Description

Secure memory allocation method and device
Technical Field
The present disclosure relates to the field of smart home technologies, and in particular, to a secure memory allocation method and apparatus.
Background
At present, each large-scale business puts forward a TEE (Trusted Execution Environment) requirement in digital rights management requirements for operators by aiming at high-quality film sources. In order to ensure smooth playing of a 4K UHD (Ultra high definition) film source, TEE environments are configured in different solutions of chip manufacturers. The memory space used by the TEE environment for decryption and playing is at least in the order of hundreds of megabytes, and occupies large-scale hardware resources. In The related art, there are two main mechanisms for allocating secure memory in an interactive network television IPTV/OTT (Over The Top, internet television) set-Top box TEE environment:
the first mechanism is as follows: when the set-top box is started, the Secure memory used for Secure OS (Secure operating system) operation and subsequent encryption and decryption operation in the TEE environment is allocated in the TEE environment. And a second mechanism: when the set-top box is started, the Secure memory under the TEE environment is allocated for the operation of a Secure OS, and the Secure memory allocation is increased when the encryption and decryption operation is executed under the subsequent TEE environment.
Disclosure of Invention
The inventor finds that in the related mechanisms, the first medium-security memory is occupied for a long time, so that resources are greatly wasted under the condition of not needing a TEE environment; and secondly, after the user executes the video playing operation, the memory allocation for executing the encryption and decryption operation needs to be completed firstly, so that the user waiting is increased, and the user experience is reduced.
One objective of the present disclosure is to provide a scheme that considers both the effective utilization rate of the memory and the secure memory allocation efficiency.
According to an aspect of the present disclosure, a secure memory allocation method is provided, including: determining a set of historical data corresponding to the current starting time according to the starting time in the historical data, wherein the historical data comprises the starting time and the starting playing time of a DRM (Digital Rights Management) film source; determining the secure memory allocation time according to the information of the starting playing time of the DRM film source in the historical data set; and allocating the secure memory at the secure memory allocation time.
Optionally, the historical data further comprises: the safe memory length information in the playing period of the DRM film source; the secure memory allocation method further comprises: and determining the length of the secure memory to be allocated according to the length information of the secure memory in the historical data set.
Optionally, determining, according to the boot time in the historical data, a set of historical data corresponding to the current boot time includes: determining a moment corresponding to the current starting-up moment according to a preset time period, wherein the preset time period comprises one day or one week; determining time intervals of a first preset time range before and after the corresponding time; and determining historical data of the starting time in a time range, and generating a historical data set.
Optionally, determining the secure memory allocation time according to the DRM source play start time information in the set of history data includes: determining the moment when the probability that the DRM film source starts playing is equal to the first preset probability according to the information of the starting playing moment of the DRM film source in the combination of the historical data, and taking the moment as the estimated starting playing moment; and advancing the estimated play starting moment by a second preset time length, and determining the safe memory allocation moment.
Optionally, the secure memory allocation method further includes: determining the estimated safe memory release time according to the information of the starting playing time of the DRM film source in the historical data set; and releasing the secure memory under the condition that the DRM film source playing is finished or the DRM film source playing is not started at the expected release moment of the secure memory.
Optionally, determining the estimated secure memory release time according to the DRM source play start time information in the set of historical data includes: and determining the moment when the probability that the DRM film source does not start playing is equal to a second preset probability according to the information of the starting playing moment of the DRM film source in the combination of the historical data, and taking the moment as the estimated release moment of the secure memory.
Optionally, the secure memory allocation method further includes: and resetting the current starting-up time as the time for releasing the secure memory so as to re-determine the set of historical data corresponding to the current starting-up time.
Optionally, the secure memory allocation method further includes: recording the current starting time and the time when the DRM film source starts playing, and supplementing historical data; and/or determining the playing time length according to the starting playing time of the DRM film source and the ending playing time of the DRM film source, and deleting the historical data of which the playing time length is less than the preset threshold time length.
By the method, the historical data can be screened according to the starting time, and the proper safe memory allocation time can be estimated according to the screened historical data, so that the safe memory does not need to be allocated continuously, the allocation time of the safe memory accords with the use habit of a user, the user does not need to wait for allocation after selecting to play, and the allocation efficiency of the safe memory is improved.
According to another aspect of the present disclosure, a secure memory allocation apparatus is provided, including: the data set determining unit is configured to determine a set of historical data corresponding to the current starting time according to the starting time in the historical data, wherein the historical data comprises the starting time and the starting playing time of the DRM film source; the memory allocation time determining unit is configured to determine the secure memory allocation time according to the information of the playing starting time of the DRM film source in the historical data set; a memory allocation unit configured to allocate the secure memory at a secure memory allocation time.
Optionally, the historical data further comprises: the safe memory length information in the playing period of the DRM film source; the secure memory allocation apparatus further includes: and the memory length determining unit is configured to determine the length of the secure memory allocated to the DRM film source according to the secure memory length information in the set of the historical data.
Optionally, the secure memory allocation apparatus further includes: the memory release time determining unit is configured to determine the estimated safe memory release time according to the information of the starting playing time of the DRM film source in the historical data set; and the memory release unit is configured to release the secure memory under the condition that the playing of the DRM film source is finished or the playing of the DRM film source is not started at the expected release moment of the secure memory.
Optionally, the secure memory allocation apparatus further includes: and the resetting unit is configured to reset the current starting-up time to the time of releasing the secure memory so that the data set determining unit can re-determine the set of the historical data corresponding to the current starting-up time.
Optionally, the secure memory allocation apparatus further includes: the historical data updating unit is configured to record the current starting time and the playing starting time of the DRM film source and supplement historical data; and/or, the device is configured to determine a playing time length according to the DRM film source playing starting time and the DRM film source playing ending time, and delete the historical data of which the playing time length is less than a preset threshold time length.
According to another aspect of the present disclosure, a secure memory allocation apparatus is provided, including: a memory; and a processor coupled to the memory, the processor configured to perform any of the secure memory allocation methods above based on instructions stored in the memory.
The device can screen the historical data according to the starting time and estimate the proper safe memory allocation time according to the screened historical data, so that the safe memory does not need to be allocated continuously, the allocation time of the safe memory accords with the use habit of a user, the user does not need to wait for allocation after selecting to play, and the allocation efficiency of the safe memory is improved.
According to still further aspects of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, which instructions, when executed by a processor, implement the steps of any of the above secure memory allocation methods.
By executing the instruction on the computer-readable storage medium, screening historical data according to the starting time, and estimating the appropriate safe memory allocation time according to the screened historical data, the safe memory does not need to be allocated continuously, the allocation time of the safe memory accords with the use habit of a user, the user does not need to wait for allocation after selecting to play, and the safe memory allocation efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a flowchart of an embodiment of a secure memory allocation method according to the present disclosure.
Fig. 2 is a flowchart of another embodiment of a secure memory allocation method according to the present disclosure.
Fig. 3 is a flowchart of another embodiment of a secure memory allocation method according to the present disclosure.
Fig. 4 is a schematic diagram of a secure memory allocation apparatus according to an embodiment of the disclosure.
Fig. 5 is a schematic diagram of another embodiment of a secure memory allocation apparatus according to the present disclosure.
Fig. 6 is a schematic diagram of another embodiment of a secure memory allocation apparatus according to the disclosure.
Detailed Description
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
A flowchart of an embodiment of a secure memory allocation method according to the present disclosure is shown in fig. 1.
In step 101, a set of history data corresponding to the current power-on time is determined according to the power-on time in the history data, where the history data includes the power-on time and a DRM (digital rights Management) playback start time of the film source. In one embodiment, the boot time corresponding to the current boot time may be a time that differs from the current time by an integer number of predetermined time periods, and the predetermined time period may be one day or one week, etc. In one embodiment, the boot time may be HH (time): MM (min): SS (second) information, HH between the starting time and the current starting time in historical data is searched: MM: and historical data corresponding to the SS information forms a set of historical data.
In step 102, the secure memory allocation time is determined according to the DRM source play start time information in the set of history data. In one embodiment, the possibility that the user starts playing the DRM film source at each time can be determined according to the DRM film source playing start time information, the time with the higher possibility is selected as the estimated film source playing time, and the secure memory allocation time is determined according to the processing time for allocating the secure memory ahead by a certain time.
In step 103, secure memory is allocated for the DRM source at the secure memory allocation time. In one embodiment, the history data may further include the length information of the secure memory, where the history data includes: { starting time, DRM source start playing time, and secure memory length }, where the secure memory length information may be a maximum length of the secure memory allocated in the corresponding playing phase. And taking the average value of the length information of the secure memory in the historical data set as the length of the secure memory of the current distributed secure memory.
By the method, the historical data can be screened according to the starting time, and the proper safe memory allocation time can be estimated according to the screened historical data, so that the safe memory does not need to be allocated continuously, the allocation time of the safe memory accords with the use habit of a user, the user does not need to wait for allocation after selecting to play, and the allocation efficiency of the safe memory is improved.
Fig. 2 is a flowchart of another embodiment of a secure memory allocation method according to the present disclosure.
In step 201, a time corresponding to the current power-on time is determined according to a predetermined time period, wherein the predetermined time period includes one day or one week.
In step 202, time intervals of a first predetermined time range before and after the corresponding time are determined. In one embodiment, the time interval of the first predetermined time range before and after the current power-on may be used as the matching interval, such as [ T [ ]0-T1,T0+T1]Wherein T0 is the current time, and T1 is the first predetermined time range.
In step 203, historical data of the boot time within the time range is determined, and a set of historical data is generated. If the starting time in the historical data falls into [ T ]0-T1,T0+T1]And if so, determining that the starting time is equivalent to the current starting time, and incorporating the historical data into the current historical data set.
In one embodiment, historical data that is more than a predetermined time away from the current time, such as historical data of a year ago, historical data of a half year ago and the like, can be ignored or deleted, so that on one hand, the requirements on storage space and data processing capacity are reduced, and on the other hand, the expected result is made to conform to the recent behavior habit of the user.
In one embodiment, since the behavior habit of the user changes within a certain period, the historical data only stores the latest n (n is a positive integer, such as 500) pieces, and meanwhile, the mechanism also solves the problem of the limitation of the storage space of the terminal.
In step 204, the moment when the probability that the DRM source has started playing is equal to the first predetermined probability is determined as the estimated starting playing moment according to the DRM source starting playing moment information in the combination of the history data.
In one embodiment, the first predetermined probability is set to be P, and when the time T is the minimum value that satisfies Length ({ a | Tplay < T, a ∈ N }) > < Length (N) × P, T is the estimated value of the playing time of the DRM source started at this time.
In step 205, the estimated play start time is advanced by a second predetermined time, the secure memory allocation time is determined, and the secure memory allocation is executed when the secure memory allocation time arrives. In one embodiment, the second predetermined length of time may be comparable to the length of time required for the device to complete a secure memory allocation operation. In another embodiment, the second predetermined duration is a maximum duration of the secure memory pre-allocation.
In one embodiment, the system may perform secure memory allocation when system resources are idle, and suspend the secure memory allocation until the system resources are idle if the current system state is busy and resources are in shortage at the time of the secure memory allocation, thereby preferentially ensuring normal operation of the system.
In step 206, the estimated moment of releasing the secure memory is determined according to the information of the starting playing time of the DRM source in the set of history data. In one embodiment, the moment when the probability that the DRM source does not start playing is equal to the second predetermined probability is determined according to the DRM source playing start time information in the combination of the history data, and is used as the estimated secure memory release moment.
In one embodiment, the second predetermined probability is set to be P ', and when the time T ' is the minimum value satisfying Length ({ a | Tplay > T ', a ∈ N }) <length (N) × P ', T ' is the predicted value of the memory release time of this time.
In step 207, it is determined whether to end the playing of the DRM source or not, or whether to not start the playing of the DRM source at the time of the expected release of the secure memory. If so, go to step 208, otherwise, determine that the DRM source has already started to be played before the expected moment of releasing the secure memory, and the DRM source playing is not finished currently, continue to go to step 207 to wait for finishing the DRM source playing.
In step 208, the secure memory is released.
In step 209, the current power-on time and the DRM source start play time are recorded to supplement the history data. In an embodiment, the history data may further include DRM source end play time information, where the history data includes: { starting time, starting playing time of a DRM film source, ending playing time of the DRM film source and safe memory length }, determining playing time length through time difference of starting playing and ending playing, and deleting the historical data if the playing time length is less than a preset threshold time length (such as 1 minute) so as to avoid influence on accuracy of data analysis caused by noise data generated by misoperation of a user.
In step 210, the current boot-up time is reset to the time when the secure memory is released, and then the process returns to step 201, so as to determine a new historical data set at the reset current boot-up time.
By the method, on one hand, the moment when the user starts the DRM film source to play can be estimated according to historical data, and the safe memory is distributed in advance, so that the system reaction efficiency and the user friendliness are improved; on the other hand, the distributed secure memory can be released under the condition that the playing is finished or the probability that the user starts the playing of the DRM film source next time is determined to be smaller, the occupation of the memory is reduced, and the memory utilization rate is improved.
Fig. 3 is a flowchart of another embodiment of a secure memory allocation method according to the present disclosure. After the user starts or finishes releasing the secure memory and updating the current starting time, the system determines the set of the historical data according to the current starting time.
In step 301, the user initiates playback of the DRM source.
In step 302, it is determined whether allocating secure memory has been performed based on the set of historical data. If the allocation of the secure memory has been performed, go to step 304; if the allocation of the secure memory is not performed (i.e. the determined secure memory allocation time is later than the current time, or the secure memory allocation is temporarily not performed due to the busy system), step 305 is performed.
In step 303, secure memory is allocated.
In step 304, the DRM source is played and the playing time is recorded.
In step 305, during the playing process, it is determined whether there is a memory shortage. If the memory is not sufficient, go to step 306, otherwise go to step 307.
In step 306, secure memory allocation is increased.
In step 307, the maximum safe memory length is recorded.
By the method, when the user triggers the starting of the DRM film source playing but does not execute the allocation of the secure memory, the secure memory allocation can be started immediately, so that the system can be started in time according to the operation of the user on the basis of estimating and allocating the secure memory according to historical data, and the system can be ensured to normally serve the user.
Fig. 4 is a schematic diagram of an embodiment of a secure memory allocation apparatus according to the present disclosure. The data set determining unit 401 can determine a set of history data corresponding to the current power-on time according to the power-on time in the history data, where the history data includes the power-on time and the time when the DRM film source starts playing. The memory allocation time determining unit 402 can determine the secure memory allocation time according to the DRM source play start time information in the set of history data. The memory allocation unit 403 can allocate the secure memory for the DRM source at the time of secure memory allocation.
The device can screen the historical data according to the starting time and estimate the proper safe memory allocation time according to the screened historical data, so that the safe memory does not need to be allocated continuously, the allocation time of the safe memory accords with the use habit of a user, the allocation is not needed after the user selects to play, and the allocation efficiency of the safe memory is improved.
In an embodiment, the history data may further include length information of a secure memory, and the length information of the secure memory may be a maximum length of the secure memory allocated in the corresponding play stage. The apparatus for allocating secure memory may further include a memory length determining unit 404, which is configured to average the length information of the secure memory in the historical data set, and determine the length of the secure memory allocated to this time, so that the length of the secure memory allocation also conforms to the usage habit of the user.
In one embodiment, the secure memory allocation apparatus may further include a memory release time determination unit 405 and a memory release unit 406.
The memory release time determining unit 405 can determine the estimated secure memory release time according to the DRM film source play start time information in the set of history data. In one embodiment, the moment when the probability that the DRM source does not start playing is equal to the second predetermined probability is determined according to the DRM source playing start time information in the combination of the history data, and is used as the estimated secure memory release moment.
The memory release unit 406 can release the secure memory when the playback of the DRM source is started or when any of the above predicted secure memory release times does not start the playback of the DRM source.
The secure memory allocation device can release the allocated secure memory when the playing is finished or the probability that the user starts the playing of the DRM film source next time is determined to be smaller, so that the occupation of the memory is reduced, and the utilization rate of the memory is improved.
In an embodiment, the secure memory allocation apparatus may further include a resetting unit 407, which is capable of resetting, when the secure memory is released, the current boot time as the time of releasing the secure memory, and then triggering the data set determining unit 401 to reselect the set of generated historical data, so as to implement data statistics and prediction for a user to start playing the DRM film source multiple times after booting once.
In one embodiment, the secure memory allocation apparatus may further include a history data updating unit 408, which is capable of recording the current boot time and the time when the DRM source starts playing to supplement the history data. In one embodiment, the history data may further include DRM film source playing end time information, and the history data updating unit 408 determines a playing time length by a time difference between the start of playing and the end of playing, and deletes the history data if the playing time length is less than a predetermined threshold time length, so as to prevent noise data generated by a user misoperation from affecting the accuracy of data analysis.
Fig. 5 is a schematic structural diagram of an embodiment of a secure memory allocation apparatus according to the present disclosure. The secure memory allocation means comprises a memory 501 and a processor 502. Wherein: the memory 501 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory is used for storing the instructions in the corresponding embodiments of the secure memory allocation method above. The processor 502 is coupled to the memory 501 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 502 is configured to execute instructions stored in the memory, and can allocate the secure memory without continuing to allocate the secure memory, so that allocation time of the secure memory conforms to usage habits of users, and secure memory allocation efficiency is improved.
In one embodiment, as also shown in fig. 6, the secure memory allocation apparatus 600 includes a memory 601 and a processor 602. The processor 602 is coupled to the memory 601 by a BUS 603. The secure memory allocation 600 may also be coupled to an external storage 605 via a storage interface 604 for invoking external data, and may also be coupled to a network or another computer system (not shown) via a network interface 606. And will not be described in detail herein.
In the embodiment, the data instructions are stored in the memory, and then the instructions are processed by the processor, so that the secure memory does not need to be allocated continuously, the allocation time of the secure memory conforms to the use habit of a user, and the allocation efficiency of the secure memory is improved.
In another embodiment, a computer-readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the steps of the method in the corresponding embodiment of the secure memory allocation method. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
Finally, it should be noted that: the above examples are intended only to illustrate the technical solutions of the present disclosure and not to limit them; although the present disclosure has been described in detail with reference to preferred embodiments, those of ordinary skill in the art will understand that: modifications to the specific embodiments of the disclosure or equivalent substitutions for parts of the technical features may still be made; all such modifications are intended to be included within the scope of the claims of this disclosure without departing from the spirit thereof.

Claims (15)

1. A secure memory allocation method, comprising:
determining a set of historical data corresponding to the current starting time according to the starting time in the historical data, wherein the historical data comprises the starting time and the digital rights management DRM film source playing starting time;
determining the secure memory allocation time according to the information of the starting playing time of the DRM film source in the historical data set;
and allocating the secure memory at the secure memory allocation time.
2. The method of claim 1, wherein the historical data further comprises: the safe memory length information in the playing period of the DRM film source;
further comprising:
and determining the length of the allocated safe memory according to the length information of the safe memory in the historical data set.
3. The method of claim 1, wherein the determining a set of historical data corresponding to a current boot-up time from boot-up times in the historical data comprises:
determining a time corresponding to the current starting-up time according to a preset time period, wherein the preset time period comprises one day or one week;
determining time intervals of a first preset time range before and after the corresponding time;
and determining historical data of the starting-up time in the time range, and generating a historical data set.
4. The method of claim 1, wherein the determining secure memory allocation time according to DRM source play start time information in the set of history data comprises:
determining the moment when the probability that the DRM film source starts playing is equal to a first preset probability according to the information of the starting playing moment of the DRM film source in the combination of the historical data, and taking the moment as the estimated starting playing moment;
and advancing the estimated play starting moment by a second preset time length, and determining the safe memory allocation moment.
5. The method of claim 1, further comprising:
determining the estimated safe memory release time according to the information of the starting playing time of the DRM film source in the historical data set;
and releasing the secure memory under the condition that the DRM film source playing is finished or the DRM film source playing is not started at the expected secure memory release time.
6. The method of claim 5, wherein the determining an estimated moment of the release of the secure memory according to the play start time information of the DRM source in the set of history data comprises:
and determining the moment when the probability that the DRM film source does not start playing is equal to a second preset probability according to the information of the playing starting moment of the DRM film source in the combination of the historical data, and taking the moment as the estimated release moment of the secure memory.
7. The method of claim 5 or 6, further comprising:
and resetting the current starting-up time as the time for releasing the secure memory so as to determine the set of the historical data corresponding to the current starting-up time according to the starting-up time in the historical data.
8. The method of claim 1, further comprising:
recording the current starting time and the time when the DRM film source starts playing, and supplementing historical data; and/or the presence of a gas in the gas,
and determining the playing time length according to the starting playing time of the DRM film source and the ending playing time of the DRM film source, and deleting the historical data of which the playing time length is less than the preset threshold time length.
9. A secure memory allocation apparatus, comprising:
the data set determining unit is configured to determine a set of historical data corresponding to the current starting time according to the starting time in the historical data, wherein the historical data comprises the starting time and the digital rights management DRM film source playing starting time;
the memory allocation time determining unit is configured to determine the secure memory allocation time according to the information of the playing start time of the DRM film source in the historical data set;
a memory allocation unit configured to allocate secure memory at the secure memory allocation time.
10. The apparatus of claim 9, wherein the historical data further comprises: the safe memory length information in the playing period of the DRM film source;
further comprising:
and the memory length determining unit is configured to determine the allocated safe memory length according to the safe memory length information in the historical data set.
11. The apparatus of claim 9, further comprising:
the memory release time determining unit is configured to determine the estimated safe memory release time according to the information of the starting playing time of the DRM film source in the historical data set;
and the memory release unit is configured to release the secure memory when the playing of the DRM film source is finished or the playing of the DRM film source is not started at the expected secure memory release time.
12. The apparatus of claim 11, further comprising:
and the resetting unit is configured to reset the current starting time to the time of releasing the secure memory, so that the data set determining unit determines the set of the historical data corresponding to the current starting time according to the starting time in the historical data.
13. The apparatus of claim 9, further comprising:
the historical data updating unit is configured to record the current starting time and the supplement historical data of the DRM film source starting playing time; and/or, the device is configured to determine a playing time length according to the DRM film source playing starting time and the DRM film source playing ending time, and delete the historical data of which the playing time length is less than a preset threshold time length.
14. A secure memory allocation apparatus, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-8 based on instructions stored in the memory.
15. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 8.
CN201811412525.0A 2018-11-26 2018-11-26 Secure memory allocation method and device Active CN111222140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811412525.0A CN111222140B (en) 2018-11-26 2018-11-26 Secure memory allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811412525.0A CN111222140B (en) 2018-11-26 2018-11-26 Secure memory allocation method and device

Publications (2)

Publication Number Publication Date
CN111222140A true CN111222140A (en) 2020-06-02
CN111222140B CN111222140B (en) 2022-04-26

Family

ID=70827571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811412525.0A Active CN111222140B (en) 2018-11-26 2018-11-26 Secure memory allocation method and device

Country Status (1)

Country Link
CN (1) CN111222140B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111222140B (en) * 2018-11-26 2022-04-26 中国电信股份有限公司 Secure memory allocation method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977183A (en) * 2010-10-09 2011-02-16 南京博智软件科技有限公司 High reliable digital content service method applicable to multiclass terminal equipment
CN102932670A (en) * 2012-11-29 2013-02-13 百视通网络电视技术发展有限责任公司 Method and system for segmenting streaming media
US20140298000A1 (en) * 2013-03-29 2014-10-02 Dell Products, Lp System and Method for Pre-Operating System Memory Map Management to Minimize Operating System Failures
CN104581214A (en) * 2015-01-28 2015-04-29 三星电子(中国)研发中心 Multimedia content protecting method and device based on ARM TrustZone system
CN104780421A (en) * 2015-04-07 2015-07-15 天脉聚源(北京)传媒科技有限公司 Multi-channel data caching method and device
CN105763928A (en) * 2016-02-19 2016-07-13 深圳市茁壮网络股份有限公司 Startup channel recommending method, startup channel recommending device and multimedia equipment
CN106412466A (en) * 2016-07-18 2017-02-15 国家新闻出版广电总局广播科学研究院 Smart television system
CN106484634A (en) * 2015-09-01 2017-03-08 联发科技股份有限公司 Device that execution secure memory distribution controls and associated method
CN107818054A (en) * 2016-09-12 2018-03-20 联发科技股份有限公司 Distribute method and system of the continuous physical memory space to equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111222140B (en) * 2018-11-26 2022-04-26 中国电信股份有限公司 Secure memory allocation method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977183A (en) * 2010-10-09 2011-02-16 南京博智软件科技有限公司 High reliable digital content service method applicable to multiclass terminal equipment
CN102932670A (en) * 2012-11-29 2013-02-13 百视通网络电视技术发展有限责任公司 Method and system for segmenting streaming media
US20140298000A1 (en) * 2013-03-29 2014-10-02 Dell Products, Lp System and Method for Pre-Operating System Memory Map Management to Minimize Operating System Failures
CN104581214A (en) * 2015-01-28 2015-04-29 三星电子(中国)研发中心 Multimedia content protecting method and device based on ARM TrustZone system
CN104780421A (en) * 2015-04-07 2015-07-15 天脉聚源(北京)传媒科技有限公司 Multi-channel data caching method and device
CN106484634A (en) * 2015-09-01 2017-03-08 联发科技股份有限公司 Device that execution secure memory distribution controls and associated method
CN105763928A (en) * 2016-02-19 2016-07-13 深圳市茁壮网络股份有限公司 Startup channel recommending method, startup channel recommending device and multimedia equipment
CN106412466A (en) * 2016-07-18 2017-02-15 国家新闻出版广电总局广播科学研究院 Smart television system
CN107818054A (en) * 2016-09-12 2018-03-20 联发科技股份有限公司 Distribute method and system of the continuous physical memory space to equipment

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
张文俊等: "《数字新媒体版权管理》", 30 June 2014 *
我是小三: "《某DRM解密流程简单分析》", 《HTTPS://BBS.PEDIY.COM/THREAD-196825.HTM》 *
李兴达等: "《基于时间序列和神经网络的主轴热误差建模》", 《组合机床与自动化加工技术》 *
杨琛等: "《磁电传感器信号处理技术研究》", 《现代车用动力》 *
胡薇: "《如何在Android下实现DRM以及与其适配的Secure Video Path的要点》", 《HTTP://WWW.ELECFANS.COM/D/674483.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111222140B (en) * 2018-11-26 2022-04-26 中国电信股份有限公司 Secure memory allocation method and device

Also Published As

Publication number Publication date
CN111222140B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
JP6589417B2 (en) Start control program, start control method, and start control device
US10235152B2 (en) System and method for downgrading applications
US9535677B2 (en) Software discovery in an environment with heterogeneous machine groups
CN106708608B (en) Distributed lock service method, acquisition method and corresponding device
WO2020140634A1 (en) Storage space optimization method and device, computer apparatus, and storage medium
KR20150104617A (en) Method, device and terminal equipment for cleaning up memory
CN103699420A (en) System recovery method and system recovery device
CN107368367B (en) Resource allocation processing method and device and electronic equipment
CN105786539B (en) File downloading method and device
WO2017186066A1 (en) Software management method and apparatus
WO2023284688A1 (en) Container group pod-based processing method, and related system and storage medium
US20130055237A1 (en) Self-adapting software system
US20130339296A1 (en) File synchronization method, files synchronization apparatus and electronic device
TW200905473A (en) Management of internal operations by a storage device
CN104317623A (en) Management method of preset application programs of mobile terminal and mobile terminal
CN111222140B (en) Secure memory allocation method and device
CN103763303A (en) Method and device for drama series playing
US20100306855A1 (en) Content Processing Apparatus and Content Processing Method
CN113254223B (en) Resource allocation method and system after system restart and related components
WO2017063401A1 (en) Frame management method and device for interactive function card in smart television
CN106844035B (en) Method and device for realizing resource release or recovery of cloud server
CN106855816B (en) Resource file loading method and device of application program in terminal
CN102413367A (en) Method and device for dynamically updating program recording list
US11797729B2 (en) Hyper-converged infrastructure (HCI) operation predictor
US20170164031A1 (en) System and Method for Scheduling Clips

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