CN115167894A - Vehicle-mounted application upgrading method, device, equipment and storage medium - Google Patents
Vehicle-mounted application upgrading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115167894A CN115167894A CN202210887409.4A CN202210887409A CN115167894A CN 115167894 A CN115167894 A CN 115167894A CN 202210887409 A CN202210887409 A CN 202210887409A CN 115167894 A CN115167894 A CN 115167894A
- Authority
- CN
- China
- Prior art keywords
- application
- vehicle
- software
- list
- machine system
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention belongs to the technical field of automobiles, and discloses a vehicle-mounted application upgrading method, device, equipment and storage medium. The method comprises the steps that an application installation package of an application to be upgraded and an installation configuration file corresponding to the application installation package are downloaded from a cloud; adjusting the installed application in the vehicle machine system according to the installation configuration file; when the adjustment is completed, installing a new version application in the vehicle machine system according to the application installation package; and configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded. Because the application installation package is developed based on the standardized interface of the vehicle machine system, when a new version of application is installed according to the application installation package, the vehicle machine system is only required to be configured, so that other vehicle-mounted applications can be ensured to normally call the new version of application, the vehicle machine system and other vehicle-mounted applications do not need to be synchronously published, the flow is simple, the cost is low, and the iteration speed is high.
Description
Technical Field
The invention relates to the technical field of automobiles, in particular to a vehicle-mounted application upgrading method, device, equipment and storage medium.
Background
At present, a vehicle-mounted machine system needs to provide an application inlet for a multimedia application installed on a vehicle, and to output application information, and is associated with other vehicle-mounted functions (such as VR, personal center, other vehicle-mounted applications, and the like).
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a vehicle-mounted application upgrading method, a device, equipment and a storage medium, and aims to solve the technical problems of high cost and low iteration speed in vehicle-mounted application upgrading in the prior art.
In order to achieve the above object, the present invention provides a method for upgrading a vehicle-mounted application, comprising the following steps:
downloading an application installation package of an application to be upgraded and an installation configuration file corresponding to the application installation package from a cloud;
adjusting the installed application in the vehicle machine system according to the installation configuration file;
when the adjustment is completed, installing a new version of application in the vehicle-mounted machine system according to the application installation package;
and configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded.
Optionally, the step of adjusting the installed application in the in-vehicle device system according to the installation configuration file includes:
reading application identification information and application interface configuration from the installation configuration file;
detecting whether application software corresponding to the application identification information is installed in the vehicle-mounted machine system;
if yes, reading the software interface configuration of the application software;
determining whether the software interface configuration is legal or not according to the application interface configuration;
and if the software interface configuration is illegal, removing the application software from the vehicle-mounted machine system.
Optionally, after the step of determining whether the software interface configuration is legal according to the application interface configuration, the method further includes:
if the software interface configuration is legal, reading application version information from the installation configuration file;
acquiring software version information corresponding to the application software;
and if the application version information is inconsistent with the software version information, removing the application software from the vehicle-mounted device system.
Optionally, the step of determining whether the software interface configuration is legal according to the application interface configuration includes:
reading a standard interface list from the application interface configuration;
detecting whether the software interfaces contained in the software interface configuration exist in the standard interface list or not;
if the software interfaces included in the software interface configuration exist in the standard interface list, judging that the software interface configuration is legal;
and if the software interface configuration comprises any software interface which does not exist in the standard interface list, judging that the software interface configuration is illegal.
Optionally, the step of configuring the car machine system according to the application metadata of the new version application includes:
reading application registration information, application types and application identification information from application metadata of the new version of application;
searching a corresponding application entry list according to the application type, and updating the application entry list according to the application registration information;
and searching corresponding associated application according to the application identification information, and sending the application registration information to the associated application so as to update the associated application.
Optionally, the step of searching for a corresponding associated application according to the application identification information, and sending the application registration information to the associated application to update the associated application includes:
searching application software corresponding to the application type in the vehicle machine system to obtain a type software set;
constructing a type software list according to the type software set;
and searching corresponding associated application according to the application identification information, and sending the application registration information and the type software list to the associated application so as to update the associated application.
Optionally, before the step of downloading the new application installation package and the installation configuration file corresponding to the new application installation package from the cloud, the method further includes:
receiving software updating information pushed by a cloud, updating a software list to be updated according to the software updating information, and obtaining a current list to be updated;
displaying the current list to be updated;
and selecting an application to be upgraded from the current list to be updated according to an operation instruction of a user based on the current list to be updated.
In addition, in order to achieve the above object, the present invention further provides a vehicle-mounted application upgrading apparatus, which includes the following modules:
the data downloading module is used for downloading an application installation package of an application to be upgraded and an installation configuration file corresponding to the application installation package from a cloud end;
the application adjusting module is used for adjusting the installed applications in the vehicle machine system according to the installation configuration file;
the application installation module is used for installing a new version of application in the vehicle-mounted machine system according to the application installation package when the adjustment is completed;
and the system configuration module is used for configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded.
In addition, in order to achieve the above object, the present invention further provides a vehicle-mounted application upgrading apparatus, including: the system comprises a processor, a memory and a vehicle-mounted application upgrading program which is stored on the memory and can run on the processor, wherein when the vehicle-mounted application upgrading program is executed by the processor, the steps of the vehicle-mounted application upgrading method are realized.
In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, where a vehicle-mounted application upgrading program is stored, and when executed, the vehicle-mounted application upgrading method implements the steps of the vehicle-mounted application upgrading method.
The method comprises the steps that an application installation package of an application to be upgraded and an installation configuration file corresponding to the application installation package are downloaded from a cloud; adjusting the installed application in the vehicle machine system according to the installation configuration file; when the adjustment is completed, installing a new version of application in the vehicle machine system according to the application installation package; and configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded. Because the application installation package is developed for a standardized interface based on the vehicle machine system, when a new version of application is installed according to the application installation package, the vehicle machine system is only required to be configured, so that other vehicle-mounted applications can be ensured to normally call the new version of application, the vehicle machine system and other vehicle-mounted applications do not need to be synchronously published, the flow is simple, the cost is low, and the iteration speed is high.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for upgrading a vehicle-mounted application according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for upgrading a vehicle-mounted application according to the present invention;
FIG. 4 is a schematic diagram illustrating an execution flow of an embodiment of a method for upgrading a vehicle-mounted application according to the present invention;
FIG. 5 is a flowchart illustrating a third exemplary embodiment of a method for upgrading a vehicle-mounted application according to the present invention;
FIG. 6 is a schematic diagram of an installation directory structure according to an embodiment of the upgrade method for a vehicle-mounted application of the present invention;
FIG. 7 is a schematic diagram illustrating an update of an application entry list according to an embodiment of the upgrade method for a vehicle-mounted application;
FIG. 8 is a schematic diagram illustrating generation of a type software list according to an embodiment of the upgrade method for a vehicle-mounted application;
FIG. 9 is a schematic diagram illustrating connection between an application including an application portal and a new application according to an embodiment of the method for upgrading a vehicle-mounted application;
fig. 10 is a schematic connection diagram illustrating connection between a third-party application and a sound source according to an embodiment of the method for upgrading a vehicle-mounted application of the present invention;
fig. 11 is a schematic diagram illustrating information interaction of a multimedia-related application according to an embodiment of the method for upgrading a vehicle-mounted application of the present invention;
fig. 12 is a schematic diagram of information interaction between a non-associated application and a new application according to an embodiment of the upgrade method for a vehicle-mounted application;
fig. 13 is a block diagram of the vehicle-mounted application upgrading apparatus according to the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a vehicle-mounted application upgrading device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a high-speed Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the electronic device, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an in-vehicle application upgrade program.
In the electronic apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention may be disposed in an in-vehicle application upgrading device, and the electronic device calls an in-vehicle application upgrading program stored in the memory 1005 through the processor 1001 and executes the in-vehicle application upgrading method provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for upgrading a vehicle-mounted application, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the method for upgrading a vehicle-mounted application according to the present invention.
In this embodiment, the vehicle-mounted application upgrading method includes the following steps:
step S10: and downloading an application installation package of the application to be upgraded and an installation configuration file corresponding to the application installation package from a cloud.
It should be noted that the execution main body of this embodiment may be the vehicle-mounted application upgrade device, and the vehicle-mounted application upgrade device may be a controller that is installed in a vehicle and can manage an application installed in the vehicle, such as a vehicle-mounted computer, and of course, may also be other devices that can achieve the same or similar functions.
It should be noted that the cloud may be a cloud server that provides various applications for the vehicle. The application to be upgraded may be a vehicle-mounted application that needs to be upgraded and is specified by a user, where the vehicle-mounted application may be a multimedia application (an application that performs operations such as playing multimedia data), and of course, may also be other types of applications, and this embodiment is not limited to this. The application installation package may be an installation package for installing the latest version of the application to be upgraded, and formats of the application installation package may also be different according to different in-vehicle systems, for example: assuming that the car machine system is developed based on an Android (Android) system, the application installation package may be an APK file at this time. The installation configuration file may include configuration information such as an application identifier, an application version, an interface allowed to be used, and the like, where the application identifier may be an application directory or an application package name, and may also be other forms of unique identifiers.
Further, in order to enable the user to quickly determine the upgradable in-vehicle application, before the step S10 in this embodiment, the method may further include:
receiving software updating information pushed by a cloud, updating a software list to be updated according to the software updating information, and obtaining a current list to be updated;
displaying the current list to be updated;
and selecting an application to be upgraded from the current list to be updated according to an operation instruction of a user based on the current list to be updated.
It should be noted that, when the development of the new-version application is completed, a developer may upload an application installation package of the new-version application to a cloud for auditing, after the process of scanning, identifying, or manually auditing the application installation package passes, the cloud may set a corresponding installation configuration file for the application installation package, generate software update information according to information such as an application version number, an installation package size, and an application identifier of the new-version application, and push the software update information to a vehicle-mounted application upgrading device, so that the vehicle-mounted application upgrading device may update a to-be-updated software list according to the software update information when receiving the software update information, display the updated to-be-updated list to a user, and then the user may operate in a display page, and at this time, the vehicle-mounted application upgrading device may select an application to be upgraded from the current to-be-updated list according to an operation instruction generated by the user operating in the display page of the current to-be-updated list.
In actual use, displaying the current list to be updated may be displaying in a vehicle-mounted application dedicated to managing the vehicle-mounted application in the vehicle-mounted system, for example: and displaying the current list to be updated in an application upgrading management page of an application market installed on the vehicle.
The cloud terminal can push the software updating information to the vehicle-mounted application upgrading equipment at the first time when the application installation package of the new version application passes the auditing, the vehicle-mounted application upgrading equipment can update the software list to be updated according to the received software updating information and display the updated list, and a user can quickly determine the upgradable vehicle-mounted application, so that the use experience of the user is improved.
Step S20: and adjusting the installed application in the vehicle machine system according to the installation configuration file.
It should be noted that, when a certain application is installed, if an old version of the application corresponding to the application already exists in the in-vehicle system or an illegally-cracked version of the application exists, an abnormality may occur in the application installation process, so that the application installation fails, or the application cannot be normally used after installation, and therefore, the application in the in-vehicle system can be adjusted according to the installation configuration file, so that the new version of the application can be normally installed.
Step S30: and when the adjustment is completed, installing a new version application in the vehicle machine system according to the application installation package.
It should be noted that, if the adjustment is completed, it indicates that there is no old application or illegal application affecting the installation process of the application installation package in the in-vehicle system, and therefore, a new application can be installed in the in-vehicle system according to the application installation package.
In actual use, the new version of the application is installed in the in-vehicle system according to the application installation package, and the corresponding installation directory may be read from the application installation package through an installation program in the in-vehicle system, and the application installation package is installed in the installation directory.
In specific implementation, the vehicle-mounted application corresponding to the application installation package can be developed based on a standardized interface of the vehicle-mounted machine system, the vehicle-mounted machine system is in butt joint with the vehicle-mounted application through the standardized interface instead of the customized interface, and the interface specification of the standardized interface of the vehicle-mounted machine system is generally not changed, so that the vehicle-mounted machine system does not need to be re-issued when a new version of application is installed according to the application installation package.
Step S40: and configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded.
It should be noted that, if only a new version application is installed, it may be difficult for other vehicle-mounted functions previously associated with the new version application to normally call the new version application, and therefore, after the new version application is installed, the vehicle-mounted machine system may also be configured according to application metadata (matedata) of the new version application, so as to ensure that other associated applications can normally call the function of the new version application, thereby implementing the upgrade of the application to be upgraded.
Wherein, the application metadata of the new version application can be stored in its installation directory, for example: under the root directory in the installation directory. The application metadata may store data such as an application type, application registration information, and an application identifier.
In the embodiment, an application installation package of an application to be upgraded and an installation configuration file corresponding to the application installation package are downloaded from a cloud; adjusting the installed application in the vehicle machine system according to the installation configuration file; when the adjustment is completed, installing a new version application in the vehicle machine system according to the application installation package; and configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded. Because the application installation package is developed based on the standardized interface of the vehicle machine system, when a new version of application is installed according to the application installation package, the vehicle machine system is only required to be configured, so that other vehicle-mounted applications can be ensured to normally call the new version of application, the vehicle machine system and other vehicle-mounted applications do not need to be synchronously published, the flow is simple, the cost is low, and the iteration speed is high.
Referring to fig. 3, fig. 3 is a schematic flowchart of a second embodiment of a method for upgrading a vehicle-mounted application according to the present invention.
Based on the first embodiment, the step S20 of the upgrade method for a vehicle-mounted application in this embodiment includes:
step S201: and reading the application identification information and the application interface configuration from the installation configuration file.
It should be noted that, reading the application identification information and the application interface configuration from the installation configuration file may be to analyze the installation configuration file in a preset configuration format, and then extract the application identification information and the application interface configuration from an analysis result, where the application identification information may include a package name of an application, an installation path of the application, or other types of unique identifiers, and the application interface configuration may include interface information that allows the application to use an interface.
Step S202: and detecting whether the application software corresponding to the application identification information is installed in the vehicle-mounted machine system.
It should be noted that, detecting whether the application software corresponding to the installed application identification information exists in the in-vehicle system may be to compare the identifier of each installed application with the application identification information, determine whether an installed application with the identifier being consistent with the application identification information exists, and if so, determine that the application software corresponding to the application identification information is installed in the in-vehicle system; and if not, judging that the application software corresponding to the application identification information is not installed in the vehicle-mounted machine system.
Step S203: and if so, reading the software interface configuration of the application software.
It can be understood that, if the application software corresponding to the application identification information is installed in the in-vehicle system, it needs to be checked whether the application software is an illegal cracked software, and therefore, the software interface configuration of the application software can be read. The reading of the software interface configuration of the application software may be reading installation information of the application software, and determining interface information of all interfaces that can be called by the application software, thereby obtaining the software interface configuration.
Step S204: and determining whether the software interface configuration is legal or not according to the application interface configuration.
It can be understood that an illegally cracked application generally applies more rights than the original application, i.e., calls more interfaces, and therefore, comparing the application interface configuration with the software interface configuration can quickly determine whether the software interface configuration is legal.
In a specific implementation, in order to quickly determine whether the software interface configuration is legal, step S204 in this embodiment may include:
reading a standard interface list from the application interface configuration;
detecting whether the software interfaces contained in the software interface configuration exist in the standard interface list or not;
if the software interfaces included in the software interface configuration exist in the standard interface list, judging that the software interface configuration is legal;
and if the software interface configuration comprises any software interface which does not exist in the standard interface list, judging that the software interface configuration is illegal.
It should be noted that, reading the standard interface list from the application interface configuration may be to extract the unique interface identifiers of the interfaces allowed to be used from the interface information included in the application interface configuration, and aggregate the unique interface identifiers into the standard interface list, where the unique interface identifiers may be composed of interface access paths and interface names.
In actual use, detecting whether the software interfaces included in the software interface configuration exist in the standard interface list or not can be performed by extracting the unique interface identifiers of the interfaces included in the software interface configuration in the same manner, then searching in the standard interface list according to the unique interface identifiers of the interfaces included in the software interface configuration, determining whether corresponding data can be searched in the standard interface list or not, and if corresponding data can be searched in the standard interface list, determining whether the software interfaces included in the software interface configuration exist in the standard interface list or not, and then determining that the software interface configuration is legal;
if the unique interface identifier corresponding to the interface included in any software interface configuration cannot find corresponding data in the standard interface list, it can be determined that the software interface configuration includes a software interface that does not exist in the standard interface list, and it indicates that the application software has acquired more rights, so that it can be determined that the software interface configuration is illegal.
Step S205: and if the software interface configuration is illegal, removing the application software from the vehicle-mounted machine system.
It can be understood that if the software interface configuration is illegal, the application software is illegally cracked software, and at this time, in order to avoid the influence of the application software on the new version of application, the application software may be removed from the in-vehicle system, so as to ensure that the new version of application can be normally installed.
Further, since the old version of application may also cause the installation failure of the new version of application, in order to ensure that the new version of application can be normally installed, after the step S204 in this embodiment, the method may further include:
if the software interface configuration is legal, reading application version information from the installation configuration file;
acquiring software version information corresponding to the application software;
and if the application version information is inconsistent with the software version information, removing the application software from the vehicle-mounted device system.
It can be understood that even if the software interface configuration is legal, only the software that is not illegally cracked can be described, but it is impossible to determine whether the software is an old version software, and therefore, the application version information can be read from the installation configuration file, and then the application version information is compared with the software version information corresponding to the application software, and if the application version information is inconsistent with the software version information, it indicates that the application software is an old version application, and therefore, the application software can be removed from the in-vehicle system, thereby avoiding the influence on the installation of the new version application, and ensuring that the new version application can be normally installed.
For ease of understanding, the vehicle-mounted application upgrading method of the present invention is now described with reference to fig. 4, but the present invention is not limited thereto. Fig. 4 is a schematic execution flow diagram of the vehicle-mounted application upgrading method according to the present invention. After a software developer develops a new multimedia application, an application installation package (apk) is uploaded to a cloud server, the cloud server sends a message to vehicle-mounted application upgrading equipment after the audit is passed, a user can download the apk of the new application and a corresponding configuration file (namely an installation configuration file) through a vehicle-mounted upgrading center in the vehicle-mounted application upgrading equipment, then the vehicle-mounted application upgrading equipment judges the validity of the local application according to the configuration file, if the application is old or illegal, the application is unloaded, after the unloading is completed, the apk is installed, then application metadata (metadata) of the apk is read, and then other associated applications are notified to configure the new application according to the acquired metadata data.
In the embodiment, the application identification information and the application interface configuration are read from the installation configuration file; detecting whether application software corresponding to the application identification information is installed in the vehicle-mounted device system; if yes, reading the software interface configuration of the application software; determining whether the software interface configuration is legal or not according to the application interface configuration; and if the software interface configuration is illegal, removing the application software from the vehicle-mounted machine system. The installation configuration file comprises the application identification information and the application interface configuration, whether the corresponding application software is installed or not can be quickly determined according to the application identification information, then the application interface configuration is compared with the software interface configuration, whether the application software is illegally cracked or not can be quickly determined, and then the illegally cracked software is removed from the vehicle-mounted device system, so that the situation that the installation of a new version of application is influenced by the illegal software is avoided, and the reliability of the vehicle-mounted application upgrading method is improved.
Referring to fig. 5, fig. 5 is a schematic flowchart of a vehicle-mounted application upgrading method according to a third embodiment of the present invention.
Based on the first embodiment, the step S40 of the vehicle-mounted application upgrading method according to this embodiment includes:
step S401: and reading application registration information, application types and application identification information from the application metadata of the new version of application.
It should be noted that the vehicle-mounted application upgrading device may store an analysis format of the application metadata in advance, so that the application metadata of the new version of application may be analyzed according to the analysis format, and the application registration information, the application type, and the application identification information may be read. The application registration information may include information such as an application opening entry and a call interface of each function.
Step S402: and searching a corresponding application entry list according to the application type, and updating the application entry list according to the application registration information.
It should be noted that the in-vehicle system stores application opening entries of various applications, and generally, for different types of vehicle-mounted applications, different lists are used to store the application entries, and when other vehicle-mounted applications need to be opened, the vehicle-mounted application obtains the application entry list from the in-vehicle system, and opens other vehicle-mounted applications according to the application opening entries recorded in the application entry list.
In actual use, because the vehicle-mounted application generally only acquires and caches the application entry list from the vehicle-mounted system when the vehicle-mounted application is started, and then calls other vehicle-mounted applications according to the cached application entry list, at this time, the running vehicle-mounted application may still not normally call a new version of the application, after the application entry list is updated according to the application registration information, the updated application entry list may be pushed to the running vehicle-mounted software in the vehicle-mounted system, so that the vehicle-mounted software updates the cached application entry list.
For convenience of understanding, the description is now made with reference to fig. 6, but the present invention is not limited to the description, and fig. 6 is a schematic diagram of an installation directory structure of a new application, where it is assumed that the new application is a multimedia application, and an installation directory of the new application includes related configuration files (MetaData, mediaSession, and other files) and a system jar, where MediaSession is related configuration that can be used by other applications to interact with the new application, metaData is used for performing application entry configuration and sound source management, and the system jar is used for interfacing with a third-party application, for example: and sending the application registration information or the type software list to other vehicle-mounted applications through the system jar.
For ease of understanding, reference is now made to fig. 7, which is a schematic diagram illustrating an application entry list update according to the present invention. Assuming that the application type noted in the metadata of the installed new version application is a multimedia reference and the new version application functions as a radio station, then a multimedia entry list is found according to the application type and the radio station is added to the multimedia entry list.
Step S403: and searching corresponding associated application according to the application identification information, and sending the application registration information to the associated application so as to update the associated application.
It should be noted that the associated application is an application having a corresponding call relationship, for example: the A application calls the function of the B application, and the A application is the related application of the B application. An application association information table is preset in the car machine system, wherein association information of associated applications can be recorded, and the association information comprises application identifiers of two associated applications. The searching for the corresponding associated application according to the application identification information may be searching for the corresponding associated information according to the application identification information, and determining the associated application according to the application identification recorded in the associated information.
In actual use, the vehicle-mounted application generally calls functions of other vehicle-mounted applications through an interface provided by the application, and if the interface may change after the new-version application is updated, the associated application may not call the functions of the new-version application normally.
For example: taking a multimedia application as an example, the multimedia application may provide an implementation class of a mediabrowser service component interface of a MediaSession framework, and other vehicle applications may call a function of the multimedia application through the mediabrowser service component interface, while the implementation class of the mediabrowser service component interface of a new application may be changed, for example: and operations such as modification, deletion, addition and the like are required, so that the application registration information needs to be sent to the associated application to update the stored interface information, and the associated application can be ensured to normally call the new version application.
Further, since part of the associated applications may not only call other vehicle-mounted applications in the background, but also perform corresponding list display, and at this time, if only the application registration information is sent to the associated applications, an exception may occur in the list displayed by the associated applications, and in order to avoid this, the step S403 in this embodiment may include:
searching application software corresponding to the application type in the vehicle machine system to obtain a type software set;
constructing a type software list according to the type software set;
and searching corresponding associated application according to the application identification information, and sending the application registration information and the type software list to the associated application so as to update the associated application.
It should be noted that, when the associated application is displayed, the applications of the same type as the new version of application may also be displayed in a list, for example: assuming that the application type is a multimedia application, the associated application may display a sound source (the application capable of providing sound data is a sound source) list, at this time, in order to avoid abnormal display of the associated application, all application software of which the types are consistent with the application type in the vehicle-mounted device system may be searched, a type software list is constructed according to software information of the application software, application registration information and the type software list are sent to the associated application together, the associated application updates the displayed list and stored interface information at the same time, and the list can be normally displayed while the associated application can normally call a new version of software.
For convenience of understanding, the vehicle-mounted application upgrading method of the present invention is now described with reference to fig. 8, but the present invention is not limited thereto, and fig. 8 is a schematic diagram illustrating generation of a type software list according to the present invention. If the metadata of the new application indicates that the application type of the new application is a multimedia application, the provided function is a radio station and the radio station includes sound source registration information, all multimedia applications in the car machine system can be detected at this time, then a type software list (i.e., a sound source list) is constructed, and then the sound source list can be sent to association software (Launcher) to enable the association software to display the sound source list.
For convenience of understanding, the method for upgrading the vehicle-mounted application according to the present invention is described with reference to fig. 9, fig. 10, fig. 11, and fig. 12, but the present invention is not limited thereto, and fig. 9 is a schematic connection diagram illustrating an application including an application portal establishing a connection with a new application. In the figure, a station provides functions for a new-version application, an application including an entry calls the functions of the new-version application through an application start entry of the new-version application included in an application entry list, and then controls the new-version application through an implementation class of a mediabrowse servicecompany interface provided by the new-version application.
Fig. 10 is a schematic connection diagram illustrating connection between a third-party application and a sound source, in which a radio station provides functions for a new application, and the third-party application connects with the new application through an implementation class of a mediabrowser service company interface provided by the new application and calls a sound source function provided by the third-party application.
Fig. 11 is a schematic view of information interaction of multimedia-related applications, where a multimedia information card is of another vehicle-mounted application in the in-vehicle device system, and the multimedia information card establishes a connection with a new application through the connection manner in fig. 9 or fig. 10, and performs data interaction and application control.
Fig. 12 is an information interaction diagram of a non-associated application and a new application, where a radio station provides a function for the new application, and a voice control is a vehicle-mounted application that has no association with the new application, and at this time, if the voice control needs to interact with the new application, the voice control needs to interact with a vehicle-mounted device system through tts broadcast, and then the vehicle-mounted device system forwards information to the new application (i.e., the radio station) in a tts broadcast manner.
In the embodiment, application registration information, an application type and application identification information are read from application metadata of the new version of application; searching a corresponding application entry list according to the application type, and updating the application entry list according to the application registration information; and searching corresponding associated application according to the application identification information, and sending the application registration information to the associated application so as to update the associated application. The corresponding application entry list is searched according to the application type, and the application entry list is updated according to the application registration information, so that other vehicle-mounted applications can be enabled to normally start the new version of application, and then the application registration information is sent to other associated applications, so that the associated applications can update the stored interface information, and the functions provided by the new version of application can be enabled to be normally called by the associated applications.
In addition, an embodiment of the present invention further provides a storage medium, where a vehicle-mounted application upgrade program is stored on the storage medium, and when executed by a processor, the vehicle-mounted application upgrade program implements the steps of the vehicle-mounted application upgrade method described above.
Referring to fig. 13, fig. 13 is a block diagram illustrating a first embodiment of the upgrade apparatus for vehicle-mounted applications according to the present invention.
As shown in fig. 13, the vehicle-mounted application upgrading apparatus provided in the embodiment of the present invention includes:
the data downloading module 10 is configured to download, from a cloud, an application installation package of an application to be upgraded and an installation configuration file corresponding to the application installation package;
the application adjusting module 20 is configured to adjust an installed application in the in-vehicle system according to the installation configuration file;
the application installation module 30 is used for installing a new version of application in the vehicle-mounted machine system according to the application installation package when the adjustment is completed;
and the system configuration module 40 is configured to configure the car machine system according to the application metadata of the new version application, so as to upgrade the application to be upgraded.
In the embodiment, the application installation package of the application to be upgraded and the installation configuration file corresponding to the application installation package are downloaded from the cloud; adjusting the installed applications in the vehicle machine system according to the installation configuration file; when the adjustment is completed, installing a new version of application in the vehicle machine system according to the application installation package; and configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded. Because the application installation package is developed based on the standardized interface of the vehicle machine system, when a new version of application is installed according to the application installation package, the vehicle machine system is only required to be configured, so that other vehicle-mounted applications can be ensured to normally call the new version of application, the vehicle machine system and other vehicle-mounted applications do not need to be synchronously published, the flow is simple, the cost is low, and the iteration speed is high.
Further, the application adjustment module 20 is further configured to read application identification information and application interface configuration from the installation configuration file; detecting whether application software corresponding to the application identification information is installed in the vehicle-mounted machine system; if yes, reading the software interface configuration of the application software; determining whether the software interface configuration is legal or not according to the application interface configuration; and if the software interface configuration is illegal, removing the application software from the vehicle-mounted machine system.
Further, the application adjusting module 20 is further configured to, if the software interface configuration is legal, read application version information from the installation configuration file; acquiring software version information corresponding to the application software; and if the application version information is inconsistent with the software version information, removing the application software from the vehicle-mounted device system.
Further, the application adjustment module 20 is further configured to read a standard interface list from the application interface configuration; detecting whether the software interfaces contained in the software interface configuration exist in the standard interface list or not; if the software interfaces included in the software interface configuration exist in the standard interface list, judging that the software interface configuration is legal; and if the software interface configuration comprises any software interface which does not exist in the standard interface list, judging that the software interface configuration is illegal.
Further, the system configuration module 40 is further configured to read application registration information, an application type, and application identification information from application metadata of the new version of application; searching a corresponding application entry list according to the application type, and updating the application entry list according to the application registration information; and searching corresponding associated application according to the application identification information, and sending the application registration information to the associated application so as to update the associated application.
Further, the system configuration module 40 is further configured to search for application software corresponding to the application type in the car machine system, and obtain a type software set; constructing a type software list according to the type software set; and searching corresponding associated application according to the application identification information, and sending the application registration information and the type software list to the associated application so as to update the associated application.
Further, the data downloading module 10 is further configured to receive software update information pushed by a cloud, update a to-be-updated software list according to the software update information, and obtain a current to-be-updated list; displaying the current list to be updated; and selecting an application to be upgraded from the current list to be updated according to an operation instruction of a user based on the current list to be updated.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited in this respect.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the vehicle-mounted application upgrading method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.
Claims (10)
1. A vehicle-mounted application upgrading method is characterized by comprising the following steps:
downloading an application installation package of an application to be upgraded and an installation configuration file corresponding to the application installation package from a cloud;
adjusting the installed application in the vehicle machine system according to the installation configuration file;
when the adjustment is completed, installing a new version application in the vehicle machine system according to the application installation package;
and configuring the vehicle-mounted machine system according to the application metadata of the new version application so as to realize the upgrading of the application to be upgraded.
2. The vehicle-mounted application upgrading method according to claim 1, wherein the step of adjusting the installed application in the vehicle-mounted device system according to the installation configuration file includes:
reading application identification information and application interface configuration from the installation configuration file;
detecting whether application software corresponding to the application identification information is installed in the vehicle-mounted machine system;
if yes, reading the software interface configuration of the application software;
determining whether the software interface configuration is legal or not according to the application interface configuration;
and if the software interface configuration is illegal, removing the application software from the vehicle-mounted machine system.
3. The vehicle application upgrade method according to claim 2, wherein after the step of determining whether the software interface configuration is legal according to the application interface configuration, further comprising:
if the software interface configuration is legal, reading application version information from the installation configuration file;
acquiring software version information corresponding to the application software;
and if the application version information is inconsistent with the software version information, removing the application software from the vehicle-mounted computer system.
4. The vehicle-mounted application upgrade method according to claim 2, wherein said step of determining whether said software interface configuration is legitimate from said application interface configuration comprises:
reading a standard interface list from the application interface configuration;
detecting whether the software interfaces contained in the software interface configuration exist in the standard interface list or not;
if the software interfaces included in the software interface configuration exist in the standard interface list, judging that the software interface configuration is legal;
and if the software interface configuration comprises any software interface which does not exist in the standard interface list, judging that the software interface configuration is illegal.
5. The vehicle-mounted application upgrading method according to claim 1, wherein the step of configuring the vehicle-mounted machine system according to the application metadata of the new version application includes:
reading application registration information, application types and application identification information from the application metadata of the new version of application;
searching a corresponding application entry list according to the application type, and updating the application entry list according to the application registration information;
and searching corresponding associated application according to the application identification information, and sending the application registration information to the associated application so as to update the associated application.
6. The vehicle-mounted application upgrading method according to claim 5, wherein the step of searching for the corresponding associated application according to the application identification information, and sending the application registration information to the associated application to update the associated application comprises:
searching application software corresponding to the application type in the vehicle machine system to obtain a type software set;
constructing a type software list according to the type software set;
and searching corresponding associated application according to the application identification information, and sending the application registration information and the type software list to the associated application so as to update the associated application.
7. The vehicle-mounted application upgrading method according to any one of claims 1 to 6, wherein before the step of downloading the new application installation package and the installation configuration file corresponding to the new application installation package from a cloud, the method further comprises:
receiving software updating information pushed by a cloud, updating a software list to be updated according to the software updating information, and obtaining a current list to be updated;
displaying the current list to be updated;
and selecting an application to be upgraded from the current list to be updated according to an operation instruction which is performed by a user based on the current list to be updated.
8. The vehicle-mounted application upgrading device is characterized by comprising the following modules:
the data downloading module is used for downloading an application installation package of the application to be upgraded and an installation configuration file corresponding to the application installation package from a cloud;
the application adjusting module is used for adjusting the installed applications in the vehicle machine system according to the installation configuration file;
the application installation module is used for installing a new version of application in the vehicle-mounted machine system according to the application installation package when the adjustment is completed;
and the system configuration module is used for configuring the vehicle-mounted computer system according to the application metadata of the new version application so as to realize the upgrade of the application to be upgraded.
9. An in-vehicle application upgrade apparatus, characterized in that the in-vehicle application upgrade apparatus comprises: a processor, a memory and an in-vehicle application upgrade program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the in-vehicle application upgrade method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a vehicle-mounted application upgrade program, which when executed implements the steps of the vehicle-mounted application upgrade method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210887409.4A CN115167894A (en) | 2022-07-26 | 2022-07-26 | Vehicle-mounted application upgrading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210887409.4A CN115167894A (en) | 2022-07-26 | 2022-07-26 | Vehicle-mounted application upgrading method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115167894A true CN115167894A (en) | 2022-10-11 |
Family
ID=83497221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210887409.4A Pending CN115167894A (en) | 2022-07-26 | 2022-07-26 | Vehicle-mounted application upgrading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115167894A (en) |
-
2022
- 2022-07-26 CN CN202210887409.4A patent/CN115167894A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108181B (en) | Function updating method and device of application program and computer readable storage medium | |
CN105446769B (en) | Image file upgrade processing method, device and terminal device | |
US20090133014A1 (en) | Methods, apparatuses and computer program product for automatic download of software dependencies on installation | |
CN110750286A (en) | Management method, device, system, equipment and medium for upgrading Mbn through OTA | |
CN110413292B (en) | Light application installation method of application program, mobile terminal and storage medium | |
CN110851151B (en) | Method, device, terminal, server and storage medium for pre-installing application | |
KR20060103442A (en) | Method, software and apparatus for performing actions on a wireless device using action lists and versioning | |
CN110633157A (en) | Menu dynamic management method, server, system and computer readable storage medium | |
CN112202920A (en) | Vehicle machine system upgrading method and device | |
US20160378553A1 (en) | Resource Management Method and Device for Terminal System | |
CN110502263B (en) | Upgrade package manufacturing method, system and computer readable storage medium | |
CN107231624B (en) | Method for retaining data information, storage device and mobile terminal | |
CN113242276B (en) | On-line upgrading method, device, equipment and storage medium for vehicle-mounted system | |
CN115167894A (en) | Vehicle-mounted application upgrading method, device, equipment and storage medium | |
CN111324491A (en) | Program bug fixing method and device and computer readable storage medium | |
CN109348472A (en) | OTA (over the air) upgrading method and system based on single-point pushing | |
CN113867756A (en) | Software upgrading method, terminal equipment and readable storage medium | |
KR102064519B1 (en) | Method for updating software of electronic control unit of vehicle, apparatus and system thereof | |
JP6802279B2 (en) | Transmission of messages to be displayed to the display device of a car | |
CN108574588B (en) | Client, server and differentiated upgrading method | |
CN111427607A (en) | Configuration file repair method, device and computer-readable storage medium | |
CN112131022A (en) | Open API management method, device and system and computer readable storage medium | |
CN110944320A (en) | Smart card identification method, system and computer readable storage medium | |
CN111736863A (en) | Software upgrading method and device and electronic equipment | |
CN114610346B (en) | Software upgrading method, 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 |