CN114443117A - Application processing method and electronic equipment - Google Patents
Application processing method and electronic equipment Download PDFInfo
- Publication number
- CN114443117A CN114443117A CN202110943570.4A CN202110943570A CN114443117A CN 114443117 A CN114443117 A CN 114443117A CN 202110943570 A CN202110943570 A CN 202110943570A CN 114443117 A CN114443117 A CN 114443117A
- Authority
- CN
- China
- Prior art keywords
- app
- application
- server
- identifiers
- package
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the application provides an application program processing method and electronic equipment, relates to the technical field of terminals, and not only can the size of a customization package and the storage space occupied by the customization package in the electronic equipment be reduced, the test period of the customization package is shortened, but also the efficiency of installing a plurality of application programs in the electronic equipment is improved. The method comprises the following steps: obtaining a customized packet; the customized package comprises the identifiers of the plurality of application programs and does not comprise the application program installation package, the plurality of application program installation packages corresponding to the identifiers of the plurality of application programs are obtained according to the identifiers of the plurality of application programs, and the plurality of application programs are installed or updated according to the plurality of application program installation packages.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for processing an application program and an electronic device.
Background
With the development of electronic devices, various Applications (APPs) are developed, so that a user can handle many things through the APPs on the electronic device, and convenience is provided for the user. An operator or business may customize some personalized APPs. Developers can package related resources (such as pictures, audio, video and the like) of the APP customized by an operator or an enterprise and a corresponding installation package (APK) into a customized package. After the customized APP is tested to pass, the customized package passing the test is uploaded to the APP server by the APP manager. Then, the APP server pushes the customization package to the electronic equipment for installation.
Because the customization package includes information such as relevant resources and APK of the customization APP, when the electronic equipment downloads the customization package from the APP server for upgrading, the problems of slow upgrading speed, large occupied space of the customization package and the like exist.
Disclosure of Invention
The embodiment of the application provides a processing method of an application program and electronic equipment, and a customized package can be obtained through the electronic equipment; the electronic equipment downloads the APKs of the multiple APPs from the server according to the multiple APP identifications and installs the APKs of the multiple APPs. Therefore, the customization package in the application does not contain the APK of the plurality of APPs, the corresponding APK is downloaded from the server according to the identifiers of the plurality of APPs in the customization package, the size of the customization package is reduced, the speed of downloading the customization package from the APP server by the electronic equipment is increased, and the storage space occupied by the customization package in the electronic equipment is reduced. Simultaneously, still improved a plurality of APP's of electronic equipment installation efficiency.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an application processing method, which is applied to an electronic device, and the method includes: obtaining a customized packet; the customization package comprises a plurality of application program identifiers and does not comprise an application program installation package; acquiring a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs according to the identifiers of the plurality of application programs; and installing or updating the plurality of application programs according to the plurality of application program installation packages.
Therefore, the customized package does not contain the APKs of the multiple APPs, but the electronic equipment downloads the corresponding APKs from the server according to the identifications of the multiple APPs in the customized package, so that the size of the customized package is reduced, the speed of downloading the customized package from the APP server by the electronic equipment is increased, and the storage space occupied by the customized package in the electronic equipment is reduced. Simultaneously, still improved a plurality of APP's of electronic equipment installation efficiency.
In one possible implementation manner, acquiring, according to the identifiers of the plurality of applications, a plurality of application installation packages corresponding to the identifiers of the plurality of applications includes: sending a first request message to a server; the first request message carries identifiers of a plurality of application programs; receiving download paths of the plurality of application programs which are sent by the server and correspond to the identifiers of the plurality of application programs; sending a downloading request to a server; the downloading request carries downloading paths corresponding to the plurality of application programs.
Therefore, after the electronic equipment acquires the download path corresponding to each APP identifier from the server according to the identifiers of the plurality of APPs, the corresponding plurality of APP installation packages are downloaded from the server according to the download path, and the plurality of APP installation packages are not packaged into the customization package, so that the size of the customization package is reduced, the speed of downloading the customization package from the APP server by the electronic equipment is increased, and the storage space occupied by the customization package in the electronic equipment is reduced.
In another possible implementation manner, acquiring, according to the identifiers of the plurality of application programs, a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs includes: sending a second request message to the server; the second request message carries identifiers of a plurality of application programs; and receiving a plurality of application program installation packages which are respectively corresponding to the identifiers of the plurality of application programs and are sent by the server.
Therefore, the electronic equipment obtains the application program installation packages from the server according to the APP identifications, and the efficiency of obtaining the application program installation packages is improved. In addition, a plurality of APP installation packages are not packaged into the customization package, so that the size of the customization package is reduced, the speed of downloading the customization package from the APP server by the electronic equipment is increased, and the storage space occupied by the customization package in the electronic equipment is reduced.
In another possible implementation manner, the customizing package further includes installation paths of the plurality of applications, and installing or updating the plurality of applications according to the plurality of application installation packages includes: and installing or updating the plurality of application programs according to the installation paths corresponding to the plurality of application programs.
From this, install a plurality of APP installation package to the installation route that corresponds, avoided the process of acquireing application program installation route, improved a plurality of APP's installation or update efficiency.
In another possible implementation manner, obtaining the customized package includes: sending a packet searching request to a server; and acquiring the customized packet sent by the server.
Therefore, the electronic equipment can be networked for the first time or actively send a package searching request to the server according to preset time (such as 12 hours, 24 hours and the like), and the purpose that the electronic equipment automatically acquires the customized package is achieved.
In another possible implementation manner, obtaining the customized package includes: and receiving the customized packet pushed by the server.
Therefore, the server actively pushes the customization packet to the electronic equipment, and the aim of actively recommending and installing the APP or updating the APP on the server side is achieved.
In another possible implementation manner, after installing or updating the plurality of application programs, the method further includes: displaying prompt information; the prompt message is used for prompting the user whether the plurality of application programs are installed or updated successfully.
Therefore, the user can determine whether the multiple APPs are installed or updated successfully according to the prompt information displayed by the electronic equipment, and the situation that the user is not clear when the multiple APPs are not installed or updated by the electronic equipment is avoided.
In another possible implementation manner, before obtaining, according to the identifiers of the plurality of application programs, a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs, the method further includes: and screening the identifiers of the plurality of application programs to obtain the identifier of the application program to be installed or upgraded.
Therefore, the APP installed or updated in the electronic equipment included in the customized package is automatically screened by the user or the mobile phone, and the process that the electronic equipment repeatedly obtains the APK is avoided.
In another possible implementation, multiple applications are customized for the same carrier, business, or facilitator, or multiple applications are customized for related applications of different carriers, businesses, or facilitators.
When a plurality of APPs are customized by the same operator, enterprise or service provider, a developer can encapsulate the identifiers of the plurality of APPs in the same customized package so as to install or update the plurality of APPs. Or, when a plurality of relevant APPs are customized by different operators, enterprises or service providers, a developer may encapsulate the identifiers of the plurality of APPs in the same customized package, and may install or update the plurality of relevant APPs at one time.
In a second aspect, an embodiment of the present application provides another processing method for an application, which is applied to a server, and the method includes: sending a customized package to the electronic device; the customized package comprises the identifiers of the plurality of application programs and does not comprise an application program installation package; responding to a third request message sent by the electronic equipment, and inquiring to obtain a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs; a plurality of application installation packages are sent to the electronic device.
Therefore, the customization package does not contain APKs of multiple APPs, the rate of sending the customization package to the electronic equipment by the APP server is improved, and the storage space occupied by the customization package in the electronic equipment is reduced.
In one possible implementation manner, querying, in response to a third request message sent by the electronic device, to obtain a plurality of application installation packages corresponding to the identifiers of the plurality of applications includes: receiving a third request message sent by the electronic equipment, wherein the third request message carries the identifiers of the plurality of application programs; and inquiring to obtain a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs according to the identifiers of the plurality of application programs.
Therefore, the server directly inquires the APKs corresponding to the multiple APPs according to the identifications of the multiple APPs, and does not package the multiple APP installation packages into the customized package, so that the speed of the APP server for sending the customized package to the electronic equipment is improved.
In another possible implementation manner, querying, in response to a third request message sent by the electronic device, to obtain a plurality of application installation packages corresponding to the identifiers of the plurality of applications includes: according to the identifiers of the application programs, inquiring to obtain download paths corresponding to the application programs; sending download paths corresponding to the plurality of application programs to the electronic equipment; receiving a downloading request sent by electronic equipment; the downloading request carries downloading paths corresponding to the plurality of application programs; and inquiring to obtain a plurality of application program installation packages according to the download paths corresponding to the plurality of application programs.
In another possible implementation, multiple applications are customized for the same carrier, business, or facilitator, or multiple applications are customized for related applications of different carriers, businesses, or facilitators.
In a third aspect, the present application provides an electronic device, comprising: one or more processors; a memory; wherein the memory has stored therein one or more computer programs, the one or more computer programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the steps of: obtaining a customized packet; the customization package comprises a plurality of application program identifiers and does not comprise an application program installation package; acquiring a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs according to the identifiers of the plurality of application programs; and installing or updating the plurality of application programs according to the plurality of application program installation packages.
In a fourth aspect, the present application provides a server, comprising: one or more processors; a memory; wherein the memory has stored therein one or more computer programs, the one or more computer programs comprising instructions, which when executed by the server, cause the server to perform the steps of: sending a customized package to the electronic device; the customized package comprises the identifiers of the plurality of application programs and does not comprise an application program installation package; responding to a third request message sent by the electronic equipment, and inquiring to obtain a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs; a plurality of application installation packages are sent to the electronic device.
In a fifth aspect, the present application provides a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the processing method of the application program according to any one of the first aspect, or, when run on a server, cause the server to perform the processing method of the application program according to the first aspect.
In a sixth aspect, the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to execute a processing method of an application program as in any one of the first aspects, or, when run on a server, causes the server to execute a processing method of an application program as in the second aspect.
It is understood that the electronic device, the server, the computer storage medium, and the computer program product provided above are all configured to execute the corresponding methods provided above, and therefore, the beneficial effects achieved by the electronic device, the server, the computer storage medium, and the computer program product may refer to the beneficial effects of the corresponding methods provided above, and are not described herein again.
Drawings
FIG. 1 is a schematic diagram of a customization package provided in the related art;
fig. 2 is a first schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a customized package provided by an embodiment of the present application;
fig. 5 is a first application scenario diagram of a processing method of an application program according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a processing method of an application according to an embodiment of the present application;
fig. 7 is a schematic application scenario diagram ii of a processing method of an application program according to an embodiment of the present application;
fig. 8 is a schematic application scenario diagram three of a processing method of an application program according to an embodiment of the present application;
fig. 9 is a schematic view of an application scenario of a processing method of an application program according to an embodiment of the present application;
fig. 10 is a schematic application scenario diagram of a processing method of an application program according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, the meaning of "a plurality" is two or more unless otherwise specified.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
At present, when an operator (e.g., mobile, telecommunication, etc.), an enterprise, or a service provider customizes APPs according to needs, a developer packages APKs corresponding to all customized APPs into a complete customization package. The APK can be an APK file, and is a file format used by Android for distributing and installing application programs. The APK file may include compiled code files, file resources (e.g., file resources such as audio, video, pictures, etc.), certificates, manifest files, and the like. After the customized packet of the customized APP passes the test, the customized packet passing the test is uploaded to the APP server by the APP manager. Then, the APP server pushes the customization package to the electronic device for installation. For example, after a manufacturer of a mobile phone produces a universal version of the mobile phone, the mobile phone can obtain an operator customized version of the mobile phone (e.g., a mobile customized mobile phone) by installing an APP customized by an operator and some resources in the mobile phone. The APK and resources of the APP related to operator customization are packaged into an independent customization package, and the customization package is called an operator customization package.
For example, as shown in fig. 1, when an operator, an enterprise, or a service provider customizes multiple APPs, the customization package may include all the customized APP files, parameter packages, and resources. For example, the customized package may include all customized APP files such as APP1 and APP2, and all information of the customized APP (e.g., installation path information, parameter information, and the like corresponding to each APP). The customized APP file may include an APK corresponding to the customized APP, and the like.
In the correlation technique, when the customization APP is a plurality of, the developer encapsulates all information of a plurality of customization APPs and the APK that this APP corresponds into a customization package to lead to this customization package to have occupation space big, go out shortcoming such as package cycle length and test cycle length. The package-out period refers to the time consumed by a developer in designing the customized package. The test period refers to the time length for the developer to test the designed customized package. Furthermore, when the electronic device downloads the customized package from the APP server, not only a large amount of downloading time is spent, but also a large amount of memory of the electronic device is occupied by the downloaded customized package.
In addition, among the correlation technique, when installing or upgrading APP in the electronic equipment, can't install or upgrade a plurality of APPs simultaneously, only can install or upgrade APP in proper order to lead to installing or the slow problem of upgrading speed exists when upgrading to a plurality of APPs.
The embodiment of the application provides a processing method of an application program, and the method can obtain a customized package by downloading from an APP server through electronic equipment; the electronic equipment downloads APKs of the multiple APPs from the server according to the multiple APP identifications in the APP list file and installs the APKs of the multiple APPs. Therefore, the APK of the APP is not contained in the customization package, the test period of a developer for testing the customization package is shortened, the speed of downloading the customization package from the APP server by the electronic equipment is increased, and the storage space occupied by the customization package in the electronic equipment is reduced. In addition, the efficiency of installing or updating multiple APPs is improved.
For example, the processing method of the application program provided in the embodiment of the present application may be applied to an application program installation system, where the system includes an electronic device and an APP server, where the electronic device may be a mobile phone, a tablet computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, an in-vehicle device, a smart car, a smart audio device, and other electronic devices having a display screen, and the application embodiment does not limit the electronic devices.
Fig. 2 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure. As shown in fig. 2, wherein the electronic device may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller may be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the interface connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not constitute a limitation on the structure of the electronic device. In other embodiments, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In other embodiments, the power management module 141 may be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The electronic device implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-o led, a quantum dot light-emitting diode (QLED), or the like.
In this embodiment, the display screen 194 of the electronic device may be used to display a prompt message to remind the user of the process of installing the customized package.
The electronic device may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used for performing fourier transform and the like on the frequency point energy.
Video codecs are used to compress or decompress digital video. The electronic device may support one or more video codecs. In this way, the electronic device can play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize applications such as intelligent cognition of electronic equipment, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The electronic device may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. For example, in the embodiment of the present application, the processor 110 may execute instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area.
The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
In the embodiment of the application, the storage data area can be used for storing the customized package downloaded by the electronic device from the APP server. The customization package downloaded from the APP server by the electronic device may be a customization package for first installation of the electronic device, or may be a customization package for updating an APP already installed in the electronic device, which is not limited herein.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic device by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic equipment can support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc.
The software system of the electronic device 100 may employ a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 3 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), upgrade services modules, quiesce installation services modules, and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, composition, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
And the upgrading service module is used for decompressing the customized packet to obtain an APP manifest file after the customized packet is obtained. And then, the upgrading service module downloads the corresponding APK from the APP server according to the identifier of at least one APP in the APP list file.
And the silent installation service module is used for calling the silent installation service interface to simultaneously install the APP according to the APP list file after the upgrade service module downloads the APK of the corresponding version from the APP server.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Therefore, the upgrading service module of the electronic equipment downloads the customized package from the APP server; the customized package comprises an APP list file, the upgrading service module downloads APKs of multiple APPs from the server according to multiple APP identifications in the APP list file, and the silence installation service module installs the APKs of the multiple APPs. Therefore, the test period of the developer for testing the customized package is shortened, the speed of downloading the customized package from the APP server by the electronic equipment is improved, and the storage space occupied by the customized package in the electronic equipment is reduced. In addition, the efficiency of installing or updating multiple APPs is improved.
The technical solutions involved in the following embodiments can be implemented in the electronic device 100 having the above-described hardware structure and software structure. The electronic device 100 is taken as a mobile phone as an example, and the present solution is exemplarily described below.
In a possible case of the embodiment of the present application, when an operator, an enterprise, or a service provider customizes an APP, after the customized APP passes a test, a developer encapsulates a list file of the customized APP in a customized package. And the APP manager uploads the customized packet to the APP server. The APP list file comprises at least one APP identification. Each APP identifier can uniquely identify an APP, and for example, the APP identifier may be a package name of the APP.
In another possible case of the embodiment of the present application, when it is assumed that an APP is installed in a mobile phone or an installed APP in a mobile phone is updated, a developer may encapsulate a manifest file of the APP in a customized package.
It should be explained that the APP list file may include one APP identifier or may include a plurality of APP identifiers, which is not limited herein.
An operator, an enterprise, or a service provider may customize multiple APPs, for example, the same operator, enterprise, or service provider may customize multiple related APPs, or an operator, enterprise, or service provider may customize multiple APPs with each other. In this case, a plurality of APP ids may be included in the APP manifest file of a customized package.
The following takes an example in which the APP list file in the customized package includes a plurality of APP identifiers, and the present scheme is exemplarily described.
For example, as shown in fig. 4, the customized package issued by the APP administrator to the APP server may include an APP manifest file. The APP manifest file may include a plurality of APP identifiers. For example, the APP list file may include 3 APP identifiers, which are APP identifier 1, APP identifier 2, and APP identifier 3.
In addition, the APP list file may further include some other information, such as one or more of the number of APPs, the installation path of each APP, or the size of each APP. The number of the APPs to be installed or updated can be determined. The installation path refers to a specific path of the APP installation to the mobile phone, for example, assuming that a certain APP can be installed under the directory of the System/APP of the mobile phone. I.e., the System/APP is the installation path of the APP. And after the installation path of the APP is used for downloading the APK corresponding to the APP by the mobile phone, the APK is installed to the corresponding installation path. The installation paths of multiple APPs may be the same or different, and are not limited herein. The size of the APP refers to the size of the memory occupied by the APP, for example, the size of the APP is 30M, 50M or 60M, and so on. The size of the APP can indicate that the APP occupies the storage space of the mobile phone. In the embodiment of the application, developers encapsulate the APP manifest file into the customization package, and APP managers publish the customization package to the APP server. Therefore, the storage space of the customization package in the APP server is reduced, the test period of a developer for testing the customization package is shortened, and in addition, the storage space of the customization package in the mobile phone is also saved after the customization package is pushed to the mobile phone end.
In some embodiments, the customized package may be in the form of a customized package image, that is, the customized package is stored in the APP server in a manner of a customized package image. The mirror image is a compressed file format, a developer can make a plurality of files into a mirror image file, and the mirror image file can obtain a plurality of files after being opened through software. For example, a developer may mirror files such as APP manifest files, resources, and parameter packages into a customized package.
The following describes a scenario in which a plurality of APPs are first installed in a mobile phone in detail. Developers can encapsulate APP manifest files in a custom package. The APP list file may include APP identifiers corresponding to multiple APPs. And the APP manager issues the customization packet to the APP server.
In one case, the APP server pushes installation information to the mobile phone, and a display interface of the mobile phone can display prompt information, so that a user can determine whether to install the corresponding APP in the customized package according to the prompt information.
For example, as shown in fig. 5, assuming that the APP list file includes APP identifiers of APP1, APP2, and APP3, the display interface of the mobile phone may display a prompt message "whether to install APP1, APP2, and APP 3". If the operation that the user clicks the 'yes' control is detected, the mobile phone starts to download the customized package from the APP server, so that the 3 APPs are installed.
In another case, the mobile phone may download the customized package from the server in case that the user actively searches for the downloaded customized package.
In the embodiment of the application, the APP server pushes the customized packet to the mobile phone or the mobile phone downloads the customized packet from the APP server, and then the customized packet is stored in the data storage area (data partition). And the upgrading service module decompresses the customized packet to obtain an APP manifest file. Further, the upgrading service module analyzes the APP list file to obtain APP identifications of multiple APPs to be installed. And the upgrading service module acquires APKs corresponding to the APP identifications from the APP server according to the APP identifications. And the silent installation service module of the mobile phone calls the silent installation service interface to install APKs corresponding to the multiple APPs to be installed.
Under a possible condition, when the upgrading service module acquires APKs corresponding to the APP identifications from the APP server according to the APP identifications, the upgrading service module sends the APP identifications to the APP server. After the APP server receives the plurality of APP identifications sent by the upgrading service module, the APP server can obtain the downloading path of the corresponding APP by inquiring according to each APP identification. The APP server sends the download paths corresponding to the multiple APPs to the upgrade service module. And the upgrading service module downloads the APK of the corresponding APP from the APP server according to the download paths corresponding to the multiple APPs.
Under another possible condition, when the upgrading service module acquires the APKs corresponding to the APP identifications from the APP server according to the APP identifications, the upgrading service module sends the APP identifications to the APP server. The APP server can obtain corresponding APKs according to the received multiple APP identification queries. The APP server sends the APKs to the upgrading service module, so that the upgrading service module obtains the APKs corresponding to the APPs.
Therefore, the upgrading service module can acquire APKs corresponding to the APPs from the APP server according to the APP identifications, the silence installation service module simultaneously installs the APKs, and the speed of installing the APPs by the mobile phone is improved.
It should be explained that the APKs of multiple APPs acquired by the upgrade service module include related file resources (e.g., file resources such as pictures, videos, or audios) of the corresponding APPs. Or, the APK does not include the related file resources corresponding to the APP, and when the upgrading service module obtains the APKs corresponding to the multiple APPs, the related file resources corresponding to the APPs are downloaded from the server. Or, the customized package includes multiple APP-related file resources, and the upgrade service module may obtain the multiple APP-related file resources when obtaining the customized package, and the like, which is not limited herein.
In the embodiment of the application, under the scene of updating a plurality of APPs already installed in a mobile phone. When the customized package at the APP server side is updated or a manager uploads a new customized package. After the mobile phone downloads the customization package from the APP server or the APP server pushes the customization package to the mobile phone, the multiple APPs are updated. The process of updating the installed APP in the mobile phone according to the APP list file in the customized package will be described in detail below with reference to fig. 6.
As shown in fig. 6, the update process may include the following steps:
step 601, storing the customized packet to an APP server by an APP manager.
After the customized packages updated by the multiple APPs in the mobile phone are tested to pass, the APP management personnel upload the customized packages to the APP server for storage. The list file of the customized package comprises a plurality of APP identifications so as to update versions of a plurality of APPs in the mobile phone. The multiple APPs may be associated APPs (for example, APPs of the same operator, or APPs of cooperating operators, etc.), or may be multiple APPs independent of each other.
Step 602, the upgrade service module sends a package searching request to the APP server.
In some embodiments, the upgrade service module of the mobile phone may send the package search request to the APP server when the mobile phone is powered on, or may send the package search request to the APP server periodically (for example, the period may be 8 hours, 12 hours, and the like) after the mobile phone is powered on, which is not limited herein.
Step 603, the APP server detects that the server side has a new version of the customized package, and pushes the new version of the customized package to the data storage area.
After the APP server receives the package searching request, the APP server detects whether the customized package on the server side has a new version. The APP server determines that a new version of the customized package exists, and the APP server sends the new version of the customized package to the storage data area of the mobile phone.
In one possible case, the upgrade service module is started when the mobile phone is networked for the first time. And after the upgrading service module is started, sending a package searching request to the APP server. The APP server determines that the server side has a new version of the customized package according to the package searching request, and the APP server sends the new version of the customized package to the data partition of the mobile phone. The first networking of the mobile phone can be the first networking after the mobile phone is started, the second networking after the mobile phone network is disconnected, and the like.
In another possible case, if the mobile phone is always in the networking state, the upgrade service module may send a packet search request to the APP server every preset time interval (for example, the preset time is 12 hours, 24 hours, or the like). The APP server determines that the server side has the new version customization package, and the APP server pushes the new version customization package to the data partition of the mobile phone. The preset duration is preset by a mobile phone manufacturer. For example, when a mobile phone manufacturer produces a mobile phone, the preset time period is set to be 12 hours in a system of the mobile phone.
It should be explained that, when the system version of the mobile phone is upgraded, the mobile phone manufacturer can reset the preset duration in the system of the new version. For example, if the originally set preset duration is 12 hours, the mobile phone manufacturer may set the preset duration to be 12 hours, or may set the preset durations to be 8 hours, 15 hours, 24 hours, and the like, which is not limited herein.
In some embodiments, the upgrade service module sends a package search request to the APP server, and after the APP server receives the package search request sent by the upgrade service module, the APP server detects whether the customized package on the server side has a new version. The APP server determines that the server side has a new version of the customized package. The mobile phone prompts the user that the APP server side has the new version customized package through an interface (for example, a display interface or a setting interface), so that the user determines whether to update the APP according to the prompt information of the interface.
In other embodiments, after the customized package on the APP server side is updated, the APP server may also actively push the updated customized package to the mobile phone.
For example, as shown in fig. 7, a prompt identifier (such as an exclamation mark) is displayed at a system and an update part of a setting interface of a mobile phone to remind a user that a new version of the customized package exists on the APP server side. The user clicks the prompt identifier, the mobile phone responds to the clicking operation of the user, and the display interface of the mobile phone displays prompt information 'whether to download the customized package' so that the user can determine whether to download the updated customized package.
As shown in fig. 8, the display interface of the mobile phone displays a prompt message "whether to download the customized package". And if the operation that the user clicks the 'yes' control is detected, the mobile phone starts to download the customized package from the APP server so as to update the version of the APP in the mobile phone.
In some embodiments, when the upgrade service module determines that the APP server side has the customized package with the new version, the display interface of the mobile phone may further display a prompt message "whether to update automatically next time" so that the upgrade service module detects that the APP server side has the customized package with the new version, and whether to update the customized package is not required to be authorized by the user, and the upgrade service module may automatically update the customized package.
As shown in fig. 9, the display interface of the mobile phone displays a prompt message "whether to update automatically next time". If the operation that the user clicks the 'yes' control is detected, the upgrading service module of the mobile phone can automatically update the customization package when the upgrading service module detects that the APP server side has the customization package with the new version again. Or after the APP server side has the customization package of the new version, the APP server side automatically pushes the customization package of the new version to the mobile phone. If the operation that the user clicks the 'no' control is detected, the upgrading service module of the mobile phone detects that the APP server side has the new version customized package again, and the display interface of the mobile phone still needs to display the prompt message shown in fig. 8. And when the operation that the user clicks the 'yes' control is detected, the mobile phone starts to download the new version of the customized package from the APP server.
It should be explained that the upgrade service module of the mobile phone may periodically (for example, the detection period may be 12 hours, 24 hours, 48 hours, and the like) detect whether the APP server detects that there is a new version of the customized package, may also detect whether the APP server detects that there is a new version of the customized package when the mobile phone is powered on, and the like, which is not limited herein.
Step 604, the upgrade service module decompresses the customized packet and parses the APP manifest file to obtain a plurality of APP identifiers to be updated. After the customized packet is stored in the storage data area of the mobile phone, the upgrading service module decompresses the customized packet to obtain an APP list file, and analyzes the APP list file to obtain a plurality of APP identifications to be updated.
In the embodiment of the application, after the upgrading service module obtains a plurality of to-be-updated APP identifications, the upgrading service module sends the plurality of APP identifications to the APP server. And the APP server sends the corresponding APK to the upgrading service module according to the identification of each APP. After the upgrading service module receives APKs corresponding to a plurality of to-be-updated APPs sent by the APP server, the silent installation service module of the mobile phone calls the silent installation service interface to install the APKs corresponding to the plurality of APPs. Therefore, the multiple APPs of the mobile phone can be updated simultaneously, and the rate of updating the multiple APPs is improved.
Step 605, the APP server obtains a corresponding APK according to the multiple APP identifiers to be updated.
Under a possible condition, after the APP server receives a plurality of to-be-updated APP identifications sent by the upgrading service module, the APP server can obtain the download paths of the corresponding APPs according to each APP identification. And the APP server sends the download path corresponding to each APP to the upgrading service module. And the upgrading service module downloads the APK of the corresponding APP from the APP server according to the download path corresponding to each APP.
For example, assuming that the APP identifier is a package name, the APP server receives package names of 3 APPs to be updated, and the package names of the 3 APPs are package name 1, package name 2, and package name 3, respectively. The APP server inquires and obtains corresponding download paths which are respectively path 1, path 2 and path 3 according to the packet names of the 3 APPs. The APP server sends the download paths corresponding to the 3 APPs to the upgrade service module. And the upgrading service module downloads the APK of the corresponding APP from the APP server according to the received download path corresponding to each APP. Namely, the upgrade service module downloads the APK of the APP with the package name 1 from the path 1, the upgrade service module downloads the APK of the APP with the package name 2 from the path 2, and the upgrade service module downloads the APK of the APP with the package name 3 from the path 3.
Therefore, compared with the existing method that a plurality of APKs of the APP to be updated and related resources of the APPs are packaged into the customization package by developers, the upgrading service module has the problems of large occupied space of the customization package, long downloading time and the like when the customization package is downloaded from the APP server, and the speed of downloading the customization package from the APP server by the mobile phone is slow. In the embodiment of the application, after the upgrading service module acquires the download paths of the multiple APPs from the server according to the multiple APP identifications, the upgrading service module downloads the APP from the APP server according to the download paths of the APPs to obtain the corresponding APK. Therefore, the speed of downloading the customized packet from the APP server by the upgrading service module is improved, and the storage space occupied by the customized packet in the mobile phone is reduced.
In another possible case, after the APP server receives a plurality of APP identifiers to be updated sent by the upgrade service module, the APP server may also query to obtain a corresponding APK according to the identifier of each APP. And the APP server sends the APK of each APP obtained by query to the upgrading service module. Therefore, the upgrading service module obtains the corresponding APK from the APP server according to the plurality of APP identifications to be updated, and the rate of obtaining the APK of the APP to be updated by the upgrading service module is improved.
For example, assume that 3 APP identities received by the APP server, such as 3 APP package names, and the package names of the 3 APPs are package name 1, package name 2, and package name 3, respectively. And the APP server inquires and obtains a corresponding APK according to the 3 APP packet names. The APP server sends the APKs corresponding to the 3 APPs to the upgrade service module.
It should be explained that, the APP server stores the corresponding relationship between the APP identifier and the download path and/or the APK of the APP. For example, if the APP identifier is the package name of the APP, the APP server may query for the corresponding download path and/or APK according to the package name of the APP.
Step 606, the silent installation service module calls the silent installation service interface to install the APKs corresponding to the multiple APPs.
In some embodiments, the silent installation service module of the mobile phone may update the multiple APPs in installation paths of the multiple APPs included in the APP manifest file. After the silent installation service module of the mobile phone completes installation of the APPs to be updated, the mobile phone can display prompt information on the notification management interface so as to remind a user that the mobile phone completes updating of the plurality of APPs.
For example, as shown in fig. 10, after the mobile phone completes installation of multiple APPs to be updated, the mobile phone may display a prompt message "APP update complete" on the notification management interface to remind the user that the mobile phone has completed updating the multiple APPs.
It should be noted that the display modes in fig. 5 and fig. 7 to fig. 10 are only examples, and the prompt information may be displayed at any position such as the upper side, the lower side, the left side, and the right side of the display interface of the mobile phone, which is not limited herein. In addition, the prompting mode of displaying the prompting information in the display interface of the mobile phone is only used as an exemplary description, and a prompting sound and other modes can be adopted to prompt the user, which is not limited herein.
It should be explained that, under the condition that the APP is installed for the first time or the installed APP in the mobile phone is updated, after the upgrade service module acquires the identifiers of the multiple APPs in the customized package, the upgrade service module may filter the identifiers of the multiple APPs to obtain the identifier of the application program to be installed or to be upgraded. For example, the customized packet includes the identifier of APP-1, but the user or the mobile phone detects that the APP-1 application is already installed in the mobile phone. In this case, the upgrade service module may screen out the APP-1 identifier. Also for example, the customized packet includes the identifier of APP-2, but the handset detects that the application corresponding to APP-2 is already the latest version of application. In this case, the upgrade service module may screen out the APP-2 identifier.
In addition, when the APP list file of the customized package includes an identifier of a common APP, the scheme of the present application may also be applied to installation or upgrade of a common APP, for example, the common APP may beOrAnd the like, without limitation.
To sum up, in the embodiment of the present application, after the upgrade service module simultaneously downloads the APKs of multiple APPs from the server according to multiple APP identifiers in the APP list file in the customized package, the silence installation service module installs the APKs of multiple APPs. From this, not only improved the speed of downloading the customization package from the APP server, can also install or update a plurality of APPs simultaneously, solved among the prior art if when installing or updating a plurality of APPs, can only install or update an APP at every turn, there is the slow problem of installation or update rate, improved the installation or the update rate of a plurality of APPs.
Compared with the existing customization package which comprises the related resources of the customization APP and the corresponding APK, the customization package of the application comprises the list file of the customization APP and does not comprise the APK of the customization APP, so that not only is the test period of the customization package tested by developers, but also the download rate of the customization package is improved, and the storage space occupied by the customization package in the mobile phone is reduced.
In addition, the customization package in the embodiment of the application is not limited to customizing the APP, and may also customize other resources, such as customizing audio (e.g., a power-on ring tone, etc.), video, pictures, and the like. In this case, the customization package may include a resource list of the customized resource, where the resource list may include information such as an identification, a size, and a download path of the resource. The developer packages the resource list of the customized resource into the customized package, does not package the original resource into the customized package, and uploads the customized package to the server side. When the mobile phone downloads the resource, the corresponding resource information can be downloaded from the server side according to the identifier or the download path of the resource. Therefore, the storage space of the customized packet at the mobile phone end is reduced, and the packet output period and the test period of the customized packet are shortened.
As shown in fig. 11, an embodiment of the present application discloses an electronic device, which may be the above-mentioned mobile phone. The electronic device may specifically include: a touch screen 1101, the touch screen 1101 including a touch sensor 1106 and a display screen 1107; one or more processors 1102; a memory 1103; one or more application programs (not shown); and one or more computer programs 1104, which may be connected by one or more communication buses 1105. Wherein the one or more computer programs 1104 are stored in the memory 1103 and configured to be executed by the one or more processors 1102, the one or more computer programs 1104 comprise instructions that can be used to perform the relevant steps in the above embodiments.
It is to be understood that the above-mentioned terminal and the like include hardware structures and/or software modules corresponding to the respective functions for realizing the above-mentioned functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
In the embodiment of the present application, the terminal and the like may be divided into functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only one logic function division, and another division manner may be available in actual implementation.
Embodiments of the present application also provide an electronic device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors for storing computer program code comprising computer instructions which, when executed by the one or more processors, cause the electronic device to perform the associated method steps described above to implement the processing method of the application program in the embodiments described above.
Embodiments of the present application further provide a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed on an electronic device, the electronic device is caused to execute the above related method steps to implement the processing method of the application program in the above embodiments.
Embodiments of the present application further provide a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the processing method of the application program executed by the electronic device in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the apparatus runs, the processor can execute the computer execution instructions stored by the memory, so that the apparatus executes the processing method of the application program executed by the electronic device in the above method embodiments.
In addition, the electronic device, the computer-readable storage medium, the computer program product, or the apparatus provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer-readable storage medium, the computer program product, or the apparatus can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, in essence or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (17)
1. An application program processing method applied to an electronic device is characterized by comprising the following steps:
obtaining a customized packet; the customization package comprises a plurality of application program identifiers and does not comprise an application program installation package;
acquiring a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs according to the identifiers of the plurality of application programs;
and installing or updating the plurality of application programs according to the plurality of application program installation packages.
2. The method according to claim 1, wherein the obtaining a plurality of application installation packages corresponding to the identifiers of the plurality of applications according to the identifiers of the plurality of applications comprises:
sending a first request message to a server; wherein, the first request message carries the identifiers of the plurality of application programs;
receiving download paths of the plurality of application programs, which are sent by the server and correspond to the identifications of the plurality of application programs;
and sending a downloading request to the server, wherein the downloading request carries the downloading paths corresponding to the plurality of application programs.
3. The method according to claim 1, wherein the obtaining a plurality of application installation packages corresponding to the identifiers of the plurality of applications according to the identifiers of the plurality of applications comprises:
sending a second request message to the server; wherein, the second request message carries the identifiers of the plurality of application programs;
and receiving a plurality of application program installation packages which are respectively corresponding to the identifiers of the plurality of application programs and are sent by the server.
4. The method of any of claims 1-3, wherein the customization package further includes installation paths for the plurality of applications, and wherein installing or updating the plurality of applications according to the plurality of application installation packages comprises:
and installing or updating the plurality of application programs according to the installation paths corresponding to the plurality of application programs.
5. The method of any of claims 1-3, wherein the obtaining the customization package comprises:
sending a packet searching request to the server;
and acquiring the customized packet sent by the server.
6. The method of any of claims 1-3, wherein the obtaining the customization package comprises:
and receiving the customization packet pushed by the server.
7. The method according to any one of claims 1-3, wherein after installing or updating the plurality of applications, further comprising:
displaying the prompt information; the prompt information is used for prompting the user whether the plurality of application programs are installed or updated successfully.
8. The method according to any one of claims 1-3, wherein before obtaining the plurality of application installation packages corresponding to the identifiers of the plurality of applications according to the identifiers of the plurality of applications, further comprising:
and screening the identifiers of the plurality of application programs to obtain the identifier of the application program to be installed or upgraded.
9. A method according to any of claims 1-3, wherein the plurality of applications are customized for the same operator, business or facilitator, or wherein the plurality of applications are related applications customized for different operators, businesses or facilitators.
10. A processing method of an application program is applied to a server, and is characterized by comprising the following steps:
sending the customized packet to the electronic device; the customization package comprises the identifiers of a plurality of application programs and does not comprise an application program installation package;
responding to a third request message sent by the electronic equipment, and inquiring to obtain a plurality of application program installation packages corresponding to the identifiers of the plurality of application programs;
sending the plurality of application installation packages to the electronic device.
11. The method of claim 10, wherein querying for a plurality of application installation packages corresponding to the identities of the plurality of applications in response to a third request message sent by the electronic device comprises:
receiving a third request message sent by the electronic device, wherein the third request message carries the identifiers of the plurality of application programs;
and inquiring to obtain the plurality of application program installation packages corresponding to the identifiers of the plurality of application programs according to the identifiers of the plurality of application programs.
12. The method of claim 10, wherein querying for a plurality of application installation packages corresponding to the identities of the plurality of applications in response to a third request message sent by the electronic device comprises:
according to the identifiers of the application programs, inquiring to obtain download paths corresponding to the application programs;
sending download paths corresponding to the plurality of application programs to the electronic equipment;
receiving a downloading request sent by the electronic equipment; the downloading request carries downloading paths corresponding to the plurality of application programs;
and inquiring to obtain the plurality of application program installation packages according to the download paths corresponding to the plurality of application programs.
13. The method of any of claims 10-12, wherein the plurality of applications are customized for the same carrier, business, or facilitator, or wherein the plurality of applications are related applications customized for different carriers, businesses, or facilitators.
14. An electronic device, comprising:
one or more processors;
a memory;
wherein the memory has stored therein one or more computer programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the processing method of the application program of any one of claims 1-9.
15. A server, comprising:
one or more processors;
a memory;
wherein the memory has stored therein one or more computer programs comprising instructions which, when executed by the server, cause the server to carry out the method of processing of an application program according to any one of claims 10-13.
16. A computer-readable storage medium having instructions stored therein, which when run on an electronic device, cause the electronic device to perform the processing method of the application program according to any one of claims 1 to 9, or which when run on a server, cause the server to perform the processing method of the application program according to any one of claims 10 to 13.
17. A computer program product, characterized in that it comprises computer instructions which, when run on an electronic device, cause the electronic device to execute the processing method of an application according to any one of claims 1 to 9, or which, when run on a server, cause the server to execute the processing method of an application according to any one of claims 10 to 13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110943570.4A CN114443117B (en) | 2021-08-17 | 2021-08-17 | Custom package processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110943570.4A CN114443117B (en) | 2021-08-17 | 2021-08-17 | Custom package processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114443117A true CN114443117A (en) | 2022-05-06 |
CN114443117B CN114443117B (en) | 2023-08-22 |
Family
ID=81362521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110943570.4A Active CN114443117B (en) | 2021-08-17 | 2021-08-17 | Custom package processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114443117B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115291919A (en) * | 2022-10-10 | 2022-11-04 | 荣耀终端有限公司 | Packet searching method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6392997B1 (en) * | 1999-03-16 | 2002-05-21 | Cisco Technology, Inc. | Technique for group-based routing update with limited per neighbor/adjacency customization |
CN109471653A (en) * | 2018-09-29 | 2019-03-15 | 百度在线网络技术(北京)有限公司 | Update method, electronic equipment, server and the storage medium of application program |
CN110442327A (en) * | 2018-05-03 | 2019-11-12 | 阿里巴巴集团控股有限公司 | A kind of application builds method, apparatus, server |
CN112612493A (en) * | 2020-12-24 | 2021-04-06 | 广州视源电子科技股份有限公司 | Software upgrading method, device, equipment and storage medium for software set |
CN112835610A (en) * | 2019-11-25 | 2021-05-25 | 华为终端有限公司 | Method and device for constructing application program resource package and terminal equipment |
CN112988213A (en) * | 2021-04-13 | 2021-06-18 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
-
2021
- 2021-08-17 CN CN202110943570.4A patent/CN114443117B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6392997B1 (en) * | 1999-03-16 | 2002-05-21 | Cisco Technology, Inc. | Technique for group-based routing update with limited per neighbor/adjacency customization |
CN110442327A (en) * | 2018-05-03 | 2019-11-12 | 阿里巴巴集团控股有限公司 | A kind of application builds method, apparatus, server |
CN109471653A (en) * | 2018-09-29 | 2019-03-15 | 百度在线网络技术(北京)有限公司 | Update method, electronic equipment, server and the storage medium of application program |
CN112835610A (en) * | 2019-11-25 | 2021-05-25 | 华为终端有限公司 | Method and device for constructing application program resource package and terminal equipment |
CN112612493A (en) * | 2020-12-24 | 2021-04-06 | 广州视源电子科技股份有限公司 | Software upgrading method, device, equipment and storage medium for software set |
CN112988213A (en) * | 2021-04-13 | 2021-06-18 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115291919A (en) * | 2022-10-10 | 2022-11-04 | 荣耀终端有限公司 | Packet searching method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN114443117B (en) | 2023-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022089207A1 (en) | Cross-device application interaction method, electronic device, and server | |
CN114461239B (en) | Software upgrading system and software upgrading method | |
CN112527301B (en) | Method for realizing application plug-in and electronic equipment | |
WO2021073337A1 (en) | Method and apparatus for installing plug-in, and storage medium | |
CN112860445B (en) | Method and terminal for sharing data between fast application and native application | |
CN113254409A (en) | File sharing method, system and related equipment | |
CN115309431B (en) | Parameter updating method, readable medium and electronic equipment | |
CN112817634B (en) | COTA package downloading method and device | |
CN113868635A (en) | Application data transmission method, terminal and system | |
CN113485709B (en) | Application optimization method and device and electronic equipment | |
CN115438354A (en) | User privacy protection method and device | |
CN114443117B (en) | Custom package processing method and electronic equipment | |
CN113608753A (en) | Application uninstalling method, application recovery method, electronic device and storage medium | |
CN114816463A (en) | Upgrade prompting method, terminal device and computer readable storage medium | |
WO2022111664A1 (en) | Patching method, related apparatus, and system | |
CN116795435A (en) | Compatibility management and control method and related equipment | |
CN113254132A (en) | Application display method and related device | |
CN113467821A (en) | Application program repairing method, device, equipment and readable storage medium | |
CN117971305B (en) | Upgrading method of operating system, server and electronic equipment | |
WO2024131823A1 (en) | Installation-free application upgrading method and electronic device | |
CN117707563B (en) | Application resource processing method and related equipment | |
CN117707562B (en) | Parameter updating method and terminal equipment | |
CN117009023B (en) | Method for displaying notification information and related device | |
CN117729561B (en) | System upgrading method, terminal and storage medium | |
CN117724825B (en) | Interface display method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |