WO2019237822A1 - 一种安卓系统开机速度控制方法、智能设备及存储介质 - Google Patents

一种安卓系统开机速度控制方法、智能设备及存储介质 Download PDF

Info

Publication number
WO2019237822A1
WO2019237822A1 PCT/CN2019/082767 CN2019082767W WO2019237822A1 WO 2019237822 A1 WO2019237822 A1 WO 2019237822A1 CN 2019082767 W CN2019082767 W CN 2019082767W WO 2019237822 A1 WO2019237822 A1 WO 2019237822A1
Authority
WO
WIPO (PCT)
Prior art keywords
android system
startup
packages
installation
installation packages
Prior art date
Application number
PCT/CN2019/082767
Other languages
English (en)
French (fr)
Inventor
张志标
朱海明
Original Assignee
深圳Tcl新技术有限公司
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新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2019237822A1 publication Critical patent/WO2019237822A1/zh

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/4401Bootstrapping
    • 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/4401Bootstrapping
    • G06F9/4406Loading of operating system

Definitions

  • the invention relates to the technical field of smart devices, and in particular, to a method for controlling the startup speed of an Android system, a smart device, and a storage medium.
  • the Android system service Package Manager Service (referred to as PMS) is the Android system service.
  • PMS the Android system service Package Manager Service
  • APK Android Package, that is, Android installation package
  • This information can be used to accurately call each APK in the future.
  • the present invention provides a method for controlling the startup speed of an Android system, a smart device, and a storage medium, and aims to use the frequency according to the frequency of use of various installation packages (applications).
  • High installation packages are scanned during the startup of the Android system, and other infrequent installation packages are scanned and started gradually after the Android system is started, thereby significantly improving the startup speed of the Android system.
  • An Android system boot speed control method wherein the Android system boot speed control method includes:
  • an Android-based smart device When an Android-based smart device is started at startup, it only scans common installation packages. Uncommon installation packages are not scanned during the startup process, and only one incomplete scan ID is retained;
  • an APK that has not been used in the last N boot processes is defined as an infrequent installation package, and other installation packages are defined as commonly used installation packages.
  • the method for controlling the startup speed of the Android system wherein after the Android system is started, completing the scan of the infrequently installed packages according to the unfinished scan ID, and clearing the uncompleted scan ID further includes:
  • refreshing the UI interface is used to display the icons corresponding to the applications of the scanned infrequently installed packages in the empty space of the UI interface.
  • the method for controlling the startup speed of the Android system wherein recording the number of times that all installation packages are used in a preset N booting process, and before defining an unused installation package as an infrequent installation package further includes:
  • the method for controlling the startup speed of the Android system, wherein recording the number of times that all installation packages are used in a preset N booting process, and defining an unused installation package as an infrequent installation package specifically includes:
  • list file Record all current application package names in the packages.list file in the / data / system directory of the Android system, and filter out the package names in the packages.list file to form a total list of installation packages;
  • the Android system boot speed control method wherein when an Android-based smart device is booted and started, only common installation packages are scanned, and infrequent installation packages are not scanned during the startup process, and only one uncompleted scan is retained
  • the identification includes:
  • the commonly used installation packages identified are scanned, and the identified infrequent installation packages are retained with an incomplete scan ID and not scanned.
  • the identified common installation packages are scanned in the PackageManagerService at the time of startup.
  • the method for controlling the startup speed of the Android system wherein after the Android system is started, completing the scan of the infrequent installation package according to the incomplete scan ID, and clearing the incomplete scan ID specifically includes:
  • the method for controlling the startup speed of the Android system wherein after receiving the BOOT_COMPLETED broadcast from the end of the startup of the Android system, a service is started to complete the scanning of these infrequently used APKs according to the incomplete scanning identification, the scanning method and the PMS scanning method Consistent.
  • the method for controlling the startup speed of the Android system wherein scans are performed on infrequently used APKs, and each scanned APK is updated, and the scanned APK list managed by PMS is updated, and the package name of this APK is sent to the Launcher to refresh the interface content of all applications .
  • the method for controlling the startup speed of the Android system, wherein when the infrequently installed installation package is scanned, refreshing the UI interface for displaying the icon corresponding to the scanned infrequently installed installation package into a vacant space of the UI interface specifically includes:
  • the method for controlling the startup speed of the Android system wherein scanning and displaying an uncommonly used APK is performed after the main page is displayed.
  • a smart device wherein the smart device includes a memory, a processor, and an Android system boot speed control program stored on the memory and operable on the processor, and the Android system boot speed control program is When the processor executes, the steps of the method for controlling the startup speed of the Android system as described above are implemented.
  • a storage medium wherein the storage medium stores an Android system boot speed control program, and when the Android system boot speed control program is executed by a processor, the steps of the Android system boot speed control method described above are implemented.
  • the invention discloses an Android system booting speed control method, an intelligent device and a storage medium.
  • the method includes: recording the number of times all installation packages are used in a preset N booting process, and using unused installation packages Defined as an infrequent installation package; when an Android-based smart device is started at startup, it only scans the commonly used installation packages.
  • the infrequent installation package does not scan during the startup process, and only retains an unfinished scan identification; when the Android system startup ends After that, scan the infrequent installation packages based on the incomplete scan ID, and clear the incomplete scan ID.
  • the present invention scans installation packages with high usage frequency during the startup process of the Android system, and scans and starts other infrequent installation packages after the Android system is started. To increase the boot speed of the Android system.
  • FIG. 1 is a flowchart of a preferred embodiment of a method for controlling a startup speed of an Android system according to the present invention
  • step S10 is a flowchart of step S10 in a preferred embodiment of a method for controlling a startup speed of an Android system according to the present invention
  • step S20 is a flowchart of step S20 in a preferred embodiment of a method for controlling a startup speed of an Android system according to the present invention
  • step S30 is a flowchart of step S30 in a preferred embodiment of a method for controlling a startup speed of an Android system according to the present invention
  • FIG. 5 is a schematic diagram of an operating environment of a smart device according to a preferred embodiment of the present invention.
  • the Android system boot speed control method according to the preferred embodiment of the present invention is an Android system boot speed control method, wherein the Android system boot speed control method includes the following steps:
  • Step S10 Record the number of times all installation packages are used in the preset N booting use processes, and define unused installation packages as infrequent installation packages.
  • the method further includes: using the boot sequence as the file name, and recording the startup information of the installation package with the application package name; when an application is restarted within the time range of the current boot, the records with the same package name are not repeated.
  • FIG. 2 is a flowchart of step S10 in the startup speed control method of the Android system provided by the present invention.
  • the step S10 includes:
  • the package name of application A is PackageNameA, which was started during the second use process (including the use process from boot to shutdown), then it It is recorded in the file named "No2", and a record number of "PackageNameA" is generated.
  • the packages.list file in the / data / system directory of the Android system records all the current application package names, filtering out the package names in this file is the total APK list; the packages recorded in the No1-No10 files are Name the collection, which is the list of APKs that have been started in the last 10 startups; remove the package name of the APK list that was started in the last 10 startups from the total APK list, and the rest is the infrequently used APKs, and record them in the / data directory Fixed position, it will be refreshed every time it is turned on.
  • Step S20 When the Android-based smart device is started at startup, it only scans the commonly used installation packages, and the infrequently used installation packages are not scanned during the startup process, and only one unfinished scan identification is retained.
  • FIG. 3 is a flowchart of step S20 in the startup speed control method of the Android system provided by the present invention.
  • the step S20 includes:
  • Step S30 After the Android system is started, the scan of the infrequently installed packages is completed according to the incomplete scan ID, and the incomplete scan ID is cleared.
  • FIG. 4 is a flowchart of step S30 in the startup speed control method of the Android system provided by the present invention.
  • the step S30 includes:
  • the method further comprises: when scanning the infrequently used installation package, refreshing the UI interface for displaying the icon corresponding to the application of the scanned infrequently installed package in the empty space of the UI interface.
  • the "All Applications” management module displays all installed applications in the Android system. Whether it is a commonly used APK or an unused APK, it needs to be displayed in "All Applications". In order to speed up the booting speed, the invention scans and displays APKs that are not commonly used after the main page is displayed. Since "All Applications" is not the first interface displayed when booting up, the user may not enter immediately, so there may be a background Refresh and foreground refresh are two possibilities.
  • the present invention also provides a smart device correspondingly.
  • the smart device includes a processor 10, a memory 20, and a display 30.
  • FIG. 5 shows only some components of the smart device, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
  • the memory 20 may be an internal storage unit of the smart device, such as a hard disk or a memory of the smart device.
  • the memory 20 may also be an external storage device of the smart device, such as a plug-in hard disk, a smart memory card (SMC), and a secure digital (Secure) Digital, SD) card, Flash card, etc.
  • the memory 20 may include both an internal storage unit of the smart device and an external storage device.
  • the memory 20 is configured to store application software and various types of data installed on the smart device, such as program codes of the smart device.
  • the memory 20 may also be used to temporarily store data that has been output or is to be output.
  • the Android system boot speed control program 40 is stored in the memory 20, and the Android system boot speed control program 40 can be executed by the processor 10 to implement the Android system boot speed control method in this application.
  • the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, for running program code or processing data stored in the memory 20, such as The method for controlling the startup speed of the Android system is executed.
  • CPU central processing unit
  • microprocessor or other data processing chip
  • the display 30 may be an LED display, a liquid crystal display, a touch-type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like.
  • the display 30 is used for displaying information on the smart device and for displaying a visual user interface.
  • the components 10-30 of the smart device communicate with each other through a system bus.
  • an Android-based smart device When an Android-based smart device is started at startup, it only scans common installation packages. Uncommon installation packages are not scanned during the startup process, and only one incomplete scan ID is retained;
  • the recording records the number of times that all installation packages are used during the preset N boot-up uses. Defining an unused installation package as an infrequent installation package specifically includes:
  • list file Record all current application package names in the packages.list file in the / data / system directory of the Android system, and filter out the package names in the packages.list file to form a total list of installation packages;
  • the smart device based on the Android system When the smart device based on the Android system is started at startup, it only scans common installation packages, and infrequent installation packages are not scanned during the startup process, and only one uncompleted scan identifier is retained, which specifically includes:
  • the commonly used installation packages identified are scanned, and the identified infrequent installation packages are retained with an incomplete scan ID and not scanned.
  • the scan of the infrequently installed packages is completed according to the incomplete scan ID, and the incomplete scan ID is cleared.
  • the specific steps include:
  • the present invention also provides a storage medium, wherein the storage medium stores an Android system boot speed control program, and when the Android system boot speed control program is executed by a processor, implements the steps of the Android system boot speed control method described above; The details are as described above.
  • the present invention provides a startup speed control method for an Android system, a smart device, and a storage medium.
  • the method includes: recording the number of times that all installation packages are used during a preset N startup operations, and will not be used.
  • Passed installation packages are defined as infrequent installation packages; when Android-based smart devices are started at startup, only common installation packages are scanned. Infrequent installation packages are not scanned during the startup process, and only one incomplete scan ID is retained; when After the Android system is started, it scans the infrequent installation packages based on the incomplete scan ID, and clears the incomplete scan ID.
  • the present invention scans installation packages with high usage frequency during the startup process of the Android system, and scans and starts other infrequent installation packages after the Android system is started. To increase the boot speed of the Android system.
  • a person of ordinary skill in the art can understand that the implementation of all or part of the processes in the methods of the foregoing embodiments can be performed by using a computer program to instruct related hardware (such as a processor, a controller, etc.).
  • a computer-readable storage medium when the program is executed, the program may include processes according to the foregoing method embodiments.
  • the storage medium may be a memory, a magnetic disk, an optical disk, or the like.

Landscapes

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

Abstract

公开一种安卓系统开机速度控制方法、智能设备及存储介质,所述方法包括:记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包;当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识;当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识。本发明根据各种安装包(应用)的使用频率,将使用频率高的安装包放在安卓系统开机过程中进行扫描,而将其他不常用安装包在安卓系统开机之后再逐步扫描启动,从而显著地提升安卓系统的开机速度。

Description

一种安卓系统开机速度控制方法、智能设备及存储介质 技术领域
涉及智能设备技术领域,尤其涉及一种安卓系统开机速度控制方法、智能设备及存储介质。
背景技术
目前,市面上各种Android系统的电视机等智能设备的开机启动速度普遍较慢,其主要耗时在于开机启动时,Android系统服务Package Manager Service(简称PMS,是Android系统服务,它负责系统中Package的管理,应用程序的安装、卸载、信息查询等)会扫描所安装的APK(Android Package,即Android安装包),建立对应的数据结构来管理Package信息、四大组件信息、权限信息等各种信息,以便后续能准确地调用各个APK,用户安装的应用越多,Android系统的开机时间就越长。
而对于Android系统的用户而言,实际使用过程中会随着使用时间增长,对很多APK的新鲜感会逐渐下降,从而会逐渐形成自己的使用风格:即有些APK会经常使用,而其他的APK却很少使用,但是目前种Android系统的电视机等智能设备的开机启动时会扫描所有已经安装的APK,导致开机启动时间较长,不利于提升Android设备的开机速度。
因此,现有技术还有待于改进和发展。
发明内容
本发明要解决的技术问题在于,针对现有技术缺陷,本发明提供一种安卓系统开机速度控制方法、智能设备及存储介质,旨在根据各种安装包(应用)的使用频率,将使用频率高的安装包放在安卓系统开机过程中进行扫描,而将其他不常用安装包在安卓系统开机之后再逐步扫描启动,从而显著地提升安卓系统的开机速度。
本发明解决技术问题所采用的技术方案如下:
一种安卓系统开机速度控制方法,其中,所述安卓系统开机速度控制方法包括:
记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包;
当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识;
当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识。
所述的安卓系统开机速度控制方法,其中,预先定义最近N次开机使用过程中一直未被使用过的APK为不常用安装包,其他安装包定义为常用安装包。
所述的安卓系统开机速度控制方法,其中,所述当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识之后还包括:
当扫描不常用安装包的同时,刷新UI界面用于将已扫描的不常用安装包的应用所对应的图标显示到UI界面的空位中。
所述的安卓系统开机速度控制方法,其中,所述记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包之前还包括:
通过开机顺序作为文件名,以应用包名记录安装包的启动信息;
当某个应用在当次开机的时间范围内重新启动时,包名一致的不重复记录。
所述的安卓系统开机速度控制方法,其中,所有的APK启动均由ActivityManagerService来处理。
所述的安卓系统开机速度控制方法,其中,所述记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包具体包括:
通过安卓系统的/data/system目录下的packages.list文件中记录当前的所有应用包名,将packages.list文件里的包名筛选出来,形成安装包总列表;
将记录文件里面记录的包名求出合集,获取最近N次开机启动过的安装包列表;
在安装包总列表中去掉最近N次开机启动过的安装包列表的包名,剩下的就是不常用安装包,将其记录在/data目录下的固定位置,每次开机都进行刷新。
所述的安卓系统开机速度控制方法,其中,所述当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识具体包括:
当基于安卓系统的智能设备在开机启动时,识别所述智能设备中常用安装包和不常用安装包;
在所述智能设备开机启动过程中,将识别出的常用安装包进行扫描,将识别出的不常用安装包保留一个未完成扫描标识,不做扫描。
所述的安卓系统开机速度控制方法,其中,将识别出的常用安装包在开机时的PackageManagerService中完成扫描。
所述的安卓系统开机速度控制方法,其中,所述当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识具体包括:
在收到安卓系统启动结束的BOOT_COMPLETED广播之后,根据未完成扫描标识启动一个服务来完成不常用安装包的扫描;
当完成所有的不常用安装包的扫描后,清除未完成扫描标识。
所述的安卓系统开机速度控制方法,其中,在收到Android系统启动结束的BOOT_COMPLETED广播之后,根据这个未完成扫描标识来启动一个service来完成这些不常用APK的扫描,扫描方法与PMS的扫描方法一致。
所述的安卓系统开机速度控制方法,其中,对不常用APK进行扫描,每扫描完一个APK,更新PMS管理的已扫描APK列表,将此APK的包名发Message通知Launcher刷新全部应用的界面内容。
所述的安卓系统开机速度控制方法,其中,所述当扫描不常用安装包的同时,刷新UI界面用于将已扫描的不常用安装包所对应的图标显示到UI界面的空位中具体包括:
在收到不常用安装包扫描处理模块发出的信息后,更新需要显示的全部应用的列表;
如果当前Top Activity是全部应用的UI界面且当前页面有空位,则立即刷新此UI界面;
如果当前Top Activity不是全部应用的UI界面,则在下次进入全部应用界面时再刷新。
所述的安卓系统开机速度控制方法,其中,将不常用APK的扫描和显示在主页面显示之后执行。
一种智能设备,其中,所述智能设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的安卓系统开机速度控制程序,所述安卓系统开机速度控制程序被所述处理器执行时实现如上所述的安卓系统开机速度控制方法的步骤。
一种存储介质,其中,所述存储介质存储有安卓系统开机速度控制程序,所述安卓系统开机速度控制程序被处理器执行时实现如上所述安卓系统开机速度控制方法的步骤。
本发明公开了一种安卓系统开机速度控制方法、智能设备及存储介质,所述方法包括:记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包;当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识;当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识。本发明根据各种安装包(应用)的使用频率,将使用频率高的安装包放在安卓系统开机过程中进行扫描,而将其他不常用安装包在安卓系统开机之后再逐步扫描启动,从而显著地提升安卓系统的开机速度。
附图说明
图1是本发明安卓系统开机速度控制方法的较佳实施例的流程图;
图2是本发明安卓系统开机速度控制方法的较佳实施例中步骤S10的流程图;
图3是本发明安卓系统开机速度控制方法的较佳实施例中步骤S20的流程图;
图4是本发明安卓系统开机速度控制方法的较佳实施例中步骤S30的流程图;
图5为本发明智能设备的较佳实施例的运行环境示意图。
具体实施方式
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明较佳实施例所述的安卓系统开机速度控制方法,如图1所示,一种安卓系统开机速度控制方法,其中,所述安卓系统开机速度控制方法包括以下步骤:
步骤S10、记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包。
具体地,本发明预先定义最近N次开机使用过程中一直未被使用过的APK为不常用安装包,其他安装包定义为常用安装包。所述步骤S10之前还包括:通过开机顺序作为文件名,以应用包名记录安装包的启动信息;当某个应用在当次开机的时间范围内重新启动时,包名一致的不重复记录。
具体过程请参阅图2,其为本发明提供的安卓系统开机速度控制方法中步骤S10的流程图。
如图2所示,所述步骤S10包括:
S11、通过安卓系统的/data/system目录下的packages.list文件中记录当前的所有应用包名,将packages.list文件里的包名筛选出来,形成安装包总列表;
S12、将记录文件里面记录的包名求出合集,获取最近N次开机启动过的安装包列表;
S13、在安装包总列表中去掉最近N次开机启动过的安装包列表的包名,剩下的就是不常用安装包,将其记录在/data目录下的固定位置,每次开机都进行刷新。
由于有些Android设备(比如电视机)是没有内置电池的,在断电之后不记忆时间,所以采用Android的系统时间来记录APK的启动时间并不准确;本发明中,采用开机次数这样的虚拟时间来记录APK(安装包)的启动时间,并且定义最近N次开机使用过程中一直没有被使用过的APK为不常用APK,假设 N=10。
以开机顺序来作为文件名,以应用包名来记录APK的启动信息,比如应用A的包名是PackageNameA,是在第2次使用过程(包括开机到关机的使用过程)中启动的,那么它就记录在名称为“No2”的文件里面,生成一行“PackageNameA”的记录号。
当某个应用在当次开机的时间范围内重新启动时,由于包名一致,不重复记录;循环记录:开机超过10次时,删除掉No1的记录文件,将No2-No10的记录文件依次更名为No1-No9,最新一次开机的记录文件仍然为No10;由于所有的APK启动都是由ActivityManagerService(AMS,Android中最核心的服务,主要负责系统中四大组件的启动、切换、调度及应用程序的管理和调度等工作)来处理的,所以此记录模块在ActivityManagerService里面进行。
由于Android系统的/data/system目录下的packages.list文件里面会记录当前的所有应用包名,所以将此文件里面的包名筛选出来,就是APK总列表;将No1-No10文件里面记录的包名求出合集,就是最近10次开机启动过的APK列表;在APK总列表中去掉最近10次开机启动过的APK列表的包名,剩下的就是不常用APK,将其记录在/data目录下的固定位置,每次开机都会刷新。
步骤S20、当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识。
具体的过程请参阅图3,其为本发明提供的安卓系统开机速度控制方法中步骤S20的流程图。
如图3所示,所述步骤S20包括:
S21、当基于安卓系统的智能设备在开机启动时,识别所述智能设备中常用安装包和不常用安装包;
S22、在所述智能设备开机启动过程中,将识别出的常用安装包进行扫描,将识别出的不常用安装包保留一个未完成扫描标识,不做扫描。
具体地,对于不常用APK,在Android系统的启动过程中不做扫描,仅保留一个未完成扫描的标识;其他APK则在开机时的PackageManagerService(PMS,Android系统服务,它负责系统中Package的管理,应用程序的安装、卸载、信息查询等)中完成扫描;此模块功能在PackageManagerService的扫描部分实现。
步骤S30、当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识。
具体过程请参阅图4,其为本发明提供的安卓系统开机速度控制方法中步骤S30的流程图。
如图4所示,所述步骤S30包括:
S31、在收到安卓系统启动结束的BOOT_COMPLETED广播之后,根据未完成扫描标识启动一个服务来完成不常用安装包的扫描;
S32、当完成所有的不常用安装包的扫描后,清除未完成扫描标识。
具体地,在收到Android系统启动结束的BOOT_COMPLETED广播之后,根据这个未完成扫描标识来启动一个service来完成这些不常用APK的扫描,扫描方法与PMS的扫描方法一致;完成所有的不常用APK的扫描后,清除未完成扫描标识。
对不常用APK进行扫描,每扫描完一个APK,更新PMS管理的已扫描APK列表;就将此APK的包名发Message通知Launcher(安卓系统中的桌面启动器,安卓系统的桌面UI统称为Launcher),让其刷新“全部应用”的界面内容。
进一步地,所述步骤S40之后还包括:当扫描不常用安装包的同时,刷新UI界面用于将已扫描的不常用安装包的应用所对应的图标显示到UI界面的空位中。
具体包括:在收到不常用安装包扫描处理模块发出的信息后,更新需要显示的全部应用的列表;如果当前Top Activity是全部应用的UI界面且当前页面有空位,则立即刷新此UI界面;如果当前Top Activity不是全部应用的UI界面,则在下次进入全部应用界面时再刷新。
“全部应用”管理模块是显示Android系统里面所有的已安装应用,不管是常用APK还是不常用APK,都需要在“全部应用”中显示的。本发明为了加快开机速度,所以不常用APK的扫描和显示落在主页面显示之后了,由于“全部应用”并不是开机第一个显示的界面,用户有可能不会马上进入,所以可能存在后台刷新和前台刷新两种可能性。
本发明中,在每次开机的时候只扫描用户常用的APK,而将其他不常用的APK放在Android开机启动后再逐步扫描并显示出来,就可以显著地提升 Android的开机速度,提升用户体验;而且随着用户使用习惯的逐步稳定,不常用的应用的占比会变高,速度提升效果也会越来越好。
如图5所示,基于上述安卓系统开机速度控制方法,本发明还相应提供了一种智能设备,所述智能设备包括处理器10、存储器20及显示器30。图5仅示出了智能设备的部分组件,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
所述存储器20在一些实施例中可以是所述智能设备的内部存储单元,例如智能设备的硬盘或内存。所述存储器20在另一些实施例中也可以是所述智能设备的外部存储设备,例如所述智能设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器20还可以既包括所智能设备的内部存储单元也包括外部存储设备。所述存储器20用于存储安装于所述智能设备的应用软件及各类数据,例如所述安装智能设备的程序代码等。所述存储器20还可以用于暂时地存储已经输出或者将要输出的数据。在一实施例中,存储器20上存储有安卓系统开机速度控制程序40,该安卓系统开机速度控制程序40可被处理器10所执行,从而实现本申请中安卓系统开机速度控制方法。
所述处理器10在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器20中存储的程序代码或处理数据,例如执行所述安卓系统开机速度控制方法等。
所述显示器30在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器30用于显示在所述智能设备的信息以及用于显示可视化的用户界面。所述智能设备的部件10-30通过系统总线相互通信。
在一实施例中,当处理器10执行所述存储器20中安卓系统开机速度控制程序40时实现以下步骤:
记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包;
当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识;
当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识。
所述记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包具体包括:
通过安卓系统的/data/system目录下的packages.list文件中记录当前的所有应用包名,将packages.list文件里的包名筛选出来,形成安装包总列表;
将记录文件里面记录的包名求出合集,获取最近N次开机启动过的安装包列表;
在安装包总列表中去掉最近N次开机启动过的安装包列表的包名,剩下的就是不常用安装包,将其记录在/data目录下的固定位置,每次开机都进行刷新。
所述当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识具体包括:
当基于安卓系统的智能设备在开机启动时,识别所述智能设备中常用安装包和不常用安装包;
在所述智能设备开机启动过程中,将识别出的常用安装包进行扫描,将识别出的不常用安装包保留一个未完成扫描标识,不做扫描。
所述当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识具体包括:
在收到安卓系统启动结束的BOOT_COMPLETED广播之后,根据未完成扫描标识启动一个服务来完成不常用安装包的扫描;
当完成所有的不常用安装包的扫描后,清除未完成扫描标识。
本发明还提供一种存储介质,其中,所述存储介质存储有安卓系统开机速度控制程序,所述安卓系统开机速度控制程序被处理器执行时实现如上所述安卓系统开机速度控制方法的步骤;具体如上所述。
综上所述,本发明提供一种安卓系统开机速度控制方法、智能设备及存储介质,所述方法包括:记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包;当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识;当安卓系统启动结束后,根据未完成扫描标识完成不常用安装 包的扫描,并清除未完成扫描标识。本发明根据各种安装包(应用)的使用频率,将使用频率高的安装包放在安卓系统开机过程中进行扫描,而将其他不常用安装包在安卓系统开机之后再逐步扫描启动,从而显著地提升安卓系统的开机速度。
当然,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关硬件(如处理器,控制器等)来完成,所述的程序可存储于一计算机可读取的存储介质中,所述程序在执行时可包括如上述各方法实施例的流程。其中所述的存储介质可为存储器、磁碟、光盘等。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。

