CN116719537A - Application installation method, device, equipment and storage medium - Google Patents

Application installation method, device, equipment and storage medium Download PDF

Info

Publication number
CN116719537A
CN116719537A CN202310653699.0A CN202310653699A CN116719537A CN 116719537 A CN116719537 A CN 116719537A CN 202310653699 A CN202310653699 A CN 202310653699A CN 116719537 A CN116719537 A CN 116719537A
Authority
CN
China
Prior art keywords
application
file
target
installation
target application
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
Application number
CN202310653699.0A
Other languages
Chinese (zh)
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.)
Wuxi Wentai Information Technology Co ltd
Original Assignee
Wuxi Wentai Information Technology 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 Wuxi Wentai Information Technology Co ltd filed Critical Wuxi Wentai Information Technology Co ltd
Priority to CN202310653699.0A priority Critical patent/CN116719537A/en
Publication of CN116719537A publication Critical patent/CN116719537A/en
Pending legal-status Critical Current

Links

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/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to an application installation method, an application installation device and a storage medium, wherein the method comprises the following steps: acquiring a target application installation file, wherein the target application installation file comprises related information of an application which is not required to be installed by the electronic equipment at the current position; according to the target application installation file, the application files to be installed are scanned, the application to be installed is installed, the application to be installed is not included in the target application installation file, the method can achieve the assignment of the installation application only by using the target application installation file, all applications are not required to be installed, different installation files are not required to be generated according to different conditions, the application installation efficiency is improved, the complexity of application installation is reduced, and good convenience is achieved.

Description

Application installation method, device, equipment and storage medium
Technical Field
The present application relates to the technical field of terminal devices, and in particular, to an application installation method, apparatus, device, and storage medium.
Background
The APK (Android application package ) is preloaded in the mobile phone system by the three-party application presetting mode in the related art. For the out-sales equipment, tens of countries can be shipped, meanwhile, the number of the pre-installed three-party applications is large, but individual countries are not required to install all three-party applications, if all APKs are preset, memory waste can be caused, and if the application installation is carried out for each country independently, the operation becomes very complicated.
Disclosure of Invention
To at least partially solve the problems in the related art, the present application provides an application installation method, apparatus, device, and storage medium.
A first aspect of the present application provides an application installation method, which is applied to an electronic device, the method including: acquiring a target application installation file, wherein the target application installation file comprises related information of an application which is not required to be installed by the electronic equipment at the current position; and scanning an application file to be installed according to the target application installation file, and installing the application to be installed, wherein the application to be installed is an application which is not included in the target application installation file.
Optionally, the obtaining the target application installation file includes: acquiring the current position of the electronic equipment, wherein the current position comprises a country and/or a region; obtaining a target configuration file corresponding to the current position from a plurality of preset configuration files, wherein the plurality of preset configuration files have corresponding relations with preset positions; and generating the target application installation file according to the target configuration file.
Optionally, each preset configuration file includes an installed application set, a general application set, and a non-installed application set, each application set includes related information of at least one application, and the generating the target application installation file according to the target configuration file includes: acquiring an application set in the target configuration file; removing related information of applications in the installation application set and the general application set from the non-installation application set to generate a target application set; and generating the target application installation file according to the target application set.
Optionally, each application set includes at least one attribute file of an application, where the attribute file is a key-value pair, the key-value pair includes a key and a value, the value is related information of the application, and the generating the target application installation file according to the target application set includes: acquiring each key value pair in the target application set; and reading the corresponding value according to the key of each application, packaging the read value into an array, and taking the array as the target application installation file.
Optionally, the obtaining, from a plurality of preset configuration files, a target configuration file corresponding to the current position includes: and if the current position does not have the corresponding target configuration file, acquiring a default configuration file, wherein a non-installation application set in the default configuration file is empty.
Optionally, the scanning the application file to be installed according to the target application installation file, and installing the application to be installed, including: the method comprises the steps of scanning an application file under an installation directory, and judging whether the scanned application file is positioned in the target application installation file according to related information of the scanned application file; if the scanned application file is not located in the target application installation file, analyzing the scanned application file to obtain registration information; registering the registration information in a system of the electronic device.
Optionally, the target application installation file further includes: and the setting subfiles represent setting information of the electronic equipment at the current position, and the setting subfiles comprise language files and time zone files.
A second aspect of the present application provides an application installation apparatus, the apparatus being applied to an electronic device, the apparatus comprising: the electronic equipment comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a target application installation file, and the target application installation file comprises related information of an application which is not required to be installed under the current position of the electronic equipment; and the installation module is used for scanning the application file to be installed according to the target application installation file and installing the application to be installed, wherein the application to be installed is an application not included in the target application installation file.
A third aspect of the application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the first aspects above.
A fourth aspect of the present application provides an electronic device, comprising: a memory having a computer program stored thereon; a processor for executing the computer program in the memory to implement the steps of the method of any of the above first aspects.
According to the application installation method, the application which is not required to be installed is specified through the target application installation file, the application file to be installed is scanned and the application is installed according to the target application installation file, the specification of the installed application can be realized only by using the target application installation file, all the applications are not required to be installed, and different installation files are not required to be generated according to different conditions, so that the application installation efficiency is improved, the application installation complexity is reduced, and the application installation method has good convenience.
Additional features and advantages of the application will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the application, and are incorporated in and constitute a part of this specification, illustrate the application and together with the description serve to explain, without limitation, the application. In the drawings:
FIG. 1 is a flow diagram illustrating a method of application installation according to an example embodiment;
FIG. 2 is a flow diagram illustrating another method of application installation in accordance with an exemplary embodiment;
FIG. 3 is a schematic block diagram of an application installation apparatus shown in accordance with an exemplary embodiment;
fig. 4 is a schematic block diagram of an electronic device, shown in accordance with an exemplary embodiment.
Detailed Description
The following describes specific embodiments of the present application in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the application, are not intended to limit the application.
It should be noted that, all actions of acquiring signals, information or data in the present application are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
It should be noted that the term "first/second/third" in relation to embodiments of the present application is used to distinguish between similar or different objects, and does not represent a particular ordering of the objects, it being understood that the "first/second/third" may be interchanged with a particular order or sequencing, as permitted, to enable embodiments of the present application described herein to be implemented in an order other than that illustrated or described herein.
Before describing embodiments of the present application in further detail, the terms and terminology involved in the embodiments of the present application will be described, and the terms and terminology involved in the embodiments of the present application will be used in the following explanation.
The PMS (Package Manager Service, package management service class) is one of core services in the Android system, and this service mainly manages application programs installed on devices, where the most important task is to scan files with apk as a suffix under a specific directory after the system is started, and then install corresponding applications into the system. Note that the installation is not a general one, and refers to resolving a static application file stored on a disk and registering related information in a system.
APK (Android application package ) is an application package file format used by the Android operating system for distributing and installing mobile applications and middleware. Code of an Android application program is expected to run on an Android device, and the code must be compiled first and then packaged into a file which can be identified by an Android system and can be run, and the file format which can be identified and run by the Android system is "APK". The APK file can be directly transmitted to the Android simulator or the Android mobile phone for execution, and then the APK file can be installed.
img file is an image file for storing system files in an Android system, the file can be produced after the Android source code is compiled, and the init process is carried out under each partition by analyzing init. Rc file mount (mount).
In the related art, a preset mode is applied to three parties of the marketing equipment, wherein APKs required to be installed in different countries are identified through customized catalogues and configuration files, and different img files are generated in a software package. And then different APKs are installed in different countries by different img files in the software package. When the method is developed by the research personnel, the research personnel needs to constantly switch to different countries to carry out verification development, so that img files are replaced once for machine brushing in each switching, then, the country is also required to be switched for machine brushing once in the follow-up test, and finally, different version packages are required to be brushed by shipment machines in different countries in the factory pipeline production, so that a great amount of cost is increased.
Based on the problems of the prior art, the embodiment of the application provides an application installation method, which is used for designating an application which is not required to be installed through a target application installation file, scanning and application installation are carried out on the application file to be installed according to the target application installation file, the designation of the installation application can be realized only by using the target application installation file, all the applications are not required to be installed, and different installation files are not required to be generated according to different conditions, so that the application installation efficiency is improved, the complexity of application installation is reduced, and the application installation method has good convenience. The method is applied to electronic equipment, and it can be understood that the electronic equipment related to the embodiment of the application can include general handheld screen electronic terminal equipment, such as mobile phones, smart phones, portable terminals, personal digital assistants (Personal Digital Assistant, PDAs), portable multimedia player (Personal Media Player, PMP) devices, notebook computers, notebook (Note Pad), wireless broadband (Wireless Broadband, wibro) terminals, tablet computers (Personal Computer, PCs), smart PCs, point of Sales (POS), and vehicle-mounted computers.
The electronic device may also include a wearable device. The wearable device may be worn directly on the user or be a portable electronic device integrated into the user's clothing or accessories. The wearable device is not only a hardware device, but also can realize powerful intelligent functions through software support and data interaction and cloud interaction, such as: the mobile phone terminal has the advantages of calculating function, positioning function and alarming function, and can be connected with mobile phones and various terminals. Wearable devices may include, but are not limited to, wrist-supported watch types (e.g., watches, wrist products, etc.), foot-supported shoes (e.g., shoes, socks, or other leg wear products), head-supported Glass types (e.g., glasses, helmets, headbands, etc.), and smart apparel, school bags, crutches, accessories, etc. in various non-mainstream product forms.
Fig. 1 is a schematic implementation flow chart of an application installation method provided in an embodiment of the present application, where the method is applied to an electronic device, as shown in fig. 1, and the method may include the following steps 110 to 120:
step 110, a target application installation file is obtained, wherein the target application installation file comprises relevant information of an application which does not need to be installed under the current position of the electronic equipment.
Taking an electronic device with an android system as an example, in an application installation scene, the system will acquire a target application installation file. The application installation scene is preset, such as when the system is started for the first time, when the system is set up, and the like, and the system acquires the target application installation file.
The target application installation file may be obtained by using different implementation methods in different application installation scenarios, for example, when a factory brushing machine is performed, a brushing machine tool is generally used, and the target application installation file may be sent to a Package Management Service (PMS) of the android system by using the brushing machine tool.
The target application installation file comprises relevant information of an application which is not required to be installed in the current position of the electronic equipment. For example, the target application installation file may include a module name compiled from an android application package (apk).
And 120, scanning an application file to be installed according to the target application installation file, and installing the application to be installed, wherein the application to be installed is an application not included in the target application installation file.
And the system on the electronic equipment scans the application files to be installed in the system according to the target application installation file. For example, a software package is preset in the android system, and all APK installation packages are placed in the software package. In this embodiment, all APK installation packages are application files to be installed.
The package management service scans a preset software package, obtains application files in the software package, namely obtains files taking apk as suffixes under the catalog, eliminates application files which do not need to be installed according to target application installation files, obtains application files which need to be installed, and installs the application files which need to be installed into a system.
According to the application installation method, the application which is not required to be installed is specified through the target application installation file, the application file to be installed is scanned and the application is installed according to the target application installation file, the specification of the installed application can be realized only by using the target application installation file, all the applications are not required to be installed, and different installation files are not required to be generated according to different conditions, so that the application installation efficiency is improved, the application installation complexity is reduced, and the application installation method has good convenience.
Fig. 2 is a schematic implementation flow chart of another method for installing an application, where the method is applied to an electronic device, as shown in fig. 2, and the method may include the following steps 210 to 250:
step 210, obtaining a current location of the electronic device, where the current location includes a country and/or a region.
The system carried on the electronic device, such as an android system, an iOS system, a windows phone system and the like, acquires the current position of the electronic device, wherein the position can comprise a country and/or a region and the like.
In one embodiment of the application, the electronic device is a smart phone with an android system, and the android system acquires the position of the smart phone through a preset position acquisition method under a preset application loading scene. The location obtaining method may be based on mobile phone SIM attribute information, mobile phone access network, user selection, etc. For example, the preset application loading scenario is a brushing field scenario when the mobile phone leaves the factory, in which the smart phone will determine the current location according to the user selection, e.g., the smart phone will show the user a plurality of countries (bahama, parin, bangladesh, etc.) and regions (citrusp, fagua, etc.). The user will select according to the needs, and the smart phone can determine the current location according to the country or region selected by the user. It should be noted that the country and the region in the above embodiments are only examples, and in other embodiments of the present application, only the country may be provided, only the region may be provided, and the region may be various, for example, the region may be a province in the country such as beijing city, tianjin city, etc. in china, and for example, the region may be a wide region such as the schiff region, the northern european region, etc.
For another example, the preset application loading scene may be a first boot scene of the smart phone, where the android system may read a region identifier in a SIM (Subscriber Identity Module, user identity) inserted in the electronic device to determine a current location of the electronic device.
Step 220, obtaining a target configuration file corresponding to the current position from a plurality of preset configuration files, wherein the plurality of preset configuration files have corresponding relations with preset positions.
And acquiring a target configuration file from the plurality of configuration files according to the current position. The configuration file is preset, and the configuration file comprises relevant information of the application. Each configuration file is set to correspond to at least one preset position, and the configuration files are used for identifying applications which need not be installed on the electronic equipment at the corresponding positions.
For example, the related information in the configuration file is attribute information, which is information for identifying an attribute of one application program, such as a module name generated by compiling the application program, a name of the application program, and the like. A configuration file is set for each preset country and region, and the configuration file comprises attribute information of all applications which do not need to be installed in the country or region. And pre-storing the plurality of set configuration files in an android system. In the initial startup scene of the smart phone, after the android system of the smart phone judges the current position of the electronic equipment through the region identification code, searching a configuration file corresponding to the current position. And reading a configuration file corresponding to the current position as a target configuration file.
In one embodiment of the present application, a profile is set for each country and region, and the profile includes application attribute information that need not be installed in the country or region. In a mobile phone factory-leaving scene, the mobile phone comprises a mobile phone brushing tool besides the smart phone, wherein a configuration file can be pre-stored on the mobile phone brushing tool, or in the scene, the mobile phone brushing tool comprises a mobile phone brushing tool and a remote server besides the smart phone, the configuration file is pre-stored on the remote server, the mobile phone brushing tool sends a configuration file reading request to the remote server, and the remote server transmits the configuration file to the mobile phone brushing tool after receiving the reading request.
After the android system obtains the current position, the country simple code corresponding to the current position is obtained and used as the country code, and the country simple code is also called as a country code number and is an identifier for the country and the region, for example, afgham is the country simple code AF. The android system sends the country code to the brushing tool, and the brushing tool searches a configuration file corresponding to the received country code in the pre-stored configuration file to serve as a target configuration file.
And step 230, generating the target application installation file according to the target configuration file.
And generating the target application installation file according to the related information of the application in the target configuration file.
In one embodiment of the application, in a first boot scene of the smart phone, after the android system obtains the target configuration file, related information such as a compiled module name is read, and the read compiled module name is used for generating an application list as the target application installation file.
In another embodiment of the present application, each preset configuration file includes an installation application set, a general application set, and a non-installation application set, each application set includes related information of at least one application, and the generating the target application installation file according to the target configuration file includes: acquiring an application set in the target configuration file; removing related information of applications in the installation application set and the general application set from the non-installation application set to generate a target application set; and generating the target application installation file according to the target application set.
And setting three application sets in each configuration file, wherein one application set comprises related information such as attribute information of applications which need not be installed by the electronic equipment under the area corresponding to the configuration file, one application set comprises related information such as attribute information of applications which need to be installed by the electronic equipment under the area corresponding to the configuration file, and the other application set comprises related information such as attribute information of applications which need to be installed by the electronic equipment under all areas. For example, if a module name generated by compiling is used as related information, a non-installed application set is set to be a remote apk, and the related information corresponding to the set can be stored as: value= "video; amazonmatic; … … "; setting the installation application set as regional specialty apk, the relevant information corresponding to the set may be stored as: value= "playgates; … … "; setting the general application set as all regional specialty apks, and storing relevant information corresponding to the set as: value= "Telcel; SYSDLLMexico; lenovicon connect; … …).
In a mobile phone leaving factory, after the target configuration file is obtained by the mobile phone leaving factory, the configuration file is analyzed through a preset class, and the attribute included in each set is read, for example, the value in the list is read according to a key remove apk, and the application which is not required to be installed in the value is not required to be installed. And after the attributes in the three sets are read and stored, performing operation, and removing the related information of the applications in the installed application set and the general application set from the non-installed application set. For example, the compiled module names existing in all-region and region-specialty are removed from the remote apk set, and finally the attribute information of the application that does not need to be installed is left. After the operation is completed, the remaining attribute information generates a new set as a target application set.
And generating a target application installation file according to the attribute information in the target application set. And sending the generated target configuration file to a package management service in the electronic device.
In the method, the non-installation application set is checked by setting the installation application set and the general application set, so that the applications in the non-installation application set are ensured not to be installed, and the applications which are required to be installed and the basic applications which are required to be installed in all areas are not included.
In one embodiment of the present application, further, each application set includes at least one attribute file of an application, where the attribute file is a key-value pair, the key-value pair includes a key and a value, the value is related information of the application, and the generating the target application installation file according to the target application set includes: acquiring each key value pair in the target application set; and reading the corresponding value according to the key of each application, packaging the read value into an array, and taking the array as the target application installation file.
The relevant information stored by each application set in the configuration file is a key value pair, and the key value is a pair of character strings for identifying and storing data. The key is a string that identifies the data and the value is the data itself. For example, the key value pair video=1.0.0, where video is key identification data and 1.0.0 value is data itself. Key-value pair format is a common way to store data in text files. The key-value pair format is easy to use and understand and also efficient, as no special format is required. The key-value pair format is a common format that can be used to store a variety of data.
In this embodiment, data in the ". Properties" directory stored in the application program is acquired as related information in the application set. This data includes configuration information for the application, such as version number, internal version number, and supported language list. It can also be used to store strings for internationalization and localization. ". properties" files are stored in the assets directory of the application. an assembly directory is a special directory for storing files that do not belong to application code. ". properties" files are loaded by an application when installed on a device.
One or more data in the read attribute data are stored as values in a key value pair, and identification information of the application program such as a name is used as key identification data to generate a key value pair including attribute information of an application.
And acquiring attribute information of each application, and generating a key value pair to obtain an attribute file. And storing the attribute files in different application sets.
And after the target application set is obtained, each key value pair in the set is obtained. Values of the attribute information representation of the application in the key-value pair may be read from the key in the key-value pair.
And reading the value in each key value pair according to the key in each key value pair, thereby obtaining the attribute information of each application. And packaging the values of all the applications into an array, and taking the array as the target application installation file.
Optionally, the obtaining, from a plurality of preset configuration files, the target configuration file corresponding to the current position includes: and if the current position does not have the corresponding target configuration file, acquiring a default configuration file, wherein a non-installation application set in the default configuration file is empty.
In one embodiment of the present application, in the process of obtaining the target configuration file corresponding to the current location, if the current location does not have the corresponding target configuration file, for example, according to the received country code, when the brushing tool does not find the configuration file corresponding to the received country code, the brushing tool does not have the corresponding target configuration file. And the brushing tool acquires a default configuration file, wherein a non-installation application set in the default configuration file is empty, so that all applications are installed by default, and no application which does not need to be installed is available.
Step 240, obtaining a target application installation file, where the target application installation file includes information about an application that is not required to be installed by the electronic device in the current location.
The system of the electronic device obtains the target application installation file, e.g., a package management service in the electronic device receives the target application installation file.
Further, in an embodiment of the present application, the target application installation file further includes: and the setting subfiles represent setting information of the electronic equipment at the current position, and the setting subfiles comprise language files and time zone files.
By way of example, the present application will also set corresponding setting subfiles for each preset location, such as country and region, in the configuration file, where setting information, such as language setting information, time zone setting information, etc., of the electronic device at the preset location is represented. When the brushing tool acquires the configuration file according to the country code, the brushing tool can acquire the setting subfile. And when the brushing machine tool generates a target application installation file according to the configuration file, the setting subfiles are also contained in the target application installation file, and the setting subfiles are sent to the electronic equipment.
The method transmits the application installation information and the setting information of the electronic equipment in a centralized way, so that the simultaneous setting is realized, and the setting information is convenient to maintain and manage.
And step 250, scanning an application file to be installed according to the target application installation file, and installing the application to be installed, wherein the application to be installed is an application not included in the target application installation file.
The method for installing the application to be installed comprises the steps of: the method comprises the steps of scanning an application file under an installation directory, and judging whether the scanned application file is positioned in the target application installation file according to related information of the scanned application file; if the scanned application file is not located in the target application installation file, analyzing the scanned application file to obtain registration information; registering the registration information in a system of the electronic device.
For example, taking an android system as an example, a software package is preset in an installation system, and all APK installation packages are placed in the software package. In this embodiment, all APK installation packages are application files to be installed.
And the package management service in the android system scans a preset software package, acquires application files in the software package, namely acquires a file taking apk as a suffix under the directory, acquires application related information in the scanned apk file, and judges whether the acquired application related information is positioned in the target application installation file.
And if the information related to the application is not located in the target application installation file, indicating that the information is not an application which does not need to be installed. And analyzing the scanned application file to acquire the registration information of the application program. And registering the registration information of the application program into a system of the electronic equipment, such as an android system, so as to realize the installation of the application in the system.
According to the application installation method, the application which is not required to be installed is specified through the target application installation file, the application file to be installed is scanned and the application is installed according to the target application installation file, the specification of the installed application can be realized only by using the target application installation file, all the applications are not required to be installed, and different installation files are not required to be generated according to different conditions, so that the application installation efficiency is improved, the application installation complexity is reduced, and the application installation method has good convenience.
Fig. 3 is a schematic block diagram of an application installation apparatus provided in an embodiment of the present application, where the apparatus is applied to an electronic device, and as shown in fig. 3, the apparatus 300 includes an obtaining module 310 and an installation module 320, where:
an obtaining module 310, configured to obtain a target application installation file, where the target application installation file includes information about an application that is not required to be installed by the electronic device in a current location;
and an installation module 320, configured to scan an application file to be installed according to the target application installation file, and install an application to be installed, where the application to be installed is an application not included in the target application installation file.
Optionally, the apparatus further includes:
the electronic equipment comprises a position acquisition module, a position detection module and a position control module, wherein the position acquisition module is used for acquiring the current position of the electronic equipment, and the current position comprises a country and/or a region;
the file acquisition module is used for acquiring a target configuration file corresponding to the current position from a plurality of preset configuration files, wherein the preset configuration files have corresponding relations with preset positions;
and the generating module is used for generating the target application installation file according to the target configuration file.
Optionally, each preset configuration file includes an installed application set, a general application set, and a non-installed application set, and each application set includes relevant information of at least one application, and the generating module includes:
the analysis submodule is used for acquiring an application set in the target configuration file;
a verification sub-module, configured to remove related information of applications in the installed application set and the general application set from the non-installed application set, and generate a target application set;
and the file generation sub-module is used for generating the target application installation file according to the target application set.
Optionally, each application set includes at least one attribute file of an application, where the attribute file is a key value pair, the key value pair includes a key and a value, the value is related information of the application, and the file generation submodule is specifically configured to obtain each key value pair in the target application set; and reading the corresponding value according to the key of each application, packaging the read value into an array, and taking the array as the target application installation file.
Optionally, the file obtaining module is further configured to obtain a default configuration file if the current location does not have a corresponding target configuration file, where a non-installed application set in the default configuration file is empty.
Optionally, the installation module is specifically configured to scan an application file under an installation directory, and determine, according to relevant information of the scanned application file, whether the scanned application file is located in the target application installation file; if the scanned application file is not located in the target application installation file, analyzing the scanned application file to obtain registration information; registering the registration information in a system of the electronic device.
Optionally, the target application installation file further includes: and the setting subfiles represent setting information of the electronic equipment at the current position, and the setting subfiles comprise language files and time zone files.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 4 is a block diagram of an electronic device 400, shown in accordance with an exemplary embodiment. As shown in fig. 4, the electronic device 400 may include: a processor 401, 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.
Wherein the processor 401 is configured to control the overall operation of the electronic device 400 to perform all or part of the steps of the application installation method described above. The memory 402 is used to store various types of data to support operation at the electronic device 400, which may include, for example, instructions for any application or method operating on the electronic device 400, as well as application-related data, such as contact data, transceived messages, pictures, audio, video, and the like. The Memory 402 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 403 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being 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 be further stored in the memory 402 or transmitted through the communication component 405. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules, which may be 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 (Near Field Communication, NFC for short), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication component 405 may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic device 400 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), digital signal processors (Digital Signal Processor, abbreviated as DSP), digital signal processing devices (Digital Signal Processing Device, abbreviated as DSPD), programmable logic devices (Programmable Logic Device, abbreviated as PLD), field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the application installation method described above.
In another exemplary embodiment, a computer readable storage medium is also provided, comprising program instructions which, when executed by a processor, implement the steps of the application installation method described above. For example, the computer readable storage medium may be the memory 402 including program instructions described above, which are executable by the processor 401 of the electronic device 400 to perform the application installation method described above.
In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described application installation method when executed by the programmable apparatus.
The preferred embodiments of the present application have been described in detail above with reference to the accompanying drawings, but the present application is not limited to the specific details of the above embodiments, and various simple modifications can be made to the technical solution of the present application within the scope of the technical concept of the present application, and all the simple modifications belong to the protection scope of the present application.
In addition, the specific features described in the above embodiments may be combined in any suitable manner without contradiction. The various possible combinations of the application are not described in detail in order to avoid unnecessary repetition.
Moreover, any combination of the various embodiments of the application can be made without departing from the spirit of the application, which should also be considered as disclosed herein.

Claims (10)

1. An application installation method, wherein the method is applied to an electronic device, the method comprising:
acquiring a target application installation file, wherein the target application installation file comprises related information of an application which is not required to be installed by the electronic equipment at the current position;
and scanning an application file to be installed according to the target application installation file, and installing the application to be installed, wherein the application to be installed is an application which is not included in the target application installation file.
2. The method of claim 1, wherein the obtaining the target application installation file comprises:
acquiring the current position of the electronic equipment, wherein the current position comprises a country and/or a region;
obtaining a target configuration file corresponding to the current position from a plurality of preset configuration files, wherein the plurality of preset configuration files have corresponding relations with preset positions;
and generating the target application installation file according to the target configuration file.
3. The method according to claim 2, wherein each of the preset configuration files includes an installed application set, a general application set, and a non-installed application set, each of the application sets includes information about at least one application, and the generating the target application installation file according to the target configuration file includes:
acquiring an application set in the target configuration file;
removing related information of applications in the installation application set and the general application set from the non-installation application set to generate a target application set;
and generating the target application installation file according to the target application set.
4. The method of claim 3, wherein each application set includes at least one application's attribute file, the attribute file is a key-value pair, the key-value pair includes a key and a value, the value is information related to the application, and the generating the target application installation file according to the target application set includes:
acquiring each key value pair in the target application set;
and reading the corresponding value according to the key of each application, packaging the read value into an array, and taking the array as the target application installation file.
5. A method according to claim 3, wherein the obtaining, from a plurality of preset profiles, a target profile corresponding to the current location includes:
and if the current position does not have the corresponding target configuration file, acquiring a default configuration file, wherein a non-installation application set in the default configuration file is empty.
6. The method according to claim 1, wherein the scanning the application file to be installed according to the target application installation file, and performing application installation on the application to be installed, includes:
the method comprises the steps of scanning an application file under an installation directory, and judging whether the scanned application file is positioned in the target application installation file according to related information of the scanned application file;
if the scanned application file is not located in the target application installation file, analyzing the scanned application file to obtain registration information;
registering the registration information in a system of the electronic device.
7. The method of claim 1, wherein the target application installation file further comprises:
and the setting subfiles represent setting information of the electronic equipment at the current position, and the setting subfiles comprise language files and time zone files.
8. An application installation apparatus, the apparatus being applied to an electronic device, the apparatus comprising:
the electronic equipment comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a target application installation file, and the target application installation file comprises related information of an application which is not required to be installed under the current position of the electronic equipment;
and the installation module is used for scanning the application file to be installed according to the target application installation file and installing the application to be installed, wherein the application to be installed is an application not included in the target application installation file.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1-7.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-7.
CN202310653699.0A 2023-06-02 2023-06-02 Application installation method, device, equipment and storage medium Pending CN116719537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310653699.0A CN116719537A (en) 2023-06-02 2023-06-02 Application installation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310653699.0A CN116719537A (en) 2023-06-02 2023-06-02 Application installation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116719537A true CN116719537A (en) 2023-09-08

Family

ID=87867231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310653699.0A Pending CN116719537A (en) 2023-06-02 2023-06-02 Application installation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116719537A (en)

Similar Documents

Publication Publication Date Title
CN110569035B (en) Code compiling method, device, equipment and storage medium of software development project
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN110716783A (en) Front-end page generation and deployment method and device, storage medium and equipment
CN111666091B (en) System updating method, device, electronic equipment and computer readable storage medium
CN106055375B (en) Application program installation method and device
US11057827B1 (en) Provisioning an embedded universal integrated circuit card (eUICC) of a mobile communication device
US8990929B2 (en) Auditing application activities
CN107402792B (en) Integration method, device, equipment and storage medium of application software installation package
CN105765533A (en) Method and apparatus for firmware virtualization
CN111400681A (en) Data permission processing method, device and equipment
CN110995521B (en) Service providing method, device, equipment and system
CN110413292B (en) Light application installation method of application program, mobile terminal and storage medium
CN111556127B (en) Wearable device upgrading method and related device
CN110222242B (en) Configuration tracking method and device
US10387809B2 (en) Method and apparatus for extracting mobile application suitability features for a mobile business application
CN114417322A (en) Application isolation implementation method, mobile terminal, computer equipment and storage medium
CN116719537A (en) Application installation method, device, equipment and storage medium
CN110852796A (en) Position positioning method, device, medium and apparatus
CN108133123B (en) Application program identification method and system
CN109274808B (en) Address book information management method and system, electronic equipment and storage medium
CN113722589A (en) Information generation method, device, server and storage medium
CN110989987A (en) Portal webpage generation method, portal webpage generation device, client, server and storage medium
CN109933357B (en) Application program upgrading method and device
CN112187746A (en) Method and device for generating equipment identifier
CN113448746B (en) Configuration processing method, configuration platform and related 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