CN110659456B - Application software product use control method and device - Google Patents

Application software product use control method and device Download PDF

Info

Publication number
CN110659456B
CN110659456B CN201910847265.8A CN201910847265A CN110659456B CN 110659456 B CN110659456 B CN 110659456B CN 201910847265 A CN201910847265 A CN 201910847265A CN 110659456 B CN110659456 B CN 110659456B
Authority
CN
China
Prior art keywords
time length
time
shutdown
target terminal
software product
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
Application number
CN201910847265.8A
Other languages
Chinese (zh)
Other versions
CN110659456A (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.)
Beijing Uxsino Software Co ltd
Original Assignee
Beijing Uxsino Software 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 Beijing Uxsino Software Co ltd filed Critical Beijing Uxsino Software Co ltd
Priority to CN201910847265.8A priority Critical patent/CN110659456B/en
Publication of CN110659456A publication Critical patent/CN110659456A/en
Application granted granted Critical
Publication of CN110659456B publication Critical patent/CN110659456B/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/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2137Time limited access, e.g. to a computer or data

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a use control method and a device of an application software product, wherein the method comprises the following steps: acquiring the total startup accumulated time length and the total shutdown accumulated time length of the target terminal after the target application software product is installed; determining the used time length of the target terminal to the target application software product according to the total startup accumulated time length and the total shutdown accumulated time length; and controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product. According to the use control method of the application software product provided by the embodiment of the invention, the used time length is determined by acquiring the total startup accumulated time length and the total shutdown accumulated time length of the terminal after the software product is installed, and the used time length is controlled by comparing the used time length with the authorized time length of the terminal of the software product, so that the software use time length is accurately controlled, a user can be ensured to enjoy software service, the use time length is prevented from being influenced by improper operation of the user, and the benefit of a software owner is prevented from being damaged.

Description