Claims (15)

  1. 一种安卓系统开机速度控制方法,其特征在于,所述安卓系统开机速度控制方法包括:
    记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包;
    当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识;
    当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识。
  2. 根据权利要求1所述的安卓系统开机速度控制方法,其特征在于,预先定义最近N次开机使用过程中一直未被使用过的APK为不常用安装包,其他安装包定义为常用安装包。
  3. 根据权利要求1所述的安卓系统开机速度控制方法,其特征在于,所述当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识之后还包括:
    当扫描不常用安装包的同时,刷新UI界面用于将已扫描的不常用安装包的应用所对应的图标显示到UI界面的空位中。
  4. 根据权利要求1所述的安卓系统开机速度控制方法,其特征在于,所述记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包之前还包括:
    通过开机顺序作为文件名,以应用包名记录安装包的启动信息;
    当某个应用在当次开机的时间范围内重新启动时,包名一致的不重复记录。
  5. 根据权利要求2所述的安卓系统开机速度控制方法,其特征在于,所有的APK启动均由ActivityManagerService来处理。
  6. 根据权利要求4所述的安卓系统开机速度控制方法,其特征在于,所述记录所有安装包在预设N次开机使用过程中被使用的次数,将未被使用过的安装包定义为不常用安装包具体包括:
    通过安卓系统的/data/system目录下的packages.list文件中记录当前的所有应用包名,将packages.list文件里的包名筛选出来,形成安装包总列表;
    将记录文件里面记录的包名求出合集,获取最近N次开机启动过的安装包 列表;
    在安装包总列表中去掉最近N次开机启动过的安装包列表的包名,剩下的就是不常用安装包,将其记录在/data目录下的固定位置,每次开机都进行刷新。
  7. 根据权利要求6所述的安卓系统开机速度控制方法,其特征在于,所述当基于安卓系统的智能设备在开机启动时,只扫描常用安装包,不常用安装包在启动过程中不做扫描,仅保留一个未完成扫描标识具体包括:
    当基于安卓系统的智能设备在开机启动时,识别所述智能设备中常用安装包和不常用安装包;
    在所述智能设备开机启动过程中,将识别出的常用安装包进行扫描,将识别出的不常用安装包保留一个未完成扫描标识,不做扫描。
  8. 根据权利要求7所述的安卓系统开机速度控制方法,其特征在于,将识别出的常用安装包在开机时的PackageManagerService中完成扫描。
  9. 根据权利要求7所述的安卓系统开机速度控制方法,其特征在于,所述当安卓系统启动结束后,根据未完成扫描标识完成不常用安装包的扫描,并清除未完成扫描标识具体包括:
    在收到安卓系统启动结束的BOOT_COMPLETED广播之后,根据未完成扫描标识启动一个服务来完成不常用安装包的扫描;
    当完成所有的不常用安装包的扫描后,清除未完成扫描标识。
  10. 根据权利要求9所述的安卓系统开机速度控制方法,其特征在于,在收到Android系统启动结束的BOOT_COMPLETED广播之后,根据这个未完成扫描标识来启动一个service来完成这些不常用APK的扫描,扫描方法与PMS的扫描方法一致。
  11. 根据权利要求10所述的安卓系统开机速度控制方法,其特征在于,对不常用APK进行扫描,每扫描完一个APK,更新PMS管理的已扫描APK列表,将此APK的包名发Message通知Launcher刷新全部应用的界面内容。
  12. 根据权利要求3所述的安卓系统开机速度控制方法,其特征在于,所述当扫描不常用安装包的同时,刷新UI界面用于将已扫描的不常用安装包所对应的图标显示到UI界面的空位中具体包括:
    在收到不常用安装包扫描处理模块发出的信息后,更新需要显示的全部应用 的列表;
    如果当前Top Activity是全部应用的UI界面且当前页面有空位,则立即刷新此UI界面;
    如果当前Top Activity不是全部应用的UI界面,则在下次进入全部应用界面时再刷新。
  13. 根据权利要求12所述的安卓系统开机速度控制方法,其特征在于,将不常用APK的扫描和显示在主页面显示之后执行。
  14. 一种智能设备,其特征在于,所述智能设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的安卓系统开机速度控制程序,所述安卓系统开机速度控制程序被所述处理器执行时实现如权利要求1-13任一项所述的安卓系统开机速度控制方法的步骤。
  15. 一种存储介质,其特征在于,所述存储介质存储有安卓系统开机速度控制程序,所述安卓系统开机速度控制程序被处理器执行时实现权利要求1-13任一项所述安卓系统开机速度控制方法的步骤。
