CN109032685B - Method and terminal for accelerating startup of android system - Google Patents

Method and terminal for accelerating startup of android system Download PDF

Info

Publication number
CN109032685B
CN109032685B CN201710436204.3A CN201710436204A CN109032685B CN 109032685 B CN109032685 B CN 109032685B CN 201710436204 A CN201710436204 A CN 201710436204A CN 109032685 B CN109032685 B CN 109032685B
Authority
CN
China
Prior art keywords
application
user behavior
terminal
behavior statistical
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710436204.3A
Other languages
Chinese (zh)
Other versions
CN109032685A (en
Inventor
孙向作
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN201710436204.3A priority Critical patent/CN109032685B/en
Publication of CN109032685A publication Critical patent/CN109032685A/en
Application granted granted Critical
Publication of CN109032685B publication Critical patent/CN109032685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method and a terminal for accelerating starting of an android system, and relates to the technical field of android terminals. The method comprises the following steps: when the android system is started, scanning and installing the application recorded in the user behavior statistical file through an application program management service; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter; and after the android system is started, scanning and installing other applications except the application recorded in the user behavior statistical file on the terminal through the application program management service. According to the embodiment of the invention, the scanning and analyzing time of the third-party application can be saved when the android system is started, the starting of the android system is accelerated, and the user experience is improved.

Description

Method and terminal for accelerating startup of android system
Technical Field
The invention belongs to the technical field of android terminals, and particularly relates to a method and a terminal for accelerating starting of an android system.
Background
The android system is a Linux operating system-based operating system with free and open source codes, is led and developed by google corporation and open mobile phone alliance, and is mainly used for mobile devices such as smart phones and tablet computers. The android system has the same system architecture as other operating systems, adopts a layered architecture, and is divided into four layers from an architecture diagram, namely an application program layer, an application program framework layer, a system operation library layer and a Linux kernel layer from a high layer to a low layer.
The android operating system has good development, and a user can download and install android system applications from an application store or other ways, wherein the android system applications are usually provided in APK files, and when the number of applications installed by the user is large, the starting time of the installation system is long. The android system is mainly used for starting an application program management service in the starting process, the application program management service is responsible for scanning a specific directory in the system, finding application program files in the directory, namely files with APK as suffixes, analyzing the files to obtain relevant information of the application program, and completing the installation process of the application program, and when the number of installed APK files is more, the time required for starting the android system is longer, so that the user experience is greatly influenced.
Disclosure of Invention
In view of this, the embodiment of the present invention provides a method and a terminal for accelerating startup of an android system, so as to solve the problem that in the prior art, the more applications are installed on the terminal, the longer the time required for startup of the android system is, and the user experience is greatly affected.
A first aspect of an embodiment of the present invention provides a method for accelerating startup of an android system, including:
when the android system is started, scanning and installing the application recorded in the user behavior statistical file through an application program management service; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter;
and after the android system is started, scanning and installing other applications except the application recorded in the user behavior statistical file on the terminal through the application program management service.
A second aspect of an embodiment of the present invention provides a terminal, including:
the starting unit is used for scanning and installing the application recorded in the user behavior statistical file through the application program management service when the android system is started; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter;
and the other application installation unit is used for scanning and installing other applications except the application recorded in the user behavior statistical file on the terminal through the application program management service after the android system is started.
A third aspect of embodiments of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor, when executing the computer program, implements the steps of the method according to the first aspect.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method according to the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
when the android system is started, the application recorded in the user behavior statistical file is scanned and installed through the application management service; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter; then, after the android system is started, the application program management service scans and installs other applications on the terminal except the application recorded in the user behavior statistical file, so that the scanning and analyzing time of the third-party application can be saved when the android system is started, the starting of the android system is accelerated, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a specific implementation of step S406 in a method for accelerating startup of an android system according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 10 is a schematic block diagram of a starting unit in a terminal according to an embodiment of the present invention;
fig. 11 is a schematic block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention. Referring to fig. 1, the method for accelerating startup of an android system provided by this embodiment includes the following steps:
step S101, when the android system is started, scanning and installing the application recorded in the user behavior statistical file through an application program management service; and the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter.
Preferably, in this embodiment, the application recorded in the user behavior statistics file is specifically an application program started by the statistical user from an android desktop launcher in a process from last startup to shutdown of the terminal. The user starts the application program from the android desktop starter, and mainly starts the application program by clicking an application icon of an application on a system desktop.
Preferably, in this embodiment, the user behavior statistic file includes an application package name of an application program started by the user from an android desktop launcher.
Preferably, in this embodiment, the user behavior statistical file is stored in a local memory of the terminal. And updating the stored user behavior statistical file once every time the terminal is powered off. For example: when the terminal is started up to shut down for the first time, counting that a user behavior statistical file started by a user from an android desktop starter is a file A, wherein the file A is directly stored in a local storage of the terminal when the terminal is shut down for the first time because the user behavior statistical file is not stored in the local storage of the terminal before; the terminal obtains the file a when the terminal is powered on for the second time, the system is powered on for the second time according to the file a, meanwhile, the terminal counts user behavior statistical files in the processes from the power on to the power off for the second time, the counted files are files, the file a stored in the local memory is replaced by the file B when the terminal is powered off for the second time, and therefore the obtained user behavior statistical file is the file B when the terminal is powered on for the third time.
Preferably, in this embodiment, step S101 specifically includes:
when the android system is started, acquiring the user behavior statistical file from a local memory of a terminal;
analyzing the user behavior statistical file to obtain an application name of an application contained in the user behavior statistical file;
acquiring information related to the application stored in a terminal database according to an application package name of the application contained in the acquired user behavior statistical file, wherein the information related to the application is information required by the application installation, such as an APK file of the application program;
installing the application according to the acquired information related to the application, for example: analyzing the APK file of the application program, and completing the installation of the application program according to the analyzed information;
and packaging the installed application program icons through an android desktop launcher, and displaying the installed application program icons on a desktop of the terminal.
And step S102, after the android system is started, scanning and installing other applications on the terminal except the application recorded in the user behavior statistical file through the application program management service.
Preferably, in this embodiment, the database of the terminal stores information of all application programs installed on the terminal, after the installation system is started, the terminal obtains application package names of other applications except the application recorded in the user behavior statistical file by comparing the application package names of the applications in the user behavior statistical file with the application package names of all application programs stored in the database, scans and analyzes APK files of other applications according to the obtained application package names of other applications, completes installation of other applications, and notifies the android desktop launcher after the other applications are installed, so that the android desktop launcher encapsulates application program icons of other applications, and displays the encapsulated application program icons of other applications on the desktop of the terminal.
As can be seen from the above, in the method for accelerating the startup of the android system provided by this embodiment, when the android system is started, the application recorded in the user behavior statistical file is scanned and installed by the application management service; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter; then, after the android system is started, the application program management service scans and installs other applications on the terminal except the application recorded in the user behavior statistical file, so that the scanning and analyzing time of the third-party application can be saved when the android system is started, the starting of the android system is accelerated, and the user experience is improved.
Fig. 2 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention. Referring to fig. 2, with respect to the previous embodiment, in the method for accelerating startup of an android system provided in this embodiment, before scanning and installing an application recorded in a user behavior statistical file by an application management service when the android system is started, the method further includes:
step S201, obtaining information of all application programs installed on the terminal from a database of the terminal, wherein the information comprises application package names of all application programs installed on the terminal and position information of shortcut icons.
Step S202, traversing the position information of the shortcut icons of all the application programs in the information, judging whether the android desktop starter has key operation at the positions, and if the android desktop starter has key operation at a certain position, entering step S203; otherwise, the process is exited.
Step S203, judging whether the application package name of the application corresponding to the position is the same as the package name of the newly started application, and if so, entering step S204; otherwise, the process is exited.
Step S204, recording the running time of the application corresponding to the location and the name of the application package into the user behavior statistics file.
Preferably, in this embodiment, if the package name of the application corresponding to the location is the same as the package name of the newly started application, it is described that the newly started application is started from the android desktop launcher, and at this time, the running time and the package name of the application corresponding to the location may be recorded, and the recorded information is added to the user behavior statistical file.
Preferably, in this embodiment, step S204 specifically includes:
when the fact that the application is started from the android desktop starter is known, the current time of the system is obtained and is used as the starting time of the application, and meanwhile, the application package name of the application is stored;
acquiring a TopActivity name in the system at preset time intervals, namely the name of an application program package currently running in the foreground of the system;
judging whether the application package name of the stored application is different from the TopActive name or not;
if the TopActivity name is different from the application package name of the android desktop starter, acquiring the current time of the system, and taking the current time as the running end time of the application;
repeatedly executing the process until the system is shut down;
and calculating the running time of each application according to the counted opening time and running ending time of each application, establishing association between the running time of each application and the application package name, and storing the association to the user behavior statistical file.
For ease of understanding, assume for example that the user behavior of the terminal during a certain time period from power on to power off is as follows:
main interface application, { a ═ 2017-03-3010: 14:41, b ═ 2017-03-3010: 19:51}
Use of 1, { a ═ 2017-03-3010: 19:53, b ═ 2017-03-3010: 59:06}
Main interface application, { a ═ 2017-03-3010: 59:08, b ═ 2017-03-3010: 59:14}
Application 2, { a ═ 2017-03-3010: 59:16, b ═ 2017-03-3011: 01:18}
Main interface application, { a ═ 2017-03-3011: 01:18, b ═ 2017-03-3011: 03:10}
Application 1, { a ═ 2017-03-3011: 03:12, b ═ 2017-03-3012: 03:16}
Main interface application, { a ═ 2017-03-3012: 03:20, b ═ 2017-03-3012: 03:22}
Wherein, "a" represents the opening time of the application program, and "b" represents the running end time of the application program. After the user behavior record is obtained, the user behavior statistical file can be obtained through statistics as follows:
application package name run time length
Com.App1 100min
Com.App2 2min。
It should be noted that, the above representation manner of the user behavior statistics file is only a preferred implementation example of the present invention, and is not limited to the present invention, and in other implementation examples, the user behavior statistics file may further include the number of times of use of the application program. Therefore, the installation sequence of each application program in the user behavior statistical file can be determined according to the operation duration or the use times of each application program in the user behavior statistical file.
In addition, since steps S205 to S206 in this embodiment are completely the same as the steps S101 to S102 in the embodiment shown in fig. 1, detailed description thereof is omitted here.
Above can see that, according to the method for accelerating the startup of the android system provided by the embodiment, the scanning and analyzing time of the third-party application can be saved when the android system is started, the startup of the android system is accelerated, and the user experience is improved.
Fig. 3 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention. Referring to fig. 3, in this embodiment, with respect to the previous embodiment, before the obtaining information of all applications installed on the terminal from the database of the terminal, the obtaining information includes application package names of all applications installed on the terminal and location information of shortcut icons, the obtaining information further includes:
step S300, a database of the terminal is established, information of all application programs installed on the terminal is stored in the database in a data table mode, and a table field of the data table at least comprises the application package names of the application programs and the position information of the shortcut icons.
In actual operation, a user may install a third-party application on the terminal or uninstall the third-party application installed on the terminal, so that the data table created according to the application analyzed by the application program management service needs to be updated when the android system is started. In view of this, the present embodiment proposes that, in a case where a user installs, uninstalls an application or changes a shortcut icon position of an application in a terminal using process, a listener for installing an application, a listener for uninstalling an application, and a listener for moving an application position are added in a system, and after the database of the terminal is established, the method further includes:
if the installation application is monitored, in the application installation process, calling an application program management service to analyze the currently installed application, acquiring relevant information of the currently installed application, and adding a corresponding record of the application in a data table according to the acquired relevant information of the currently installed application;
if the uninstalled application is monitored, in the application uninstalling process, calling an application program management service to analyze the currently uninstalled application, acquiring relevant information of the currently uninstalled application, and deleting a relevant record of the application in the data table according to the acquired relevant information of the currently uninstalled application;
if the situation that the position of a shortcut icon of an application program changes is monitored, when the position is moved, an application program management service is called to analyze the application at the current moving position, the latest position information of the current mobile application is obtained, and the position information record of the mobile application is updated in a data table according to the position information.
It should be noted that, since the implementation manners of step S301 to step S306 in this embodiment are completely the same as the implementation manners of step S201 to step S202 in the previous embodiment, no further description is provided herein.
As can be seen from the above, the method for accelerating the startup of the android system provided by the embodiment can also save the scanning and analyzing time of the third-party application when the android system is started, accelerate the startup of the android system, and improve the user experience; in addition, compared with the previous embodiment, in this embodiment, the data table recording the application information in the terminal database is updated in real time according to the operation of the user on the application on the terminal, so that the stability and reliability of the method for accelerating the startup of the android system can be further improved.
Fig. 4 is a schematic flowchart of a method for accelerating startup of an android system according to an embodiment of the present invention. Referring to fig. 4, with respect to the previous embodiment, after recording the running time of the application corresponding to the location and the name of the application package in the user behavior statistics file, the method for accelerating the startup of the android system provided in this embodiment further includes:
and S405, uploading the user behavior statistical file to a cloud for storage.
Preferably, in this embodiment, the terminal counts the user behavior statistical file in the time period from the startup to the shutdown every time in the process from the startup to the shutdown, and uploads the user behavior statistical file to the cloud for storage in real time after the user behavior statistical file is generated, and the cloud deletes the user behavior statistical file received and stored last time after receiving the new user behavior statistical file uploaded by the terminal every time, so as to ensure that the latest user behavior statistical file is obtained when the terminal is started next time. For example, a user behavior statistical file counted by the terminal in the first startup and first shutdown time period is a file a, and when the file a is obtained, the terminal uploads the file a to the cloud for storage when the terminal is shutdown for the first time; when the terminal is started for the second time, the file A can be read from the cloud end, the system is started according to the file A, meanwhile, the terminal can continue to count user behavior statistics files from the second time of starting to the second time of shutdown, the counted file B is made to be the file B, the file B can be uploaded to the cloud end when the terminal is closed for the second time, when the cloud end receives the file B, the file A stored before can be replaced by the file B, and therefore when the terminal is started for the next time, the system can be started according to the file B.
In this embodiment, the user behavior statistical file is uploaded to the cloud for storage, so that the memory of the terminal can be saved, and the performance of the terminal system can be improved.
Preferably, referring to fig. 5, a flowchart illustrating a specific implementation of step S406 in this embodiment is shown, where step S406 includes:
step S501, when the android system is started, obtaining the user behavior statistical file from a cloud end;
step S502, analyzing the user behavior statistical file, and acquiring the application package name and the running time of the application program included in the user behavior statistical file;
step S503, determining the installation sequence of the application programs included in the user behavior statistical file according to the running time of the application programs;
step S504, sequentially inquiring the data table according to the application package names of the application programs included in the user behavior statistical file according to the installation sequence, and acquiring the related information of the application programs included in the user behavior statistical file; the table field of the data table further comprises an application root Activity name;
step S505, completing installation of the application program included in the user behavior statistics file according to the related information, where the related information includes a root Activity name of the application program and location information of the shortcut icon.
Preferably, in this embodiment, the determining, according to the running time of the application program, the installation order of the application programs included in the user behavior statistical file includes:
acquiring the installation priority of the application program according to the running time of the application program, wherein the longer the running time is, the higher the priority is;
and sequencing the application programs included in the user behavior statistical file according to the high-low sequence of the priority, wherein the sequencing sequence is the sequence of the installation of the application programs.
Preferably, in this embodiment, after the terminal obtains the root Activity name of the application corresponding to the application package name in the user behavior statistics file, the terminal may scan and obtain an installation package file corresponding to the application program from a terminal database according to the Activity name, then complete installation of the application program according to the obtained installation package file of the application program, and after the application package management service completes installation of the application in the user behavior statistics file, notify the android desktop launcher, so that the android desktop launcher encapsulates the desktop shortcut icons of the application programs, and then display the desktop shortcut icons of the encapsulated application programs at corresponding positions on the desktop according to the obtained positions of the shortcut icons of the application programs.
It should be noted that steps S400 to S404 and S407 in this embodiment are completely the same as steps S300 to S304 and S306 in the previous embodiment, and therefore, no further description is provided herein.
As can be seen from the above, the method for accelerating the startup of the android system provided by the embodiment can also save the scanning and analyzing time of the third-party application when the android system is started, accelerate the startup of the android system, and improve the user experience; in addition, compared with the previous embodiment, in the embodiment, the user behavior statistical file is stored in the cloud, so that the memory of the terminal can be saved, the performance of the terminal system is further improved, and the starting of the terminal system is accelerated.
Fig. 6 is a schematic block diagram of a terminal according to an embodiment of the present invention, and only a portion related to the embodiment is shown for convenience of description.
Referring to fig. 6, the present embodiment provides a terminal 6, including:
the starting unit 61 is used for scanning and installing the applications recorded in the user behavior statistical file through the application program management service when the android system is started; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter;
and the other application installation unit 62 is configured to scan and install other applications on the terminal, except the application recorded in the user behavior statistical file, through the application management service after the android system is started.
Optionally, referring to fig. 7, in an embodiment of the present invention, the terminal 6 further includes:
an application information obtaining unit 63, configured to obtain information of all application programs installed on a terminal from a database of the terminal, where the information includes application package names of all application programs installed on the terminal and location information of shortcut icons;
the first judging unit 64 is configured to traverse the position information of the shortcut icons of all the application programs in the information, and judge whether a key operation is performed on the android desktop launcher at these positions;
a second determining unit 65, configured to determine, if there is a key operation on a certain position on the android desktop launcher, whether an application package name of an application corresponding to the certain position is the same as a package name of a newly started application;
and if the user behavior statistical file is the same as the user behavior statistical file, the statistical file generating unit 66 is configured to record the running time and the application package name of the application corresponding to the position into the user behavior statistical file.
Optionally, referring to fig. 8, in an embodiment of the present invention, the terminal 6 further includes:
a database establishing unit 67, configured to establish a database of the terminal, where information of all application programs installed on the terminal is stored in the database in a form of a data table, and a table field of the data table at least includes an application package name of an application program and location information of a shortcut icon.
Optionally, referring to fig. 9, in an embodiment of the present invention, the terminal 6 further includes:
and the file uploading unit 68 is used for uploading the user behavior statistical file to the cloud for storage.
Optionally, referring to fig. 10, in an embodiment of the present invention, the starting unit 61 includes:
the statistical file obtaining unit 611 is configured to obtain the user behavior statistical file from the cloud when the android system is started;
a statistical file analyzing unit 612, configured to analyze the user behavior statistical file, and obtain an application package name and an operation time of an application program included in the user behavior statistical file;
an installation order determining unit 613, configured to determine an installation order of the application programs included in the user behavior statistical file according to the running time of the application programs;
a statistical application installation information obtaining unit 614, configured to sequentially query the data table according to the installation order and according to the application package names of the application programs included in the user behavior statistical file, and obtain relevant information of the application programs included in the user behavior statistical file; the table field of the data table further comprises an application root Activity name;
a statistical application installation unit 615, configured to complete installation of the application program included in the user behavior statistics file according to the relevant information, where the relevant information includes a root Activity name of the application program and location information of the shortcut icon.
It should be noted that, since each unit in the terminal provided in the embodiment of the present invention is based on the same concept as that of the embodiment of the method of the present invention, the technical effect brought by the unit is the same as that of the embodiment of the method of the present invention, and specific contents may refer to descriptions in the embodiment of the method of the present invention, and are not described herein again.
Therefore, it can be seen that the terminal provided by the embodiment of the invention can also save the scanning and analyzing time of the third-party application when the android system is started, accelerate the starting of the android system, and improve the user experience.
Fig. 11 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 11, the terminal 11 of this embodiment includes: a processor 110, a memory 111 and a computer program 112 stored in said memory 111 and executable on said processor 110. The processor 110, when executing the computer program 112, implements the steps in the various method embodiments described above, such as the steps 111 to 112 shown in fig. 1. Alternatively, the processor 110, when executing the computer program 112, implements the functions of each module/unit in the above-mentioned device embodiments, for example, the functions of the modules 61 to 62 shown in fig. 6.
Illustratively, the computer program 112 may be partitioned into one or more modules/units that are stored in the memory 111 and executed by the processor 110 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 112 in the terminal 11. For example, the computer program 112 may be divided into the starting unit 61 and the other application installation unit 62, and the specific functions of the modules are as follows:
the starting unit 61 is used for scanning and installing the applications recorded in the user behavior statistical file through the application program management service when the android system is started; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter;
and the other application installation unit 62 is configured to scan and install other applications on the terminal, except the application recorded in the user behavior statistical file, through the application management service after the android system is started.
The terminal can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The terminal may include, but is not limited to, a processor 110, a memory 111. Those skilled in the art will appreciate that fig. 11 is merely an example of a terminal 11 and does not constitute a limitation of terminal 11 and may include more or less components than those shown, or combine certain components, or different components, e.g., the terminal may also include input-output devices, network access devices, buses, etc.
The Processor 110 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 111 may be an internal storage unit of the terminal 11, such as a hard disk or a memory of the terminal 11. The memory 111 may also be an external storage device of the terminal 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal 11. Further, the memory 111 may also include both an internal storage unit and an external storage device of the terminal 11. The memory 111 is used for storing the computer program and other programs and data required by the terminal. The memory 111 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A method for accelerating startup of an android system is characterized by comprising the following steps:
when the android system is started, acquiring a user behavior statistical file from a cloud; analyzing the user behavior statistical file to obtain the application package name and the running time of the application program included in the user behavior statistical file; determining the installation sequence of the application programs included in the user behavior statistical file according to the running time of the application programs; sequentially inquiring a data table according to the installation sequence and the application package names of the application programs included in the user behavior statistical file to acquire the relevant information of the application programs included in the user behavior statistical file; the table field of the data table further comprises an application root Activity name; completing installation of the application programs contained in the user behavior statistical file according to the related information, wherein the related information comprises root Activity names of the application programs and position information of shortcut icons; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter; the data table is used for recording application program information;
and after the android system is started, scanning and installing other applications except the application recorded in the user behavior statistical file on the terminal through the application program management service.
2. The method for accelerating startup of an android system as recited in claim 1, wherein before acquiring the user behavior statistics file from a cloud when the android system is started, the method further comprises:
acquiring information of all application programs installed on a terminal from a database of the terminal, wherein the information comprises application package names of all application programs installed on the terminal and position information of shortcut icons;
traversing the position information of the shortcut icons of all the application programs in the information, and judging whether the android desktop starter has key operation at the positions;
if the android desktop starter has a key operation at a certain position, judging whether the application package name of the application corresponding to the position is the same as the package name of the newly started application;
and if the user behavior statistical file is the same as the user behavior statistical file, recording the running time of the application corresponding to the position and the name of the application package into the user behavior statistical file.
3. The method for accelerating startup of an android system according to claim 2, wherein the obtaining information of all the applications installed on the terminal from a database of the terminal, the information including application package names of all the applications installed on the terminal and location information of shortcut icons further includes:
and establishing a database of the terminal, wherein the information of all application programs installed on the terminal is stored in the database in a data table form, and the table field of the data table at least comprises the application package name of the application program and the position information of the shortcut icon.
4. The method for accelerating startup of an android system of claim 3, wherein if the same, after recording the startup time, the operation end time, and the application package name of the application corresponding to the location into the user behavior statistics file, further comprises:
and uploading the user behavior statistical file to a cloud for storage.
5. The utility model provides a terminal of android system start-up with higher speed which comprises:
the starting unit is used for acquiring a user behavior statistical file from the cloud when the android system is started; analyzing the user behavior statistical file to obtain the application package name and the running time of the application program included in the user behavior statistical file; determining the installation sequence of the application programs included in the user behavior statistical file according to the running time of the application programs; sequentially inquiring a data table according to the installation sequence and the application package names of the application programs included in the user behavior statistical file to acquire the relevant information of the application programs included in the user behavior statistical file; the table field of the data table further comprises an application root Activity name; completing installation of the application programs contained in the user behavior statistical file according to the related information, wherein the related information comprises root Activity names of the application programs and position information of shortcut icons; the application recorded in the user behavior statistical file is an application program started by the user from an android desktop starter; the data table is used for recording application program information;
and the other application installation unit is used for scanning and installing other applications except the application recorded in the user behavior statistical file on the terminal through the application program management service after the android system is started.
6. The terminal of claim 5, further comprising:
the application information acquisition unit is used for acquiring information of all application programs installed on the terminal from a database of the terminal, wherein the information comprises application package names of all application programs installed on the terminal and position information of shortcut icons;
the first judging unit is used for traversing the position information of the shortcut icons of all the application programs in the information and judging whether the android desktop starter has key operation at the positions;
the second judging unit is used for judging whether the application package name of the application corresponding to a certain position is the same as the package name of the newly started application or not if the button operation is carried out on the android desktop starter at the certain position;
and the statistical file generating unit is used for recording the running time of the application corresponding to the position and the application package name into the user behavior statistical file if the running time of the application and the application package name are the same.
7. The terminal of claim 6, further comprising:
the database establishing unit is used for establishing a database of the terminal, information of all application programs installed on the terminal is stored in the database in a data table form, and a table field of the data table at least comprises the application package names of the application programs and the position information of the shortcut icons.
8. Terminal for accelerating the startup of an android system, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 4 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201710436204.3A 2017-06-09 2017-06-09 Method and terminal for accelerating startup of android system Active CN109032685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710436204.3A CN109032685B (en) 2017-06-09 2017-06-09 Method and terminal for accelerating startup of android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710436204.3A CN109032685B (en) 2017-06-09 2017-06-09 Method and terminal for accelerating startup of android system

Publications (2)

Publication Number Publication Date
CN109032685A CN109032685A (en) 2018-12-18
CN109032685B true CN109032685B (en) 2020-11-10

Family

ID=64629383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710436204.3A Active CN109032685B (en) 2017-06-09 2017-06-09 Method and terminal for accelerating startup of android system

Country Status (1)

Country Link
CN (1) CN109032685B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058890A (en) * 2019-02-28 2019-07-26 努比亚技术有限公司 A kind of Android system starting method, terminal and computer readable storage medium
CN111722894B (en) * 2019-03-21 2023-04-18 成都鼎桥通信技术有限公司 Application processing method and device and electronic equipment
CN111124519B (en) * 2019-12-27 2022-12-13 珠海全志科技股份有限公司 Method and system for optimizing starting speed of android application program based on input response
CN111666113A (en) * 2020-04-24 2020-09-15 北京奇艺世纪科技有限公司 Application program starting management method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device
CN104090791A (en) * 2014-06-30 2014-10-08 中科创达软件股份有限公司 Method and device for scanning apks under Andriod system
CN104461598A (en) * 2013-09-24 2015-03-25 联想(北京)有限公司 Method and device for improving response speed of electronic equipment and electronic equipment
CN106354537A (en) * 2016-09-05 2017-01-25 Tcl集团股份有限公司 Accelerated start method for desktop starter and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120227045A1 (en) * 2009-12-26 2012-09-06 Knauth Laura A Method, apparatus, and system for speculative execution event counter checkpointing and restoring

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device
CN104461598A (en) * 2013-09-24 2015-03-25 联想(北京)有限公司 Method and device for improving response speed of electronic equipment and electronic equipment
CN104090791A (en) * 2014-06-30 2014-10-08 中科创达软件股份有限公司 Method and device for scanning apks under Andriod system
CN106354537A (en) * 2016-09-05 2017-01-25 Tcl集团股份有限公司 Accelerated start method for desktop starter and system thereof

Also Published As

Publication number Publication date
CN109032685A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109032685B (en) Method and terminal for accelerating startup of android system
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN109814524B (en) Vehicle diagnosis method, device and system
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN111176717B (en) Method and device for generating installation package and electronic equipment
CN112948026A (en) Hotspot code processing method and device, server, electronic equipment and storage medium
CN112667405B (en) Information processing method, device, equipment and storage medium
US9104567B2 (en) Memory-leak identification
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN112988169A (en) Application installation method and device, terminal equipment, server and storage medium
CN111200744B (en) Multimedia playing control method and device and intelligent equipment
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN110750286A (en) Management method, device, system, equipment and medium for upgrading Mbn through OTA
CN113961936A (en) Trusted white list construction method, system and device and computer equipment
CN111046393B (en) Vulnerability information uploading method and device, terminal equipment and storage medium
CN111107062B (en) Game resource packaging method and system based on greedy algorithm
CN111400091A (en) Factory setting restoring method, factory setting restoring device and mobile terminal
CN115543936A (en) Method, device and equipment for constructing model files in batches and storage medium
CN113849195A (en) Application program loading method and device, storage medium and terminal
CN114356290A (en) Data processing method and device and computer readable storage medium
CN114637969A (en) Target object authentication method and device
CN114157662A (en) Cloud platform parameter adaptation method and device, terminal equipment and storage medium
CN114090069A (en) Application program installation package file processing method and electronic equipment
CN108874586B (en) Data recovery method and related product
CN112612474A (en) Product transplanting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 516006 TCL technology building, No.17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL RESEARCH AMERICA Inc.

GR01 Patent grant
GR01 Patent grant