CN112035127B - Method and device for installing application, vehicle, storage medium and electronic equipment - Google Patents

Method and device for installing application, vehicle, storage medium and electronic equipment Download PDF

Info

Publication number
CN112035127B
CN112035127B CN201910482691.6A CN201910482691A CN112035127B CN 112035127 B CN112035127 B CN 112035127B CN 201910482691 A CN201910482691 A CN 201910482691A CN 112035127 B CN112035127 B CN 112035127B
Authority
CN
China
Prior art keywords
installation package
package file
target
installation
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910482691.6A
Other languages
Chinese (zh)
Other versions
CN112035127A (en
Inventor
王涛
程晓鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201910482691.6A priority Critical patent/CN112035127B/en
Publication of CN112035127A publication Critical patent/CN112035127A/en
Application granted granted Critical
Publication of CN112035127B publication Critical patent/CN112035127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The present disclosure relates to a method, an apparatus, a vehicle, a storage medium, and an electronic device for installing an application, the method determining whether an installation package file exists in a designated path in an external storage device by responding to receiving an access message of the external storage device; if the installation package file exists in the specified path in the external storage device, determining a target installation package file from the installation package file; and installing the target application corresponding to the target installation package file. Therefore, when the external storage device is accessed, the corresponding target application is installed through the installation package file under the specified path in the external storage device, the installation package file can be prevented from being stored in the system file, the loss of system storage resources can be reduced, the system file is prevented from being too large, and the user experience can be improved.

Description

Method and device for installing application, vehicle, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of vehicle technologies, and in particular, to a method and an apparatus for installing an application, a vehicle, a storage medium, and an electronic device.
Background
Generally, when a third-party application is preset in a vehicle-mounted Android system, a folder for storing an installation package of the third-party application needs to be created in a system file, an installation package file of the third-party application to be installed is stored under a corresponding folder, an mk file for compiling is configured under the folder, and finally the system is recompiled to realize the preset of the corresponding third-party application in the vehicle-mounted Android system. Due to the fact that the vehicle-mounted Android system is greatly changed by the method for presetting the third-party applications, and the corresponding installation package files of the third-party applications are required to be stored in the system files every time a new third-party application is added, waste of storage resources in the system is caused, and the system files are too large if the number of the preset third-party applications is large, and user experience is not facilitated to be improved.
Disclosure of Invention
The invention aims to provide an application installation method, an application installation device, a vehicle, a storage medium and electronic equipment, which are used for solving the technical problem that system storage resources are wasted when a third-party application is preset in a vehicle-mounted Android system at present.
A first aspect of the present disclosure provides a method of installing an application, applied to a processor, the method comprising:
in response to receiving an access message of an external storage device, determining whether an installation package file exists in a specified path in the external storage device;
if the installation package file exists in the specified path in the external storage device, determining a target installation package file from the installation package file;
and installing the target application corresponding to the target installation package file.
Optionally, the determining a target installation package file from the installation package files includes:
acquiring identification information of a vehicle where the processor is located;
determining whether the installation package file matching the identification information of the vehicle exists;
and if the installation package file matched with the identification information of the vehicle is determined to exist, determining the installation package file matched with the identification information of the vehicle as the target installation package file.
Optionally, the determining a target installation package file from the installation package files includes:
displaying the installation package file;
and determining a target installation package file selected by a user from the installation package files.
Optionally, before determining the target installation package file from the installation package files, the method further includes:
if the application corresponding to the installation package file is determined to be the installed application, acquiring a first version number of the installation package file and a second version number of the installation package file corresponding to the installed application;
determining whether the version corresponding to the first version number is higher than the version corresponding to the second version number;
the determining a target installation package file from the installation package files comprises:
and if the version corresponding to the first version number is higher than the version corresponding to the second version number, determining the installation package file corresponding to the first version number as the target installation package file.
Optionally, the target installation package file includes a plurality of target installation package files, and the installing a target application corresponding to the target installation package file includes:
receiving an installation instruction;
and in response to receiving the installation instruction, installing a plurality of target applications corresponding to the target installation package files.
Optionally, after the target application corresponding to the target installation package file is installed, the method further includes:
acquiring an installation state return value corresponding to the target application;
determining whether the target application is installed successfully according to the installation state return value;
and if the target application is determined to be not installed successfully, determining the reason of the installation failure of the target application according to the installation state return value, and displaying the reason of the installation failure.
In a second aspect of the present disclosure, there is provided an apparatus for installing an application, applied to a processor, the apparatus comprising:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for responding to the received access message of the external storage device and determining whether an installation package file exists in a specified path in the external storage device;
the first determining module is further configured to determine a target installation package file from the installation package files if the installation package file exists in the specified path in the external storage device;
and the installation module is used for installing the target application corresponding to the target installation package file.
Optionally, the first determining module includes:
the first acquisition submodule is used for acquiring the identification information of the vehicle where the processor is located;
a first determination sub-module configured to determine whether the installation package file matching the identification information of the vehicle exists;
the first determining sub-module is further configured to determine the installation package file matched with the identification information of the vehicle as the target installation package file if it is determined that the installation package file matched with the identification information of the vehicle exists.
Optionally, the first determining module includes:
the display submodule is used for displaying the installation package file;
and the second determining submodule is used for determining a target installation package file selected by the user from the installation package files.
Optionally, the first determining module further includes:
the second obtaining submodule is used for obtaining a first version number of the installation package file and a second version number of the installation package file corresponding to the installed application if the fact that the application corresponding to the installation package file is the installed application is determined;
a third determining submodule, configured to determine whether the version corresponding to the first version number is higher than the version corresponding to the second version number;
the third determining submodule is further configured to:
and if the version corresponding to the first version number is higher than the version corresponding to the second version number, determining the installation package file corresponding to the first version number as the target installation package file.
Optionally, the target installation package file includes a plurality of target installation package files, and the installation module includes:
the receiving submodule is used for receiving an installation instruction;
and the installation submodule is used for responding to the received installation instruction and installing a plurality of target applications corresponding to the target installation package files.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring an installation state return value corresponding to the target application;
the second determining module is used for determining whether the target application is installed successfully according to the installation state return value;
and the second determining module is further configured to determine, if it is determined that the target application is not successfully installed, a reason for the installation failure of the target application according to the installation state return value, and display the reason for the installation failure.
In a third aspect of the present disclosure there is provided a vehicle comprising an apparatus for installing an application as described above in relation to the second aspect.
In a fourth aspect of the present disclosure there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of the first aspect above.
In a fifth aspect of the present disclosure, there is provided an electronic device comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of the first aspect above.
According to the technical scheme, whether an installation package file exists in a specified path in the external storage equipment is determined by responding to the received access message of the external storage equipment; if the installation package file exists in the specified path in the external storage device, determining a target installation package file from the installation package file; and installing the target application corresponding to the target installation package file. Therefore, when the external storage device is accessed, the corresponding target application is installed through the installation package file under the specified path in the external storage device, the installation package file can be prevented from being stored in the system file, the loss of system storage resources can be reduced, the system file is prevented from being too large, and the user experience can be improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow chart illustrating a method of installing an application in accordance with an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of installing an application provided by another exemplary embodiment of the present disclosure;
fig. 3 is a block diagram of an apparatus for installing an application according to still another exemplary embodiment of the present disclosure;
FIG. 4 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
First, an application scenario of the present disclosure is explained, which can be applied in the installation process of a third party application program, generally, there are two scenarios for installing the third-party application program, one is the process of presetting the third-party application program in the terminal system before the mobile terminal leaves the factory, and when the third-party application program is preset in the mobile terminal system in the prior art, a folder needs to be created in the system for storing the installation package of the third party application, and the installation package file of the third party application program to be installed is stored under the corresponding folder, then, the mk file for compiling is configured under the folder, and finally, the system is recompiled, so that the corresponding third-party application program can be preset in the system, the mobile terminal refers to a computer device which can be used in moving, and can be a mobile phone, a notebook, a POS machine, a vehicle-mounted computer or other PC machines; the terminal system can be an Android, Windows or other operating systems; the third party application may be an application other than the system itself. Due to the fact that the vehicle-mounted Android system is greatly changed by the method for presetting the third-party application, and the corresponding installation package file of the third-party application needs to be stored in the system file every time a new third-party application is added, waste of storage resources in the system is inevitable, and the system file is too large easily if the number of the preset third-party applications is large, and user experience is not favorably improved.
And the other process is that the user installs the third-party application on the terminal equipment according to the actual requirement of the user after the mobile terminal leaves the factory. Generally, when a third-party application is installed after a mobile terminal leaves a factory, an installation package file of the third-party application program needs to be locally downloaded, the installation package file is stored in a preset path in a system, and then the third-party application program is installed through the stored installation package file. In the process, the installation package file of the third-party application program also needs to be stored in the system file, so that the loss of system storage resources is caused, and the storage space of the terminal equipment is occupied.
In order to solve the existing problems, the present disclosure provides a method, an apparatus, and a vehicle for installing an application, where when an external storage device is accessed, the method installs a corresponding target application through an installation package file in an external storage device along a specified path, and can avoid storing the installation package file in a system file, thereby reducing loss of system storage resources, avoiding that the system file is too large, and thus improving user experience.
FIG. 1 is a flow chart illustrating a method of installing an application in accordance with an exemplary embodiment of the present disclosure; referring to fig. 1, a method of installing an application, applied to a processor, includes:
step 101, in response to receiving an access message of an external storage device, determining whether an installation package file exists in a specified path in the external storage device;
if the installation package file exists in the specified path in the external storage device, executing step 102; if the installation package file does not exist in the specified path in the external storage device, step 104 is executed.
Illustratively, the external storage device is a USB disk, the installation application method is written as a system-level application program, which is set in a system of a vehicle-mounted computer, when the USB disk is inserted into a USB interface of the vehicle-mounted computer, the vehicle-mounted computer system sends out a corresponding USB disk access broadcast, when receiving the USB disk access broadcast, a broadcast receiver set in the system-level application program obtains path information in the USB disk and determines whether the specified path exists in the path information, and when determining that the specified path exists, obtains file attribute information under the specified path and determines whether an installation package file exists according to the file attribute information; when the file suffix name in the file attribute information is apk, determining that the file corresponding to the file attribute is an installation package file, and when the file suffix in the file attribute information is not apk, determining that the file corresponding to the file attribute is not the installation package file, and optionally, when the installation package file is determined to exist, displaying a preset interface of the system-level application program.
Step 102, determining a target installation package file from the installation package files.
In this step, one embodiment is: acquiring identification information of a vehicle where the processor is located; determining whether the installation package file matched with the identification information of the vehicle exists; and if the installation package file matched with the identification information of the vehicle is determined to exist, determining the installation package file matched with the identification information of the vehicle as the target installation package file.
The other implementation mode is as follows: displaying the installation package file; and determining a target installation package file selected from the installation package files by the user.
Yet another embodiment is: if the application corresponding to the installation package file is determined to be the installed application, acquiring a first version number of the installation package file and a second version number of the installation package file corresponding to the installed application; determining whether the version corresponding to the first version number is higher than the version corresponding to the second version number; and if the version corresponding to the first version number is higher than the version corresponding to the second version number, determining the installation package file corresponding to the first version number as the target installation package file.
And 103, installing the target application corresponding to the target installation package file.
The target installation package file may include a plurality of target installation package files.
In this step, a plurality of target applications corresponding to a plurality of target installation package files may be installed by receiving an installation instruction and then in response to receiving the installation instruction.
Step 104, the installation process is ended.
Illustratively, when the target installation package file includes a plurality of target installation package files, a one-key installation button may be generated on a preset interface, a corresponding installation instruction is issued by triggering the one-key installation button, after receiving the installation instruction, installation is performed one by one according to a preset installation order, if there is an installation failure of one application, the application is skipped, and other applications are continuously installed until all target applications are completely installed. The preset installation sequence may be an order according to the first letter of the name of the target application, or a size sequence of the installation package file, or an issue time sequence of the installation package file.
Therefore, when the external storage device is accessed, the corresponding target application is installed through the installation package file under the specified path in the external storage device, the installation package file can be prevented from being stored in the system, the loss of system storage resources can be reduced, the process of presetting the third-party application program can be simplified, and the installation efficiency of the third-party application program is improved.
FIG. 2 is a flowchart of a method of installing an application provided by another exemplary embodiment of the present disclosure; referring to fig. 2, the method includes:
step 201, in response to receiving an access message of an external storage device, determining whether an installation package file exists in a specified path in the external storage device;
in this step, if the installation package file exists in the specified path in the external storage device, execute step 202; if the installation package file does not exist in the specified path in the external storage device, step 216 is executed to end the process of installing the application.
In step 202, identification information of the vehicle in which the processor is located is obtained.
It should be noted that the identification information of the vehicle may be the model information of the vehicle, and the model information may include a company name code (for example, CA represents a first automobile, EQ represents a second automobile, etc.), a vehicle type code (for example, 1 represents a truck, 2 represents an off-road vehicle, 3 represents a dump truck, 7 represents a car, 8 represents a trailer, etc.), a main parameter code (for example, the displacement of the car, the load capacity of the truck, the length of the body in the car, etc.), a product number (generally, 0, 1, 2 represent the change and modification of the vehicle type, respectively), and a company-specific code (generally, indicated by the capital-written english letters).
For example, the model information of the current vehicle may be obtained through the obtained version number of the vehicle MCU (Microprogrammed Control Unit), in the implementation process, the MCU may provide a relevant interface, obtain the MCU version number through the interface, and determine the vehicle type of the current vehicle according to the version number.
Step 203, determine whether the installation package file matching the identification information of the vehicle exists.
In this step, if it is determined that the installation package file matching the identification information of the vehicle exists, step 204 is executed; if it is determined that the installation package file matching the identification information of the vehicle does not exist, step 216 is performed.
For example, vehicle identification information in the installation package file may be acquired, and if the vehicle identification information is the same as the vehicle identification information in the installation package file, the installation package file is determined to be an installation package file matched with the identification information of the current vehicle; if the identification information of the vehicle is different from the vehicle identification information in the installation package file, determining that the installation package file is not an installation package file matched with the identification information of the current vehicle; judging whether all installation package files in the external storage equipment are installation package files matched with the identification information of the current vehicle one by one; and if all the installation package files are not the installation package files matched with the identification information of the current vehicle, determining that the installation package files matched with the identification information of the vehicle do not exist.
And step 204, displaying the installation package file.
It should be noted that, when there are multiple installation package files that match the identification information of the vehicle, names or icons of the installation package files may be displayed in a list form, and a user may select the installation package file as an installation package file to be installed by clicking the name or icon of the installation package file.
Step 205, determining the target installation package file selected by the user from the installation package files.
Thus, the installation package file matched with the vehicle type of the current vehicle can be determined through the steps 202 to 203; and determining the installation package file selected by the user from the installation package files matched with the vehicle type of the current vehicle through the steps 204 to 205.
Step 206, determining whether the application corresponding to the installation package file is an installed application.
The installed application refers to an application program that exists on the local device and can be used.
In this step, if it is determined that the application corresponding to the installation package file is the installed application, step 207 is executed; if it is determined that the application corresponding to the installation package file is not the installed application, step 210 is executed.
Step 207, obtaining the first version number of the installation package file and the second version number of the installation package file corresponding to the installed application.
In step 208, it is determined whether the version corresponding to the first version number is higher than the version corresponding to the second version number.
In this step, if the version corresponding to the first version number is higher than the version corresponding to the second version number, step 209 is executed; if the version corresponding to the first version number is not higher than the version corresponding to the second version number, go to step 2091.
Step 209, determining the installation package file corresponding to the first version number as the target installation package file.
At step 2091, the installation package file corresponding to the first version number is determined to be the non-target installation package file.
Therefore, the target installation package file to be installed is determined from the installation package files selected by the user through the following steps 206 to 209, the installation package file to be installed can be determined according to the situation of the application currently installed by the user, the installation success rate can be improved, and the user experience is improved.
Step 210, receiving an installation instruction.
The installation instruction can be a preset button on a preset interface, and the installation instruction is triggered by clicking the preset button.
It should be noted that, when the target installation package file includes a plurality of target installation package files, a one-key installation button may be generated on the preset interface, and the one-key installation button is triggered to issue a corresponding installation instruction.
Step 211, in response to receiving the installation instruction, installing a plurality of target applications corresponding to the plurality of target installation package files.
It should be noted that, when the installation of a plurality of installation package files is triggered by one-key installation of the button, the target installation package files may be installed one by one according to a preset installation order. The preset installation sequence may be ordered according to the first letter of the name of the target application, or the size sequence of the installation package files, or may be ordered according to the distribution time sequence of the installation package files.
Thus, the target installation package file is installed through the steps 210 to 211, wherein the installation instruction of the target installation package files can be triggered simultaneously through one-key installation button, so that the installation efficiency of the target installation package files can be improved, and the user experience can be improved.
Step 212, obtaining the installation state return value corresponding to the target application.
For example, each time a target application is installed, an installation state return value is returned, and the installation state return value is bound to a preset installation state, so that when the corresponding return value is received, the corresponding installation state can be determined according to the installation state return value. For example, an installation status return value of 0 indicates that the installation was successful; an installation state return value of 1 indicates that installation fails; the installation state return value of 11 indicates that the reason of the installation failure is that the installation package file is invalid; the installation state return value is 10, which indicates that the memory is insufficient; an installation state return value of 111 indicates verification failure and the like.
Step 213, determining whether the target application is installed successfully according to the installation status return value.
Wherein, the installation status return value may include a status bit and a reason bit; the status bit is the first digit of the installation status return value and is used for distinguishing success or failure of installation; the reason bit is used to indicate the reason for the failure of the target application installation. For example, if the status bit of the installation status return value is 0, it is determined that the target application is successfully installed; and if the status bit of the installation status return value is 1, determining that the target application fails to be installed.
In this step, if it is determined that the target application is not successfully installed, step 215 is performed; if the target application is determined to be installed successfully, step 216 is performed.
Step 214, determining the reason of the installation failure of the target application according to the installation state return value, and displaying the reason of the installation failure.
Wherein, the reason of the installation failure can be determined according to the reason bit of the installation state return value.
Illustratively, an installation status return value of 11 indicates that the reason for the installation failure is that the installation package file is invalid; the installation state return value is 10, which indicates that the memory is insufficient; an installation state return value of 111 indicates verification failure and the like.
Step 215, the installation is successfully displayed.
In this step, the number of target applications that have been successfully installed, the number of target applications that have failed to be installed, and the total number of installations may also be counted and displayed.
Step 216, the installation process ends.
In this way, the installation result can be displayed on the preset interface through steps 212 to 215, and the installation result may include a specific reason of the installation failure, so that the user experience can be effectively improved.
Fig. 3 is a block diagram of an apparatus for installing an application according to still another exemplary embodiment of the present disclosure; referring to fig. 3, the apparatus may be applied to a processor, the apparatus including:
a first determining module 301, configured to determine, in response to receiving an access message of an external storage device, whether an installation package file exists in a specified path in the external storage device;
the first determining module 301 is further configured to determine, if the installation package file exists in the specified path in the external storage device, a target installation package file from the installation package file;
an installation module 302, configured to install a target application corresponding to the target installation package file.
Therefore, when the external storage device is accessed, the corresponding target application is installed through the installation package file under the specified path in the external storage device, the installation package file can be prevented from being stored in the system file, the loss of system storage resources can be reduced, the system file is prevented from being too large, and the user experience can be improved.
Optionally, the first determining module 301 includes:
the first obtaining sub-module 3011 is configured to obtain identification information of a vehicle where the processor is located;
a first determining sub-module 3012 configured to determine whether there is the installation package file that matches the identification information of the vehicle;
the first determining sub-module 3012 is further configured to determine, if it is determined that the installation package file matching the identification information of the vehicle exists, the installation package file matching the identification information of the vehicle as the target installation package file.
Optionally, the first determining module 301 includes:
a display sub-module 3013, configured to display the installation package file;
and the second determining sub-module 3014 is configured to determine a target installation package file selected by the user from the installation package files.
Optionally, the first determining module 301 further includes:
a second obtaining sub-module 3015, configured to, if it is determined that the application corresponding to the installation package file is an installed application, obtain a first version number of the installation package file and a second version number of the installation package file corresponding to the installed application;
a third determining sub-module 3016, configured to determine whether the version corresponding to the first version number is higher than the version corresponding to the second version number;
the third determining sub-module 3016 is further configured to:
and if the version corresponding to the first version number is higher than the version corresponding to the second version number, determining the installation package file corresponding to the first version number as the target installation package file.
Optionally, the target installation package file includes a plurality of target installation package files, and the installation module 302 includes:
a receiving submodule 3021 configured to receive an installation instruction;
the installation submodule 3022 is configured to, in response to receiving the installation instruction, install a plurality of target applications corresponding to the plurality of target installation package files.
Optionally, the apparatus further comprises:
an obtaining module 303, configured to obtain an installation state return value corresponding to the target application;
a second determining module 304, configured to determine whether the target application is installed successfully according to the installation status return value;
the second determining module 304 is further configured to determine, if it is determined that the target application is not installed successfully, a reason for the installation failure of the target application according to the installation status return value, and display the reason for the installation failure.
Thus, by obtaining the identification information of the vehicle where the processor is located; the installation package file matched with the identification information of the vehicle is determined as the target installation package file, the target application matched with the vehicle model is installed on the current vehicle through the target installation package file, an installation result can be displayed on a preset interface, the installation result can include specific reasons of installation failure, and user experience can be effectively improved.
In yet another exemplary embodiment of the present disclosure, a vehicle is provided that includes the apparatus for installing an application described above in fig. 3.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram illustrating an electronic device 400 according to an example embodiment. As shown in fig. 4, the electronic device 400 may include: a processor 401 and a memory 402. The electronic device 400 may also include one or more of a multimedia component 403, an input/output (I/O) interface 404, and a communication component 405.
The processor 401 is configured to control the overall operation of the electronic device 400, so as to complete all or part of the steps in the method for installing the application. The memory 402 is used to store various types of data to support operations at the electronic device 400, such as instructions for any application or method operating on the electronic device 400 and application-related data, such as contact data, messaging, pictures, audio, video, and the like. The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 403 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 402 or transmitted through the communication component 405. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC for short), 2G, 3G or 4G, or a combination of one or more of them, and thus the corresponding Communication component 405 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method of installing an Application.
In another exemplary embodiment, there is also provided a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the method of installing an application described above. For example, the computer readable storage medium may be the memory 402 comprising program instructions executable by the processor 401 of the electronic device 400 to perform the method of installing an application described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure as long as it does not depart from the gist of the present disclosure.

Claims (13)

1. A method of installing an application for use in a processor, the method comprising:
in response to receiving an access message of an external storage device, determining whether an installation package file exists in a specified path in the external storage device;
if the installation package file exists in the specified path in the external storage device, determining a target installation package file from the installation package file;
installing a target application corresponding to the target installation package file;
the installing the target application corresponding to the target installation package file comprises the following steps:
under the condition that a plurality of target installation package files are determined to be included, generating a one-key installation button on a preset interface; in response to receiving an installation instruction triggered by the one-key installation button, installing a plurality of target applications corresponding to the plurality of target installation package files according to a preset installation sequence;
after the target application corresponding to the target installation package file is installed, the method further comprises the following steps: displaying the number of the target applications successfully installed, the number of the target applications failed to install, and the sum of the number of the target applications successfully installed and the number of the target applications failed to install.
2. The method of claim 1, wherein the determining a target installation package file from the installation package files comprises:
acquiring identification information of a vehicle where the processor is located;
determining whether the installation package file matching the identification information of the vehicle exists;
and if the installation package file matched with the identification information of the vehicle is determined to exist, determining the installation package file matched with the identification information of the vehicle as the target installation package file.
3. The method of claim 1, wherein the determining a target installation package file from the installation package files comprises:
displaying the installation package file;
and determining a target installation package file selected by a user from the installation package files.
4. The method of claim 1, wherein prior to said determining a target installation package file from said installation package files, said method further comprises:
if the application corresponding to the installation package file is determined to be the installed application, acquiring a first version number of the installation package file and a second version number of the installation package file corresponding to the installed application;
determining whether the version corresponding to the first version number is higher than the version corresponding to the second version number;
the determining a target installation package file from the installation package files comprises:
and if the version corresponding to the first version number is higher than the version corresponding to the second version number, determining the installation package file corresponding to the first version number as the target installation package file.
5. The method according to claim 1, wherein after installing the target application corresponding to the target installation package file, the method further comprises:
acquiring an installation state return value corresponding to the target application;
determining whether the target application is installed successfully according to the installation state return value;
and if the target application is determined to be not installed successfully, determining the reason of the installation failure of the target application according to the installation state return value, and displaying the reason of the installation failure.
6. An apparatus for installing an application, applied to a processor, the apparatus comprising:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for responding to the received access message of the external storage device and determining whether an installation package file exists in a specified path in the external storage device;
the first determining module is further configured to determine a target installation package file from the installation package files if the installation package file exists in the specified path in the external storage device;
the installation module is used for installing the target application corresponding to the target installation package file;
the installation module is used for generating a one-key installation button on a preset interface under the condition that a plurality of target installation package files are determined to be included; in response to receiving an installation instruction triggered by the one-key installation button, installing a plurality of target applications corresponding to the plurality of target installation package files according to a preset installation sequence;
the device is also configured to display the number of target applications successfully installed, the number of target applications failed to install, and a sum of the number of target applications successfully installed and the number of target applications failed to install.
7. The apparatus of claim 6, wherein the first determining module comprises:
the first acquisition submodule is used for acquiring the identification information of the vehicle where the processor is located;
a first determination sub-module configured to determine whether the installation package file matching the identification information of the vehicle exists;
the first determining submodule is further configured to determine the installation package file matched with the identification information of the vehicle as the target installation package file if it is determined that the installation package file matched with the identification information of the vehicle exists.
8. The apparatus of claim 6, wherein the first determining module comprises:
the display submodule is used for displaying the installation package file;
and the second determining submodule is used for determining a target installation package file selected by the user from the installation package files.
9. The apparatus of claim 6, wherein the first determining module further comprises:
a second obtaining sub-module, configured to obtain a first version number of the installation package file and a second version number of the installation package file corresponding to the installed application if it is determined that the application corresponding to the installation package file is an installed application;
a third determining submodule, configured to determine whether the version corresponding to the first version number is higher than the version corresponding to the second version number;
the third determining submodule is further configured to:
and if the version corresponding to the first version number is higher than the version corresponding to the second version number, determining the installation package file corresponding to the first version number as the target installation package file.
10. The apparatus of claim 6, further comprising:
the acquisition module is used for acquiring the installation state return value corresponding to the target application;
the second determining module is used for determining whether the target application is installed successfully according to the installation state return value;
and the second determining module is further configured to determine, if it is determined that the target application is not successfully installed, a reason for the installation failure of the target application according to the installation state return value, and display the reason for the installation failure.
11. A vehicle comprising an arrangement for installing an application according to any of claims 6-10.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
13. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 5.
CN201910482691.6A 2019-06-04 2019-06-04 Method and device for installing application, vehicle, storage medium and electronic equipment Active CN112035127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910482691.6A CN112035127B (en) 2019-06-04 2019-06-04 Method and device for installing application, vehicle, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910482691.6A CN112035127B (en) 2019-06-04 2019-06-04 Method and device for installing application, vehicle, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112035127A CN112035127A (en) 2020-12-04
CN112035127B true CN112035127B (en) 2022-09-06

Family

ID=73576128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910482691.6A Active CN112035127B (en) 2019-06-04 2019-06-04 Method and device for installing application, vehicle, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112035127B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408015A (en) * 2021-06-15 2021-09-17 北京安天网络安全技术有限公司 Product operation and maintenance method and device of terminal equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10089092B2 (en) * 2010-01-27 2018-10-02 Embarcadero Technologies, Inc. Creating a software product from a software application
CN101835137A (en) * 2010-04-23 2010-09-15 华为终端有限公司 Method for transmitting and receiving file based on mobile terminals and mobile terminal
CN103902265B (en) * 2012-12-26 2018-01-09 腾讯科技(深圳)有限公司 One kind applies implementation method and relevant apparatus

Also Published As

Publication number Publication date
CN112035127A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN111427596B (en) Software upgrading method and device and terminal equipment
CN110139118B (en) Function running method and device of application program, electronic equipment and storage medium
CN106897162B (en) Communication mode selection method of component in application, communication system and mobile terminal
CN111984239A (en) Page configuration method, device, server and storage medium
CN110413292B (en) Light application installation method of application program, mobile terminal and storage medium
CN112035127B (en) Method and device for installing application, vehicle, storage medium and electronic equipment
CN109032617B (en) Control method and control device for automatically deleting installation package
CN103365672A (en) Method and system for processing description information of application program
CN112486492A (en) Page generation method and device, storage medium and electronic equipment
CN112286414A (en) Information display method and device, electronic equipment and storage medium
CN108009084B (en) Testing method, device and system for hybrid mobile application
CN110674050A (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN113282363A (en) Method and device for optimizing hybrid APP
CN110069731B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN114168463A (en) Method and device for switching project environment, storage medium and electronic equipment
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN114461223A (en) Code generation method and device and terminal equipment
CN111666020B (en) Method and device for switching document pages, electronic equipment and storage medium
CN108762736B (en) Project branch management method, device and equipment and computer readable storage medium
CN113342553A (en) Data acquisition method and device, electronic equipment and storage medium
JP6802279B2 (en) Transmission of messages to be displayed to the display device of a car
CN108845845B (en) Shortcut key creation method and device, electronic equipment and storage medium
CN115437551A (en) Data cloning method, device, storage medium and computer program product
CN112905072A (en) Application processing method and device and electronic equipment
CN113741913A (en) Picture configuration method, device and system and storage medium

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
GR01 Patent grant
GR01 Patent grant