PCT/CN2019/082767 2018-06-15 2019-04-15 一种安卓系统开机速度控制方法、智能设备及存储介质 WO2019237822A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810620191.XA CN110609710B (zh) 2018-06-15 2018-06-15 一种安卓系统开机速度控制方法、智能设备及存储介质
CN201810620191.X 2018-06-15

Publications (1)

Publication Number Publication Date
WO2019237822A1 true WO2019237822A1 (zh) 2019-12-19

Family

ID=68842774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082767 WO2019237822A1 (zh) 2018-06-15 2019-04-15 一种安卓系统开机速度控制方法、智能设备及存储介质

Country Status (2)

Country Link
CN (1) CN110609710B (zh)
WO (1) WO2019237822A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901685A (zh) * 2020-07-30 2020-11-06 深圳市康冠科技股份有限公司 一种文件扫描方法及相关装置
CN112306564A (zh) * 2020-11-05 2021-02-02 四川长虹教育科技有限公司 实现智能交互大屏快速开机的方法
CN114047961A (zh) * 2021-11-15 2022-02-15 合众新能源汽车有限公司 安卓系统开机优化方法、智能终端和计算机可读介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830996A (zh) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 一种手持设备的快速开机方法
US20160011879A1 (en) * 2014-07-10 2016-01-14 Cisco Technology, Inc. Preconfiguring hardware and speeding up server discovery prior to bios boot
CN106775876A (zh) * 2016-12-21 2017-05-31 海马云(天津)信息技术有限公司 安卓系统快速启动应用的方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855148A (zh) * 2012-08-02 2013-01-02 广东欧珀移动通信有限公司 一种基于Android的开机管理方法
KR20140039779A (ko) * 2012-09-25 2014-04-02 현대모비스 주식회사 안드로이드 운영 체제의 부팅 성능 향상 방법
CN103399785B (zh) * 2013-07-25 2016-10-05 华南理工大学 一种Android车载系统进程管理的改进方法
CN103488495A (zh) * 2013-08-13 2014-01-01 广东欧珀移动通信有限公司 一种通过动态调整开机预加载资源加速开机的方法
CN104375872B (zh) * 2014-12-08 2018-01-09 福州瑞芯微电子股份有限公司 一种安卓系统实现快速开机的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830996A (zh) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 一种手持设备的快速开机方法
US20160011879A1 (en) * 2014-07-10 2016-01-14 Cisco Technology, Inc. Preconfiguring hardware and speeding up server discovery prior to bios boot
CN106775876A (zh) * 2016-12-21 2017-05-31 海马云(天津)信息技术有限公司 安卓系统快速启动应用的方法

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901685A (zh) * 2020-07-30 2020-11-06 深圳市康冠科技股份有限公司 一种文件扫描方法及相关装置
CN111901685B (zh) * 2020-07-30 2023-09-08 深圳市康冠科技股份有限公司 一种文件扫描方法及相关装置
CN112306564A (zh) * 2020-11-05 2021-02-02 四川长虹教育科技有限公司 实现智能交互大屏快速开机的方法
CN112306564B (zh) * 2020-11-05 2023-05-09 四川长虹教育科技有限公司 实现智能交互大屏快速开机的方法
CN114047961A (zh) * 2021-11-15 2022-02-15 合众新能源汽车有限公司 安卓系统开机优化方法、智能终端和计算机可读介质

