CN114443117B - Custom package processing method and electronic equipment - Google Patents
Custom package processing method and electronic equipment Download PDFInfo
- Publication number
- CN114443117B CN114443117B CN202110943570.4A CN202110943570A CN114443117B CN 114443117 B CN114443117 B CN 114443117B CN 202110943570 A CN202110943570 A CN 202110943570A CN 114443117 B CN114443117 B CN 114443117B
- Authority
- CN
- China
- Prior art keywords
- package
- app
- customized
- server
- application program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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 a custom package processing method and electronic equipment, which relate to the technical field of terminals, and can reduce the size of the custom package and the storage space occupied by the custom package in the electronic equipment, shorten the test period of the custom package and improve the efficiency of installing a plurality of application programs in the electronic equipment. The method comprises the following steps: acquiring a custom package; the customization package comprises identifiers of a plurality of application programs, does not comprise an application program installation package, acquires 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, and installs or updates the plurality of application programs 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 a custom package and an electronic device.
Background
With the development of electronic devices, various application programs (APP) are endless, so that users can process many things on the electronic devices through the APP, and convenience is provided for the users. An operator or enterprise may customize some personalized APPs. A developer may package relevant resources (e.g., pictures, audio, video, etc.) of an APP customized by an operator or enterprise and a corresponding installation package (APK) into one custom package. After the customized APP passes the test, the APP manager uploads the customized package passing the test to the APP server. Then, the APP server pushes the custom package to the electronic device for installation.
Because the custom package comprises relevant resources of the custom APP, APK and other information, when the electronic equipment downloads the custom package from the APP server for upgrading, the problems of low upgrading speed, large occupied space of the custom package and the like exist.
Disclosure of Invention
The embodiment of the application provides a processing method of a custom package and electronic equipment, wherein the custom package can be obtained through the electronic equipment; the customization package comprises a plurality of APP identifiers, and the electronic equipment downloads APKs of the plurality of APPs from the server according to the APP identifiers and installs the APKs of the plurality of APPs. Therefore, the custom package does not contain APKs of a plurality of APPs, but the corresponding APKs are obtained by downloading from the server according to the identifiers of the APPs in the custom package, so that the size of the custom package is reduced, the speed of downloading the custom package from the APP server by the electronic equipment is improved, and the storage space occupied by the custom package in the electronic equipment is reduced. Meanwhile, the efficiency of installing a plurality of APP by the electronic equipment is improved.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for processing a custom package, which is applied to an electronic device, and the method includes: acquiring a custom package; the customization package comprises identifiers of a plurality of application programs, 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 custom package does not contain APKs of a plurality of APPs, but the electronic equipment downloads the corresponding APKs from the server according to the identifiers of the APPs in the custom package, so that the size of the custom package is reduced, the speed of the electronic equipment downloading the custom package from the APP server is improved, and the storage space occupied by the custom package in the electronic equipment is reduced. Meanwhile, the efficiency of installing a plurality of APP by the electronic equipment is improved.
In one possible implementation manner, according to the identifiers of the plurality of applications, acquiring 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 a plurality of application programs corresponding to the identifiers of the plurality of application programs, wherein the download paths are sent by a server; sending a downloading request to a server; the downloading request carries downloading paths corresponding to a plurality of application programs.
Therefore, after the electronic equipment acquires the download paths corresponding to the APP identifications from the server according to the identifications of the APP identifications, the corresponding APP installation packages are downloaded from the server according to the download paths, and are not packaged into the custom package, so that the size of the custom package is reduced, the speed of the electronic equipment for downloading the custom package from the APP server is improved, and the storage space occupied by the custom package in the electronic equipment is reduced.
In another possible implementation manner, according to the identifiers of the plurality of applications, acquiring a plurality of application installation packages corresponding to the identifiers of the plurality of applications 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 sent by the server and respectively correspond to the identifiers of the plurality of application programs.
Therefore, the electronic device acquires the application program installation packages from the server according to the identifications of the application programs, and the efficiency of acquiring the application program installation packages is improved. In addition, a plurality of APP installation packages are not packaged into the custom package, so that the size of the custom package is reduced, the speed of downloading the custom package from an APP server by electronic equipment is increased, and the storage space occupied by the custom package in the electronic equipment is reduced.
In another possible implementation, the customization package further includes an installation path 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.
Therefore, the plurality of APP installation packages are installed on the corresponding installation paths, the process of acquiring the installation paths of the application programs is avoided, and the installation or update efficiency of the plurality of APP is improved.
In another possible implementation, obtaining the custom package includes: sending a packet searching request to a server; and acquiring the custom package sent by the server.
Therefore, the electronic equipment can actively send a package searching request to the server for the first time or 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, obtaining the custom package includes: and receiving the customized package pushed by the server.
Therefore, the server actively pushes the custom package to the electronic equipment, and the purpose that the server side actively recommends to install the APP or update the APP 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 information is used for prompting the user whether the plurality of application programs are installed or updated successfully.
Therefore, a user can determine whether the plurality of APP are installed or updated successfully according to the prompt information displayed by the electronic equipment, and the situation that the electronic equipment does not install or update the plurality of APP but the user is not clear is avoided.
In another possible implementation manner, before acquiring the plurality of application installation packages corresponding to the identifiers of the plurality of applications according to the identifiers of the plurality of applications, the method further includes: and screening the identifiers of the plurality of application programs to obtain the identifiers of the application programs to be installed or upgraded.
Therefore, the user or the mobile phone automatically screens out the APP which is already installed or updated in the electronic equipment included in the custom package, and the electronic equipment is prevented from repeatedly acquiring the APK.
In another possible implementation, multiple applications are customized for the same carrier, enterprise, or server, or multiple applications are related applications customized for different carriers, enterprises, or servers.
When multiple APP's are customized by the same operator, enterprise or service provider, a developer can package the identifiers of the multiple APP's in the same customization package, so as to realize installation or update of the multiple APP's. Or when multiple related APP are customized by different operators, enterprises or service providers, the developer can also package the identifications of the multiple APP in the same customization package, and can install or update the multiple related APP at one time.
In a second aspect, an embodiment of the present application provides another method for processing a custom package, applied to a server, where the method includes: sending a custom package to the electronic device; the custom package comprises 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; a plurality of application installation packages are sent to the electronic device.
Therefore, the custom package does not contain APKs of a plurality of APPs, so that the rate of sending the custom package to the electronic equipment by the APP server is increased, and the storage space occupied by the custom package in the electronic equipment is reduced.
In one possible implementation manner, in response to a third request message sent by the electronic device, querying 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 identifiers of a 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 and obtains APKs corresponding to the plurality of APPs according to the identifiers of the plurality of APPs, and the plurality of APP installation packages are not packaged into the custom package, so that the rate of sending the custom package to the electronic equipment by the APP server is improved.
In another possible implementation manner, in response to a third request message sent by the electronic device, querying to obtain a plurality of application installation packages corresponding to the identifiers of the plurality of applications includes: inquiring to obtain download paths corresponding to the plurality of application programs according to the identifications of the plurality of application programs; transmitting download paths corresponding to a plurality of application programs to the electronic equipment; receiving a downloading request sent by electronic equipment; the downloading request carries downloading paths corresponding to a plurality of application programs; and inquiring to obtain a plurality of application program installation packages according to the corresponding download paths of the plurality of application programs.
In another possible implementation, multiple applications are customized for the same carrier, enterprise, or server, or multiple applications are related applications customized for different carriers, enterprises, or servers.
In a third aspect, the present application provides an electronic device comprising: one or more processors; a memory; wherein the memory stores one or more computer programs, the one or more computer programs comprising instructions that, when executed by the electronic device, cause the electronic device to perform the steps of: acquiring a custom package; the customization package comprises identifiers of a plurality of application programs, 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 stores one or more computer programs, the one or more computer programs comprising instructions that, when executed by the server, cause the server to perform the steps of: sending a custom package to the electronic device; the custom package comprises 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; 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 method of processing a custom package as in any of the first aspects, or which, when run on a server, cause the server to perform the method of processing a custom package as in the first aspect.
In a sixth aspect, the application provides a computer program product for causing an electronic device to perform the method of processing a custom package as in any of the first aspects, when the computer program product is run on the electronic device, or for causing a server to perform the method of processing a custom package as in the second aspect, when the computer instructions are run on the server.
It will be appreciated that the electronic device, the server, the computer storage medium, and the computer program product provided above are all configured to perform the corresponding methods provided above, and thus, the advantages achieved by the electronic device, the server, the computer storage medium, and the computer program product may refer to the advantages in the corresponding methods provided above, and are not described herein.
Drawings
FIG. 1 is a schematic illustration of a custom package provided in the related art;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of an electronic device according to a second embodiment of the present application;
FIG. 4 is a schematic diagram of a custom package according to an embodiment of the present application;
fig. 5 is a schematic diagram of an application scenario of a method for processing a custom package according to an embodiment of the present application;
FIG. 6 is a flow chart of a method for processing custom packages according to an embodiment of the present application;
fig. 7 is a second application scenario schematic diagram of a method for processing a custom package according to an embodiment of the present application;
fig. 8 is a third application scenario schematic diagram of a method for processing a custom package according to an embodiment of the present application;
fig. 9 is a schematic diagram of an application scenario of a method for processing a custom package according to an embodiment of the present application;
fig. 10 is a schematic diagram of an application scenario of a method for processing a custom package 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 accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Currently, when an operator (e.g., mobile, telecom, etc.), an enterprise or a service provider customizes APPs according to requirements, developers pack APKs corresponding to all of the APPs customized into a complete customization package. The APK may be an APK file, which is a file format of Android for distributing and installing an application program. 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 custom package of the custom APP is tested, the custom package passing the test is uploaded to the APP server by an APP manager. Then, the APP server pushes the custom package to the electronic device for installation. For example, after a manufacturer of the mobile phone produces a mobile phone with a general version, an APP customized by an operator and some resources are installed in the mobile phone to obtain a mobile phone with a customized version of the operator (e.g., a mobile customized mobile phone, etc.). Wherein the APK and resources of the APP related to the operator subscription are packaged into a separate subscription package, which is called an operator subscription package.
For example, as shown in FIG. 1, when an operator, enterprise, or server subscribes to a plurality of APPs, the subscription package may include all of the subscription APP files, parameter packages, and resources. For example, the custom package may include all custom APP files such as APP1 and APP2, and all information of the custom APPs (such as installation path information, parameter information, and the like corresponding to each APP), and the like. The customized APP file may include an APK corresponding to the customized APP, and the like.
In the related art, when the number of the customized APP is multiple, a developer packages all information of the multiple customized APP and APK corresponding to the APP into one customized package, so that the customized package has the defects of large occupied space, long package discharging period, long test period and the like. The package-out period refers to the time spent by a developer in designing a custom package. The test period refers to the duration of time that the developer tests the designed custom package. Furthermore, when the electronic device downloads the custom package from the APP server, a large amount of download time is spent, and the downloaded custom package occupies a large amount of memory of the electronic device.
In addition, in the related art, when installing or upgrading the APP in the electronic device, a plurality of APPs cannot be installed or upgraded at the same time, and only the APPs can be installed or upgraded in sequence, so that the problem that the installation or upgrading rate is slow when the APPs are installed or upgraded is caused.
The embodiment of the application provides a processing method of a custom package, which can obtain the custom package by downloading from an APP server through electronic equipment; the customization package comprises an APP list file, and the electronic equipment downloads APKs of a plurality of APPs from the server according to a plurality of APP identifications in the APP list file and installs the APKs of the plurality of APPs. Therefore, the custom package does not contain the APK of the APP, so that the test period of a developer for testing the custom package is shortened, the speed of downloading the custom package from the APP server by the electronic equipment is increased, and the storage space occupied by the custom package in the electronic equipment is reduced. In addition, the efficiency of installing or updating a plurality of APP is improved.
The method for processing the custom package according to the embodiment of the present application may be applied to an application 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 (personal computer, PC), a personal digital assistant (personal digital assistant, PDA), a smart watch, a netbook, a wearable electronic device, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, a vehicle-mounted device, a smart car, a smart stereo, and other electronic devices with display screens, which are not limited in this embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. As shown in fig. 2, the electronic device may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
It is to be understood that the configuration illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus. In other embodiments, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the 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 the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device. In other embodiments, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive 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 for connecting the battery 142, and the charge 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 configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge 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, a modem processor, a baseband processor, and the like.
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
In the embodiment of the present application, 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 custom package.
The electronic device may implement shooting functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize 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 the 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 onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. 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 other digital signals besides digital image signals. For example, when the electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
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 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of electronic devices can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The electronic device may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. 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 a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american 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 including 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 an embodiment of the present application, the processor 110 may include a storage program area and a storage data area by executing instructions stored in the internal memory 121.
The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device (e.g., audio data, phonebook, etc.), and so forth. 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 (universal flash storage, UFS), and the like.
In the embodiment of the application, the storage data area can be used for storing the custom package downloaded by the electronic equipment from the APP server. The custom package downloaded by the electronic device from the APP server may be a custom package for first installation of the electronic device, or may be a custom 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, etc. The keys 190 may be mechanical keys. Or may be a touch key. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device. The electronic device may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively. The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire 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 such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, 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, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of 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. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), upgrade service module, silent install service module, etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
And the upgrade service module is used for decompressing the custom package to obtain the APP manifest file after the custom package is obtained. And then, the upgrade service module downloads the corresponding APK from the APP server according to the identification 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 install the APP at the same time according to the APP list file after the update 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.
Thus, the upgrade service module of the electronic equipment downloads the customization package from the APP server; the customization package comprises an APP list file, and the silent installation service module installs the APKs of the APPs after the upgrade service module downloads the APKs of the APPs from the server according to the APPs in the APP list file. Therefore, the testing period of testing the custom package by the developer is shortened, the speed of downloading the custom package from the APP server by the electronic equipment is increased, and the storage space occupied by the custom package in the electronic equipment is reduced. In addition, the efficiency of installing or updating a plurality of APP is improved.
The technical solutions involved in the following embodiments may be implemented in the electronic device 100 having the above-described hardware structure and software structure. The present embodiment will be described by way of example using the electronic device 100 as a mobile phone.
In one possible scenario of an embodiment of the present application, when an operator, enterprise or server customizes an APP, after the customized APP is tested, a developer encapsulates the manifest file of the customized APP in a customization package. And the APP manager uploads the custom package to an APP server. Wherein the APP manifest file comprises at least one APP identity. Each APP identity can uniquely identify an APP, e.g., the APP identity can be the package name of the APP.
In another possible scenario of the embodiment of the present application, the developer may package the manifest file of the APP in a custom package, assuming that the APP is installed in the handset or updated from the APP installed in the handset.
It should be noted that the APP manifest file may include one APP identifier or may include a plurality of APP identifiers, which is not limited herein.
An operator, enterprise or service provider may customize multiple APPs, such as by customizing multiple related APPs with the same operator, enterprise or service provider, by customizing multiple APPs with co-operating operators, enterprises or service providers, etc. In this case, multiple APP identities may be included in the APP manifest file of one custom package.
The following describes an exemplary scenario by taking an APP manifest file in a custom package including a plurality of APP identifiers as an example.
For example, as shown in FIG. 4, a custom package issued by an APP manager to an APP Server may include an APP manifest file. Wherein the APP manifest file may comprise a plurality of APP identities. If the APP manifest file may include 3 APP identifications, APP identification 1, APP identification 2 and APP identification 3, respectively.
In addition, the APP manifest 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, etc. The APP number can be determined to be installed or updated. The installation path refers to a specific path for an APP to be installed to a handset, for example, assuming that a certain APP can be installed under the directory of the System/APP of the handset. I.e. System/APP is the installation path for the APP. And after the APK corresponding to the APP is downloaded by the mobile phone, the APK is installed on the corresponding installation path. The installation paths of the APP may be the same or different, and are not limited herein. The size of APP refers to the size of memory occupied by APP, for example, the size of 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, a developer packages an APP manifest file into a custom package, and an APP manager publishes the custom package to an APP server. Therefore, the storage space of the custom package in the APP server is reduced, the test period of a developer for testing the custom package is shortened, and in addition, after the custom package is pushed to the mobile phone end, the storage space of the custom package in the mobile phone is also saved.
In some embodiments, the custom package may specifically be in the form of a custom package image, i.e., the custom package is stored in the APP server in the form of a custom package image. The image is in a compressed file format, and a developer can make a plurality of files into an image file, and the image file can be obtained after being opened through software. For example, a developer may make files such as APP manifest files, resources, and parameter packages into custom package images.
The following describes in detail the scenario where a mobile phone first installs a plurality of APPs. The developer can package the APP manifest file in a custom package. The APP manifest file may include APP identifiers corresponding to a plurality of APPs. The APP manager publishes the custom package to the APP Server.
In one case, the APP server pushes the installation information to the mobile phone, and the display interface of the mobile phone can display the prompt information, so that the user determines whether to install the APP corresponding to the custom package according to the prompt information.
For example, as shown in fig. 5, assuming that APP identifiers of APP1, APP2, and APP3 are included in the APP manifest file, the display interface of the mobile phone may display a prompt message "whether APP1, APP2, and APP3 are installed. If the operation that the user clicks the yes control is detected, the mobile phone starts to download the installation package from the APP server so as to install the 3 APPs.
In another case, the mobile phone can download the custom package from the server in case the user actively searches for the download custom package.
In the embodiment of the application, after the APP server pushes the custom package to the mobile phone or downloads the custom package from the APP server, the custom package is stored in a storage data area (data partition). And the upgrade service module decompresses the custom package to obtain an APP manifest file. Further, the upgrade service module analyzes the APP list file to obtain APP identifiers of a plurality of APPs to be installed. And the upgrade service module acquires APKs corresponding to the APP identifiers from the APP server according to the APP identifiers. And the silent installation service module of the mobile phone calls a silent installation service interface to install APKs corresponding to the plurality of APPs to be installed.
In one possible case, when the upgrade service module obtains APKs corresponding to the APP identifications from the APP server according to the APP identifications, the upgrade service module sends the APP identifications to the APP server. After the APP server receives the plurality of APP identifications sent by the upgrade service module, the APP server can inquire and obtain a downloading path of the corresponding APP according to each APP identification. And the APP server sends the download paths corresponding to the APPs to the upgrade service module. And the upgrade service module downloads APKs corresponding to the APPs from the APP server according to the download paths corresponding to the APPs.
In another possible case, when the upgrade service module obtains APKs corresponding to the APP identifications from the APP server according to the APP identifications, the upgrade 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. And the APP server sends the APKs to the upgrade service module so that the upgrade service module obtains the APKs corresponding to the APKs.
Therefore, the upgrade service module can acquire APKs corresponding to a plurality of APPs from the APP server according to the plurality of APP identifications, and the silent installation service module installs the APKs simultaneously, so that the rate of installing the APPs by the mobile phone is improved.
It should be explained that, the APKs of the APP acquired by the upgrade service module include related file resources (e.g., file resources such as pictures, videos or audios) corresponding to the APP. Or, the APK does not include the relevant file resources corresponding to the APPs, and when the upgrade service module obtains the APKs corresponding to the APPs, the relevant file resources corresponding to the APPs are downloaded from the server. Or, the customization package includes related file resources of a plurality of APPs, the upgrade service module may obtain related file resources of a plurality of APPs when obtaining the customization package, and the like, which is not limited herein.
In the embodiment of the application, the method and the device are used for updating a plurality of APP installed in the mobile phone. In case of a custom package update at the APP server side or a manager uploading a new custom package. The mobile phone downloads the custom package from the APP server or the APP server pushes the custom package to the mobile phone and updates a plurality of APP. The process of updating the installed APP in the handset based on the APP manifest file in the custom package is described in detail below in connection with fig. 6.
As shown in fig. 6, the update process may include the steps of:
in step 601, an APP manager stores a custom package to an APP server.
After the custom package used for updating a plurality of APP in the mobile phone passes the test, the APP manager uploads the custom package to the APP server for storage. The customized package list file contains a plurality of APP identifiers so as to update versions of a plurality of APPs in the mobile phone. The APP may be an associated APP (for example, APP of the same operator, APP of operators cooperating with each other, or the like), or may be a plurality of APPs independent of each other.
In step 602, the upgrade service module sends a packet search request to the APP server.
In some embodiments, the upgrade service module of the mobile phone may send the packet search request to the APP server when the mobile phone is turned on, or may send the packet search request to the APP server periodically (for example, the period may be 8 hours, 12 hours, etc.) after the mobile phone is turned on, which is not limited herein.
In step 603, the app server detects that the server side has a new version of the custom package, and pushes the new version of the custom package to the storage data area.
After the APP server receives the packet searching request, the APP server detects whether the custom packet at the server side has a new version or not. The APP server determines that the new version of the custom package exists, and sends the new version of the custom package to a storage data area of the mobile phone.
In one possible scenario, the upgrade service module is started when the handset is first networked. After the upgrade service module is started, a packet searching request is sent to the APP server. And the APP server determines that the server side has a new version of custom package according to the package searching request, and sends the new version of custom 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 predetermined time period (for example, the predetermined time period is 12 hours, 24 hours, etc.). The APP server determines that a new version of custom package exists on the server side, and pushes the new version of custom package to the data partition of the mobile phone. The preset duration is preset by a mobile phone manufacturer. For example, when a handset manufacturer produces a handset, a preset duration is set to 12 hours in a system of the handset.
It should be explained that, when the system version of the mobile phone is updated, the manufacturer of the mobile phone can reset the preset duration in the new version of the system. For example, if the preset duration originally set is 12 hours, the handset manufacturer may set the preset duration to be still 12 hours, or may set the preset duration to be 8 hours, 15 hours, 24 hours, or the like, which is not limited herein.
In some embodiments, the upgrade service module sends a package searching request to the APP server, and after the APP server receives the package searching request sent by the upgrade service module, the APP server detects whether the custom package at the server side has a new version. The APP server determines that the server side has a new version of custom package. The mobile phone prompts the user that the APP server side has a new version of custom package through an interface (such as a display interface or a setting interface) so that the user can determine whether to update the APP according to the prompting information of the interface.
In other embodiments, after the custom package on the APP server side is updated, the APP server may also actively push the updated custom package to the mobile phone.
For example, as shown in fig. 7, the system and the update department of the setting interface of the mobile phone may display a prompt identifier (such as an exclamation mark) to remind the user that the APP server side has a new version of custom package. The user clicks the prompt identifier, and the mobile phone responds to the clicking operation of the user, and the display interface of the mobile phone displays prompt information of 'whether to download the custom package', so that the user determines whether to download the updated custom package.
As shown in fig. 8, the display interface of the mobile phone displays a prompt message "whether to download the custom package". If the user is detected to click the yes control, the mobile phone starts downloading the custom 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 a new version of the custom package, the display interface of the mobile phone may further display a prompt message "whether to update automatically next", so that the upgrade service module detects that the APP server side has the new version of the custom package, and does not need to authorize whether to update the custom package by the user, and the upgrade service module may update the custom package automatically.
As shown in fig. 9, the display interface of the mobile phone displays a prompt message "whether to update automatically next time". If the user is detected to click the 'Yes' control, the upgrade service module of the mobile phone can automatically update the custom package when detecting that the APP server side has the new version custom package again. Or after the APP server side has the new version of custom package, the APP server side automatically pushes the new version of custom package to the mobile phone. If the user clicking the no control is detected, the upgrade service module of the mobile phone detects that the new version of the custom package exists on the APP server side again, and the display interface of the mobile phone still needs to display the prompt information shown in fig. 8. And detecting the operation of clicking the 'Yes' control by the user, and downloading the new version of custom package from the APP server by the mobile phone.
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, etc.) detect whether there is a new version of the custom package on the APP server side, or detect whether there is a new version of the custom package on the APP server side when the mobile phone is started, etc., which is not limited herein.
In step 604, the upgrade service module decompresses the custom package and parses the APP manifest file to obtain a plurality of APP identifiers to be updated. After the custom package is stored in the storage data area of the mobile phone, the upgrade service module decompresses the custom package to obtain an APP list file, and analyzes the APP list file to obtain a plurality of APP identifiers to be updated.
In the embodiment of the application, after the upgrade service module acquires a plurality of APP identifiers to be updated, the upgrade service module sends the APP identifiers to the APP server. And the APP server sends the corresponding APK to the upgrade service module according to the identification of each APP. After the upgrade service module receives the APKs corresponding to the 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 method and the device realize that a plurality of APP of the mobile phone are updated at the same time, and improve the rate of updating the APP.
In step 605, the APP server obtains a corresponding APK according to a plurality of APP identifiers to be updated.
In a possible case, after the APP server receives a plurality of APP identifications to be updated sent by the upgrade service module, the APP server may query and obtain a download path of a corresponding APP according to each APP identification. And the APP server sends the download path corresponding to each APP to the upgrade service module. And the upgrade 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 package names of 3 APPs to be updated received by the APP server are package name 1, package name 2, and package name 3, respectively. And the APP server inquires and obtains corresponding download paths which are respectively a path 1, a path 2 and a path 3 according to the packet names of the 3 APPs. And the APP server sends the download paths corresponding to the 3 APPs to the upgrade service module. And the upgrade service module downloads the APK corresponding to the APP from the APP server according to the received download path corresponding to each APP. That is, 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 prior art that developers package the APK of the APP to be updated and related resources of the APP into the custom package, the problem that the custom package occupies a large space and is long in downloading time exists when the upgrade service module downloads the custom package from the APP server is solved, and accordingly the mobile phone downloads the custom package from the APP server at a low speed. In the embodiment of the application, after the upgrade service module obtains the downloading paths of a plurality of APPs from the server according to the identifiers of the APPs, the upgrade service module downloads the corresponding APKs from the APP server according to the downloading paths of the APPs. Therefore, the rate of downloading the custom package from the APP server by the upgrade service module is increased, and the storage space occupied by the custom package in the mobile phone is reduced.
In another possible case, after the APP server receives the plurality of APP identifications to be updated sent by the upgrade service module, the APP server may further query to obtain a corresponding APK according to the identification of each APP. And the APP server sends the APK of each APP obtained by query to the upgrade service module. Therefore, the upgrading service module obtains the corresponding APK by inquiring 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, such as 3 APP packet names, are received by the APP server, and that the packet names of the 3 APPs are packet name 1, packet name 2, and packet name 3, respectively. And the APP server queries and obtains corresponding APKs according to the 3 APP packet names. And the APP server sends APKs corresponding to the 3 APPs to the upgrade service module.
It should be explained that the APP server stores the correspondence between the APP identifier and the APP download path and/or APK. For example, if the identifier of the APP is the packet name of the APP, the APP server may query to obtain a corresponding download path and/or APK according to the packet name of the APP.
In step 606, the silent installation service module invokes a silent installation service interface to install APKs corresponding to the APP.
In some embodiments, the silent installation service module of the mobile phone may update the plurality of APPs in an installation path of the plurality of APPs included in the APP manifest file. After the silent installation service module of the mobile phone completes the installation of the APP 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 has completed updating the APP.
For example, as shown in fig. 10, after the mobile phone completes the installation of the APP to be updated, the mobile phone may display a prompt message "APP update complete" on the notification management interface, so as to remind the user that the mobile phone has completed updating the APP to be updated.
It should be noted that the display modes in fig. 5 and fig. 7 to fig. 10 are merely examples, and the prompt information may be displayed at any position such as the upper side, the lower side, the left side, the right side, etc. 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 the user can be prompted by adopting modes such as prompting voice, and the method is not limited herein.
It should be explained that, when the mobile phone installs the APP for the first time or updates the APP already installed in the mobile phone, after the upgrade service module obtains the identifiers of the plurality of APPs in the custom package, the upgrade service module may screen the identifiers of the plurality of APPs to obtain the identifier of the application program to be installed or to be upgraded. For example, the subscription package includes an identification of APP-1, but the user or handset detects that the application of APP-1 has been installed in the handset. In this case, the upgrade service module may screen out the identity of APP-1. Also for example, the subscription package includes an identification of APP-2, but the handset detects that the application to which APP-2 corresponds is already the most current version of the application. In this case, the upgrade service module may screen out the identity of APP-2.
In addition, when the APP manifest file of the custom 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 beOr->Etc., without limitation herein.
In summary, in the embodiment of the present application, after the upgrade service module downloads APKs of a plurality of APPs from the server according to a plurality of APP identifiers in the APP manifest file in the custom package, the silent installation service module installs the APKs of the plurality of APPs. Therefore, the speed of downloading the custom package from the APP server is improved, a plurality of APPs can be installed or updated simultaneously, the problem that in the prior art, if a plurality of APPs are installed or updated, only one APP can be installed or updated each time, the installation or update speed is slow is solved, and the installation or update speed of the plurality of APPs is improved.
Compared with the existing custom package comprising relevant resources of the custom APP and corresponding APKs, the custom package comprises the manifest file of the custom APP, and does not comprise the APKs of the custom APP, so that a developer tests the test period of the custom package, the download rate of the custom package is improved, and the storage space occupied by the custom package in a mobile phone is reduced.
In addition, the customization package in the embodiment of the application is not limited to customizing the APP, and other resources such as audio (for example, starting bell sound and the like), video, pictures and the like can be customized. In this case, the custom package may include a resource list of the custom resource, where the resource list may include information such as an identification, a size, and a download path of the resource. The developer encapsulates the resource list of the customized resource into a customized package, does not encapsulate 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 identification or the download path of the resource. Therefore, the storage space of the custom package at the mobile phone end is reduced, and the package discharging period and the test period of the custom package are shortened.
As shown in fig. 11, the embodiment of the application discloses an electronic device, which may be the 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 applications (not shown); and one or more computer programs 1104, each of which may be connected via 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 include instructions that can be used to perform the relevant steps in the embodiments described above.
It will be appreciated that the above-described terminal, etc. may comprise hardware structures and/or software modules that perform the respective functions in order to achieve the above-described 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 implemented as hardware or computer software driven 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 embodiments of the present application.
The embodiment of the application can divide the functional modules of the terminal and the like according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
The embodiment of the application also provides electronic equipment which comprises one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more memories being configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the related method steps described above to implement the method of processing a custom package in the embodiments described above.
Embodiments of the present application also provide a computer-readable storage medium having stored therein computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method for processing a custom package in the above-described embodiments.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the above-described related steps to implement the method for processing custom packages executed by an electronic device in the above-described embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be embodied as a chip, component or module, which may include a processor and a memory coupled to each other; the memory is configured to store computer-executable instructions, and when the apparatus is running, the processor may execute the computer-executable instructions stored in the memory, so that the apparatus executes the processing method of the custom package executed by the electronic device in each method embodiment.
The electronic device, the computer readable storage medium, the computer program product or the apparatus provided in this embodiment are configured to execute the corresponding method provided above, and therefore, the advantages achieved by the electronic device, the computer readable storage medium, the computer program product or the apparatus can refer to the advantages in the corresponding method provided above, which are not described herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The functional units in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application 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 (7)
1. A method for processing a custom package, applied to an electronic device, the method comprising:
when the electronic equipment is networked for the first time, sending a packet searching request to a server; when the electronic equipment is in a networking state, sending a packet searching request to a server at intervals of preset time length, wherein the preset time length is preset by a manufacturer of the electronic equipment;
acquiring a customized package sent by the server based on the package searching request; the customization package comprises identifiers of a plurality of application programs, the number of the application programs, installation paths of the application programs and resource lists of a plurality of customization resources; and the custom package does not include an application installation package; wherein the plurality of applications and the plurality of customized resources are customized for the same operator, enterprise, or server, or the plurality of applications are customized for related applications and customized resources of different operators, enterprises, or servers; the customized resource comprises audio, video and pictures, and the resource list comprises a resource identifier and a resource size of the customized resource;
displaying first prompt information corresponding to the customized package; the first prompt message is used for inquiring whether the user installs the application program in the customized package or not, and the first prompt message comprises the application program name of the application program in the customized package; the first prompt message comprises a first control, and the first control is used for indicating to install the application program in the custom package;
Responding to the operation of the first control, and screening the identification of the application program in the customized package to obtain the identification of the application program to be installed; the screening the identification of the application program in the custom package comprises the following steps: if the first application is detected to be installed in the electronic equipment, screening the identification of the first application;
sending a request message to the server; the request message carries the identification of the application program to be installed and the resource identification of the customized resource;
receiving an application program installation package to be installed and resource information of the customized resource, wherein the application program installation package to be installed and the resource information of the customized resource correspond to the identification of the application program to be installed respectively, and are sent by the server;
and calling a silent installation service interface according to the application program installation package to be installed, simultaneously installing the application program to be installed according to the installation path corresponding to the application program to be installed, and storing the resource information of the customized resource.
2. The method of claim 1, wherein after the installing the application to be installed, further comprising:
displaying second prompt information; the second prompting information is used for prompting a user whether the application program to be installed is successfully installed or not.
3. A method for processing a custom package, applied to a server, the method comprising:
receiving a packet searching request from electronic equipment; the package searching request is sent by the electronic equipment when the electronic equipment is first connected with the network, or is sent by the electronic equipment in a networking state at intervals of preset time length, wherein the preset time length is preset by a manufacturer of the electronic equipment;
sending a custom package to the electronic device based on the package searching request; the customization package comprises identifiers of a plurality of application programs, the number of the application programs, installation paths of the application programs and resource lists of a plurality of customization resources; and the custom package does not include an application installation package; wherein the plurality of applications and the plurality of customized resources are customized for the same operator, enterprise, or server, or the plurality of applications are customized for related applications and customized resources of different operators, enterprises, or servers; the customized resource comprises audio, video and pictures, and the resource list comprises a resource identifier and a resource size of the customized resource;
Receiving a request message sent by the electronic equipment, wherein the request message carries an identifier of an application program to be installed and a resource identifier of the customized resource; the identification of the application program to be installed comprises the following steps: the electronic equipment screens out identifiers of the application programs which are not installed in the electronic equipment from the identifiers of the application programs;
inquiring to obtain a plurality of application program installation packages and resource information of the customized resources, wherein the application program installation packages correspond to the identification of the application program to be installed, according to the identification of the application program to be installed and the resource identification of the customized resources;
and sending the plurality of application program installation packages and the resource information of the customized resources to the electronic equipment, wherein the application program installation packages and the resource information of the customized resources are used for the electronic equipment to call a silent installation service interface to install the plurality of application programs simultaneously, and the electronic equipment stores the resource information of the customized resources.
4. 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 method of processing custom packages as claimed in claim 1 or 2.
5. A server, comprising:
one or more processors;
a memory;
wherein the memory stores one or more computer programs, the one or more computer programs comprising instructions that, when executed by the server, cause the server to perform the method of custom package processing of claim 3.
6. A computer-readable storage medium having instructions stored therein, which when run on an electronic device cause the electronic device to perform the method of processing a custom package according to claim 1 or 2, or which when run on a server cause the server to perform the method of processing a custom package according to claim 3.
7. A computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of processing a custom package according to claim 1 or 2, or which, when run on a server, cause the server to perform the method of processing a custom package according to claim 3.
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 CN114443117A (en) | 2022-05-06 |
CN114443117B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115291919B (en) * | 2022-10-10 | 2023-03-24 | 荣耀终端有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN114443117A (en) | 2022-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114461239B (en) | Software upgrading system and software upgrading method | |
CN114428618A (en) | Cross-device application interaction method, electronic device and server | |
CN112527301B (en) | Method for realizing application plug-in and electronic equipment | |
CN112860445B (en) | Method and terminal for sharing data between fast application and native application | |
WO2021073337A1 (en) | Method and apparatus for installing plug-in, and storage medium | |
CN112817634B (en) | COTA package downloading method and device | |
CN115309431B (en) | Parameter updating method, readable medium and electronic equipment | |
CN114443117B (en) | Custom package processing method and electronic equipment | |
CN112817610B (en) | Cota package installation method and related device | |
CN114915618B (en) | Upgrade package downloading method and device | |
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 | |
CN114168237A (en) | Theme pack adaptation method and device | |
CN113254132B (en) | Application display method and related device | |
CN117971305B (en) | Upgrading method of operating system, server and electronic equipment | |
CN113467821A (en) | Application program repairing method, device, equipment and readable storage medium | |
CN117009023B (en) | Method for displaying notification information and related device | |
CN117729561B (en) | System upgrading method, terminal and storage medium | |
WO2024131823A1 (en) | Installation-free application upgrading method and electronic device | |
CN117707562B (en) | Parameter updating method and terminal equipment | |
CN117707563B (en) | Application resource processing method and related equipment | |
CN116719556B (en) | System upgrading method and electronic equipment | |
CN117111965B (en) | Application program installation method, electronic device and readable storage medium | |
CN116048629B (en) | System service switching method, control device, electronic equipment and storage medium | |
CN118677771A (en) | Upgrading method, upgrading system, upgrading server and storage medium for terminal parameter configuration |
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 |