WO2020154902A1 - 应用处理方法、装置、存储介质、服务器及电子设备 - Google Patents

应用处理方法、装置、存储介质、服务器及电子设备 Download PDF

Info

Publication number
WO2020154902A1
WO2020154902A1 PCT/CN2019/073724 CN2019073724W WO2020154902A1 WO 2020154902 A1 WO2020154902 A1 WO 2020154902A1 CN 2019073724 W CN2019073724 W CN 2019073724W WO 2020154902 A1 WO2020154902 A1 WO 2020154902A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
electronic device
usage
priority
time point
Prior art date
Application number
PCT/CN2019/073724
Other languages
English (en)
French (fr)
Inventor
张寅祥
帅朝春
陆天洋
吴建文
戴堃
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980077356.6A priority Critical patent/CN113170391B/zh
Priority to PCT/CN2019/073724 priority patent/WO2020154902A1/zh
Publication of WO2020154902A1 publication Critical patent/WO2020154902A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of communication technology, and in particular to an application processing method, device, storage medium, server, and electronic equipment.
  • the Android system includes an application standby grouping function.
  • the application standby grouping function is a power management function.
  • the application standby group includes the following five groups, namely: Active, Working Set, Frequent, Rare, and App is not frequently used.
  • the system divides each application into one of the above groups according to its usage, and each group has different restrictions on the scheduling of device resources.
  • the embodiments of the present application provide an application processing method, device, storage medium, server, and electronic equipment, which can effectively control the resource consumption of the electronic equipment.
  • an embodiment of the present application provides an application processing method applied to a server, including:
  • the embodiments of the present application provide another application processing method, which is applied to an electronic device.
  • the operating system of the electronic device includes multiple levels of application standby groups, and the application standby groups with higher group levels are configured to The stronger the scheduling ability of the electronic equipment resources, including:
  • the applications in the multiple application standby groups are adjusted based on the priority.
  • an embodiment of the present application provides an application processing device applied to a server, and the device includes:
  • the first obtaining module is configured to obtain application usage information of each application in multiple electronic devices in a historical time period, where the multiple electronic devices use the same account identifier;
  • the first determining module is used to determine the current time point
  • a prediction module configured to predict the first electronic device used at the current time point based on the application usage information
  • the sending module is configured to send an application processing instruction to a second electronic device other than the first electronic device among the plurality of electronic devices, so that the second electronic device processes the application based on the application processing instruction.
  • the embodiments of the present application provide another application processing apparatus, which is applied to an electronic device.
  • the operating system of the electronic device includes multiple levels of application standby groups, and the application standby groups with higher group levels are configured to The stronger the scheduling capability of the electronic equipment resource, the device includes:
  • the receiving module is used to receive application processing instructions sent by the server;
  • the second acquiring module is configured to acquire application usage information of each application in the historical time period according to the application processing instruction;
  • the second determining module is configured to determine the priority of each application at the current time point according to the application usage information
  • the adjustment module is configured to adjust applications in multiple application standby groups based on the priority.
  • an embodiment of the present application provides a storage medium in which multiple instructions are stored, and the instructions are suitable for being loaded by a processor to perform the following steps:
  • an embodiment of the present application provides another storage medium, and the storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to perform the following steps:
  • the applications in a plurality of application standby groups are adjusted based on the priority, and the application standby group with a higher level of the plurality of groupings is configured to have a stronger scheduling capability for the resources of the electronic device.
  • an embodiment of the present application provides a server including a processor and a storage medium, the storage medium stores multiple instructions, and the processor loads the instructions to perform the following steps:
  • an embodiment of the present application provides an electronic device including a processor and a storage medium.
  • the storage medium stores multiple instructions.
  • the operating system of the electronic device includes multiple levels of application standby groups. The higher the application standby group is configured to be the stronger the scheduling capability of the electronic device resources, the processor loads the instructions to perform the following steps:
  • the applications in the multiple application standby groups are adjusted based on the priority.
  • FIG. 1 is a schematic diagram of an application scenario of an application processing method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the first flow of an application processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a second flow of an application processing method provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of a signaling flow of an application processing method provided by an embodiment of the present application.
  • FIG. 5 is a first structural diagram of an application processing apparatus provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a second structure of an application processing apparatus provided by an embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of a server provided by an embodiment of the application.
  • Fig. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the embodiments of the present application provide an application processing method, device, storage medium, server, and electronic equipment, which will be described in detail below.
  • the user uses multiple electronic devices at the same time, and the multiple electronic devices may be devices such as smart phones, tablet computers, etc. (electronic device A, electronic device B, and electronic device C in FIG. 1). And the multiple electronic devices use the same account for association.
  • the account is an account that the electronic device applies to the server for registration, and the server allocates the account for the electronic device according to the application request of the electronic device.
  • the server may be a data server, and each account corresponds to an independent data storage area in the data server.
  • the account can be logged in by multiple electronic devices at the same time, and each electronic device using the account can desensitize and encrypt the device usage data (such as application usage data) locally and synchronize it to the server, so that The usage data of the user's multiple associated devices is opened up. Then, the server can analyze the device usage data under the same account, make full use of the data of multiple associated devices, and predict the usage habits of the device more intelligently and accurately.
  • the device usage data such as application usage data
  • the server predicts that the user will preferentially use electronic device A within a certain period of time, then the server can issue instructions to electronic device B and electronic device C, so that electronic device B and electronic device C can perform device resources Optimize processing (such as killing background applications, reclaiming memory, etc.), so that when the user is not using the device, optimize processing to save device resources.
  • Optimize processing such as killing background applications, reclaiming memory, etc.
  • an embodiment of the present application provides an application processing method applied to a server.
  • the server may be a data server.
  • the application processing method may include the following steps:
  • the application usage information application may be the usage information of any application installed on the electronic device, such as application usage information of office applications, social applications, game applications, shopping applications, etc.
  • a communication connection may be established between the multiple electronic devices and the server through a data network, a wireless network, or the like.
  • Each electronic device can send the application usage information of the installed application to the server through the wireless link with the server, so that the server can obtain the application usage information of each application in multiple electronic devices in the historical time period.
  • the electronic device can desensitize and encrypt the device usage data (such as application usage data) locally and then synchronize it to the server.
  • multiple electronic devices use the same account identifier (such as an account number), that is, multiple electronic devices use the same account to log in to the server.
  • the account is an account that the electronic device applies to the server for registration, and the server allocates the account for the electronic device according to the application request of the electronic device.
  • the server may be a data server, and each account corresponds to an independent data storage area in the data server.
  • the application usage information may be an application usage record, such as a record of the opening time of each application.
  • the electronic device can record the usage information of each installed application, convert it into corresponding data and store it in a preset storage area.
  • you need to use the application usage information of a certain application or certain applications you can retrieve the data corresponding to the one or certain applications within a certain period of time from the storage area, and analyze the acquired data to obtain the corresponding As the application usage information of the one or some applications in the historical time period.
  • the historical time period may be the past month, the latest week, and so on.
  • the sampling time point can be set to monitor the usage records of each application for each application. If you want to get more accurate results, you can set the collection time points more densely, such as every 1 minute as a sampling time point; if you want to save the resources of electronic equipment and do not require the accuracy of the results, you can set The sampling time point is set loosely, for example, every 10 minutes is a sampling time point.
  • a timer can be integrated in the electronic device for real-time detection of current time information, such as a time stamp. Then, convert the obtained timestamp into time information in the current universal time format, such as xx year, xx month, xx day, xx hour, xx minute, xx second, and can also be converted into xx week, week xx, xx hour, xx minute, xx second, etc. .
  • the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods. Then, the step of "predicting the first electronic device used at the current time point based on the application usage information" may include the following process:
  • the server can separately count the same sampling period of each application in each day of the past week for these N applications (for example, a day can include 24 hours, then the first hour of Monday The first hour is the same sampling period as the first hour of Sunday; the 24th hour of Monday and the 24th hour of Sunday are the same sampling period)
  • the obtained application usage information can be preprocessed to calculate the usage probability of each application in different sampling periods, and further obtain the probability distribution of the usage of each application over time, and the sampling time Segments and usage probabilities correspond one-to-one to generate training samples. Then, the preset algorithm model can be trained based on the generated training samples to obtain an algorithm model that can predict the application usage probability at different time points.
  • the training samples generated above can be input into a preset Gaussian mixture model, and related parameters in the preset Gaussian mixture model are continuously modified according to the input training samples, so that the trained Gaussian mixture model can be applied to All training samples can predict the application usage probability at different time points.
  • the current time point is 8:10 on Tuesday, it can be determined from multiple sampling periods (such as the above 24 hours) that the corresponding target sampling period is the 9th hour. Then, obtain the usage probability of each application in the 9th hour.
  • the first electronic device used at the previous time point can be determined based on the use probability.
  • the application with the greatest probability of being used at the current time point can be screened out. And predict the electronic device where the application is located as the first electronic device that the user will use at the current time point. That is, in some embodiments, the step "determine the first electronic device used at the current time point based on the target usage probability" may include the following process:
  • Probability calculations are performed on the usage frequency and usage duration corresponding to the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency and the second probability corresponding to the running duration of each application in different sampling periods;
  • the first probability and the second probability are weighted, and the usage probability of each application in different sampling periods is calculated.
  • the probability of the usage frequency corresponding to the same sampling period in different time periods for each application statistics can be used under the same sampling period (such as 12:00 to 13:00 every day) in different time periods.
  • the first probability corresponding to the frequency of use in the sampling period that is, 12:00 to 13:00.
  • the first probability corresponding to the frequency of use of each application in different sampling periods can be calculated.
  • the preset weight can be set by the product manufacturer, for example, the weight corresponding to the frequency of use is set to 40%, and the weight corresponding to the length of use is set to 60%.
  • the application usage information may also include other application usage parameters, such as foreground running time, power consumption, and so on.
  • the server predicts that the user will preferentially use the first electronic device at the current time, which means that the user will not use the second electronic device.
  • the server may issue an application processing instruction to the second electronic device, so that the second electronic device performs device resource optimization processing, so that when the user is not using the device, the device resource can be saved through optimization processing.
  • the application processing method obtains application usage information of each application in multiple electronic devices in a historical time period, wherein the multiple electronic devices use the same account identifier; determine the current time point; Predict the first electronic device used at the current time point based on the application usage information; send an application processing instruction to a second electronic device of the plurality of electronic devices except the first electronic device, so that the second electronic device The electronic device processes the application based on the application processing instruction.
  • the server can predict the electronic device used at the current time point according to the obtained application usage information of each application in the multiple electronic devices, and issue application processing instructions to other electronic devices not currently in use , So that the other electronic devices process the installed applications, thereby effectively saving electronic device resources.
  • the embodiment of the present application provides another application processing method, which is applied to an electronic device.
  • the electronic device may be a smart terminal such as a smart phone or a tablet computer.
  • multiple applications are installed in the electronic device.
  • the operating system of the electronic device may include multiple levels of application standby groups, and the higher the grouping level, the application standby group is configured to have a stronger scheduling capability for the resources of the electronic device.
  • the operating system may be an Android operating system, and multiple levels of application standby groups may be the power frame under the Android operating system.
  • the Android system includes an application standby grouping function.
  • the application standby grouping function is a power management function.
  • the application standby group includes the following five groups: active (applications are being used), work (applications are used frequently), frequently used (applications are frequently used but not every day), rarely (applications are rarely used), Occasionally (application is used occasionally).
  • the system divides each application into one of the above groups according to its usage, and each group has different restrictions on the scheduling of device resources. Among them, in terms of the ability to schedule device resources, active groups, working groups, frequently used groups, very few groups, and occasional groups decrease sequentially. For example, the scheduling capability of the device resource of the application in the active group is configured to be stronger than the working group.
  • the scheduling capability of the device resources of the applications that are divided into the work group is configured to be stronger than that of the common group.
  • the device of the Android system divides an application into a certain group of the above five groups according to the usage behavior of the application, that is, the flexibility of the device to adjust the standby group of the application is poor.
  • the application processing method provided by the embodiment of the present application may include the following processes:
  • the server may be a data server.
  • a communication connection can be established between the electronic device and the server through a data network, a wireless network, etc.
  • each electronic device can send the application usage information of its installed application to the server through the wireless link with the server, so that the server can obtain the information of each application in the electronic device in the historical time period.
  • Application usage information The server may perform analysis processing based on the received application usage information, so as to predict whether the electronic device currently needs to perform application processing. And when it is predicted that the electronic device needs to perform application processing, an application processing instruction is issued to the electronic device, so that the electronic device receives the application processing instruction to trigger the electronic device to perform application processing.
  • the application mentioned in this embodiment may be any application installed on an electronic device, such as an office application, a social application, a game application, and a shopping application.
  • the usage information of the application may be the usage record of the application, such as the opening time record of each application.
  • self-application installation can record the usage information of each installed application, convert it into corresponding data and store it in a preset storage area.
  • the historical time period may be the past month, the latest week, and so on.
  • the sampling time point can be set to monitor the usage records of each application for each application. If you want to get more accurate results, you can set the collection time points more densely, such as every 1 minute as a sampling time point; if you want to save the resources of electronic equipment and do not require the accuracy of the results, you can set The sampling time point is set loosely, for example, every 10 minutes is a sampling time point.
  • the application usage information of each application in this application in real time is for the same user.
  • user identification devices such as fingerprint recognition, face recognition, etc.
  • a timer can be integrated in the electronic device for real-time detection of current time information, such as a time stamp. Then, convert the obtained timestamp into time information in the current universal time format, such as xx year, xx month, xx day, xx hour, xx minute, xx second, and can also be converted into xx week, week xx, xx hour, xx minute, xx second, etc. .
  • the application usage information of each application can be counted, and according to the statistical results, it is concluded that users frequently use high-frequency applications at different points in time, which is used as the user's habit of using applications to sort the application priority.
  • a prediction algorithm model (such as a Gaussian mixture algorithm model, a convolutional neural network algorithm model, etc.) of the application usage can be constructed based on the usage information of each application, so as to adjust the priority of each application at different time points according to the prediction result.
  • the applications configured in the application standby group can be adjusted according to the priority order of each electronic device at the current time point, so as to realize the dynamic adjustment of each level under the power frame according to the user's usage habits and the current time point
  • the applications in the group can also achieve the purpose of reducing resource consumption of electronic devices without closing the applications.
  • the state parameter may be a power parameter of the electronic device, a network state parameter, a motion state parameter, and so on.
  • the following process is also included:
  • step of "adjusting applications in multiple application standby groups based on priority” may include the following processes:
  • the preset mapping relationship obtain the quantity distribution information of the application quantity in each application standby group in the power interval, where the preset mapping relationship includes: the mapping relationship between the electric quantity interval and the quantity distribution information of the application quantity in each application standby group ;
  • the applications in the multiple application standby groups are adjusted.
  • the quantity distribution information is correspondingly configured application quantity information in the application standby group of each level.
  • the first level is the highest level
  • the number distribution information can be set as: the number of applications configured for the first level application standby group is 3, and the second level application standby group corresponds to the configuration
  • the number of applications corresponding to the third-level application standby group is 5, the number of applications corresponding to the fourth-level application standby group is 6, and the number of applications corresponding to the fifth-level application standby group is 7 .
  • a mapping relationship between the power interval and the number distribution information of the number of applications in each application standby group needs to be established in advance.
  • the power area assuming that the full power is 100%, the power can be divided into multiple intervals according to actual demand, such as 0-20%, 20%-40%, 40%-80%, 80%-100%, etc.
  • Four power intervals are set the number of applications allowed to be configured in the application standby group of each level. In practical applications, the higher the battery level, the more the number of applications allowed to be configured in the application standby group corresponding to the higher level.
  • the number of applications allowed to be configured in the corresponding highest-level application standby group is 1, and the number of applications allowed to be configured in the corresponding lowest-level application standby group is 10.
  • the power range is 80-100%, and the number of applications allowed to be configured in the corresponding highest-level application standby group is 5, and the number of applications allowed to be configured in the corresponding highest-level application standby group is 5.
  • the step of "adjusting applications in multiple application standby groups based on the quantity distribution information and priority" may include the following process:
  • the grouping level is five levels, and the quantity distribution information from the high level to the low level is: 1, 1, 2, 3, 3.
  • five sets can be filtered from multiple applications, namely set 1 ⁇ A ⁇ , set 2 ⁇ B ⁇ , set 3 ⁇ C, D ⁇ , set 4 ⁇ E, F, G ⁇ , Set 5 ⁇ H, I, J ⁇ .
  • the corresponding application set can be matched for each level according to the order of the grouping level, so as to replace the application in the standby group of each application with the application in the matched application set.
  • a set level may be set for multiple application sets. For example, set 1 ⁇ A ⁇ as the first level (that is, the highest level), set 2 ⁇ B ⁇ as the second level, set 3 ⁇ C, D ⁇ as the third level, and set 4 ⁇ E, F, G ⁇ Is set to the fourth level and set 5 ⁇ H, I, J ⁇ is set to the fifth level (ie the lowest level). Then, in the order of the set level from high to low and the grouping level from high to low, set 1 is matched with the first-level application standby group, set 2 is matched with the second-level application standby group, and set 3 is matched with The third level of application standby packet matching, and so on.
  • the application in the standby group of each application when replacing the applications in the standby group of each application with an application in the matched application set, the application in the standby group of each application may be replaced with an application in the matched application set, and the current Applications in the application standby group that are the same as those in the matched application set, remove different applications from the current application standby group, and update the applications in the matched application set that are different from the current application standby group to the current application standby group , To achieve application replacement.
  • the application processing method receives application processing instructions sent by the server; obtains application usage information of each application in a historical time period according to the application processing instructions; determines each application at the current time point according to the application usage information Priority; adjust the applications in multiple application standby groups based on priority.
  • the solution of this application can trigger the electronic device to retrieve application usage data to predict the user's usage habits according to the instructions sent by the server, and dynamically adjust the applications in each level grouping under the framework of power consumption in real time, achieving the reduction without closing the application.
  • the purpose of resource consumption of electronic equipment is triggered by the server.
  • FIG. 4 is a schematic diagram of a signaling flow of an application processing method provided in an embodiment of this application. The following will take the interaction between the electronic device A, the electronic device B and the server as an example to describe the embodiments of the present application in detail.
  • the electronic device A may be a smart phone
  • the electronic device B may be a tablet computer.
  • Electronic device A and electronic device B use the same account to log in to the server.
  • a communication connection can be established between the electronic device A and the server through a data network, a wireless network, and the like.
  • a communication connection can be established between the electronic device B and the server through a data network, a wireless network, and the like.
  • the application usage information may be an application usage record, such as a record of the opening time of each application.
  • the electronic device can record the usage information of each installed application, and synchronize the application usage information with the server through the logged-in account.
  • the server obtains application usage information of each application in the electronic device A and the electronic device B in the historical time period.
  • the historical time period may be the past month, the latest week, and so on.
  • the server predicts that the electronic device used at the current time point is electronic device A based on the obtained application usage information.
  • the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods.
  • the obtained application usage information can be preprocessed to calculate the usage probability of each application in different sampling periods, and further obtain the probability distribution of the usage of each application over time.
  • the sampling period and the usage probability One-to-one correspondence generates training samples.
  • the preset algorithm model can be trained based on the generated training samples to obtain an algorithm model that can predict the application usage probability at different time points.
  • the electronic device used at the previous time point can be determined based on the use probability.
  • the application with the greatest probability of being used at the current time point can be screened out. And predict the electronic device where the application is located as the electronic device that the user will use at the current time point.
  • the server sends an application processing instruction to the electronic device A.
  • the server predicts that the user will preferentially use the electronic device A at the current time, which means that the user will not use the electronic device B.
  • the server may issue an application processing instruction to electronic device A, so that electronic device A performs device resource optimization processing, so that when the user is not using the device, the device resource can be saved through optimization processing.
  • Electronic device A obtains application usage information of each application in the historical time period according to the application processing instruction.
  • the sampling time point can be set to monitor the usage records of each application for each application. If you want to get more accurate results, you can set the collection time points more densely, such as every 1 minute as a sampling time point; if you want to save the resources of electronic equipment and do not require the accuracy of the results, you can set The sampling time point is set loosely, for example, every 10 minutes is a sampling time point.
  • the application usage information of each application in this application in real time is for the same user.
  • user identification devices such as fingerprint recognition, face recognition, etc.
  • the electronic device A determines the priority of each application at the current time point according to the application usage information.
  • the electronic device A can count the application usage information of each application, and according to the statistical results, it is concluded that the users frequently use high-frequency applications at different time points, as the user's habit of using the applications, to sort the application priority.
  • a prediction algorithm model (such as a Gaussian mixture algorithm model, a convolutional neural network algorithm model, etc.) of the application usage can be constructed based on the usage information of each application, so as to adjust the priority of each application at different time points according to the prediction result.
  • the electronic device A adjusts the applications in the multiple application standby groups based on the priority.
  • the electronic device A can adjust the applications configured in the application standby group according to the priority order of the electronic devices at the current time point, so as to dynamically adjust the power frame according to the user's usage habits and the current time point.
  • the applications in the lower levels are grouped so that the purpose of reducing the resource consumption of electronic devices can be achieved without closing the applications.
  • the electronic device A may close the lower priority applications in the background running applications, thereby saving power, memory, network and other resources in the electronic device.
  • the server can predict the electronic device used at the current time point according to the obtained application usage information of each application in the multiple electronic devices, and issue application processing instructions to other electronic devices not currently in use , So that the other electronic devices process the installed applications, thereby effectively saving electronic device resources.
  • the embodiment of the present application also provides an application processing apparatus 400, which may be integrated in a server, and the server may be a data server. As shown in FIG. 5, the application processing apparatus 400 may include:
  • the first obtaining module 41 is configured to obtain application usage information of each application in multiple electronic devices in a historical time period, where the multiple electronic devices use the same account identifier;
  • the first determining module 42 is configured to determine the current time point
  • the prediction module 43 is configured to predict the first electronic device used at the current time point based on the application usage information
  • the sending module 44 is configured to send an application processing instruction to a second electronic device other than the first electronic device among the plurality of electronic devices, so that the second electronic device processes the application based on the application processing instruction .
  • the embodiment of the present application provides an application processing device, which can predict the electronic device used at the current time point according to the obtained application usage information of each application in multiple electronic devices, and report it to other The other electronic device in use issues application processing instructions, so that the other electronic device processes the installed applications, thereby effectively saving electronic device resources.
  • the embodiment of the present application also provides another application processing apparatus 500, which can be integrated in an electronic device.
  • the electronic device can be a smart terminal device such as a smart phone or a tablet computer.
  • the electronic device has multiple applications installed.
  • the operating system of the electronic device includes multiple levels of application standby groups, and the application standby group with a higher grouping level is configured to have a stronger scheduling capability for the resources of the electronic device.
  • the application processing device 500 may include: a receiving module 51, a second acquiring module 52, a second determining module 53, and an adjusting module 54. among them:
  • the receiving module 51 is configured to receive application processing instructions sent by the server;
  • the second obtaining module 52 is configured to obtain application usage information of each application in the historical time period according to the application processing instruction;
  • the second determining module 53 is configured to determine the priority of each application at the current time point according to the application usage information
  • the adjustment module 54 is configured to adjust applications in multiple application standby groups based on the priority.
  • the application processing device provided in the embodiment of the present application can trigger the electronic device to retrieve application usage data according to the instructions sent by the server to predict the user’s usage habits, so as to dynamically adjust the applications in each level grouping under the power framework in real time. , To achieve the goal of reducing the resource consumption of electronic devices without closing the application.
  • the server 600 includes a processor 601 and a memory 602.
  • the processor 601 is electrically connected to the memory 602.
  • the processor 601 is the control center of the server 600. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes the server by running or loading the computer program stored in the memory 602, and calling the data stored in the memory 602. The various functions of the 600 and the processing of data, so as to monitor the server 600 as a whole.
  • the memory 602 may be used to store software programs and modules.
  • the processor 601 executes various functional applications and data processing by running the computer programs and modules stored in the memory 602.
  • the memory 602 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, a computer program required for at least one function, and the like; the data storage area may store data created according to the use of the electronic device.
  • the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the memory 602 may further include a memory controller to provide the processor 601 with access to the memory 602.
  • the processor 601 in the server 600 will load the instructions corresponding to the process of one or more computer programs into the memory 602 according to the following steps, and run the instructions by the processor 601 and store them in the memory 602
  • the computer program to achieve various functions, as follows:
  • the historical time period includes multiple time periods, and each time period is divided into multiple sampling periods; when predicting the first electronic device used at the current time point based on the application usage information, The processor 601 performs the following steps:
  • the first electronic device used at the current time point is determined based on the target usage probability.
  • the application usage information includes usage frequency and usage duration; for each application in different electronic devices, the application usage information corresponding to the same sampling period in different time periods is processed to obtain each application
  • the processor 601 performs the following steps:
  • Probability calculations are performed on the usage frequency and usage duration corresponding to the same sampling period of each application in different time periods to obtain the first probability corresponding to the usage frequency and the second probability corresponding to the running duration of each application in different sampling periods;
  • weighting is performed on the first probability and the second probability, and the usage probability of each application in different sampling periods is calculated.
  • the processor 601 when determining the first electronic device used at the current time point based on the target usage probability, performs the following steps:
  • the processor 601 after predicting the first electronic device used at the current time point based on the application usage information, send to a second electronic device other than the first electronic device among the plurality of electronic devices Before applying the processing instruction, the processor 601 further performs the following steps:
  • the application processing instruction is generated according to the priority.
  • the electronic device 600 may further include: a radio frequency circuit 603 and a power supply 605. Among them, the radio frequency circuit 704 and the power supply 605 are electrically connected to the processor 601 respectively.
  • the radio frequency circuit 604 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or electronic equipment through wireless communication, and to send and receive signals with the network equipment or electronic equipment.
  • the server 600 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the server 600 provided in the embodiment of the present application predicts the electronic device used at the current time point based on the obtained application usage information of each application in the multiple electronic devices, and sends other electronic devices that are not currently in use.
  • the device issues an application processing instruction to enable the other electronic device to process the installed application, thereby effectively saving electronic device resources.
  • the embodiment of the present application also provides an electronic device with multiple applications installed in the electronic device.
  • the electronic device 700 includes a processor 701 and a memory 702.
  • the processor 701 is electrically connected to the memory 702.
  • the processor 701 is the control center of the electronic device 700. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes by running or loading the computer program stored in the memory 702, and calling the data stored in the memory 702. Various functions of the electronic device 700 and processing data, so as to monitor the electronic device 700 as a whole.
  • the memory 702 can be used to store software programs and modules.
  • the processor 701 executes various functional applications and data processing by running the computer programs and modules stored in the memory 702.
  • the memory 702 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, a computer program required for at least one function, and the like; the data storage area may store data created according to the use of an electronic device.
  • the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the memory 702 may further include a memory controller to provide the processor 701 with access to the memory 702.
  • the operating system of the electronic device 700 (such as the Android operating system) includes multiple levels of application standby groups, and the higher the grouping level, the application standby group is configured to have a greater ability to schedule resources of the electronic device 700. Strong.
  • the processor 701 in the electronic device 700 will load the instructions corresponding to the process of one or more computer programs into the memory 702 according to the following steps, and the processor 701 will run the computer programs stored in the memory 702 to achieve Various functions are as follows:
  • the applications in the multiple application standby groups are adjusted based on the priority.
  • the processor 701 after determining the priority of each application at the current time point according to the application usage information, and before adjusting the applications in multiple application standby groups based on the priority, the processor 701 performs the following step:
  • the processor When adjusting applications in multiple application standby groups based on the priority, the processor performs the following steps:
  • the preset mapping relationship obtain the quantity distribution information of the number of applications in each application standby group in the power interval, where the preset mapping relationship includes: the power interval and the quantity distribution information of the application quantity in each application standby group The mapping relationship;
  • the applications in the multiple application standby groups are adjusted.
  • the processor 701 when adjusting applications in multiple application standby groups based on the quantity distribution information and the priority, the processor 701 performs the following steps:
  • a corresponding number of applications are sequentially filtered in order of priority from high to low to obtain multiple application sets;
  • the electronic device 700 may further include: a display 703, a radio frequency circuit 704, and a power supply 705. Among them, the display 703, the radio frequency circuit 704, and the power supply 705 are electrically connected to the processor 701, respectively.
  • the display 703 can be used to display information input by the user or information provided to the user, and various graphical user interfaces. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof.
  • the radio frequency circuit 704 can be used to send and receive radio frequency signals to establish wireless communication with a network device or server through wireless communication, and to send and receive signals with the network device or server.
  • the power supply 705 can be used to supply power to various components of the electronic device 700.
  • the power supply 705 may be logically connected to the processor 701 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
  • the electronic device 700 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the electronic device 700 of the embodiment of the present application can trigger the electronic device to retrieve application usage data according to the instructions sent by the server to predict the user’s usage habits, and dynamically adjust the applications in each level grouping under the power level framework in real time. In order to achieve the purpose of reducing the resource consumption of electronic devices without closing the application.
  • An embodiment of the present application also provides a storage medium that stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the application processing method in any of the above embodiments, such as: obtaining historical time periods Application usage information of each application in multiple electronic devices in the multiple electronic devices, wherein the multiple electronic devices use the same account identifier; determine the current time point; predict the first electronic device used at the current time point based on the application usage information; A second electronic device other than the first electronic device among the plurality of electronic devices sends an application processing instruction, so that the second electronic device processes the application based on the application processing instruction.
  • the embodiment of the present application also provides another storage medium, the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the application processing method in any of the above embodiments, such as: receiving server sending The application processing instructions; obtain the application usage information of each application in the historical time period according to the application processing instructions; determine the priority of each application at the current time point according to the application usage information; stand by multiple applications based on the priority
  • the application in the group is adjusted, and the application standby group with a higher level of the plurality of groupings is configured to have a stronger scheduling ability for the resource of the electronic device.
  • the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • the computer program may be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device, and may include, for example, the implementation of application processing methods.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
  • the application processing device of the embodiment of the present application its functional modules may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

本申请实施例提供一种应用处理方法、装置、存储介质、服务器及电子设备。该应用处理方法通过获取历史时间段内多个使用同一账户标识的电子设备中各应用的应用使用信息;基于应用使用信息预测当前时间点下使用的第一电子设备;向多个电子设备中除第一电子设备外的第二电子设备发送应用处理指令,以使第二电子设备对应用进行处理。

Description

应用处理方法、装置、存储介质、服务器及电子设备 技术领域
本申请涉及通信技术领域,尤其涉及一种应用处理方法、装置、存储介质、服务器及电子设备。
背景技术
目前,很多移动电子设备使用安卓(Android)操作系统。其中,安卓系统中包含应用待机分组功能。应用待机分组功能是一项电量管理功能。应用待机分组包含如下五个分组,分别为:活跃(Active)、工作(Working Set)、常用(Frequent)、极少(Rare)、偶尔(App is not frequently used)。系统会根据每个应用的使用情况,将其划分至上述分组中的一个,而每个分组对设备资源的调度各有不同的限制。
发明内容
本申请实施例提供一种应用处理方法、装置、存储介质、服务器及电子设备,可以有效控制电子设备的资源消耗。
第一方面,本申请实施例提供一种应用处理方法,应用于服务器,包括:
获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
确定当前时间点;
基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理
第二方面,本申请实施例提供另一种应用处理方法,应用于电子设备,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,包括:
接收服务器发送的应用处理指令;
根据所述应用处理指令获历史时间段内各应用的应用使用信息;
根据所述应用使用信息确定当前时间点下各应用的优先级;
基于所述优先级对多个应用待机分组中的应用进行调整。
第三方面,本申请实施例提供一种应用处理装置,应用于服务器,所述装置包括:
第一获取模块,用于获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
第一确定模块,用于确定当前时间点;
预测模块,用于基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
发送模块,用于向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
第四方面,本申请实施例提供另一种应用处理装置,应用于电子设备,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述装置包括:
接收模块,用于接收服务器发送的应用处理指令;
第二获取模块,用于根据所述应用处理指令获历史时间段内各应用的应用使用信息;
第二确定模块,用于根据所述应用使用信息确定当前时间点下各应用的优先级;
调整模块,用于基于所述优先级对多个应用待机分组中的应用进行调整。
第五方面,本申请实施例提供一种存储介质,所述存储介质中存储有多条指令,所述 指令适于由处理器加载以执行以下步骤:
获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
确定当前时间点;
基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
第五方面,本申请实施例提供另一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:
接收服务器发送的应用处理指令;
根据所述应用处理指令获历史时间段内各应用的应用使用信息;
根据所述应用使用信息确定当前时间点下各应用的优先级;
基于所述优先级对多个应用待机分组中的应用进行调整,所述多个分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强。
第七方面,本申请实施例提供一种服务器,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述处理器加载所述指令以执行以下步骤:
获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
确定当前时间点;
基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理
第八方面,本申请实施例提供一种电子设备,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述处理器加载所述指令以执行以下步骤:
接收服务器发送的应用处理指令;
根据所述应用处理指令获历史时间段内各应用的应用使用信息;
根据所述应用使用信息确定当前时间点下各应用的优先级;
基于所述优先级对多个应用待机分组中的应用进行调整。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
为了更完整地理解本申请及其有益效果,下面将结合附图来进行以下说明,其中在下面的描述中相同的附图标号表示相同部分。
图1是本申请实施例提供的应用处理方法的应用场景示意图。
图2是本申请实施例提供的应用处理方法的第一流程示意图。
图3是本申请实施例提供的应用处理方法的第二流程示意图。
图4是本申请实施例提供的应用处理方法的信令流程示意图。
图5是本申请实施例提供的应用处理装置的第一结构示意图。
图6是本申请实施例提供的应用处理装置的第二结构示意图。
图7为本申请实施例提供的服务器的结构示意图。
图8是本申请实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供一种应用处理方法、装置、存储介质、服务器及电子设备,以下将分别进行详细说明。
参考图1,本申请实施例中,用户同时使用多个电子设备,该多个电子设备可以为智能手机、平板电脑等设备(如图1中电子设备A、电子设备B、电子设备C),且该多个电子设备之间使用同一个账户进行关联。其中,该账户为电子设备向服务器申请注册,由服务器根据电子设备的申请请求,为电子设备分配的账户。其中,该服务器可以为数据服务器,每一账户在该数据服务器中对应有独立的数据存储区域。
实际应用中,该账户可以由多个电子设备同时登陆,且每一使用该账户的电子设备可将设备使用数据(如应用使用数据)在本地进行脱敏、加密后同步至服务器中,以将用户的多个关联设备的使用数据打通。然后,服务器可对同一个账户下的设备使用数据进行分析,充分利用多个关联设备的数据,进行更加智能、准确的预测设备的使用习惯。例如,服务器预测到用户在固定的某一时间段内,会优先使用电子设备A,那么此时服务器可以下发指令至电子设备B和电子设备C,使得电子设备B和电子设备C进行设备资源优化处理(如将后台应用杀死、回收内存等),从而在用户未使用设备时,通过优化处理节省设备资源。
参考图2,本申请实施例提供一种应用处理方法,应用于服务器。其中,该服务器可以是数据服务器。该应用处理方法可以包括以下步骤:
101、获取历史时间段内多个电子设备中各应用的应用使用信息,其中,多个电子设备使用同一账户标识。
本实施例中,电子设备中安装有多个应用。该应用使用信息应用可以是电子设备上安装的任何一个应用的使用信息,例如办公应用、社交应用、游戏应用、购物应用等的应用使用信息。
具体的,该多个电子设备与服务器之间可通过数据网络、无线网络等建立有通信连接。每一电子设备可以通过与服务器之间的无线链路,将本身所安装应用的应用使用信息发送至服务器,以使服务器可获取历史时间段内多个电子设备中各应用的应用使用信息。为了信息安全性,电子设备可将设备使用数据(如应用使用数据)在本地进行脱敏、加密后再同步至服务器中。
需要说明的是,本申请实施例中,多个电子设备使用同一账户标识(如账户编号),也即尬多个电子设备使用同一账户登陆服务器。其中,该账户为电子设备向服务器申请注册,由服务器根据电子设备的申请请求,为电子设备分配的账户。实际应用中,该服务器可以为数据服务器,每一账户在该数据服务器中对应有独立的数据存储区域。
在一些实施例中,应用使用信息可以为应用的使用记录,如各应用的开启时间记录。实际应用中,自应用安装,电子设备则可记录每一已安装应用的使用信息,转换成相应的数据存储到预设的存储区域中。当需要使用某一或某些应用的应用使用信息时,则可以从该存储区域中调取与该某一或某些应用在某一时间段内对应的数据,对获取的数据进行解析得到相应的信息,以作为该某一或某些应用在历史时间段内的应用使用信息。其中,历史时间段可以是过去一个月、最近一周等。
具体实施时,可设定采样时间点对各应用的对个应用的使用记录进行监测。若想得到精确度较高的结果,则可将采集时间点设置地密集一些,如每隔1min为一采样时间点;若 想节省电子设备的资源而对结果的精确度不做要求,则可将采样时间点设置地松散一些,如每隔10min为一采样时间点。
102、确定当前时间点。
具体的,可以在电子设备中集成计时器,用于实时检测当前的时间信息,如时间戳。然后,将获取的时间戳换算成目前通用的时间格式的时间信息,如xx年xx月xx日xx时xx分xx秒,还可以转换成第xx周、星期xx、xx时xx分xx秒等。
103、基于应用使用信息预测当前时间点下使用的第一电子设备。
在一些实施例中,历史时间段包括多个时间周期,每一时间周期划分为多个采样时段。则,步骤“基于应用使用信息预测所述当前时间点下使用的第一电子设备”,可以包括以下流程:
(11)针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率;
(12)从多个采样时段中确定当前时间点对应的目标采样时段;
(13)获取各应用在目标采样时段下对应的目标使用概率;
(14)基于目标使用概率确定当前时间点下使用的第一电子设备。
假设电子设备A中安装有N个应用,则服务器可以对于这N个应用分别统计每个应用在过去一个星期内每一天中相同采样时段(如一天可包括24小时,则星期一的第1小时和星期天的第1小时为相同采样时段;则星期一的第24小时和星期天的第24小时为相同采样时段)在前台运行的次数记为X=[x 1,x 2,x 3,x 4,x i……,x 24],其中x i表示过去一星期内每天的第i小时时间该应用的使用次数。
比如,以星期一到星期天作为历史时间段为例,若在这7内,其中有3天用户在中午12点00分至20点00分使用了应用A,而其它时间不用微信。那么该用户的应用A使用信息统计结果可如下表1所示:
应用 x 1 ... X 12 ... x 20 ... x 24
应用A 0 0 3 3 3 0 0
应用B ... ... ... ... ... ... ...
... ... ... ... ... ... ...
... ... ... ... ... ... ...
表1
在一些实施例中,可对所获取到的应用的使用信息进行预处理,计算出每一应用在不同采样时段的使用概率,进一步得到每一应用的使用随时间变化的概率分布,将采样时间段与使用概率一一对应生成训练样本。然后,可基于生成的训练样本对预设的算法模型进行训练,以得到可以预测不同时间点下应用使用概率的算法模型。
例如,可将上述生成的训练样本输入至预设的混合高斯模型中,根据所输入的训练样本不断地修正预设的混合高斯模型中的相关参数,以使得训练后的混合高斯模型可适用于所有训练样本,实现预测不同时间点下应用使用概率。
例如,当前时间点为星期二8点10分,则可以从多个采样时段(如上述的24个小时)中确定其对应的目标采样时段为第9小时。然后,获取第9小时中各应用对应的使用概率。
在计算得到各个电子设备中各个应用在当前时间点下的使用概率后,可基于该使用概率确定前时间点下使用的第一电子设备。具体实施时,可筛选出将当前时间点下使用概率最大的应用。并将该应用所在的设电子设备预测为当前时间点下用户会使用的第一电子设备。也即,在一些实施例在,步骤“基于目标使用概率确定当前时间点下使用的第一电子设备”,可以包括以下流程:
基于目标使用概率确定当前时间点下使用的目标应用;
确定目标应用所在的电子设备,作为第一电子设备。
在上述各实施方式的基础上,本申请实施例中获取历史时间段内各应用的应用使用信息的方式可以有多种。如下:
在一些实施例中,使用信息包括使用频率和使用时长;则步骤“针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率”,可以包括以下流程:
对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;
按照预设权重设定,对第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下的使用概率。
具体的,在对每一应用在不同时间周期中相同采样时段对应的使用频率进行概率计算时,可以统计不同时间周期中相同采样时段(如每天的12点00分至13点00分)下使用应用的总次数,再统计不同时间周期中相同采样时段(即如每天的12点00分至13点00分)下使用需计算的目标应用的次数之和,最后计算比值,即为该目标应用该采样时段(即12点00分至13点00分)下使用频率对应的第一概率。以此类推,可以计算得到各应用在不同采样时段下使用频率对应的第一概率。
同样的,在对每一应用在不同时间周期中相同采样时段对应的使用时长分别进行概率计算时,可以统计不同时间周期中相同采样时段(如每天的12点00分至13点00分)下使用应用的总时长,再统计不同时间周期中相同采样时段(即如每天的12点00分至13点00分)下使用需计算的目标应用的时长之和,最后计算比值,即为该目标应用该采样时段(即12点00分至13点00分)下使用时长对应的第二概率。以此类推,可以计算得到各应用在不同采样时段下使用时长对应的第二概率。
其中,预设权重可以由产品生产厂商进行设置,例如使用频率对应的权重设为40%,使用时长对应的权重设置60%。
在一些实施例中,应用使用信息还可以包括其他应用使用参数,如前台运行时长、耗电量等等信息。
104、向多个电子设备中除第一电子设备外的第二电子设备发送应用处理指令,以使第二电子设备基于应用处理指令对应用进行处理。
具体的,服务器预测到用户在当前时间下会优先使用第一电子设备,那么意味着用户将不会使用第二电子设备。此时,服务器可以下发应用处理指令至第二电子设备,使得第二电子设备进行设备资源优化处理,从而在用户未使用设备时,通过优化处理节省设备资源。
由上可知,本申请实施例提供的应用处理方法,通过获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;确定当前时间点;基于应用使用信息预测所述当前时间点下使用的第一电子设备;向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。本申请方案中,服务器可以根据获取的多个电子设备中各应用的应用使用信息,来预测所述当前时间点下使用的电子设备,并向其他当前不使用的其他电子设备下发应用处理指令,以使所述其他电子设备对安装的应用进行处理,从而有效节省电子设备资源。
相应的,本申请实施例提供另一种应用处理方法,应用于电子设备。该电子设备可以是智能手机、平板电脑等智能终端。其中,电子设备中安装有多个应用。电子设备的操作系统可以包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对电子设 备资源的调度能力越强。例如,该操作系统可以是安卓(Android)操作系统,多个层级的应用待机分组可以是安卓操作系统下的电量框架。
目前,很多移动电子设备使用安卓操作系统。其中,安卓系统中包含应用待机分组功能。应用待机分组功能是一项电量管理功能。应用待机分组包含如下五个分组,分别为:活跃(应用正在被使用)、工作(应用使用频率很高)、常用(应用经常被使用但不是每天)、极少(应用很少被使用)、偶尔(应用偶尔被使用)。系统会根据每个应用的使用情况,将其划分至上述分组中的一个,而每个分组对设备资源的调度各有不同的限制。其中,在对设备资源的调度能力方面,活跃分组、工作分组、常用分组、极少分组以及偶尔分组依次降低。比如,处于活跃分组的应用对设备资源的调度能力被配置为强于工作分组。被划分到工作分组的应用对设备资源的调度能力被配置为强于常用分组。然而,相关技术中,安卓系统的设备是根据应用的使用行为来将某一应用划分到上述五个分组中的某个分组,也即设备对应用待机分组进行调整的灵活性较差。
有基于此,参考图3,本申请实施例提供的应用处理方法,可以包括以下流程:
201、接收服务器发送的应用处理指令。
具体的,该服务器可以为数据服务器。电子设备与服务器之间可通过数据网络、无线网络等建立有通信连接。
在本申请实施例中,每一电子设备可以通过与服务器之间的无线链路,将本身所安装应用的应用使用信息发送至服务器,以使服务器可获取历史时间段内电子设备中各应用的应用使用信息。服务器可基于接收到的应用使用信息进行分析处理,从而预测电子设备当前是否需要进行应用处理。并在预测电子设备需要进行应用处理时向电子设备下发应用处理指令,以使电子设备接收该应用处理指令,以触发电子设备进行应用处理。
202、根据应用处理指令获历史时间段内各应用的应用使用信息。
本实施例所提及的应用,可以是电子设备上安装的任何一个应用,例如办公应用、社交应用、游戏应用、购物应用等。
在一些实施例中,应用的使用信息可以为应用的使用记录,如各应用的开启时间记录。实际应用中,自应用安装,则可记录每一已安装应用的使用信息,转换成相应的数据存储到预设的存储区域中。当需要使用某一或某些应用的使用信息时,则可以从该存储区域中调取与该某一或某些应用在某一时间段内对应的数据,对获取的数据进行解析得到相应的信息,以作为该某一或某些应用在历史时间段内的使用信息。其中,历史时间段可以是过去一个月、最近一周等。
具体实施时,可设定采样时间点对各应用的对个应用的使用记录进行监测。若想得到精确度较高的结果,则可将采集时间点设置地密集一些,如每隔1min为一采样时间点;若想节省电子设备的资源而对结果的精确度不做要求,则可将采样时间点设置地松散一些,如每隔10min为一采样时间点。
具体实施过程中,为减少电子设备的功耗,节省电子设备的资源,可直接设定所需记录的时间段,然后在该时间段内对每一采样时间点样本应用的使用信息进行记录即可,以便后续使用。
需要说明的是,本申请实时中的各应用的应用使用信息都是针对同一用户而言的。实际应用中,可在电子设备中设备用户身份识别装置(如指纹识别、人脸识别等方式)以识别不同用户的身份,从而准确记录不同用户的应用使用数据。
203、根据应用使用信息确定当前时间点下各应用的优先级。
具体的,可以在电子设备中集成计时器,用于实时检测当前的时间信息,如时间戳。然后,将获取的时间戳换算成目前通用的时间格式的时间信息,如xx年xx月xx日xx时xx分xx秒,还可以转换成第xx周、星期xx、xx时xx分xx秒等。
具体的,可统计各个应用的应用使用信息,根据统计结果得出在不同时间点下的用户常使用高频应用,以此作为用户使用应用的习惯,来进行应用优先级的排序。实际应用中,可基于各个应用的使用信息构建应用使用情况的预测算法模型(如混合高斯算法模型、卷积神经网络算法模型等),从而根据预测结果调整不同时间点下各应用的优先级。
204、基于优先级对多个应用待机分组中的应用进行调整。
具体的,可根据当前时间点下各电子设备的优先级高低顺序,对配置在应用待机分组中的应用进行调整,以实现根据用户的使用习惯和当前的时间点,动态调节电量框架下各层级分组中的应用,使得在不关闭应用的前提下,也可以达到降低电子设备资源消耗的目的。
在一些实施例中,还可以引入电子设备的其他状态参数来对各层级的应用待机分组进一步调整管控。例如,该状态参数可以是电子设备的电量参数、网络状态参数、运动状态参数等等。
具体的,以电量参数为例,则在根据应用使用信息确定当前时间点下各应用的优先级之后,基于优先级对多个应用待机分组中的应用进行调整之前,还包括以下流程:
获取当前电子设备的当前电量;
则步骤“基于优先级对多个应用待机分组中的应用进行调整”,可以包括以下流程:
确定当前电量所处的电量区间;
根据预设映射关系,获取该电量区间下各应用待机分组中应用数量的数量分布信息,其中,预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;
基于该数量分布信息和优先级,对多个应用待机分组中的应用进行调整。
其中,数量分布信息为各个层级的应用待机分组中对应配置的应用数量信息。例如,共有五个层级的应用待机分组,第一层级为最高层级,则数量分布信息可以设置为:第一层级的应用待机分组对应配置的应用数量为3,第二层级的应用待机分组对应配置的应用数量为4,第三层级的应用待机分组对应配置的应用数量为5,第四层级的应用待机分组对应配置的应用数量为6,第五层级的应用待机分组对应配置的应用数量为7。
在本申请实施例中,需要预先建立电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系。首先,划分电量区域,假设满电为100%,则可依照实际需求将电量划分为多个区间,如0-20%、20%-40%、40%-80%,80%-100%等四个电量区间。然后,按照每个区间的电量,设定各个层级的应用待机分组中允许配置的应用数量。实际应用中,电量越高,则对应越高层级的应用待机分组中允许配置的应用数量则越多,相应的,越低层级的应用待机分组中允许配置的应用数量则越少;电量越低,则对应越高层级的应用待机分组中允许配置的应用数量则越少,相应的,越低层级的应用待机分组中允许配置的应用数量则越多。
例如,电量区间0-20%,对应的最高层级的应用待机分组中允许配置的应用数量为1,对应的最低层级的应用待机分组中允许配置的应用数量为10。电量区间80-100%,对应的最高层级的应用待机分组中允许配置的应用数量为5对应的最高层级的应用待机分组中允许配置的应用数量为5。
在一些实施例中,步骤“基于该数量分布信息和优先级,对多个应用待机分组中的应用进行调整”,可以包括以下流程:
根据数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;
对多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;
按照集合等级由高到低、及分组层级由高到低的顺序,将多个应用集合与多个应用待机分组一一对应匹配;
将各应用待机分组内的应用替换成所匹配应用集合中的应用。
具体的,根据该数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用时,假设有10个应用按优先级从高到低的顺序依次为A、B、C、D、E、F、G、H、I、J,分组层级为五个层级,从高层级到低层级的数量分布信息为:1、1、2、3、3。那么,可按照分组层级数量,从多个应用中筛选出五个集合,分别为集合1{A}、集合2{B}、集合3{C,D}、集合4{E,F,G}、集合5{H,I,J}。然后,可按照分组层级高低顺序,为每一层级匹配相应的应用集合,以将各应用待机分组内的应用替换成所匹配应用集合中的应用。
在本申请实施例中,为了提升匹配速度以及有效性匹配的概率,可以对多个应用集合设置集合等级。例如,将集合1{A}设置为第一级(即最高级),集合2{B}设置为第二级,集合3{C,D}设置为三级、集合4{E,F,G}设置为第四级、集合5{H,I,J}设置为第五级(即最低级)。然后,按照集合等级由高到低、及分组层级由高到低的顺序,将集合1与第一层级的应用待机分组匹配,将集合2与第二层级的应用待机分组匹配,将集合3与第三层级的应用待机分组匹配,以此类推。
在一些实施例中,在将各应用待机分组内的应用替换成所匹配应用集合中的应用时,可以在将各应用待机分组内的应用替换成所匹配应用集合中的应用时,可以保留当前应用待机分组中与所匹配应用集合中相同的应用,并将不相同的应用从当前应用待机分组中移除,将所匹配应用集合中与当前应用待机分组不相同的应用更新至当前应用待机分组,以实现应用的替换。
由上可知,本申请实施例提供的应用处理方法,通过接收服务器发送的应用处理指令;根据应用处理指令获历史时间段内各应用的应用使用信息;根据应用使用信息确定当前时间点下各应用的优先级;基于优先级对多个应用待机分组中的应用进行调整。本申请方案可以根据服务器发送的指令,触发电子设备调取应用使用数据来预测用户的使用习惯,以实时动态调节电量框架下各层级分组中的应用,实现了在不关闭应用的前提下达到降低电子设备资源消耗的目的。
在一些实施例中,参考图4,图4为本申请实施例提供的应用处理方法的信令流程示意图。以下将以电子设备A、电子设备B与服务器之间的交互为例,对本申请实施例进行详细描述。
301、电子设备A、电子设备B分别向服务器发送的应用使用信息。
其中,电子设备A可以为智能手机,电子设备B可以为平板电脑。电子设备A、电子设备B使用同一账户登录服务器。该电子设备A与服务器之间可通过数据网络、无线网络等建立有通信连接。该电子设备B与服务器之间可通过数据网络、无线网络等建立有通信连接。
在一些实施例在,应用使用信息可以为应用的使用记录,如各应用的开启时间记录。实际应用中,自应用安装,电子设备则可记录每一已安装应用的使用信息,并通过所登录的账户向服务器同步该应用使用信息。
302、服务器获取历史时间段内电子设备A、电子设备B中各应用的应用使用信息。
其中,历史时间段可以是过去一个月、最近一周等。
303、服务器基于获取的应用使用信息,预测当前时间点下使用的电子设备为电子设备A。
具体的,历史时间段包括多个时间周期,每一时间周期划分为多个采样时段。然后,可对所获取到的应用的使用信息进行预处理,计算出每一应用在不同采样时段的使用概率,进一步得到每一应用的使用随时间变化的概率分布,将采样时间段与使用概率一一对应生成训练样本。然后,可基于生成的训练样本对预设的算法模型进行训练,以得到可以预测 不同时间点下应用使用概率的算法模型。
在计算得到各个电子设备中各个应用在当前时间点下的使用概率后,可基于该使用概率确定前时间点下使用的电子设备。具体实施时,可筛选出将当前时间点下使用概率最大的应用。并将该应用所在的设电子设备预测为当前时间点下用户会使用的电子设备。
304、服务器向电子设备A发送应用处理指令。
具体的,服务器预测到用户在当前时间下会优先使用电子设备A,那么意味着用户将不会使用电子设备B。此时,服务器可以下发应用处理指令至电子设备A,使得电子设备A进行设备资源优化处理,从而在用户未使用设备时,通过优化处理节省设备资源。
305、电子设备A根据应用处理指令获历史时间段内各应用的应用使用信息。
具体实施时,可设定采样时间点对各应用的对个应用的使用记录进行监测。若想得到精确度较高的结果,则可将采集时间点设置地密集一些,如每隔1min为一采样时间点;若想节省电子设备的资源而对结果的精确度不做要求,则可将采样时间点设置地松散一些,如每隔10min为一采样时间点。
具体实施过程中,为减少电子设备的功耗,节省电子设备的资源,可直接设定所需记录的时间段,然后在该时间段内对每一采样时间点样本应用的使用信息进行记录即可,以便后续使用。
需要说明的是,本申请实时中的各应用的应用使用信息都是针对同一用户而言的。实际应用中,可在电子设备中设备用户身份识别装置(如指纹识别、人脸识别等方式)以识别不同用户的身份,从而准确记录不同用户的应用使用数据。
306、电子设备A根据该应用使用信息确定当前时间点下各应用的优先级。
具体的,电子设备A可统计各个应用的应用使用信息,根据统计结果得出在不同时间点下的用户常使用高频应用,以此作为用户使用应用的习惯,来进行应用优先级的排序。实际应用中,可基于各个应用的使用信息构建应用使用情况的预测算法模型(如混合高斯算法模型、卷积神经网络算法模型等),从而根据预测结果调整不同时间点下各应用的优先级。
307、电子设备A基于优先级对多个应用待机分组中的应用进行调整。
具体的,电子设备A可根据当前时间点下各电子设备的优先级高低顺序,对配置在应用待机分组中的应用进行调整,以实现根据用户的使用习惯和当前的时间点,动态调节电量框架下各层级分组中的应用,使得在不关闭应用的前提下,也可以达到降低电子设备资源消耗的目的。
或者,电子设备A可以将后台运行应用中优先级较低的应用进行关闭,从而节省电子设备中的电量、内存、网络等资源。
本申请方案中,服务器可以根据获取的多个电子设备中各应用的应用使用信息,来预测所述当前时间点下使用的电子设备,并向其他当前不使用的其他电子设备下发应用处理指令,以使所述其他电子设备对安装的应用进行处理,从而有效节省电子设备资源。
本申请实施例还提供一种应用处理装置400,该装置可以集成在服务器中,该服务器可以是数据服务器。如图5所示,该应用处理装置400可以包括:
第一获取模块41,用于获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
第一确定模块42,用于确定当前时间点;
预测模块43,用于基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
发送模块44,用于向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
由上可知,本申请实施例提供了一种应用处理装置,可以根据获取的多个电子设备中 各应用的应用使用信息,来预测所述当前时间点下使用的电子设备,并向其他当前不使用的其他电子设备下发应用处理指令,以使所述其他电子设备对安装的应用进行处理,从而有效节省电子设备资源。
本申请实施例还提供另一种应用处理装置500,该装置可以集成在电子设备中,该电子设备可以是智能手机、平板电脑等智能终端设备,所述电子设备中安装有多个应用,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强。如图6所示,应用处理装置500可包括:接收模块51、第二获取模块52、第二确定模块53、调整模块54。其中:
接收模块51,用于接收服务器发送的应用处理指令;
第二获取模块52,用于根据所述应用处理指令获历史时间段内各应用的应用使用信息;
第二确定模块53,用于根据所述应用使用信息确定当前时间点下各应用的优先级;
调整模块54,用于基于所述优先级对多个应用待机分组中的应用进行调整。
由上可知,本本申请实施例还提供的应用处理装置,可以根据服务器发送的指令,触发电子设备调取应用使用数据来预测用户的使用习惯,以实时动态调节电量框架下各层级分组中的应用,实现了在不关闭应用的前提下达到降低电子设备资源消耗的目的。
本申请实施例还提供一种服务器。请参阅图7,服务器600包括处理器601以及存储器602。其中,处理器601与存储器602电性连接。
该处理器601是服务器600的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器602内的计算机程序,以及调用存储在存储器602内的数据,执行服务器600的各种功能并处理数据,从而对服务器600进行整体监控。
该存储器602可用于存储软件程序以及模块,处理器601通过运行存储在存储器602的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器602还可以包括存储器控制器,以提供处理器601对存储器602的访问。
在本申请实施例中,服务器600中的处理器601会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器602中,并由处理器601运行存储在存储器602中的计算机程序,从而实现各种功能,如下:
获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
确定当前时间点;
基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
在一些实施例中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;在基于所述应用使用信息预测所述当前时间点下使用的第一电子设备时,所述处理器601执行以下步骤:
针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率;
从所述多个采样时段中确定所述当前时间点对应的目标采样时段;
获取各应用在所述目标采样时段下对应的目标使用概率;
基于所述目标使用概率确定当前时间点下使用的第一电子设备。
在一些实施例中,所述应用使用信息包括使用频率和使用时长;在针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率时,所述处理器601执行以下步骤:
对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;
按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下的使用概率。
在一些实施例中,在基于所述目标使用概率确定当前时间点下使用的第一电子设备时,所述处理器601执行以下步骤:
基于所述目标使用概率确定当前时间点下使用的目标应用;
确定所述目标应用所在的电子设备,作为第一电子设备。
在一些实施例中,在基于所述应用使用信息预测所述当前时间点下使用的第一电子设备之后,向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令之前,所述处理器601还执行以下步骤:
获取当前时间点下所述第二电子设备中各应用的使用概率;
基于所述第二电子设备中各应用的使用概率,确定所述第二设备中各应用的优先级;
根据所述优先级生成所述应用处理指令。
继续参考图7,在某些实施方式中,电子设备600还可以包括:射频电路603以及电源605。其中,其中,射频电路704以及电源605分别与处理器601电性连接。
该射频电路604可以用于收发射频信号,以通过无线通信与网络设备或电子设备建立无线通讯,与网络设备或电子设备之间收发信号。
尽管图7中未示出,服务器600还可以包括摄像头、蓝牙模块等,在此不再赘述。
由上可知,本申请实施例提供的服务器600,根据获取的多个电子设备中各应用的应用使用信息,来预测所述当前时间点下使用的电子设备,并向其他当前不使用的其他电子设备下发应用处理指令,以使所述其他电子设备对安装的应用进行处理,从而有效节省电子设备资源。
本申请实施例还提供一种电子设备,该电子设备中安装有多个应用。请参阅图8,电子设备700包括处理器701以及存储器702。其中,处理器701与存储器702电性连接。
该处理器701是电子设备700的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器702内的计算机程序,以及调用存储在存储器702内的数据,执行电子设备700的各种功能并处理数据,从而对电子设备700进行整体监控。
该存储器702可用于存储软件程序以及模块,处理器701通过运行存储在存储器702的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器702可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器702可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器702还可以包括存储器控制器,以提供处理器701对存储器702的访问。
在本申请实施例中,电子设备700的操作系统(如安卓操作系统)包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备700资源的调度能力越强。电子设备700中的处理器701会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器702中,并由处理器701运行存储在存储器702中的计算机程序,从而实现各种功能,如下:
接收服务器发送的应用处理指令;
根据所述应用处理指令获历史时间段内各应用的应用使用信息;
根据所述应用使用信息确定当前时间点下各应用的优先级;
基于所述优先级对多个应用待机分组中的应用进行调整。
在一些实施例中,在根据所述应用使用信息确定当前时间点下各应用的优先级之后,基于所述优先级对多个应用待机分组中的应用进行调整之前,所述处理器701执行以下步骤:
获取当前电子设备的当前电量;
在基于所述优先级对多个应用待机分组中的应用进行调整时,所述处理器执行以下步骤:
确定所述当前电量所处的电量区间;
根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;
基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。
在一些实施例中,在基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整时,所述处理器701执行以下步骤:
根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;
对所述多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;
按照集合等级由高到低、及所述分组层级由高到低的顺序,将所述多个应用集合与所述多个应用待机分组一一对应匹配;
将各应用待机分组内的应用替换成所匹配应用集合中的应用。
继续参考图8,在某些实施方式中,电子设备700还可以包括:显示器703、射频电路704以及电源705。其中,其中,显示器703、射频电路704以及电源705分别与处理器701电性连接。
该显示器703可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。
该射频电路704可以用于收发射频信号,以通过无线通信与网络设备或服务器建立无线通讯,与网络设备或服务器之间收发信号。
该电源705可以用于给电子设备700的各个部件供电。在一些实施例中,电源705可以通过电源管理系统与处理器701逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图8中未示出,电子设备700还可以包括摄像头、蓝牙模块等,在此不再赘述。
由上述可知,本申请实施例的电子设备700,可以根据服务器发送的指令,触发电子设备调取应用使用数据来预测用户的使用习惯,以实时动态调节电量框架下各层级分组中的应用,实现了在不关闭应用的前提下达到降低电子设备资源消耗的目的。
本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的应用处理方法,比如:获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;确定当前时间点;基于应用使用信息预测所述当前时间点下使用的第一电子设备;向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
本申请实施例还提供另一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的应用处理方法,比如:接收服务器发送的应用处理指令;根据所述应用处理指令获历史时间段内各应用的应用使用信息;根据所述应用使用信息确定当前时间点下各应用的优先级;基于所述优先级对多个应用待机分组中的应用进行调整,所述多个分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强。
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对本申请实施例的应用处理方法而言,本领域普通测试人员可以理解实现本申请实施例的应用处理方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如应用处理方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。
对本申请实施例的应用处理装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,该存储介质譬如为只读存储器,磁盘或光盘等。
以上对本申请实施例所提供的一种应用处理方法、装置、存储介质、服务器及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种应用处理方法,应用于服务器,其中,所述方法包括:
    获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
    确定当前时间点;
    基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
    向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
  2. 根据权利要求1所述的应用处理方法,其中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;
    所述基于所述应用使用信息预测所述当前时间点下使用的第一电子设备,包括:
    针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率;
    从所述多个采样时段中确定所述当前时间点对应的目标采样时段;
    获取各应用在所述目标采样时段下对应的目标使用概率;
    基于所述目标使用概率确定当前时间点下使用的第一电子设备。
  3. 根据权利要求2所述的应用处理方法,其中,所述应用使用信息包括使用频率和使用时长;
    所述针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率,包括:
    对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;
    按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下的使用概率。
  4. 根据权利要求2所述的应用处理方法,其中,所述基于所述目标使用概率确定当前时间点下使用的第一电子设备,包括:
    基于所述目标使用概率确定当前时间点下使用的目标应用;
    确定所述目标应用所在的电子设备,作为第一电子设备。
  5. 根据权利要求2所述的应用处理方法,其中,在基于所述应用使用信息预测所述当前时间点下使用的第一电子设备之后,向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令之前,还包括:
    获取当前时间点下所述第二电子设备中各应用的使用概率;
    基于所述第二电子设备中各应用的使用概率,确定所述第二设备中各应用的优先级;
    根据所述优先级生成所述应用处理指令。
  6. 一种应用处理方法,应用于电子设备,其中,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述方法包括:
    接收服务器发送的应用处理指令;
    根据所述应用处理指令获历史时间段内各应用的应用使用信息;
    根据所述应用使用信息确定当前时间点下各应用的优先级;
    基于所述优先级对多个应用待机分组中的应用进行调整。
  7. 根据权利要求6所述的应用处理方法,其特征在于,根据所述应用使用信息确定当前时间点下各应用的优先级之后,基于所述优先级对多个应用待机分组中的应用进行调整 之前,还包括:
    获取当前电子设备的当前电量;
    所述基于所述优先级对多个应用待机分组中的应用进行调整,包括:
    确定所述当前电量所处的电量区间;
    根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;
    基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。
  8. 根据权利要求7所述的应用处理方法,其中,所述基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整,包括:
    根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;
    对所述多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;
    按照集合等级由高到低、及所述分组层级由高到低的顺序,将所述多个应用集合与所述多个应用待机分组一一对应匹配;
    将各应用待机分组内的应用替换成所匹配应用集合中的应用。
  9. 一种应用处理装置,应用于服务器,其中,所述装置包括:
    第一获取模块,用于获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
    第一确定模块,用于确定当前时间点;
    预测模块,用于基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
    发送模块,用于向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
  10. 一种应用处理装置,应用于电子设备,其中,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述装置包括:
    接收模块,用于接收服务器发送的应用处理指令;
    第二获取模块,用于根据所述应用处理指令获历史时间段内各应用的应用使用信息;
    第二确定模块,用于根据所述应用使用信息确定当前时间点下各应用的优先级;
    调整模块,用于基于所述优先级对多个应用待机分组中的应用进行调整。
  11. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:
    获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
    确定当前时间点;
    基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
    向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
  12. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:
    接收服务器发送的应用处理指令;
    根据所述应用处理指令获历史时间段内各应用的应用使用信息;
    根据所述应用使用信息确定当前时间点下各应用的优先级;
    基于所述优先级对多个应用待机分组中的应用进行调整,所述多个分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强。
  13. 一种服务器,其中,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述处理器加载所述指令以执行以下步骤:
    获取历史时间段内多个电子设备中各应用的应用使用信息,其中,所述多个电子设备使用同一账户标识;
    确定当前时间点;
    基于所述应用使用信息预测所述当前时间点下使用的第一电子设备;
    向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令,以使所述第二电子设备基于所述应用处理指令对应用进行处理。
  14. 根据权利要求13所述的服务器,其中,所述历史时间段包括多个时间周期,每一时间周期划分为多个采样时段;
    在基于所述应用使用信息预测所述当前时间点下使用的第一电子设备时,所述处理器执行以下步骤:
    针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率;
    从所述多个采样时段中确定所述当前时间点对应的目标采样时段;
    获取各应用在所述目标采样时段下对应的目标使用概率;
    基于所述目标使用概率确定当前时间点下使用的第一电子设备。
  15. 根据权利要求14所述的服务器,其中,所述应用使用信息包括使用频率和使用时长;
    在针对不同电子设备中的每一应用,对其在不同时间周期中相同采样时段对应的应用使用信息进行处理,得到各应用在所述时间周期中不同采样时段对应的使用概率时,所述处理器执行以下步骤:
    对每一应用在不同时间周期中相同采样时段对应的使用频率、以及使用时长分别进行概率计算,得到各应用在不同采样时段下使用频率对应的第一概率、及运行时长对应的第二概率;
    按照预设权重设定,对所述第一概率和第二概率进行加权处理,计算得到各应用在不同采样时段下的使用概率。
  16. 根据权利要求14所述的服务器,其中,在基于所述目标使用概率确定当前时间点下使用的第一电子设备时,所述处理器执行以下步骤:
    基于所述目标使用概率确定当前时间点下使用的目标应用;
    确定所述目标应用所在的电子设备,作为第一电子设备。
  17. 根据权利要求13所述的服务器,其中,在基于所述应用使用信息预测所述当前时间点下使用的第一电子设备之后,向所述多个电子设备中除所述第一电子设备外的第二电子设备发送应用处理指令之前,所述处理器还执行以下步骤:
    获取当前时间点下所述第二电子设备中各应用的使用概率;
    基于所述第二电子设备中各应用的使用概率,确定所述第二设备中各应用的优先级;
    根据所述优先级生成所述应用处理指令。
  18. 一种电子设备,其中,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述电子设备的操作系统包括多个层级的应用待机分组,分组层级越高的应用待机分组被配置为对所述电子设备资源的调度能力越强,所述处理器加载所述指令以执行以下步骤:
    接收服务器发送的应用处理指令;
    根据所述应用处理指令获历史时间段内各应用的应用使用信息;
    根据所述应用使用信息确定当前时间点下各应用的优先级;
    基于所述优先级对多个应用待机分组中的应用进行调整。
  19. 根据权利要求18所述的电子设备,其中,根据所述应用使用信息确定当前时间点下各应用的优先级之后,基于所述优先级对多个应用待机分组中的应用进行调整之前,所述处理器还执行以下步骤:
    获取当前电子设备的当前电量;
    在基于所述优先级对多个应用待机分组中的应用进行调整时,所述处理器执行以下步骤:
    确定所述当前电量所处的电量区间;
    根据预设映射关系,获取所述电量区间下各应用待机分组中应用数量的数量分布信息,其中,所述预设映射关系包括:电量区间与各应用待机分组中应用数量的数量分布信息之间的映射关系;
    基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整。
  20. 根据权利要求19所述的电子设备,其中,在基于所述数量分布信息和所述优先级,对多个应用待机分组中的应用进行调整时,所述处理器执行以下步骤:
    根据所述数量分布信息,按优先级从高到低的顺序依次筛选相应数量的应用,得到多个应用集合;
    对所述多个应用集合设置集合等级,其中,集合等级相邻的两个应用集合中,高等级应用集合内应用的优先级高于低等级应用集合内应用的优先级;
    按照集合等级由高到低、及所述分组层级由高到低的顺序,将所述多个应用集合与所述多个应用待机分组一一对应匹配;
    将各应用待机分组内的应用替换成所匹配应用集合中的应用。