Also Published As

Publication number Publication date
CN110609710B (zh) 2021-11-09
CN110609710A (zh) 2019-12-24

Similar Documents

Publication Publication Date Title
US8495351B2 (en) Preparing and preserving a system configuration during a hot upgrade
US7200617B2 (en) Program for managing external storage, recording medium, management device, and computing system
KR101928127B1 (ko) 애플리케이션용 선택적 파일 액세스 기법
WO2019237822A1 (zh) 一种安卓系统开机速度控制方法、智能设备及存储介质
WO2019148722A1 (zh) 电子装置、数据迁移及调用方法及存储介质
CN104182255A (zh) 一种系统应用的库文件升级方法及终端
EP2339466A2 (en) Data control device, data control method, and program
US20140067879A1 (en) Application management for a terminal
US8768896B2 (en) Setting information database management
CN103744708A (zh) 一种实现linux操作系统下固定磁盘设备名的方法
CN112579202B (zh) Windows系统的服务性程序编辑方法、装置、设备及存储介质
CN110825694A (zh) 数据处理方法、装置、设备和存储介质
CN105786547A (zh) 一种实现操作系统重启的方法和装置
CN109117153B (zh) 应用程序的处理方法、装置、终端和存储介质
CN110908734A (zh) 基于插件化的应用组合方法、装置、终端设备及存储介质
CN113826072B (zh) 系统管理模式中的代码更新
CN103389905A (zh) 插件加载方法及系统
US11176089B2 (en) Systems and methods for implementing dynamic file systems
CN105511904B (zh) 一种自动更新快捷窗口的方法及装置
CN108595262B (zh) 数据处理方法及装置
CN110740382B (zh) 避免电视机非期望自动重启方法、装置、电视机及介质
US11526362B2 (en) Automatic hydration of feature file batches
CN110968852B (zh) 一种虚拟机密码管理方法、系统、设备及计算机存储介质
CN108920216B (zh) 关闭软件兼容模式的方法、装置、终端及存储介质
US20150046414A1 (en) Computer product, managing apparatus, and managing method

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: 19820027

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: 19820027

Country of ref document: EP

Kind code of ref document: A1