Vehicle-mounted terminal starting method and device, equipment and medium

By generating and cacheing the management objects of the APK file at the first startup and reading the cache at subsequent startup, the problem of slow startup speed caused by reading APK file data in the Android system is solved, and faster booting is achieved.

CN119225835APending Publication Date: 2024-12-31HISENSE GRP HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310788325.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

During the start-stop process, the Android system needs to read a large amount of APK file data, which leads to a slow startup speed.

Method used

At the first startup, the management objects of the APK file are generated and cached. The objects in the cache file are read directly during subsequent startup to avoid repeated reading of APK file data, and update the cache when the APK file changes. The class is cached through reflection method Instance, directly start the on-board desktop to reduce unnecessary window startup.

Benefits of technology

It significantly improves the startup speed of the on-board terminal, reduces the time-consuming process of generating management objects and loading class instances, and ensures fast and accurate startup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225835A_ABST
    Figure CN119225835A_ABST
Patent Text Reader

Abstract

The invention discloses a starting method and device of a vehicle-mounted terminal, equipment and a medium. The starting method and device of the vehicle-mounted terminal are used for improving the starting-up speed of the vehicle-mounted terminal. The method comprises the following steps: opening an APK file and reading data in the APK file when starting for the first time; based on the data in the APK file, generating a management object corresponding to the APK file; storing a management object corresponding to the APK file in a cache file corresponding to the created APK file; and during subsequent starting, opening the cache file corresponding to the APK file, and reading the management object in the cache file. In the embodiment of the invention, the process of opening the APK file and reading the data in the APK file is very time-consuming, so that the process of generating the management object is very time-consuming. In the embodiment of the invention, the generated management object is cached during the first startup, and in the subsequent startup process, the process of opening and reading the data in the APK file to generate the management object can be omitted, so that the startup speed can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent terminal technology, and in particular to a method, device, equipment and medium for starting a vehicle-mounted terminal. Background Art

[0002] The car's smart terminal will start and shut down as the car starts and stops. At present, most car smart terminals use the Android system. In the car, the vehicle domain controller runs the QNX operating system, and the Android system runs as a client in the virtual machine of the QNX operating system. During the start and stop process of the car, the power on and off of the vehicle domain controller causes the virtual machine to power off and on, and the Android system will also shut down and start up. Every time the Android system starts up, it needs to read the APK file. The APK file has a large amount of data, which leads to a slow startup speed. Summary of the invention

[0003] The present application provides a method, device, equipment and medium for starting a vehicle-mounted terminal, which are used to improve the startup speed of the vehicle-mounted terminal.

[0004] In a first aspect, a method for starting a vehicle terminal is provided, comprising:

[0005] When the Android system of the vehicle terminal is started for the first time, it searches for multiple APK files that currently exist, and for each of the multiple APK files that currently exist, sequentially performs the following processes: opens the APK file and reads the data in the APK file; generates a management object corresponding to the APK file based on the data in the APK file, and the management object is used for starting the Android system of the vehicle terminal; saves the management object corresponding to the APK file into the created cache file corresponding to the APK file;

[0006] When the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, it searches for multiple existing APK files, and for each of the multiple existing APK files, performs the following processes in sequence: opens the cache file corresponding to the APK file, and reads the management object in the cache file.

[0007] In a possible implementation, the method further includes:

[0008] When a first APK file among the multiple APK files changes, opening the changed first APK file and reading data in the changed first APK file;

[0009] Based on the data in the changed first APK file, generating a first management object corresponding to the first APK file, wherein the first management object is used for starting the Android system of the vehicle-mounted terminal;

[0010] The first management object corresponding to the first APK file is saved in the created cache file corresponding to the first APK file.

[0011] In a possible implementation, when a first APK file among multiple APK files changes, before opening the changed first APK file and reading data in the changed first APK file, the method further includes:

[0012] PKMS calls the cache update function through the executePostCommitSteps() function;

[0013] The cache update function performs the subsequent steps.

[0014] In a possible implementation, the method further includes:

[0015] When the Android system of the vehicle terminal is started for the first time, an instance of the class is created through the reflection method of Class.forName; the created instance of the class is stored in a cache file corresponding to the instance of the class;

[0016] When the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, the cache file corresponding to the instance of the class is opened, and the instance of the class in the cache file corresponding to the instance of the class is read.

[0017] In a possible implementation, the method further includes:

[0018] At any startup, the fallback window and / or the startup screen saver window are not started, and the car launcher window is directly started.

[0019] In a second aspect, a starting device for a vehicle-mounted terminal is provided, comprising:

[0020] A management object creation module is used for searching for multiple existing APK files when the Android system of the vehicle terminal is started for the first time, and for each of the multiple existing APK files, sequentially performing the following processes: opening the APK file and reading the data in the APK file; generating a management object corresponding to the APK file based on the data in the APK file, and the management object is used for starting the Android system of the vehicle terminal;

[0021] A management object cache module, used to save the management object corresponding to the APK file into a cache file corresponding to the created APK file;

[0022] A management object extraction module is used for searching for multiple existing APK files when the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, and for each APK file in the multiple existing APK files, the following processes are performed in sequence: opening the cache file corresponding to the APK file, and reading the management object in the cache file.

[0023] In a possible implementation, the management object creation module is further used to, when a first APK file among the multiple APK files changes, open the changed first APK file and read the data in the changed first APK file; based on the data in the changed first APK file, generate a first management object corresponding to the first APK file, the first management object being used for starting the Android system of the vehicle-mounted terminal;

[0024] The management object cache module is further used to save the first management object corresponding to the first APK file into the created cache file corresponding to the first APK file.

[0025] In one possible implementation, when the first APK file among multiple APK files changes, before opening the changed first APK file and reading the data in the changed first APK file, the management object creation module is also used by PKMS to call the cache update function through the executePostCommitSteps() function; the cache update function executes subsequent steps.

[0026] In a possible implementation, the method further includes:

[0027] The instance creation module is used to create a class instance through the reflection method of Class.forName when the Android system of the vehicle terminal is started for the first time;

[0028] An instance cache module, used to store the created class instance in a cache file corresponding to the class instance;

[0029] An instance extraction module is used to open the cache file corresponding to the instance of the class and read the instance of the class in the cache file corresponding to the instance of the class when the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2.

[0030] In a possible implementation, the method further includes:

[0031] The window startup module is used to directly start the car launcher window on the car desktop without starting the fallback window and / or the startup screen saver window at any startup.

[0032] In a third aspect, the present application provides an electronic device, comprising: a processor, and optionally, a memory; the processor and the memory are coupled; the memory is used to store computer programs or instructions; the processor is used to execute part or all of the computer programs or instructions in the memory, and when the part or all of the computer programs or instructions are executed, it is used to implement the functions of any of the above methods.

[0033] In a possible implementation, the device may further include a transceiver, the transceiver being configured to send a signal processed by the processor or receive a signal input to the processor. The transceiver may perform a sending action or a receiving action of any method.

[0034] In a fourth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program includes instructions for implementing any one of the functions.

[0035] Alternatively, a computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer, the computer can execute any of the above methods.

[0036] According to a fifth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is run on a computer, the computer is enabled to execute any one of the above methods.

[0037] In the embodiment of the present application, the process of opening the APK file and reading the data in the APK file is very time-consuming, which results in the process of generating the management object being very time-consuming. In the present embodiment, the generated management object is cached during the first boot, and in the subsequent boot process, the process of opening and reading the data in the APK file to generate the management object can be omitted, which can greatly improve the boot speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0039] Figure 1 A schematic diagram of a startup process of a vehicle-mounted terminal provided in an embodiment of the present application is shown;

[0040] Figure 2 A schematic diagram of a program package installation process provided by an embodiment of the present application is shown;

[0041] Figure 3 A structural diagram of a starting device of a vehicle-mounted terminal provided in an embodiment of the present application is shown;

[0042] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0043] In order to make the purpose and implementation of the present application clearer, the exemplary implementation of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments. The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable where appropriate.

[0044] It should be noted that the embodiments of the present application are only used to illustrate the technical solution of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solution to deviate from the scope of the technical solution of the embodiments of the present application.

[0045] Android application package (Android APK) is an application package file format used by the Android operating system to distribute and install mobile applications and middleware.

[0046] The Package Manager Service (PKMS) is responsible for package management in the Android system, application installation, uninstallation, information query, etc.

[0047] This application provides three embodiments to improve the startup speed of the Android system of the vehicle terminal. These three embodiments can be used alone, in combination of two or three.

[0048] Embodiment 1:

[0049] Figure 1 A schematic diagram of the process of powering on a vehicle terminal provided in an embodiment of the present application is shown. The executor of the embodiment is the vehicle terminal. A specific example is that the executor of the embodiment is PKMS in the Android system.

[0050] The process includes the following steps:

[0051] Step 11: When the Android system of the vehicle terminal is started for the first time, it searches for multiple existing APK files.

[0052] The APK file is stored in a data storage device, such as a fast large area scan hardware (FLASH).

[0053] For each of the multiple APK files currently in existence, perform the following process in sequence:

[0054] Step 12: Open the APK file and read the data in the APK file.

[0055] Reading can be understood as parsing.

[0056] Step 13: Based on the data in the APK file, generate a management object corresponding to the APK file, and the management object is used to start the Android system of the vehicle terminal.

[0057] There is a one-to-one correspondence between APK files and management objects. Each APK file corresponds to a management object, and the management object contains the data in the APK file.

[0058] Management objects refer to management objects in PKMS.

[0059] Step 14: Save the management object corresponding to the APK file to the created cache file corresponding to the APK file.

[0060] In one example, different APK files correspond to different cache files. When saving, each management object is saved to a cache file, and different management objects are saved to different cache files.

[0061] In another example, the cache files corresponding to different APK files are the same, and when saving, multiple management objects are saved in one cache file.

[0062] For example, cache files are stored in memory.

[0063] Step 15: When the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, it searches for multiple APK files that currently exist.

[0064] In a specific example, multiple APK files currently existing in the data storage device are searched.

[0065] For each of the multiple APK files currently in existence, perform the following process in sequence:

[0066] Step 16: Open the cache file corresponding to the APK file, and read the management object in the cache file.

[0067] The process of opening the APK file and reading the data in the APK file is very time-consuming, which results in the process of generating the management object being very time-consuming. In this embodiment, when the machine is powered on for the first time, the generated management object is cached, and in the subsequent power-on process, the process of opening and reading the data in the APK file to generate the management object can be omitted, which can greatly improve the power-on speed.

[0068] When a first APK file among the multiple APK files changes, opening the changed first APK file and reading data in the changed first APK file;

[0069] Based on the data in the changed first APK file, generating a first management object corresponding to the first APK file, wherein the first management object is used for starting the Android system of the vehicle-mounted terminal;

[0070] The first management object corresponding to the first APK file is saved in the created cache file corresponding to the first APK file.

[0071] The first management object is a management object in PKMS.

[0072] For APK files that have not changed, the cached management objects remain unchanged.

[0073] Changes in the first APK file include but are not limited to the following two situations: one situation is that the first APK file is created from scratch; the other situation is that the first APK file existed before, but part or all of its data has changed.

[0074] If the first APK file already exists, but only part or all of its data has changed, it means that the cache file already has a management object corresponding to the first APK file, and you need to delete the management object corresponding to the first APK file that was previously saved. If each management object is saved to the same cache file, and different management objects are saved to different cache files, you can delete the cache file corresponding to the first APK file that was previously saved, and the management object will also be deleted.

[0075] In a specific example, when the first APK file among multiple APK files changes, PKMS calls the cache update function updateCache() through the executePostCommitSteps() function;

[0076] The cache update function executes subsequent processes, specifically: opening the changed first APK file and reading the data in the changed first APK file; generating a first management object corresponding to the first APK file based on the data in the changed first APK file, wherein the first management object is used to start the Android system of the vehicle terminal; and saving the first management object corresponding to the first APK file to the cache file corresponding to the created first APK file.

[0077] In a specific example, the cache update function determines whether there is a cache file corresponding to the first APK file in the currently existing cache files according to the name and type of the first APK file;

[0078] If yes, then deleting the cache file corresponding to the first APK file in the cache, and generating a first management object corresponding to the first APK file based on the data in the changed first APK file, wherein the first management object is used to start the Android system of the vehicle-mounted terminal; and saving the first management object corresponding to the first APK file to the cache file corresponding to the created first APK file;

[0079] If not, then based on the data in the changed first APK file, generate a first management object corresponding to the first APK file, and the first management object is used to start the Android system of the vehicle terminal; save the first management object corresponding to the first APK file to the cache file corresponding to the created first APK file.

[0080] By updating the management objects in real time, the management objects are kept up to date, further ensuring the rapidity and accuracy of the card machine startup.

[0081] like Figure 2 As shown, a schematic diagram of the installation process of a PKMS program package is provided.

[0082] First, PKMS processes the pending installation (processPendingInstall), PKMS selects one of the installation requests to process the installation request (aynclprocessInstallRequestsAync), and PKMS tracks the installed data packets. Next, PKMS performs the steps after submission. Specifically, if it is found that the APK file has changed, it generates a management object based on the data in the changed APK file for caching. Then, PKMS installs the program package again. After the installation, it executes the processes of preparing application data LIF (prepareAppDataLIF), preparing application data LeafLIF (prepareAppDataLeafLIF), and creating application data (minstaller.createAppData).

[0083] Embodiment 2:

[0084] The execution subject of implementation 2 is the Android system. In a specific example, the execution subject is Zygote in the Android system.

[0085] When the Android system of the vehicle terminal is started for the first time, an instance of the class is created through the reflection method of Class.forName; the created instance of the class is stored in a cache file corresponding to the instance of the class;

[0086] When the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, the cache file corresponding to the instance of the class is opened, and the instance of the class in the cache file corresponding to the instance of the class is read.

[0087] On the critical path of booting, Zygote will preload some classes through Preloadclasses. Preloadclasses looks simple, but it actually has to load more than 1,000 classes, which is quite time-consuming. This is one of the reasons why the Android system starts slowly. The Preload-class file is generated by the frame / base / tools / preload tool, which determines whether the loading time of each class is greater than 1250 microseconds. Classes that exceed 1250 microseconds will be written to the Preload-class file and then preloaded by zygote.

[0088] The information of preloaded classes is stored in the PRELOADED_CLASSES variable, and its value is "preloaded_classes". preloaded_classes is the name of a file, which means that the information of preloaded classes is stored in the preloaded_classes file. Zygote reads each line of the preloaded_classes file and then loads the class through JAVA reflection. The class name of the preloaded class is stored in each line (for example, Class.forName(line)).

[0089] Zygote creates an instance of a class through the reflection method of Class.forName, resulting in a preload time of about 2 seconds. In this embodiment, when the machine is powered on for the first time, Zygote will create an instance of a class through the reflection method of Class.forName, cache the instance of the class, and directly read the cached instance of the class in subsequent boots, avoiding the creation process of the instance of the class. Through this Zygote fast preloading method, the boot time can be shortened by about 2 / 3.

[0090] Embodiment 3:

[0091] The execution subject of this embodiment 3 is the Android system. In a specific example, the execution subject is the window management service in the Android system.

[0092] At any startup, the fallback window will not be started, and the Carlauncher window will be started directly. This can speed up the startup of Carlauncher.

[0093] Starting the Carlauncher window can be understood as starting the desktop manager of the Carlauncher.

[0094] In this embodiment, the startup mode of Carlauncher is set from the default mode to the directboot mode. In addition, the priority of the fallback window is set lower than that of the Carluncher window, so as to directly start the vehicle desktop Carlauncher window without starting the fallback window.

[0095] In another example, at any startup, the window management service WMS does not start the startup screen saver window, but directly starts the car launcher window on the vehicle desktop, which can speed up the startup of Carlauncher.

[0096] In another example, at any startup, the window management service WMS does not start the fallback window and the startup screen saver window, but directly starts the car launcher window on the car desktop, which can further speed up the startup of Carlauncher.

[0097] The startup screen saver window is usually a transparent window.

[0098] There are three windows involved here: fallback window, boot protection window, and Carlauncher window. In the existing solution, the fallback window is started first, then the boot protection window is started, and finally the Carlauncher window is started.

[0099] Before starting the Carlauncher window, this application may not start the fallback window and / or the startup screen saver window, thereby speeding up the starting of the Carlauncher window.

[0100] Based on the same technical concept, the present application also provides a starting device for a vehicle-mounted terminal. Figure 3 A starting device for a vehicle-mounted terminal is shown, comprising:

[0101] The management object creation module 31 is used for searching for multiple existing APK files when the Android system of the vehicle terminal is started for the first time, and for each of the multiple existing APK files, sequentially performing the following processes: opening the APK file and reading the data in the APK file; generating a management object corresponding to the APK file based on the data in the APK file, and the management object is used for starting the Android system of the vehicle terminal;

[0102] A management object cache module 32, used to save the management object corresponding to the APK file into a created cache file corresponding to the APK file;

[0103] The management object extraction module 33 is used to search for multiple existing APK files when the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, and for each APK file in the multiple existing APK files, perform the following processes in sequence: open the cache file corresponding to the APK file, and read the management object in the cache file.

[0104] In a possible implementation, the management object creation module 31 is further used to, when a first APK file among the multiple APK files changes, open the changed first APK file and read the data in the changed first APK file; based on the data in the changed first APK file, generate a first management object corresponding to the first APK file, the first management object being used to start the Android system of the vehicle-mounted terminal;

[0105] The management object cache module 32 is further used to save the first management object corresponding to the first APK file into the created cache file corresponding to the first APK file.

[0106] In one possible implementation, when the first APK file among multiple APK files changes, before opening the changed first APK file and reading the data in the changed first APK file, the management object creation module 31 is also used for PKMS to call the cache update function through the executePostCommitSteps() function; the cache update function executes subsequent steps.

[0107] In a possible implementation, the method further includes:

[0108] An instance creation module 34 is used to create an instance of a class through a reflection method of Class.forName when the Android system of the vehicle terminal is started for the first time;

[0109] An instance cache module 35, used to store the created class instance in a cache file corresponding to the class instance;

[0110] The instance extraction module 36 is used to open the cache file corresponding to the instance of the class and read the instance of the class in the cache file corresponding to the instance of the class when the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2.

[0111] In a possible implementation, the method further includes:

[0112] The window startup module 37 is used to directly start the car launcher window on the vehicle desktop without starting the fallback window and / or the startup screen saver window at any startup.

[0113] Based on the same technical concept, the present application also provides an electronic device, Figure 4 A schematic diagram of the structure of an electronic device is shown. Figure 4 As shown, it includes: a processor 41, and optionally, also includes: a communication interface 42, a memory 43 and a communication bus 44, wherein the processor 41, the communication interface 42, and the memory 43 communicate with each other through the communication bus 44;

[0114] The memory 43 stores a computer program. When the program is executed by the processor 41, the processor 41 completes the steps of the above-mentioned vehicle terminal startup method.

[0115] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0116] The communication interface 42 is used for communication between the above electronic device and other devices.

[0117] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0118] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0119] Based on the same technical concept, on the basis of the above embodiments, the present application provides a computer-readable storage medium, which stores a computer program that can be executed by an electronic device, and the computer-executable instructions are used to enable the computer to execute the steps of the above-mentioned vehicle terminal startup method.

[0120] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.

[0121] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0122] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0123] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0125] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for starting a vehicle terminal, characterized in that: include: When the Android system of the vehicle terminal is started for the first time, it searches for multiple existing APK files, and for each of the multiple existing APK files, sequentially performs the following processes: opening the APK file and reading the data in the APK file; Based on the data in the APK file, a management object corresponding to the APK file is generated, and the management object is used to start the Android system of the vehicle-mounted terminal; and the management object corresponding to the APK file is saved in a cache file corresponding to the created APK file; When the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, it searches for multiple existing APK files, and for each of the multiple existing APK files, performs the following processes in sequence: opens the cache file corresponding to the APK file, and reads the management object in the cache file.

2. The method according to claim 1, characterized in that Also includes: When a first APK file among the multiple APK files changes, opening the changed first APK file and reading data in the changed first APK file; Based on the data in the changed first APK file, generating a first management object corresponding to the first APK file, wherein the first management object is used for starting the Android system of the vehicle-mounted terminal; The first management object corresponding to the first APK file is saved in the created cache file corresponding to the first APK file.

3. The method according to claim 2, characterized in that When a first APK file among multiple APK files changes, before opening the changed first APK file and reading data in the changed first APK file, the method further includes: PKMS calls the cache update function through the executePostCommitSteps() function; The cache update function performs the subsequent steps.

4. The method according to claim 1, characterized in that Also includes: When the Android system of the vehicle terminal is started for the first time, an instance of the class is created through the reflection method of Class.forName; Storing the created class instance in a cache file corresponding to the class instance; When the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, the cache file corresponding to the instance of the class is opened, and the instance of the class in the cache file corresponding to the instance of the class is read.

5. The method according to claim 1, characterized in that Also includes: At any startup, the fallback window and / or the startup screen saver window are not started, and the car launcher window is directly started.

6. A starting device for a vehicle terminal, characterized in that: include: The management object creation module is used for searching for multiple existing APK files when the Android system of the vehicle terminal is started for the first time, and for each of the multiple existing APK files, sequentially performing the following processes: opening the APK file and reading the data in the APK file; Based on the data in the APK file, generate a management object corresponding to the APK file, wherein the management object is used to start the Android system of the vehicle-mounted terminal; A management object cache module, used to save the management object corresponding to the APK file into a cache file corresponding to the created APK file; A management object extraction module is used for searching for multiple existing APK files when the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2, and for each APK file in the multiple existing APK files, the following processes are performed in sequence: opening the cache file corresponding to the APK file, and reading the management object in the cache file.

7. The device according to claim 6, characterized in that The management object creation module is further used to open the changed first APK file and read the data in the changed first APK file when a first APK file among the multiple APK files changes; based on the data in the changed first APK file, generate a first management object corresponding to the first APK file, the first management object being used for starting the Android system of the vehicle-mounted terminal; The management object cache module is further used to save the first management object corresponding to the first APK file into the created cache file corresponding to the first APK file.

8. The device according to claim 6, characterized in that Also includes: The instance creation module is used to create a class instance through the reflection method of Class.forName when the Android system of the vehicle terminal is started for the first time; An instance cache module, used to store the created class instance in a cache file corresponding to the class instance; An instance extraction module is used to open the cache file corresponding to the instance of the class and read the instance of the class in the cache file corresponding to the instance of the class when the Android system of the vehicle terminal is started for the i-th time, where i is an integer greater than or equal to 2.

9. An electronic device, characterized in that: include: Processor and memory; The memory is used to store computer programs or instructions; The processor is used to execute part or all of the computer programs or instructions in the memory, and when the part or all of the computer programs or instructions are executed, it is used to implement the method according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program includes instructions for implementing the method according to any one of claims 1 to 5.