PCT/CN2019/073724 2019-01-29 2019-01-29 应用处理方法、装置、存储介质、服务器及电子设备 WO2020154902A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980077356.6A CN113170391B (zh) 2019-01-29 2019-01-29 应用处理方法、装置、存储介质、服务器及电子设备
PCT/CN2019/073724 WO2020154902A1 (zh) 2019-01-29 2019-01-29 应用处理方法、装置、存储介质、服务器及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/073724 WO2020154902A1 (zh) 2019-01-29 2019-01-29 应用处理方法、装置、存储介质、服务器及电子设备

Publications (1)

Publication Number Publication Date
WO2020154902A1 true WO2020154902A1 (zh) 2020-08-06

Family

ID=71841712

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/073724 WO2020154902A1 (zh) 2019-01-29 2019-01-29 应用处理方法、装置、存储介质、服务器及电子设备

Country Status (2)

Country Link
CN (1) CN113170391B (zh)
WO (1) WO2020154902A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895977B (zh) * 2022-05-05 2024-05-10 南京欧珀软件科技有限公司 应用的预加载方法、装置、设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2538327A1 (en) * 2011-06-16 2012-12-26 Samsung Electronics Co., Ltd. Adaptive Termination and Pre-Launching Policy for Improving Application Startup Time
CN103634275A (zh) * 2012-08-21 2014-03-12 联想(北京)有限公司 多设备管理与任务迁移方法及管理服务器
CN106790523A (zh) * 2016-12-20 2017-05-31 维沃移动通信有限公司 一种消息推送方法及服务器
CN107678858A (zh) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 应用处理方法、装置、存储介质及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9776078B2 (en) * 2012-10-02 2017-10-03 Razer (Asia-Pacific) Pte. Ltd. Application state backup and restoration across multiple devices
CN105094967B (zh) * 2015-06-26 2019-04-16 小米科技有限责任公司 进程运行方法及装置
CN108268322B (zh) * 2018-02-26 2022-07-01 北京小米移动软件有限公司 内存优化的方法、装置及计算机可读存储介质
CN108932140A (zh) * 2018-07-13 2018-12-04 重庆邮电大学 基于安卓用户行为习惯的清理后台应用程序的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2538327A1 (en) * 2011-06-16 2012-12-26 Samsung Electronics Co., Ltd. Adaptive Termination and Pre-Launching Policy for Improving Application Startup Time
CN103634275A (zh) * 2012-08-21 2014-03-12 联想(北京)有限公司 多设备管理与任务迁移方法及管理服务器
CN106790523A (zh) * 2016-12-20 2017-05-31 维沃移动通信有限公司 一种消息推送方法及服务器
CN107678858A (zh) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 应用处理方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN113170391A (zh) 2021-07-23
CN113170391B (zh) 2022-10-21