Application software product use control method and device
Technical Field
The invention relates to the technical field of software monitoring, in particular to a use control method and device of an application software product.
Background
The user wants to use the application software products in many industry fields for a long time or use most service functions, and needs to activate the software through an activation code, so that the user can use the software for a long time. But for users who partially try out the software, they may only need to use the software for a short period of time, rather than needing to use it for a long period of time or activate an authorized use. Therefore, the software owner is required to add an authorized license period to the use of the software by the users, and if the authorized license period is exceeded, the partial software service functions are not allowed to be used for free, and re-authorization is required for use.
However, currently, due to the error of information and improper operation of users, the monitoring of the use duration of the application software product installed and used in the user terminal is not accurate or real enough, thereby affecting the experience of users enjoying software services and damaging the interests of software owners.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a device for controlling the use of an application software product.
The embodiment of the invention provides a use control method of an application software product, which comprises the following steps:
acquiring the total startup accumulated time length and the total shutdown accumulated time length of the target terminal after the target application software product is installed;
determining the used time length of the target terminal to the target application software product according to the total started-up accumulated time length and the total shut-down accumulated time length;
and controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product.
Optionally, the obtaining of the total accumulated time length of the target terminal after the target application software product is installed includes:
acquiring the system click-through number recorded at the current time in the current starting process of the target terminal, and acquiring the system click-through number recorded at the last time in the current starting process of the target terminal;
obtaining a starting time increment according to the system click number recorded at the current time and the system click number recorded at the last time;
acquiring the total startup accumulated time length according to the startup time length increment and the last startup accumulated time length recorded by the target terminal;
acquiring the starting time of the latest starting event in the starting event set of the target terminal, acquiring a shutdown notification in the last starting process, and acquiring the shutdown time according to the shutdown notification;
obtaining a shutdown duration increment according to the startup time and the shutdown time;
and obtaining the total shutdown accumulated time length according to the shutdown time length increment and the shutdown accumulated time length obtained by the target terminal in the last shutdown process.
Optionally, the method further comprises: if the target terminal has a sleep state in the process of starting up the terminal at the time, acquiring a corresponding sleep time length;
and acquiring the total startup accumulated time length according to the startup time length increment, the sleep time length and the last startup accumulated time length acquired by the target terminal in the last startup process.
Optionally, the method further comprises: and after a trigger signal of a user for modifying the system time of the target terminal is sensed, recording the modified system time as modification time, and calculating the startup time and the shutdown time according to the modification time in subsequent startup and shutdown processes.
The embodiment of the invention provides a use control device of an application software product, which comprises:
the acquisition module is used for acquiring the total startup accumulated time length and the total shutdown accumulated time length of the target terminal after the target application software product is installed;
the calculation module is used for determining the used time length of the target terminal to the target application software product according to the total startup accumulated time length and the total shutdown accumulated time length;
and the control module is used for controlling the comparison result of the used time length and the authorized time length of the target terminal according to the target application software product.
Optionally, the obtaining module includes a first obtaining unit and a second obtaining unit, wherein:
the first obtaining unit is used for obtaining the system click-through number recorded in the current starting process of the target terminal and obtaining the system click-through number recorded in the last time in the current starting process of the target terminal;
obtaining a starting time increment according to the system click number recorded at the current time and the system click number recorded at the last time;
acquiring the total startup accumulated time length according to the startup time length increment and the last startup accumulated time length recorded by the target terminal;
the second acquisition unit is used for acquiring the starting time of the latest starting event in the starting event set of the target terminal, acquiring a shutdown notification in the last starting process and acquiring the shutdown time according to the shutdown notification;
obtaining a shutdown duration increment according to the startup time and the shutdown time;
and obtaining the total shutdown accumulated time length according to the shutdown time length increment and the shutdown accumulated time length obtained by the target terminal in the last shutdown process.
Optionally, the first obtaining unit is further configured to obtain a corresponding sleep duration when the target terminal is in a sleep state in a current boot process, and obtain the total boot accumulated duration according to the boot duration increment, the sleep duration, and the boot accumulated duration last obtained by the target terminal in a last boot process.
Optionally, the second obtaining unit is further configured to record the system time when the system time is modified as the modification time after a trigger signal for modifying the system time by the user for the target terminal is sensed, and calculate the power-on time and the power-off time according to the modification time in subsequent power-on and power-off processes.
The embodiment of the invention provides electronic equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps of the application software product use control method are realized when the processor executes the program.
Embodiments of the present invention provide a non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the usage control method of the application software product as described above.
According to the use control method of the application software product provided by the embodiment of the invention, starting from the running state of the user terminal, the started accumulated total time length and the closed accumulated total time length of the terminal after the application software product is installed are obtained, the used time length of the terminal on the application software product is further determined, and the comparison result of the terminal on the authorized time length of the terminal by the application software product is controlled, so that the accurate control on the software use time length is realized, the software service enjoyed by a user to the greatest extent as possible can be ensured, the use time length influenced by improper operation of the user can be avoided, and the benefit of a software owner is prevented from being damaged.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of an embodiment of a method for controlling the use of an application software product according to the present invention;
FIG. 2 is a flowchart of an embodiment of a method for controlling the use of an application software product according to the present invention;
FIG. 3 is a block diagram of an embodiment of a usage control apparatus of an application software product according to the present invention;
FIG. 4 is a block diagram of an embodiment of a usage control apparatus of an application software product according to the present invention;
FIG. 5 is a block diagram of an embodiment of an electronic device according to the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application software product is expected to be used for a long time or use most service functions, and the software needs to be activated through an activation code, so that a user can use the software for a long time. But for users who partially try out the software, they may only need to use the software for a short period of time, rather than needing to use it for a long period of time or activate an authorized use. Therefore, an authorized license period is required to be added to the software for such users, and if the authorized license period is exceeded, the partial software service functions are not allowed to be used for free, and re-authorization is required for use.
In view of the above, an embodiment of the present invention provides a method for controlling use of an application software product, where the method is used to accurately monitor a use duration of the application software product installed and used in a user terminal, so as to ensure that a user can enjoy a software service as maximally as possible, and avoid that the use duration is affected by improper operation of the user and the benefit of a software owner is damaged.
As shown in fig. 1, the method according to the embodiment of the present invention includes:
s11, acquiring the total accumulated time length of the target terminal after the target application software product is installed and the total accumulated time length of the target terminal after the target application software product is installed;
s12, determining the used time length of the target terminal to the target application software product according to the total power-on accumulated time length and the total power-off accumulated time length;
and S13, controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product.
With respect to step S11-step S13, it should be noted that, in the embodiment of the present invention, when a user terminal installs an application software product, the authorization duration of the user terminal for the application software product, that is, the usage period, is limited. Each application software product is installed on its own terminal by many users. Therefore, the use condition of the application software products on each user terminal is monitored. Because the user terminal can be in the power-on state or the power-off state, and the application software product is installed on the user terminal no matter in the power-off state or the power-on state, the duration of each state is calculated on the use duration of the application software product. Therefore, in order to monitor the use duration of the application software product used by each user terminal (which terminal is monitored and which terminal is the target terminal), the monitoring server of the owner of the application software product needs to acquire the total time duration accumulated after the target terminal is installed and started and the total time duration accumulated after the target application software product is installed.
In the embodiment of the invention, the target terminal can monitor the running state of the system, and the running state can be used for calculating and obtaining the total accumulated time length after the system is started and the total accumulated time length after the system is stopped. And the target terminal generates a corresponding authorization file by the operating state and the terminal identifier and sends the authorization file to the monitoring server. The monitoring server stores the authorization file, calculates and obtains the total accumulated time length of the started up and the total accumulated time length of the shut down according to the running state, and obtains the authorization time length of the owner of the application software product to the target terminal according to the terminal identification.
And obtaining the total startup accumulated time length and the total shutdown accumulated time length, and determining the used time length of the target terminal to the target application software product according to the total startup accumulated time length and the total shutdown accumulated time length.
And controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product.
And when the used time length is less than the authorized time length, the target terminal can continue to use the application software product and enjoy the service function of the application software product.
When the used time length reaches the authorized time length, the time limit of the target terminal for using the application software product is reached, and the subsequent monitoring service terminal can suspend all service functions or part of service functions of the target terminal for the application software product. The application software product will not continue to be used until the target terminal is re-authorized.
According to the use control method of the application software product provided by the embodiment of the invention, starting from the running state of the user terminal, the started accumulated total time length and the closed accumulated total time length of the terminal after the application software product is installed are obtained, the used time length of the terminal on the application software product is further determined, and the comparison result of the terminal on the authorized time length of the terminal by the application software product is controlled, so that the accurate control on the software use time length is realized, the software service enjoyed by a user to the greatest extent as possible can be ensured, the use time length influenced by improper operation of the user can be avoided, and the benefit of a software owner is prevented from being damaged.
Fig. 2 illustrates a usage control method of an application software product according to an embodiment of the present invention, including:
s21, acquiring the system click-through number recorded at the current time in the current starting process of the target terminal, acquiring the system click-through number recorded at the last time in the current starting process of the target terminal, acquiring a starting time length increment according to the system click-through number recorded at the current time and the system click-through number recorded at the last time, and acquiring a total starting accumulated time length according to the starting time length increment and the starting accumulated time length recorded at the last time by the target terminal;
s22, acquiring the starting time of the latest starting event in the starting event set of the target terminal, acquiring a shutdown notification in the last starting process, acquiring the shutdown time according to the shutdown notification, acquiring a shutdown time increment according to the starting time and the shutdown time, and acquiring a total shutdown accumulated time according to the shutdown time increment and the total shutdown accumulated time acquired by the target terminal in the last shutdown process;
s23, determining the used time length of the target terminal to the target application software product according to the total power-on accumulated time length and the total power-off accumulated time length;
and S24, controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product.
With respect to step S21 and step S22, it should be noted that, in the embodiment of the present invention, the terminal (i.e., the target terminal) is turned on from production to use, and then generates the clock ticking number (i.e., the system ticking number). In the starting state of the terminal every time, at the moment when the terminal is started, the number of the click-throughs is 0, and the accumulated total time length of the started-up time at this moment is the total time length obtained by adopting the system click-throughs for recording when the terminal is turned off last time. And recording the number of the system dropping answers according to a preset period, acquiring the system dropping answer number of the target terminal in the current starting process, acquiring the last recorded system dropping answer number of the target terminal in the current starting process, and acquiring the starting time increment according to the system dropping answer number of the current recording and the last recorded system dropping answer number. Therefore, the system responds number is accumulated. Therefore, the embodiment of the invention adopts the system click-through number to calculate and obtain the starting-up time of the terminal.
When the terminal is in a power-off state, the terminal does not work at this time, and therefore, the power-off time of the terminal needs to be acquired, a power-off notification is waited in the last power-on process, and the power-off time is acquired according to the power-off notification. The shutdown notification is a trigger signal at the moment of shutdown, and the signal asks for the current system time for shutdown, so that a timing error possibly occurring during shutdown is avoided. And in the process of starting up the terminal, acquiring the starting-up time of the latest starting-up event in the starting-up event set of the terminal. Here, the boot event set is a set of system files recorded each time the terminal is booted, so as to avoid timing errors occurring during booting.
In the embodiment of the present invention, the IDs of the boot events of the terminals installed with different operating systems are different, where the IDs of the boot events of the windows xp and the windows Server 2003 are: 6005, other types of operating system boot event IDs are: 6005, 12,1. The API interface program used for acquiring the starting event time comprises the following steps: OpenEventLog, ReadEventLog, CloseEventLog. And if the starting event is not found, taking the current time of the system as the starting time.
In the embodiment of the invention, the startup duration increment and the shutdown duration increment are calculated and obtained in each startup or shutdown state. Because the startup and shutdown states are alternately performed, in order to finally obtain the total startup and shutdown accumulated time length of the application software product, the time length increment of each time of startup and shutdown needs to be calculated separately.
The startup time increment is the number of system clicks recorded at the current time-the number of system clicks recorded at the last time.
And the total startup accumulated time length is the startup time length increment plus the startup accumulated time length recorded last time.
The power-off time increment is the current power-on time-last power-off time.
And the total shutdown accumulated time length is the sum of the shutdown time length increment and the shutdown accumulated time length obtained in the last shutdown process.
In the embodiment of the present invention, it should be further noted that the system click-through number is obtained by the number of milliseconds that the GetTickCount system function returns to the start of the operating system. Its return value is stored in a 32-bit double word type DWORD, so the maximum value that can be stored is (2^32-1) ms about 49.71 days, so this number is returned to 0 if the system runtime exceeds 49.71 days. In order to avoid causing an unexpected situation, the program needs to perform special processing when the startup operation exceeds 49.71 days, so as to avoid an abnormal situation.
On the basis of the embodiment of the invention, the further explanation shows that the terminal can enter a sleep state when the terminal is not used for a long time after being started. There is an error in obtaining the number of clicks through the GetTickCount system function, so as to reduce the error. In the process of starting up the target terminal at the time, a sleep notification is adopted to acquire the corresponding sleep time length, and then the total started-up accumulated time length is acquired according to the starting-up time length increment, the sleep time length and the last started-up accumulated time length acquired by the target terminal in the last starting-up process, so that the total started-up accumulated time length is more accurate.
On the basis of the embodiment of the invention, further explanation shows that the system time is prevented from being modified by improper operation of a user, so that the purpose of prolonging the service time of an application software product is achieved. When an application software product installed on a target terminal senses a trigger signal of a user for modifying the system time of the target terminal, the hook function mechanism principle is adopted, the system time during modification is recorded as the modification time, and the startup time and the shutdown time are calculated according to the modification time in the subsequent startup and shutdown processes, so that the startup time and the shutdown time of the terminal can be accurately calculated no matter how the user modifies the system time, and the used time of the application software product cannot be influenced.
According to the use control method of the application software product provided by the embodiment of the invention, the total startup accumulated time and the total shutdown accumulated time of the terminal after the application software product is installed are obtained through the information of the user terminal, such as the system click-through number, the startup event, the shutdown notification and the like, so that the used time of the application software product by the terminal is determined, and is controlled with the comparison result of the authorized time of the terminal by the application software product, so that the accurate control of the software use time is realized, the software service enjoyed by a user to the greatest extent is ensured, the use time is prevented from being influenced by improper operation of the user, and the benefit of a software owner is prevented from being damaged.
Fig. 3 shows a usage control apparatus for an application software product according to an embodiment of the present invention, which includes an obtaining module 31, a calculating module 32, and a control module 33, where:
an obtaining module 31, configured to obtain a total time length of the target terminal after the target application software product is installed and the total time length of the target terminal after the target application software product is installed;
a calculating module 32, configured to determine a used time length of the target terminal for the target application software product according to the total startup accumulated time length and the total shutdown accumulated time length;
and the control module 33 is configured to control the comparison result of the authorized duration of the target terminal according to the used duration and the target application software product.
Since the principle of the apparatus according to the embodiment of the present invention is the same as that of the method according to the above embodiment, further details are not described herein for further explanation.
It should be noted that, in the embodiment of the present invention, the relevant functional unit may be implemented by a hardware processor (hardware processor).
The use control device of the application software product provided by the embodiment of the invention obtains the total starting-up accumulated time length and the total closing-down accumulated time length of the terminal after the application software product is installed from the running state of the user terminal, further determines the used time length of the terminal for the application software product, and controls the used time length of the terminal with the comparison result of the authorized time length of the application software product for the terminal, so that the accurate control of the software use time length is realized, the software service enjoyed by the user can be ensured to the maximum extent, the use time length influenced by improper operation of the user can be avoided, and the benefit of a software owner is damaged.
Fig. 4 shows a usage control apparatus of an application software product according to an embodiment of the present invention, which includes a first obtaining unit 311, a second obtaining unit 312, a calculating module 32, and a control module 33, where:
a first obtaining unit 311, configured to obtain a system click-through number currently recorded by the target terminal in a current startup process, and a system click-through number last recorded by the target terminal in the current startup process, obtain a startup duration increment according to the system click-through number currently recorded and the system click-through number last recorded, and obtain a total startup accumulated duration according to the startup duration increment and the startup accumulated duration last recorded by the target terminal;
a second obtaining unit 312, configured to obtain a boot time of a latest boot event in the boot event set of the target terminal, obtain a shutdown notification in a last boot process, and obtain a shutdown time according to the shutdown notification; obtaining a shutdown time increment according to the startup time and the shutdown time, and obtaining a total shutdown accumulated time according to the shutdown time increment and the shutdown accumulated time obtained by the target terminal in the last shutdown process;
a calculating module 32, configured to determine a used time length of the target terminal for the target application software product according to the total startup accumulated time length and the total shutdown accumulated time length;
and the control module 33 is configured to control the comparison result of the authorized duration of the target terminal according to the used duration and the target application software product.
Furthermore, the first obtaining unit is further configured to obtain a corresponding sleep duration when the target terminal is in a sleep state during the current boot process, and obtain the total boot accumulated duration according to the boot duration increment, the sleep duration, and the last boot accumulated duration obtained by the target terminal during the last boot process.
Furthermore, the second obtaining unit is further configured to record the modified system time as a modification time after sensing a trigger signal for modifying the system time by the user for the target terminal, and calculate the power-on time and the power-off time according to the modification time in subsequent power-on and power-off processes.
Since the principle of the apparatus according to the embodiment of the present invention is the same as that of the method according to the above embodiment, further details are not described herein for further explanation.
It should be noted that, in the embodiment of the present invention, the relevant functional unit may be implemented by a hardware processor (hardware processor).
The use control device of the application software product provided by the embodiment of the invention obtains the total starting-up accumulated time length and the total closing-down accumulated time length of the terminal after the application software product is installed from the running state of the user terminal, further determines the used time length of the terminal for the application software product, and controls the used time length of the terminal with the comparison result of the authorized time length of the application software product for the terminal, so that the accurate control of the software use time length is realized, the software service enjoyed by the user can be ensured to the maximum extent, the use time length influenced by improper operation of the user can be avoided, and the benefit of a software owner is damaged.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)51, a communication Interface (communication Interface)52, a memory (memory)53 and a communication bus 54, wherein the processor 51, the communication Interface 52 and the memory 53 complete communication with each other through the communication bus 54. The processor 51 may call logic instructions in the memory 53 to perform the following method: acquiring the total startup accumulated time length and the total shutdown accumulated time length of the target terminal after the target application software product is installed; determining the used time length of the target terminal to the target application software product according to the total started-up accumulated time length and the total shut-down accumulated time length; and controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product.
In addition, the logic instructions in the memory 53 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform, when executed by a processor, a usage control method of an application software product provided in each of the above embodiments, for example, the method includes: acquiring the total startup accumulated time length and the total shutdown accumulated time length of the target terminal after the target application software product is installed; determining the used time length of the target terminal to the target application software product according to the total started-up accumulated time length and the total shut-down accumulated time length; and controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. A method for controlling use of an application software product, comprising:
acquiring the running state of a target terminal after a target application software product is installed, and determining the total startup accumulated time length and the total shutdown accumulated time length according to the running state;
determining the used time length of the target terminal to the target application software product according to the total started-up accumulated time length and the total shut-down accumulated time length;
controlling the comparison result of the authorized time length of the target terminal according to the used time length and the target application software product;
the obtaining of the total accumulated time length of the target terminal after the target application software product is installed includes:
acquiring the system click-through number recorded at the current time in the current starting process of the target terminal, and acquiring the system click-through number recorded at the last time in the current starting process of the target terminal;
obtaining a starting time increment according to the system click number recorded at the current time and the system click number recorded at the last time;
acquiring the total startup accumulated time length according to the startup time length increment and the last startup accumulated time length recorded by the target terminal;
acquiring the starting time of the latest starting event in the starting event set of the target terminal, acquiring a shutdown notification in the last starting process, and acquiring the shutdown time according to the shutdown notification;
obtaining a shutdown duration increment according to the startup time and the shutdown time;
obtaining the total shutdown accumulated time length according to the shutdown time length increment and the shutdown accumulated time length obtained by the target terminal in the last shutdown process;
further comprising: if the target terminal has a sleep state in the process of starting up the terminal at the time, acquiring a corresponding sleep time length;
and acquiring the total startup accumulated time length according to the startup time length increment, the sleep time length and the last startup accumulated time length acquired by the target terminal in the last startup process.
2. The usage control method of an application software product according to claim 1, further comprising: and after a trigger signal of a user for modifying the system time of the target terminal is sensed, recording the modified system time as modification time, and calculating the startup time and the shutdown time according to the modification time in subsequent startup and shutdown processes.
3. A usage control apparatus for an application software product, comprising:
the acquisition module is used for acquiring the running state of the target terminal after the target application software product is installed, and determining the total startup accumulated time length and the total shutdown accumulated time length according to the running state;
the calculation module is used for determining the used time length of the target terminal to the target application software product according to the total startup accumulated time length and the total shutdown accumulated time length;
the control module is used for controlling the comparison result of the used time length and the authorized time length of the target terminal according to the target application software product;
the acquisition module comprises a first acquisition unit and a second acquisition unit, wherein:
the first obtaining unit is used for obtaining the system click-through number recorded in the current starting process of the target terminal and obtaining the system click-through number recorded in the last time in the current starting process of the target terminal;
obtaining a starting time increment according to the system click number recorded at the current time and the system click number recorded at the last time;
acquiring the total startup accumulated time length according to the startup time length increment and the last startup accumulated time length recorded by the target terminal;
the second acquisition unit is used for acquiring the starting time of the latest starting event in the starting event set of the target terminal, acquiring a shutdown notification in the last starting process and acquiring the shutdown time according to the shutdown notification;
obtaining a shutdown duration increment according to the startup time and the shutdown time;
obtaining the total shutdown accumulated time length according to the shutdown time length increment and the shutdown accumulated time length obtained by the target terminal in the last shutdown process;
the first obtaining unit is further configured to obtain a corresponding sleep duration when the target terminal is in a sleep state in a current boot process, and obtain a total boot accumulated duration according to the boot duration increment, the sleep duration, and a last boot accumulated duration obtained by the target terminal in a last boot process.
4. The device for controlling usage of an application software product according to claim 3, wherein the second obtaining unit is further configured to record the modified system time as the modification time after sensing a trigger signal for modifying the system time of the target terminal by a user, and calculate the power-on time and the power-off time according to the modification time in subsequent power-on and power-off processes.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the usage control method of the application software product according to claim 1 or 2 are implemented when the processor executes the program.
6. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the usage control method of an application software product according to claim 1 or 2.
CN201910847265.8A 2019-09-09 2019-09-09 Application software product use control method and device Active CN110659456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910847265.8A CN110659456B (en) 2019-09-09 2019-09-09 Application software product use control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910847265.8A CN110659456B (en) 2019-09-09 2019-09-09 Application software product use control method and device

Publications (2)

Publication Number Publication Date
CN110659456A CN110659456A (en) 2020-01-07
CN110659456B true CN110659456B (en) 2021-10-15

Family

ID=69036846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910847265.8A Active CN110659456B (en) 2019-09-09 2019-09-09 Application software product use control method and device

Country Status (1)

Country Link
CN (1) CN110659456B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770557A (en) * 2008-12-30 2010-07-07 上海茂碧信息科技有限公司 Method for calculating service time of software in system
CN101963938A (en) * 2010-10-29 2011-02-02 四川长虹电器股份有限公司 System and method for recording running time of digital set top box
CN102999734A (en) * 2011-09-19 2013-03-27 比亚迪股份有限公司 Computer expiration date limiting method and system
CN103310131A (en) * 2012-03-13 2013-09-18 纬创资通股份有限公司 Method and system for protecting software authorization
CN106790417A (en) * 2016-11-30 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of long-range control method, terminal and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11150885B2 (en) * 2012-08-22 2021-10-19 Transportation Ip Holdings, Llc Method and system for vehicle software management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770557A (en) * 2008-12-30 2010-07-07 上海茂碧信息科技有限公司 Method for calculating service time of software in system
CN101963938A (en) * 2010-10-29 2011-02-02 四川长虹电器股份有限公司 System and method for recording running time of digital set top box
CN102999734A (en) * 2011-09-19 2013-03-27 比亚迪股份有限公司 Computer expiration date limiting method and system
CN103310131A (en) * 2012-03-13 2013-09-18 纬创资通股份有限公司 Method and system for protecting software authorization
CN106790417A (en) * 2016-11-30 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of long-range control method, terminal and system

