Intelligent set top box and intelligent set top box startup optimization method

By optimizing the application file storage path and boot process in the smart set-top box, the problem of lengthy boot process of the set-top box is solved, achieving faster startup time and higher user experience.

CN119484912APending Publication Date: 2025-02-18HISENSE BROADBAND MULTIMEDIA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311014742.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

With the update of the set-top box operating system version, the boot process becomes lengthy and the user wait time increases, mainly due to the increase in system space and the strengthening of security verification due to the failure to significantly improve the hardware configuration.

Method used

By configuring the preset application path stored in the read-write register in the smart set-top box, the installation application path stored in the read-only register. The preset application files are parsed and installed when the first boot is started. The self-start settings are adjusted according to the activity of the application software during the first boot, and the infrequently used application software are uninstalled under appropriate conditions.

Benefits of technology

Reduces scanning and APK parsing time during the first startup process, reduces startup time for production and factory reset, improves user experience, and improves boot speed and memory usage efficiency by optimizing self-boot settings and uninstalling unnecessary software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484912A_ABST
    Figure CN119484912A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent set top box and an intelligent set top box power-on optimization method, and the method comprises the steps: obtaining the current system time, and calculating the activeness of application software according to the previous operation time, the previous operation duration and the current system time of the application software; when the intelligent set top box is operated for multiple times and the application software is installed, the intelligent set top box is set as the application software which is automatically started after being started, a user uses less or has no use requirement, the activity degree of the application software is low, and when the activity degree of the application software is smaller than a self-starting closing threshold value, self-starting of the application software is closed. According to the method, the application software set to be self-started in the system is modified to be non-self-started in the starting process, the starting speed is increased, meanwhile, modification is carried out according to the use habits of the user, and the experience feeling of the user is not affected. A self-starting and closing program is arranged in the intelligent set top box, the number of self-starting application software in the starting process can be reduced without manual control of a user, redundancy in the starting process is reduced, and the loading time and the starting display time of the application software are optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a smart set-top box and a smart set-top box startup optimization method. Background Art

[0002] Interactive Internet TV uses computers or smart set-top boxes and TVs to receive video-on-demand programs, video broadcasts, and surf the Internet. Interactive Internet TV can adapt well to the trend of today's rapid Internet development, fully and effectively utilize network resources, and has good interactivity. It is being widely used in operator networks.

[0003] As set-top boxes are replaced and used with higher versions of the operating system, the operating system occupies more and more space, security checks become more stringent, and the number of pre-installed system applications increases. As a result, when the hardware configuration of the smart set-top boxes has not been significantly improved, the boot process is lengthy and users have to wait longer when booting up. Summary of the invention

[0004] The present application provides a smart set-top box and a smart set-top box startup optimization method to improve the startup speed of the set-top box.

[0005] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:

[0006] On the one hand, the present application discloses a smart set-top box startup optimization method, comprising:

[0007] The preset application file is configured to be stored in the preset application path, and the installed application file is configured to be stored in the installed application path; the preset application path is a readable and writable register, and the installed application path is a read-only register;

[0008] The current boot is the first boot, the preset application files in the preset application path are parsed, and the application software corresponding to the parsed preset application files is started; the files in the installation application path are not parsed;

[0009] Establishing a self-starting list of application software, wherein the self-starting list includes the name of the application software and the corresponding self-starting flag;

[0010] The current boot is not the first boot, the self-starting application software is started according to the self-starting list, and after receiving the installation command, the files under the installation application path are parsed, and the parsed files are installed to the application storage path; the application storage path is a readable and writable register;

[0011] The activity of the application software is calculated according to the application software self-start list. When the activity of the application software is less than the threshold for closing the self-start, the self-start flag is modified to close the self-start of the application software.

[0012] On the other hand, the present application discloses a smart set-top box startup optimization method, comprising:

[0013] The preset application file is configured to be stored in the preset application path, and the installed application file is configured to be stored in the installed application path; the preset application path is a readable and writable register, and the installed application path is a read-only register;

[0014] The current boot is the first boot, the preset application files in the preset application path are parsed, and the application software corresponding to the parsed preset application files is started; the files in the installation application path are not parsed;

[0015] Establishing a self-starting list of application software, wherein the self-starting list includes the name of the application software and the corresponding self-starting flag;

[0016] If the current boot is not the first boot, obtain the current system time, and calculate the activity of the application software according to the last running time of the application software, the last running duration and the current system time;

[0017] When the activity of the application software is less than the threshold for shutting down the automatic start-up, shut down the automatic start-up of the application software;

[0018] When the activity of the application software is less than the uninstall threshold, the application software is automatically uninstalled;

[0019] After receiving the installation command, the files under the installation application path are parsed, and the parsed files are installed to the application storage path; the application storage path is a readable and writable register.

[0020] In a third aspect, the present application provides a smart set-top box, comprising: a first data storage module, comprising: a preset application folder and an installed application folder, wherein the preset application files are stored in the preset application folder, and the installed application files are stored in the installed application folder;

[0021] The startup monitoring module determines whether the current startup process is the first startup;

[0022] The information collection module is used to collect data information of the application software and store the collected data information in the information storage module;

[0023] An information storage module, in which an application software self-starting list is established, and the application software self-starting list includes: the name of the application software, the installation path, the self-starting flag, and the usage information;

[0024] The operation module turns off the automatic startup of the application software or uninstalls the currently installed software according to the automatic startup list of the application software.

[0025] Beneficial effects of this application:

[0026] The present application discloses a smart set-top box and a smart set-top box startup optimization method, which configures the preset application file to be stored in the preset application path, and configures the installation application file to be stored in the installation application path; the preset application path is a readable and writable register, and the installation application path is a read-only register. When the current startup is the first startup, the preset application file under the preset application path will be parsed, and the application software corresponding to the parsed preset application file will be started, and the parsed software will be installed under the preset application path. The files under the installation application path are not parsed. After receiving the installation command, the application software corresponding to the installation command is installed, and the files under the installation application path are parsed at this time, and the parsed files are installed to the application storage path. This application parses and installs the preset application file at the first startup, and the installation application is not installed, thereby reducing the number of system default preset application software, reducing the first startup process scanning and APK parsing time, reducing the production first startup time and the factory first startup startup time, and improving the user experience. By obtaining the current system time, the activity of the application software is calculated according to the previous running time, the previous running time and the current system time of the application software. During multiple runs of the smart set-top box, the application software that has been set to start automatically during the application software installation process is rarely used or has no use demand by the user, and the activity of the application software is low. When the activity of the application software is less than the threshold for shutting down the automatic start, the automatic start of the application software is shut down, and the application software that has been set to start automatically at startup is changed to not start automatically at startup, thereby improving the boot rate. At the same time, it is modified according to the user's usage habits without affecting the user's experience. The automatic start and shutdown program is set in the smart set-top box, which does not require manual control by the user and can be modified according to the user's usage habits to improve the system's operating rate. Reduce the number of self-starting application software during the boot process, reduce redundancy during the boot process, increase the boot speed, reduce the number of background process applications, improve memory usage efficiency, and optimize the loading and boot display time of application software. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0028] Figure 1 is a schematic diagram of a usage scenario of a set-top box according to an embodiment;

[0029] Figure 2 A schematic diagram of a signaling process for first powering on a smart set-top box according to some embodiments;

[0030] Figure 3 A smart set-top box startup optimization method is provided according to some embodiments;

[0031] Figure 4 A step of closing or uninstalling currently installed software according to some embodiments;

[0032] Figure 5 The steps of shutting down the automatic startup of application software provided according to some embodiments;

[0033] Figure 6 A method for closing or uninstalling currently installed software according to some embodiments;

[0034] Figure 7 A schematic diagram of the structure of a smart set-top box provided according to some embodiments;

[0035] Figure 8 A schematic diagram of the structure of a computing module provided according to some embodiments;

[0036] Fig. 9 A schematic diagram of another computing module structure provided according to some embodiments;

[0037] Fig.10 Schematic diagram of the structure of a third smart set-top box according to some embodiments. DETAILED DESCRIPTION

[0038] To facilitate the explanation of the technical solution of the application, some concepts involved in the application are first explained below.

[0039] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0040] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0041] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0042] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0043] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0044] Figure 1 Schematic diagram of a usage scenario of a smart set-top box according to an embodiment. Figure 1 As shown, the smart set-top box 100 is a device that connects the display device 200 and the server 400. It can convert the compressed digital signal into TV content and display it on the display device.

[0045] The display device 200 performs data communication with the server 400 , and the user can operate the display device 200 through the smart device 300 or the control apparatus 500 .

[0046] In some embodiments, the control device 500 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and at least one of other short-range communication methods, to control the display device 200 wirelessly or wired. The user may control the display device 200 by inputting user commands through at least one of buttons on the remote controller, voice input, and control panel input.

[0047] In some embodiments, the smart device 300 may include any one of a mobile terminal, a tablet computer, a computer, a laptop computer, an AR / VR device, etc.

[0048] In some embodiments, the smart device 300 may also be used to control the display device 200. For example, the display device 200 is controlled using a Java layer of an application running on the smart device.

[0049] In some embodiments, the smart device 300 and the display device may also be used to communicate data.

[0050] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 500 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0051] In some embodiments, the smart set-top box also communicates data with the server 400. The smart set-top box 100 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN) and other networks. The server 400 may provide various content and interactions to the set-top box 100. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.

[0052] In some embodiments, the software steps executed by a step execution subject can be migrated to another step execution subject in data communication with it as needed for execution. Exemplarily, the software steps executed by a server can be migrated to a display device in data communication with it as needed for execution, and vice versa.

[0053] The control device 500 can also be connected to the intelligent set-top box 100 for communication. Usually, the control device and the set-top box communicate via an infrared protocol, and the set-top box receives the communication signal from the control device to complete the user's remote control operation.

[0054] The smart set-top box 100 may be externally arranged on the outside of the display device housing, or may be built inside the display device.

[0055] Figure 2 FIG. 1 is a schematic diagram of a signaling process for first powering on a smart set-top box according to some embodiments. Figure 2 As shown, the first startup method of the smart set-top box includes: T01: the startup monitoring module determines whether the current startup process is the first startup. T02: if the current startup process is the first startup process, output the first startup installation signal to the data analysis module. T03: the data analysis module retrieves the data in the first data storage module under the preset application path, and parses and installs the preset application file, and starts the installed preset application; the data analysis module does not parse the files under the installation application path.

[0056] When the device is turned on for the first time, all pre-installed application files apk are scanned, dex bytecode is extracted, and placed in the cache path for loading at the next startup. If the current startup is not the first startup, the cached bytecode is directly loaded quickly, without loading or loading less, at least all apk scanning processes and time are reduced.

[0057] By presetting the application folder and the installation application folder in the first data storage module. The preset application files are stored in the preset application folder, and the installation application files are stored in the installation application folder. During the first boot process, the preset application files are parsed and installed, and the installation application is not installed, which reduces the number of default preset application software in the system (which can be pre-installed later), reduces the scanning and APK parsing time during the first boot process, reduces the first boot time of production and the first boot time of factory recovery, and improves the user experience.

[0058] This application parses and installs the preset application files when the device is turned on for the first time, and does not install the installed application, thereby reducing the number of default preset application software in the system, shortening the scanning and APK parsing time during the first startup process, shortening the first startup time in production and the first startup time after factory recovery, and improving the user experience.

[0059] Figure 3 A smart set-top box startup optimization method is provided according to some embodiments, such as Figure 3 As shown, in order to improve the startup speed of the smart set-top box, the present application provides a smart set-top box startup optimization method, including:

[0060] S100: configuring a preset application file to be stored in a preset application path, and configuring an installed application file to be stored in an installed application path.

[0061] The smart set-top box is configured with pre-installed application files and installed application files, wherein the pre-installed application files are stored in a pre-installed application path, and the installed application files are stored in an installed application path.

[0062] S200: The current boot is the first boot, the preset application files under the preset application path are parsed, and the application software corresponding to the parsed preset application files is started; the files under the installation application path are not parsed.

[0063] For example, the preset application paths are .apk files in different paths such as / system / priv-app, / system / app, / vendor / priv-app, / vendor / app, / odm / priv-app, / odm / app, / oem / app, and / oem / priv-app.

[0064] During the first boot process, the preset application files in the preset application path are searched, decompressed and scanned, and the dex files are saved to the dalvik-cache directory. Then, according to the .manifest file of the apk, the .apk resource files are parsed according to the manifest and finally placed under the / data / data / apk package name to store the application data. When the application software is started, it directly goes to the apk package name to find the resource files that the apk depends on and applies for the corresponding permissions for subsequent quick startup.

[0065] The installation application path can be the .apk file under / data / app / . For files under the installation application path, they are not directly preset for subsequent installation, and there is no parsing process during the first startup, which can save the parsing and startup time of the corresponding apk. The apk installation in the installation application path directory and the .apk parsing resource files are placed under / data / data, and are not parsed during the first startup process, which effectively reduces the time consumption of the first startup process.

[0066] The preset application path is a readable and writable register, and the installed application path is a read-only register. For the application software of the preset application path, the system reads and parses the corresponding files and installs the parsed applications under the preset application path. For the files under the installed application path, the system reads the files under the installed application path after receiving the installation command, parses and installs them to the application storage path. The application storage path is a readable and writable register.

[0067] After the first boot process is completed, the installation application file under the installation application path is parsed, and the application software corresponding to the parsed installation application file is started.

[0068] The power-on monitoring module receives a power-on request and determines whether the current power-on is the first power-on according to the power-on request.

[0069] For example, you can determine whether the current boot is the first boot by querying whether there is dex bytecode in the cache path. When the machine is booted for the first time, there is no dex bytecode in the cache path. After receiving the boot request, the boot monitoring module queries whether there is dex bytecode in the cache path. If there is no dex bytecode in the cache path, it indicates that the current boot is the first boot; if there is dex bytecode in the cache path, it indicates that the current boot is not the first boot. When the machine is booted for the first time, scan all preset application files apk, extract the dex bytecode, and put it in the cache path for loading at the next startup. The current boot is not the first boot, so the cached bytecode is directly and quickly loaded, without loading or loading less, at least all apk scanning processes and time are reduced.

[0070] After the Android system starts, the first APK that starts normally is an APP with Home and Launcher attributes. Only when the desktop software is parsed and loaded, the system will send a bootcomplete message, and other applications can be monitored and started normally. Therefore, you can determine whether the current boot is the first boot by monitoring whether the desktop software has been installed.

[0071] If the desktop software is not installed, the current startup is the first startup, the data analysis module retrieves the preset application file under the preset application path, analyzes and installs the preset application file, and starts the installed preset application. Before the desktop software is started, the data analysis module does not analyze the files under the installation application path.

[0072] During the system startup process, system services and processes will be started in the initialization script .rc and there will be a startup sequence. According to the startup status, if it is judged that the startup has been completed, the corresponding installation script system / bin / preinstall.sh will be executed to ensure that the installation is performed after the startup is completed and the system is entered. The preinstall.sh script classifies the application software to be installed and triggers the installation. If the corresponding conditions are met, some apk will be installed. If not, it can be not installed or installed next time, which effectively reduces the time consumption of the first startup process.

[0073] S300: Establish an application software self-start list, which includes: the name of the application software, the installation path, the self-start flag, and the usage information.

[0074] The smart set-top box is provided with an information storage module and an information collection module, wherein the information collection module is used to collect data information of application software and store the collected data information in the information storage module. An application software self-starting list is established in the information storage module, and the application software self-starting list includes: the name of the application software, the installation path, the self-starting flag, and the usage information.

[0075] For example, the self-start list includes information corresponding to the application software that has been set to start automatically at boot. In some embodiments, the self-start list includes information corresponding to all installed application software.

[0076] After the desktop software is started, the application software with the self-start function sends a bootcomplete message to start the specified self-start application software. For example, the self-start flag of the application software with the self-start function is the first self-start flag bit.

[0077] After the application sends the bootcomplete message, the application starts automatically, creates an ActivityThread object in the process through AMS, and then starts the main function of the application. After the application starts, it notifies AMS, then finds the homepage of the application and displays it.

[0078] S400: After the desktop software is started, the currently installed software is closed or uninstalled according to the application software self-start list.

[0079] The system is provided with a shutdown threshold and an uninstall threshold. If the usage information of the application software meets the shutdown threshold, the automatic startup of the application software is shut down; if the usage information of the application software meets the uninstall threshold, the application software is uninstalled.

[0080] For example, the usage information includes: the last startup time of the application software, the last time of the application software, the number of runs, the last running time of the application software, the total running time of the application software, and the running time of all applications.

[0081] Figure 4 The steps of closing or uninstalling currently installed software according to some embodiments are as follows: Figure 4 As shown, a computing module is provided in the smart set-top box, which closes or uninstalls currently installed software according to the application software self-start list.

[0082] S401: Obtain the current system time, and calculate the activity of the application software according to the last running time of the application software, the last running duration and the current system time.

[0083] Activity can be one or more of the following: application duration ratio, idle time, and operation frequency ratio.

[0084] The duration ratio of an application software is the ratio of the current total running duration to the total system running duration. In the example, the total running duration of the first application software is A1, and the total system running duration is B1, then the duration ratio of the first application software is A1 / B1.

[0085] The total running time of the application software can be the total running time in the time period from the start of the system to the current time, or the total running time in the preset time period. For example, the total running time of the application software is the total running time in the time period from the start of the system to the current time, the time point when the system starts running is a1, and the current time point is b1, then in the a1-b1 time period, the total running time of the first application software is recorded as the total running time of the application software. Or, the total running time of the application software is the total running time in the preset time period, and the preset time period can be a period of one month, three months, or half a year. If the preset time period is three months, the total running time of the first application software is the total running time of the first application software from the current time point b1 to three months from the current time point.

[0086] The idle time of the application software is the time interval from the last running time of the application software to the current system time. For example, if the last running time of the first application software is C1 and the current system time is D1, then the idle time of the application software is D1-C1.

[0087] The running frequency ratio of the application software is the ratio of the number of times the application software is run to the total number of times the computer is turned on. The running frequency ratio can be the running frequency in the time period from the start of the system to the current time, or it can be the running frequency in a preset time period. For example, the running frequency of the application software is the running frequency in the time period from the start of the system to the current time. The time point when the system starts running is a1, and the current time point is b1. Then, in the a1-b1 time period, the number of times the first application software is run is X1, the total number of times the system is turned on is Y1, and the running frequency of the first application software is X1 / Y1. Or, the running frequency of the application software is the total running time in the preset time period. The preset time period can be a period of one month, three months, or half a year. If the preset time period is three months, the total running time of the first application software is the ratio of the number of times the first application software is run to the total number of times the computer is turned on within three months from the current time point b1 to the current time point.

[0088] Activity can be the time ratio and running frequency of the application software normalized according to the preset proportion. For example, the time ratio of the application software is A2, and the running frequency ratio is C2. A2+C2=1. Activity is: time ratio×A2+running frequency×C2.

[0089] Activity can be the time ratio, running frequency, and idle time of the application software normalized according to the preset proportion. For example, when the idle time is greater than the preset idle interval, the idle value is recorded as 1; when the idle time is less than or equal to the preset idle interval, the idle value is recorded as 0. For example, if the preset idle interval is 1 month, when the idle time of the first application software is greater than 1 month, the idle value is recorded as 1.

[0090] The proportion of application software usage time is A2, the proportion of idle time is B2, and the proportion of operation frequency is C2.

[0091] A2+B2+C2=1. The activity level is: duration ratio×A2+running idle value×B2+running frequency×C2(1).

[0092] S402: When the activity of the application software is less than the threshold for shutting down the automatic start-up, shutting down the automatic start-up of the application software.

[0093] For example, the shutdown and auto-start threshold can be differentiated according to the properties of different application software, that is, the shutdown and auto-start threshold of the first application software is the first shutdown and auto-start threshold, and the shutdown and auto-start threshold of the second application software is the second shutdown and auto-start threshold, wherein the first shutdown and auto-start threshold and the second shutdown and auto-start threshold can be the same or different.

[0094] In some embodiments, the shutdown auto-start threshold may be a value such as 0.06, 0.1, 0.2, etc. When the activity of the application software is less than the shutdown auto-start threshold, the automatic startup of the application software is shut down. The setting of the shutdown auto-start threshold may be set according to the properties of the same application software.

[0095] The smart set-top box is equipped with an automatic start-up and shutdown unit, which obtains the current system time and calculates the activity of the application software based on the last running time of the application software, the last running duration and the current system time. When the activity of the application software is less than the shutdown threshold, the automatic start of the application software is turned off.

[0096] Figure 5 The steps of turning off the automatic start of application software provided according to some embodiments, in some embodiments of the present application, turning off the automatic start of application software includes:

[0097] S4021: Modify the corresponding self-start flag in the self-start list of the application software. For example, the self-start flag of the application software in the self-start list of the software includes a first self-start flag and a second self-start flag. The first self-start flag is 1, and the second self-start flag is 0. When the self-start flag of the application software is the first self-start flag, it indicates that the current application software starts automatically when the computer is turned on; when the self-start flag of the application software in the self-start list of the software is the second self-start flag, it indicates that the current application software does not start automatically when the computer is turned on.

[0098] S4022: Obtain the installation path of the application software and change the startup procedure of the application software.

[0099] In some embodiments of the present application, after turning off the self-start of the application software, the information of the corresponding application software in the software self-start list can also be cleared.

[0100] You can disable the automatic startup of application software by executing the pm disable command.

[0101] This application obtains the current system time and calculates the activity of the application software according to the last running time, the last running duration and the current system time of the application software. During multiple runs of the smart set-top box, the application software that has been set to start automatically at boot during the application software installation process is rarely used or has no use demand by the user, and the activity of the application software is low. When the activity of the application software is less than the threshold for shutting down the self-start, the self-start of the application software is turned off, and the application software that has been set to start automatically at boot is modified to not start automatically at boot, thereby increasing the boot rate. At the same time, it is modified according to the user's usage habits without affecting the user's experience. The self-start shutdown program is set in the smart set-top box, which does not require manual control by the user and can be modified according to the user's usage habits to increase the operating rate of the system. Reduce the number of self-starting application software during the boot process, reduce redundancy during the boot process, increase the boot speed, reduce the number of background process applications, improve memory usage efficiency, and optimize the loading and boot display time of application software.

[0102] Figure 6 A method for closing or uninstalling currently installed software is provided according to some embodiments, such as Figure 6 As shown, closing or uninstalling currently installed software according to the application software self-start list also includes:

[0103] S403: When the activity of the application software is less than the uninstallation threshold, the application software is automatically uninstalled.

[0104] Get the current system time, and calculate the activity of the application software based on the last running time of the application software, the last running duration, and the current system time. When the activity of the application software is less than the uninstall threshold, the application software is automatically uninstalled.

[0105] For example, the uninstall threshold can be differentiated according to the properties of different application software, that is, the uninstall threshold of the first application software is the first uninstall threshold, and the uninstall threshold of the second application software is the second uninstall threshold, wherein the first uninstall threshold and the second uninstall threshold can be the same or different.

[0106] In some embodiments, the uninstall threshold may be a value such as 0.01, 0.08, or 0.2. When the activity of the application software is less than the threshold for shutting down the automatic start-up, the automatic start-up of the application software is shut down. The setting of the uninstall threshold may be set according to the properties of the same application software.

[0107] In some embodiments of the present disclosure, the first shutdown auto-start threshold is greater than the first uninstallation threshold, that is, when the activity of the same application software is less than the shutdown auto-start threshold, its auto-start program is shut down, and when the activity continues to drop below the uninstallation threshold, the application software is uninstalled. However, shutting down the application software auto-start program is not a necessary process for uninstalling the application software. If the first application software is not set to auto-start during the installation process, and the activity of the first application software is lower than the first uninstallation threshold during use, the first application software is uninstalled.

[0108] For example, installation and debugging software or factory menus are usually only used during installation and debugging or production. Users do not need to use this type of software in subsequent use. When the activity of this type of application software is less than the uninstall threshold, the system automatically uninstalls it, increases memory space, reduces redundancy during the boot process, increases boot speed, reduces the number of background process applications, improves memory usage efficiency, and optimizes application software loading and boot display time.

[0109] According to the above smart set-top box startup optimization method, the present application also discloses a smart set-top box. Figure 7 FIG. 1 is a schematic diagram of the structure of a smart set-top box according to some embodiments. Figure 7 As shown, the smart set-top box includes:

[0110] The first data storage module includes: a preset application folder and an installed application folder, wherein the preset application files are stored in the preset application folder, and the installed application files are stored in the installed application folder.

[0111] For example, the preset application folders can be .apk files in different paths such as / system / priv-app, / system / app, / vendor / priv-app, / vendor / app, / odm / priv-app, / odm / app, / oem / app, and / oem / priv-app.

[0112] During the first boot process, the preset application files in the preset application path are searched, decompressed and scanned, and the dex files are saved to the dalvik-cache directory. Then, according to the .manifest file of the apk, the .apk resource files are parsed according to the manifest and finally placed under the / data / data / apk package name to store the application data. When the application software is started, it directly goes to the apk package name to find the resource files that the apk depends on and applies for the corresponding permissions for subsequent quick startup.

[0113] The boot monitoring module determines whether the current boot process is the first boot. For example, it can be determined whether the current boot is the first boot by monitoring whether the desktop software has been installed. If the desktop software has been installed, the current boot is not the first boot; if the desktop software is not installed, the current boot is the first boot.

[0114] The information collection module is used to collect data information of the application software and store the collected data information in the information storage module.

[0115] Information storage module, in which the application software self-start list is established, which includes: the name of the application software, installation path, self-start flag, and usage information. After the desktop software is started, the application software with the self-start function sends a bootcomplete message to start the specified self-start application software. After the application software sends the bootcomplete message, the application software starts self-starting, creates an ActivityThread object in the process through AMS, and then starts the main function of the application software. After the application software starts, it notifies AMS, and then finds the homepage of the application software and displays it.

[0116] The calculation module closes or uninstalls the currently installed software according to the application software self-start list. The calculation module calls the data information in the information storage module and closes or uninstalls the currently installed software according to the application software self-start list.

[0117] Figure 8 is a schematic diagram of a computing module structure provided according to some embodiments, such as Figure 8 As shown, the computing module of the present application includes: a data computing unit, a comparison unit and an automatic start-up and shutdown unit. The data computing unit calculates the activity of the application software according to a preset program. The comparison unit performs a comparison operation with the shutdown and automatic start-up threshold value according to the activity of the application software calculated by the data computing unit. The automatic start-up and shutdown unit receives the control information of the comparison unit and shuts down and automatically starts the startup program of the application software.

[0118] The comparison unit performs a comparison operation based on the activity of the application software and the shutdown threshold value. If the activity of the application software is less than the shutdown threshold value, the comparison unit outputs a first control signal to the shutdown unit to control the shutdown unit to shut down the self-start of the application software and modify the corresponding self-start flag in the self-start list. If the activity of the application software is greater than or equal to the shutdown threshold value, no control signal is output.

[0119] The information storage module stores a software self-start list, including the name, installation path, self-start flag, and usage information of the installed application software. For example, the self-start flag of the application software in the software self-start list includes a first self-start flag and a second self-start flag. The first self-start flag is 1, and the second self-start flag is 0. When the self-start flag of the application software is the first self-start flag, it means that the current application software starts automatically when the computer is turned on; when the self-start flag of the application software in the software self-start list is the second self-start flag, it means that the current application software does not start automatically when the computer is turned on.

[0120] Activity can be one or more of the following: application duration ratio, idle time, and operation frequency ratio.

[0121] The duration ratio of an application software is the ratio of the current total running duration to the total system running duration. In the example, the total running duration of the first application software is A1, and the total system running duration is B1, then the duration ratio of the first application software is A1 / B1.

[0122] The total running time of the application software can be the total running time in the time period from the start of the system to the current time, or the total running time in the preset time period. For example, the total running time of the application software is the total running time in the time period from the start of the system to the current time, the time point when the system starts running is a1, and the current time point is b1, then in the a1-b1 time period, the total running time of the first application software is recorded as the total running time of the application software. Or, the total running time of the application software is the total running time in the preset time period, and the preset time period can be a period of one month, three months, or half a year. If the preset time period is three months, the total running time of the first application software is the total running time of the first application software from the current time point b1 to three months from the current time point.

[0123] The idle time of the application software is the time interval from the last running time of the application software to the current system time. For example, if the last running time of the first application software is C1 and the current system time is D1, then the idle time of the application software is D1-C1.

[0124] The running frequency ratio of the application software is the ratio of the number of times the application software is run to the total number of times the computer is turned on. The running frequency ratio can be the running frequency in the time period from the start of the system to the current time, or it can be the running frequency in a preset time period. For example, the running frequency of the application software is the running frequency in the time period from the start of the system to the current time. The time point when the system starts running is a1, and the current time point is b1. Then, in the a1-b1 time period, the number of times the first application software is run is X1, the total number of times the system is turned on is Y1, and the running frequency of the first application software is X1 / Y1. Or, the running frequency of the application software is the total running time in the preset time period. The preset time period can be a period of one month, three months, or half a year. If the preset time period is three months, the total running time of the first application software is the ratio of the number of times the first application software is run to the total number of times the computer is turned on within three months from the current time point b1 to the current time point.

[0125] Activity can be the time ratio and running frequency of the application software normalized according to the preset proportion. For example, the time ratio of the application software is A2, and the running frequency ratio is C2. A2+C2=1. Activity is: time ratio×A2+running frequency×C2.

[0126] Activity can be the time ratio, running frequency, and idle time of the application software normalized according to the preset proportion. For example, when the idle time is greater than the preset idle interval, the idle value is recorded as 1; when the idle time is less than or equal to the preset idle interval, the idle value is recorded as 0. For example, if the preset idle interval is 1 month, when the idle time of the first application software is greater than 1 month, the idle value is recorded as 1.

[0127] The proportion of application software usage time is A2, the proportion of idle time is B1, and the proportion of operation frequency is C2.

[0128] A2+B2+C2=1. The activity level is: duration ratio×A2+running idle value×B2+running frequency×C2.

[0129] The smart set-top box of the present application includes: a startup monitoring module, which determines whether the current startup process is the first startup. When the current startup process is not the first startup, the information collection module is used to collect data information of the application software and store the collected data information in the information storage module. The information storage module establishes an application software self-start list in the information storage module, and the application software self-start list includes: the name of the application software, the installation path, the self-start flag, and the usage information. The calculation module closes or uninstalls the currently installed software according to the application software self-start list. By obtaining the current system time, the activity of the application software is calculated according to the last running time, the last running time and the current system time of the application software. During multiple runs of the smart set-top box, the application software that has been set to start automatically during the installation process of the application software is rarely used or has no use demand by the user, and the activity of the application software is low. When the activity of the application software is less than the threshold for closing the self-start, the self-start of the application software is closed, and the application software that has been set to start automatically at startup is modified to not start automatically at startup, thereby increasing the startup rate. At the same time, the modification is made according to the user's usage habits without affecting the user's experience. The smart set-top box is equipped with an automatic startup and shutdown program, which can be modified according to the user's usage habits without manual control by the user, thereby improving the system's operating speed. It reduces the number of automatically started applications during the startup process, reduces redundancy during the startup process, increases the startup speed, reduces the number of background process applications, improves memory usage efficiency, and optimizes the loading and startup display time of application software.

[0130] Fig. 9 FIG. 1 is a schematic diagram of another operation module structure provided according to some embodiments, such as Fig. 9 As shown, the computing module of the present application includes: a data computing unit, a comparison unit, an automatic start-up and shutdown unit, and an uninstallation unit. The data computing unit calculates the activity of the application software according to a preset program. The comparison unit performs a comparison operation with the automatic start-up and shutdown threshold value according to the activity of the application software calculated by the data computing unit. The automatic start-up and shutdown unit receives the control information of the comparison unit and performs automatic start-up control on the startup program of the application software.

[0131] The comparison unit performs a comparison operation based on the activity of the application software and the shutdown threshold value. If the activity of the application software is less than the shutdown threshold value, the comparison unit outputs a first control signal to the shutdown unit to control the shutdown unit to shut down the self-start of the application software and modify the corresponding self-start flag in the self-start list. If the activity of the application software is greater than or equal to the shutdown threshold value, the first control signal is not output.

[0132] The comparison unit performs a comparison operation based on the activity of the application software and the uninstallation threshold, and if the activity of the application software is less than the uninstallation threshold, outputs a second control signal to the uninstallation unit to control the uninstallation unit to uninstall the application software. If the activity of the application software is greater than or equal to the uninstallation threshold, the second control signal is not output.

[0133] The system automatically uninstalls applications whose activity is less than the uninstall threshold, increasing memory space, reducing redundancy during the boot process, increasing boot speed, reducing the number of background process applications, improving memory usage efficiency, and optimizing application software loading and boot display time. For installation and debugging software or factory menus, they are usually only used during installation and debugging or production, and users do not need to use such software in subsequent use. When the activity of such application software is less than the uninstall threshold, the system automatically uninstalls it, increasing memory space, reducing redundancy during the boot process, increasing boot speed, reducing the number of background process applications, improving memory usage efficiency, and optimizing application software loading and boot display time.

[0134] Fig.10 FIG. 1 is a schematic diagram of the structure of a third smart set-top box according to some embodiments. Fig.10 As shown, the smart set-top box includes: a first data storage module, a power-on monitoring module, an information collection module, a data parsing module, and an information storage module. Among them: the first data storage module includes: a preset application folder and an installed application folder. The preset application files are stored in the preset application folder, and the installed application files are stored in the installed application folder. The power-on monitoring module determines whether the current power-on process is the first power-on. The data parsing module and the software installation module receive the first power-on control information, the data parsing module retrieves the preset application files under the preset application path, and parses and installs the preset application files, and starts the installed preset application.

[0135] For example, it is possible to determine whether the current boot is the first boot by monitoring whether the desktop software has been installed. If the desktop software has been installed, the current boot is not the first boot; if the desktop software has not been installed, the current boot is the first boot. The information collection module is used to collect data information of the application software and store the collected data information in the information storage module.

[0136] An information storage module is used to establish an application software self-starting list in the information storage module. The application software self-starting list includes: the name of the application software, the installation path, the self-starting flag, and the usage information.

[0137] Before the desktop software is started, the data parsing module does not parse the files under the installation application path.

[0138] The first startup method of the smart set-top box includes: T01: the startup monitoring module determines whether the current startup process is the first startup. T02: if the current startup process is the first startup process, output the first startup installation signal to the data analysis module. T03: the data analysis module retrieves the data in the first data storage module under the preset application path, parses and installs the preset application file, and starts the installed preset application. Before the desktop software is started, the data analysis module does not parse the files under the installation application path.

[0139] By presetting the application folder and the installation application folder in the first data storage module. The preset application files are stored in the preset application folder, and the installation application files are stored in the installation application folder. During the first boot process, the preset application files are parsed and installed, and the installation application is not installed, which reduces the number of default preset application software in the system (which can be pre-installed later), reduces the scanning and APK parsing time during the first boot process, reduces the first boot time of production and the first boot time of factory recovery, and improves the user experience.

[0140] This application parses and installs the preset application files when the machine is turned on for the first time, and does not install the installed application, thereby reducing the number of default preset application software in the system, reducing the time of scanning and APK parsing during the first startup process, reducing the time of the first startup of production and the time of the first startup of the machine after restoring the machine from the factory, and improving the user experience. At the same time, by obtaining the current system time, the activity of the application software is calculated according to the last running time of the application software, the last running time and the current system time. During the multiple operations of the smart set-top box, the application software that has been set to start automatically at startup during the application software installation process is rarely used or has no use demand by the user, and the activity of the application software is low. When the activity of the application software is less than the threshold for shutting down the self-start, the self-start of the application software is shut down, and the application software that has been set to start automatically at startup is modified to not start automatically at startup, thereby improving the boot rate, and at the same time, it is modified according to the user's usage habits without affecting the user's experience. The self-start shutdown program is set in the smart set-top box, which does not require manual control by the user, and can be modified according to the user's usage habits to improve the running rate of the system. Reduce the number of automatically started applications during the boot process, reduce redundancy during the boot process, increase the boot speed, reduce the number of background process applications, improve memory usage efficiency, and optimize application loading and boot display time.

[0141] Since the above embodiments are all described by citing and combining with other embodiments, different embodiments have the same parts, and the same and similar parts between the embodiments in this specification can be referred to each other. No further detailed description is given here.

[0142] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure of the present application. The present application is intended to cover any variation, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the content of the claims.

[0143] The above-described embodiments of the present application do not constitute a limitation on the protection scope of the present application.

Claims

1. A method for optimizing startup of a smart set-top box, characterized in that: include: Configure the preset application files to be stored in the preset application path, and configure the installation application files to be stored in the installation application path; The preset application path is a readable and writable register, and the installed application path is a read-only register; The current boot is the first boot, the preset application file under the preset application path is parsed, and the application software corresponding to the parsed preset application file is started; Files under the installation application path are not parsed; Establishing a self-starting list of application software, wherein the self-starting list includes the name of the application software and the corresponding self-starting flag; The current startup is not the first startup, and the self-starting application software is started according to the self-starting list; After receiving the installation command, the files under the installation application path are parsed, and the parsed files are installed to the application storage path; The application storage path is a readable and writable register; The activity of the application software is calculated according to the application software self-start list. When the activity of the application software is less than the threshold for closing the self-start, the self-start flag is modified to close the self-start of the application software.

2. The smart set-top box startup optimization method according to claim 1, characterized in that: The application software self-start list includes: the name of the application software, the installation path, the self-start flag, and the usage information.

3. The smart set-top box startup optimization method according to claim 1, characterized in that: The activity of the application software is calculated according to the application software self-start list. When the activity of the application software is less than the self-start threshold, the self-start flag is modified to turn off the self-start of the application software, including: obtaining the current system time, and calculating the activity of the application software according to the last running time of the application software, the last running duration and the current system time; The activity of application software is the normalized calculated value of the application software's duration ratio, idle time, and running frequency; the application software's duration ratio is the ratio of the current total running time of the application software to the total system running time; the application software's idle time is the time interval from the last running time of the application software to the current system time; the application software's running frequency ratio is the ratio of the number of times the application software is run to the total number of times the computer is turned on; When the activity of the application software is less than the threshold for shutting down the automatic start-up, the automatic start-up of the application software is shut down.

4. The smart set-top box startup optimization method according to claim 3, characterized in that: The normalized calculation formula for the activity of application software is: duration ratio × A2 + running idle value × B2 + running frequency × C2 (1); In formula (1), A2 is the proportion of application software duration; B2 is the proportion of application software idle time; C2 is the proportion of application software running frequency, A2+B2+C2=1.

5. The smart set-top box startup optimization method according to claim 3, characterized in that: When the activity of the application software is less than the shutdown threshold, the shutdown of the application software includes: Modify the corresponding self-start flag in the application software self-start list; obtain the installation path of the application software and change the startup program of the application software.

6. A method for optimizing the startup of a smart set-top box, characterized in that: include: Configure the preset application files to be stored in the preset application path, and configure the installation application files to be stored in the installation application path; The preset application path is a readable and writable register, and the installed application path is a read-only register; The current boot is the first boot, the preset application file under the preset application path is parsed, and the application software corresponding to the parsed preset application file is started; Files under the installation application path are not parsed; Establishing a self-starting list of application software, wherein the self-starting list includes the name of the application software and the corresponding self-starting flag; If the current boot is not the first boot, obtain the current system time, and calculate the activity of the application software according to the last running time of the application software, the last running duration and the current system time; When the activity of the application software is less than the threshold for shutting down the automatic start-up, shut down the automatic start-up of the application software; When the activity of the application software is less than the uninstall threshold, the application software is automatically uninstalled; After receiving the installation command, the files under the installation application path are parsed, and the parsed files are installed to the application storage path; the application storage path is a readable and writable register.

7. The smart set-top box startup optimization method according to claim 6, characterized in that: The application software self-start list includes: the name of the application software, the installation path, the self-start flag, and the usage information.

8. A smart set-top box, characterized in that: include: The first data storage module includes: a preset application folder and an installed application folder, wherein the preset application files are stored in the preset application folder, and the installed application files are stored in the installed application folder; The startup monitoring module determines whether the current startup process is the first startup; The information collection module is used to collect data information of the application software and store the collected data information in the information storage module; An information storage module, in which an application software self-starting list is established, and the application software self-starting list includes: the name of the application software, the installation path, the self-starting flag, and the usage information; The operation module turns off the automatic startup of the application software or uninstalls the currently installed software according to the automatic startup list of the application software.

9. The smart set-top box according to claim 8, characterized in that: The operation module includes: a data calculation unit, a comparison unit and an automatic start-stop unit; The data calculation unit calculates the activity of the application software according to a preset program; The comparison unit performs a comparison operation based on the activity of the application software calculated by the data calculation unit and the shutdown and automatic start threshold value; The automatic start-up and shutdown unit receives the control information of the comparison unit and performs automatic shutdown and restart on the startup program of the application software.

10. The smart set-top box according to claim 8, characterized in that: The operation module includes: a data calculation unit, a comparison unit, an automatic start-stop unit, and an unloading unit; The data calculation unit calculates the activity of the application software according to a preset program; The comparison unit performs a comparison operation based on the activity of the application software calculated by the data calculation unit and the shutdown and automatic start threshold value; The automatic start-up and shutdown unit receives the control information of the comparison unit and performs automatic start-up control on the startup program of the application software; The uninstallation unit receives the control information from the comparison unit and uninstalls the startup program of the application software.