Similar Documents

Publication Publication Date Title
US20190188007A1 (en) Method for Preloading Application, Storage Medium, and Terminal Device
US20190196849A1 (en) Method and Device for Preloading Application, Storage Medium, and Terminal Device
CN109947496B (zh) 应用程序预加载方法、装置、存储介质及移动终端
WO2019062405A1 (zh) 应用程序的处理方法、装置、存储介质及电子设备
WO2020133418A1 (zh) 应用图标显示方法、装置、存储介质及电子设备
CN104239132A (zh) 一种唤醒对齐的方法、装置及终端
CN107678803A (zh) 应用管控方法、装置、存储介质及电子设备
WO2020133413A1 (zh) 应用分组调整方法、装置、存储介质及电子设备
WO2019071615A1 (zh) 一种降低终端功耗的方法及终端
CN110990138A (zh) 资源调度方法、装置、服务器及存储介质
CN107872523A (zh) 网络数据的加载方法、装置、存储介质及移动终端
CN106533763A (zh) 应用更新包的下载方法、装置及用户终端
WO2019085754A1 (zh) 应用清理方法、装置、存储介质及电子设备
Guo et al. Understanding application-battery interactions on smartphones: A large-scale empirical study
US11082806B2 (en) Method of identifying user location, storage medium and electronic device
WO2020154902A1 (zh) 应用处理方法、装置、存储介质、服务器及电子设备
WO2019062462A1 (zh) 应用控制方法、装置、存储介质以及电子设备
WO2019062404A1 (zh) 应用程序的处理方法、装置、存储介质及电子设备
CN112954021B (zh) 基于多设备数据的唤醒调节处理方法及装置
WO2020133417A1 (zh) 应用分组调整方法、装置、存储介质及电子设备
CN113728294B (zh) 功耗控制与方案生成方法、设备、系统及存储介质
US10097434B2 (en) Intelligent application diagnostics
CN104050100B (zh) 一种适用于大数据环境的数据流存储管理方法及系统
WO2019085742A1 (zh) 后台应用清理方法、装置、存储介质及电子设备
CN110045811A (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19914016

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19914016

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19914016

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25/01/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19914016

Country of ref document: EP

Kind code of ref document: A1