Also Published As

Publication number Publication date
CN110659456A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
US9154499B2 (en) Offline data delete with false trigger protection
KR101498614B1 (en) Apparatus and method of deactivating malicious codes
CN110222263B (en) Application program maintenance control method, device, server, terminal and storage medium
CN105302711B (en) Application restoration method and device and terminal
KR101803890B1 (en) Method and Apparatus for Detecting Evasive Malware
CN111988422A (en) Subscription method, device, server and storage medium of application service
CN110874263B (en) Method and device for monitoring instances of docker container
CN109992515B (en) Test method and device and electronic equipment
CN109375956B (en) Method for restarting operating system, logic device and control device
CN107391174B (en) Control method and control device for online upgrading of system
CN110659456B (en) Application software product use control method and device
CN110222264B (en) Application program maintenance control method, device, terminal, server and storage medium
US9098677B2 (en) System and method for automated clock wind back recovery
CN110244974B (en) Application program maintenance control method, device, server, terminal and storage medium
US10986221B2 (en) Execution of testing processes on apparatuses
CN117149482A (en) Method and device for detecting thread state, electronic equipment and medium
CN116069541A (en) Memory error processing method and device, storage medium and electronic equipment
JP4946926B2 (en) Software update system, software update method and program
CN114237959A (en) Robot life cycle management method, device, terminal and storage medium
CN113609478A (en) IOS platform application program tampering detection method and device
CN113051576A (en) Control method and electronic device
CN112394800A (en) Chip resetting method and system, storage medium and electronic equipment
CN113254281A (en) Detection method and detection device for USB controller
CN114925339B (en) License time management and control method, device, equipment and medium of server firmware
CN111125771A (en) Method and device for protecting equipment privacy, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant