CN112119378A - Application installation method and terminal - Google Patents

Application installation method and terminal Download PDF

Info

Publication number
CN112119378A
CN112119378A CN201880093405.0A CN201880093405A CN112119378A CN 112119378 A CN112119378 A CN 112119378A CN 201880093405 A CN201880093405 A CN 201880093405A CN 112119378 A CN112119378 A CN 112119378A
Authority
CN
China
Prior art keywords
terminal
application
installation package
information
market
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201880093405.0A
Other languages
Chinese (zh)
Inventor
徐顺海
李英伟
陈磊
张皓然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN112119378A publication Critical patent/CN112119378A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

The application provides an application installation method and a terminal, relates to the technical field of communication, and is beneficial to reducing the number of software versions of ROM images, reducing the workload of mobile phone manufacturers for developing and maintaining the software versions, and being beneficial to directly allocating the terminal to other target delivery markets, wherein the method comprises the following steps: the terminal detects the starting operation and starts up; if the terminal is started for the first time, acquiring information of a target delivery market where the terminal is located; the information of the destination shipping market includes: any one or more of the country where the terminal is located, the operator where the terminal is located, and the region where the terminal is located; the terminal stores an installation package of a first application and an installation package of a second application; the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal; the first application target delivers an application corresponding to the market; and the terminal deletes the installation package of the second application, wherein the second application is not the application corresponding to the target delivery market.

Description

Application installation method and terminal Technical Field
The present application relates to the field of communications technologies, and in particular, to an application installation method and a terminal.
Background
With the increasingly competitive smart phone market, mobile phone manufacturers also pay more attention to the global market. Generally, for reasons such as different network standards of operators in different countries, different relevant laws in different countries, different usage habits of consumers in different regions, etc., a mobile phone manufacturer needs to store or install some different contents for a mobile phone in advance according to a target delivery market (including different regions, different countries and different operators), for example: different applications and different resources such as pictures, videos, files and the like in the applications. That is, even pre-stored or installed content on the same model of handset by the same handset manufacturer may be different.
In the prior art, a mobile phone manufacturer may package an installation package of a mobile phone operating system and an application that needs to be stored or installed in advance into a Read Only Memory (ROM) image (image), that is, a copy of data recorded in a ROM chip. Obviously, even if the mobile phone is of the same model, mobile phone manufacturers need to develop, release and maintain ROM images of different versions for different target delivery markets, that is, the number of software versions of the ROM images is large, the workload of the mobile phone manufacturers is large, and the labor cost is high.
Then, in the production process of the mobile phone, a mobile phone manufacturer burns the ROM mirror image of the version corresponding to the target delivery market into the mobile phone (i.e. writes the ROM mirror image of the version corresponding to the target delivery market into the storage space of the mobile phone), so that the mobile phone can install a mobile phone operating system according to the ROM mirror image, and install pre-installed application and pre-installed resources corresponding to the target delivery market. Since the mobile phone has written the ROM image of the version corresponding to the destination shipping market, when the destination shipping market is changed, the written mobile phone cannot be directly deployed to a new shipping market.
In summary, the above prior art increases the workload of mobile phone manufacturers, and is not conducive to the circulation of mobile phones between different target delivery markets.
Disclosure of Invention
According to the application installation method and the terminal, the number of the software versions of the ROM images can be reduced, the workload of terminal manufacturers for developing and maintaining the software versions is favorably reduced, and the terminal is favorably and directly allocated to other target delivery markets.
In a first aspect, the present application provides an application installation method, including:
the terminal detects a starting operation; responding to the starting operation detected by the terminal, and starting the terminal; if the terminal is started for the first time, the terminal acquires information of a target delivery market where the terminal is located; wherein the information of the destination shipping market includes: any one or more of the country where the terminal is located, the operator where the terminal is located, and the region where the terminal is located; the terminal stores an installation package of a first application and an installation package of a second application; the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal; the first application target is an application corresponding to a delivery market, and the first application is at least one; and the terminal automatically deletes the installation package of the second application, wherein the second application is not the application corresponding to the target delivery market.
It should be noted that, the first startup of the terminal in the embodiment of the present application refers to the first power-on after the terminal leaves the factory, and is not included in the production phase of the terminal, and a production line worker starts the terminal when performing power-on detection. In the production phase of the terminal, the terminal may be power-on detected by, for example, inserting a special SIM card. When the terminal detects a special SIM card, the process of automatically installing the preinstalled application in the embodiment of the present application is not executed.
It can be seen that the terminal stores all the pre-installed applications of the destination shipping market. That is, the terminal manufacturer may prepare a common ROM image version that contains all of the targeted delivery markets' pre-installed applications in a region (including at least two targeted delivery markets). The method is beneficial to reducing the workload of developing and maintaining the software version of the terminal manufacturer.
Furthermore, since the terminal stores the pre-installed applications of all the destination shipping markets, the terminal can be deployed from one destination shipping market to another directly after shipment.
In a possible implementation manner, the acquiring, by the terminal, information of the destination delivery market in which the terminal is located includes: the terminal sends a terminal identification to the first server; the terminal receives information of a target delivery market corresponding to the terminal identifier sent by the first server; or the terminal reads the mobile country code MCC and the mobile network code MNC in the country mobile subscriber identity IMSI from the subscriber identity module SIM of the terminal, and the information of the target delivery market is determined; or when the radio frequency network of the terminal is communicated, the terminal calls the interface to acquire the information of the service provider, and the information of the target delivery market is determined; or the terminal calls Google mobile service GMS to acquire the geographic position and/or the national information of the terminal and determine the information as the information of the target delivery market; or the terminal displays a first interface, and the first interface is used for prompting the user to input a target delivery market where the terminal is located; and the terminal determines the target delivery market where the terminal is positioned and input in the first interface by the user as the target delivery market.
It should be noted that the terminal may select any one or any several of the above manners to acquire the target delivery market information, and may also sequentially acquire the target delivery market information according to a certain priority order.
In a possible implementation manner, the automatically installing, by the terminal, the first application according to the obtained information of the destination delivery market includes: the terminal determines an application identifier corresponding to the first application according to the acquired information of the target delivery market; the terminal determines an installation package of the first application according to the application identifier corresponding to the first application; the terminal installs the first application using the installation package of the first application.
In a possible implementation manner, after the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal, the method further includes: the terminal displays an icon of the first application on the desktop.
In a possible implementation manner, the deleting, by the terminal, the installation package of the second application includes: after the terminal is in the first preset time period, the terminal automatically starts to delete the installation package of the second application; or the terminal displays a second interface, wherein the second interface is used for inquiring whether the user deletes the installation package of the second application; the terminal detects the operation of deleting the installation package of the second application by the user; the terminal starts to delete the installation package of the second application; or after the terminal detects that the terminal executes the operation system upgrade or clears the storage space, the terminal starts to delete the installation package of the second application.
In a possible implementation manner, before the terminal deletes the installation package of the second application, the method further includes: the terminal writes in an operation to be executed when the terminal is in a first working mode; the operation to be executed when the terminal is in the first working mode comprises that the terminal deletes the installation package of the second application; the first working mode is a working mode that the terminal modifies data in the storage space and/or modifies the terminal operating system; and the terminal is restarted and enters a first working mode.
In a possible implementation manner, a first partition in a storage space of the terminal is used for storing an installation package of a first application and an installation package of a second application, and a second partition in the storage space of the terminal is used for storing data; the first partition is adjacent to the second partition; after the terminal deletes the installation package of the second application, the method further includes: the terminal calculates the file size of the installation package of the first application to determine the size of the modified first partition; wherein the modified size of the first partition is smaller than the size of the first partition; the terminal moves the installation package of the first application to one side, which is not adjacent to the second partition, of the first partition; the terminal modifies the address table of the first partition; the terminal modifies the address table of the second partition; the modified second partition comprises a storage space which does not store the installation package of the first application in the first partition after the movement; the terminal is powered off or restarted again.
In a possible implementation manner, after the terminal automatically installs the first application according to the obtained information of the destination delivery market, the method further includes: the terminal sends a list of the first application to the second server.
In a second aspect, a method for installing an application is provided, where the method includes:
the terminal detects a starting operation; responding to the starting operation detected by the terminal, and starting the terminal; if the terminal is started for the first time, the terminal reads a mobile country code MCC and a mobile network code MNC in a national mobile subscriber identity (IMSI) from a Subscriber Identity Module (SIM) of the terminal and determines the information of a target delivery market; wherein the information of the destination shipping market includes: any one or more of the country where the terminal is located, the operator where the terminal is located, and the region where the terminal is located; the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal; the first application target is an application corresponding to the delivery market, and the first application is at least one application.
In a possible implementation manner, the terminal further stores an installation package of a second application, and the second application is not an application corresponding to the target delivery market; the method further comprises the following steps: and after the terminal detects that the terminal executes the operation system upgrade or clears the storage space, the terminal automatically deletes the installation package of the second application.
A third aspect is a terminal, comprising: a processor, a memory and a touch screen, the memory and the touch screen being coupled to the processor, the memory being adapted to store computer program code, the computer program code comprising computer instructions that, when read from the memory by the processor, perform the method as described in the first aspect and any one of its possible implementations.
A fourth aspect is a terminal, comprising: a processor, a memory and a touch screen, the memory and the touch screen being coupled to the processor, the memory being adapted to store computer program code comprising computer instructions which, when read by the processor from the memory, are adapted to perform the method as described in the second aspect and any of its possible implementations.
A fifth aspect, a computer storage medium, comprising computer instructions which, when run on a terminal, cause the terminal to perform the method as described in the first aspect and any one of its possible implementations.
A sixth aspect is a computer storage medium comprising computer instructions which, when run on a terminal, cause the terminal to perform the method as described in the second aspect and any one of its possible implementations.
A seventh aspect, a computer program product, which, when run on a computer, causes the computer to perform the method as described in the first aspect and any one of its possible implementations.
An eighth aspect, a computer program product, which, when run on a computer, causes the computer to perform the method as described in the second aspect and any one of its possible implementations.
Drawings
Fig. 1 is a first schematic structural diagram of a terminal according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 3 is a schematic diagram of an installation method of an application in a terminal according to an embodiment of the present application;
fig. 4A is a first composition form of a preassembled package according to an embodiment of the present disclosure;
fig. 4B is a second composition form of a preassembled package according to the present embodiment;
fig. 4C is a third composition form of a preassembled package according to the present embodiment;
fig. 5 is a first flowchart illustrating an application installation method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of some terminal interfaces provided by embodiments of the present application;
fig. 7 is a second flowchart illustrating an application installation method according to an embodiment of the present application;
FIG. 8 is a schematic illustration of further terminal interfaces provided in accordance with embodiments of the present application;
fig. 9 is a schematic diagram illustrating a method for dividing a storage space in a terminal according to an embodiment of the present application;
fig. 10 is a schematic diagram of timings for starting recovery of storage space by several terminals according to an embodiment of the present application;
fig. 11 is a schematic flowchart of a method for recovering a terminal storage space according to an embodiment of the present application;
FIG. 12 is a schematic diagram of further terminal interfaces provided in an embodiment of the present application;
fig. 13 is a schematic diagram of a method for recovering a storage space by a terminal according to an embodiment of the present application.
Detailed Description
First, in order to better understand the technical solutions provided by the embodiments of the present application, some terms related to the embodiments of the present application are described.
Pre-installation application: the terminal leaves the factory and is provided with a self-bring or a third-party flashing channel to be stored in advance or installed in the terminal for application, and the non-user downloads the installed application. In the embodiment of the application, the terminal stores the installation package of the application after production is completed, and when a user powers on the terminal for the first time, the terminal automatically installs the application.
Pre-installing resources: some resources such as pictures, videos, music, files and the like related to the application are pre-installed.
Pre-installing an installation package: namely, the installation package corresponding to the pre-installed application.
Pre-installing partitions: in the embodiment of the application, in the production stage of the terminal, the pre-installed installation package is written into the storage space of the terminal. The area for storing the preinstalled installation package in the terminal storage space is the preinstalled partition.
In consideration of the fact that in the prior art, a terminal manufacturer needs to develop and maintain ROM images of different versions to bring a large amount of workload, according to the technical solution provided by the embodiment of the present application, as shown in fig. 3, the terminal manufacturer can provide a common ROM image version for different target shipping markets. The common ROM image version contains pre-installed contents of all destination consignments, or the common ROM image version contains pre-installed contents of all destination consignments in a certain area (including at least two destination consignments). The target delivery market refers to a market in which a terminal sales destination is located, and includes, for example: a certain region, a certain country or a certain operator of a certain country, etc. The pre-installed content comprises an operating system installation package, an installation package of pre-installed applications, and resources such as pictures, videos, music and files related to the pre-installed applications.
For example, the target delivery market includes market a and market B, and the pre-installed content is taken as the pre-installed application for illustration. Market a requires the installation of pre-installed applications, application 1, application 2 and application 3, and market B requires the installation of pre-installed applications, application 1 and application 4. Then the common ROM image version contains installation packages for application 1, application 2, application 3 and application 4.
In the prior art, in a production stage of a terminal, a terminal manufacturer needs to write a corresponding ROM image version into the terminal according to a destination shipping market, so that the terminal is called a customized product of the destination shipping market, and further the terminal cannot be directly deployed to other destination shipping markets, and the terminal needs to change contents stored in the terminal to be deployed. However, in the embodiment of the present application, as still shown in fig. 3, the terminal manufacturer burns the common ROM image version into the terminal at the production stage of the terminal. In this case, the terminal includes the pre-installed contents of all destination shipping markets or the pre-installed contents of all destination shipping markets in a certain area. Therefore, the terminal can be directly deployed from one target delivery market to another target market after being shipped from the factory.
In this embodiment, subsequently, with reference to fig. 3, after the terminal reaches the target delivery market, the user presses the power key, the terminal is powered on (i.e. the terminal is powered on for the first time), and the terminal may obtain relevant information of the target delivery market, for example: and selecting and installing the pre-installed content corresponding to the target delivery market from the pre-installed contents according to the relevant information in the country where the target delivery market is located. In other embodiments of the present application, the terminal may delete pre-installed content that does not need to be installed (i.e., pre-installed content that does not belong to the target delivery market), so as to recycle the corresponding storage space. Specific implementations of this process are described in detail below.
For example, the terminal in the present application may be a mobile phone, a tablet Computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable terminal, an Augmented Reality (AR) device, a Virtual Reality (VR) device, and the like, where applications may be installed.
Fig. 1 is a block diagram of a terminal 100 according to an embodiment of the present invention.
The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a radio frequency module 150, a 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 194, a SIM card interface 195, and the like. The sensor module may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The illustrated structure of the embodiment of the present invention does not limit the terminal 100. It may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a Neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a decision maker directing the various components of the terminal 100 to work in concert as instructed. Are the neural center and the command center of the terminal 100. The controller generates an operation control signal according to the instruction operation code and the time sequence 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 is a cache memory that may hold instructions or data that have just been used or recycled by the processor. If the processor needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses and reducing the latency of the processor, thereby increasing the efficiency of the system.
In some embodiments, the processor 110 may include an interface. 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.
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 may receive charging input from a wired charger via a USB interface. In some wireless charging embodiments, the charging management module may receive a wireless charging input through a wireless charging coil of the terminal 100. The charging management module can also supply power to the terminal device through the power management module 141 while charging the battery.
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 receives the input of the battery and/or the charging management module and supplies power to the processor, the internal memory, the external memory, the display screen, the camera, the communication module and the like. The power management module may also be used to monitor parameters such as battery capacity, battery cycle number, battery state of health (leakage, impedance), etc. In some embodiments, the power management module 141 may also be disposed in the processor 110. In some embodiments, the power management module 141 and the charging management module may also be disposed in the same device.
The wireless communication function of the terminal 100 can be implemented by the antenna module 1, the antenna module 2, the rf module 150, the communication module 160, a modem, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the cellular network antenna may be multiplexed into a wireless local area network diversity antenna. In some embodiments, the antenna may be used in conjunction with a tuning switch.
The rf module 150 may provide a communication processing module including a solution for wireless communication such as 2G/3G/4G/5G applied to the terminal 100. The rf module may include at least one filter, a switch, a power Amplifier, a Low Noise Amplifier (LNA), and the like. The radio frequency module receives electromagnetic waves through the antenna 1, and processes the received electromagnetic waves such as filtering, amplification and the like, and transmits the electromagnetic waves to the modem for demodulation. The radio frequency module can also amplify the signal modulated by the modem, and the signal is converted into electromagnetic wave by the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the rf module 150 may be disposed in the processor 150. In some embodiments, at least some functional modules of the rf module 150 may be disposed in the same device as at least some modules of the processor 110.
The modem may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.) or displays an image or video through a display screen. In some embodiments, the modem may be a stand-alone device. In some embodiments, the modem may be separate from the processor, in the same device as the rf module or other functional module.
The communication module 160 may provide a communication processing module of a wireless communication solution applied to the terminal 100, including a Wireless Local Area Network (WLAN), a Bluetooth (BT), a Global Navigation Satellite System (GNSS), a Frequency Modulation (FM), a Near Field Communication (NFC), an Infrared (IR), and the like. The communication module 160 may be one or more devices integrating at least one communication processing module. The communication module receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor. The communication module 160 may also receive a signal to be transmitted from the processor, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 and the radio frequency module of terminal 100 are coupled and antenna 2 and the communication module are coupled such that terminal 100 may communicate with a network and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
In some embodiments of the present application, the terminal may communicate with other devices, such as a server, through the communication module. The terminal may query the server for information about the destination delivery market in which the terminal is located, for example: the information of the country where the terminal is located or the information of the operator where the terminal is located, so that the terminal can select to install the pre-installed application and the like corresponding to the target delivery market according to the information of the target delivery market.
The terminal 100 implements a 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 with a display screen 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 includes a display panel. The display panel may be an LCD (liquid crystal display), an OLED (organic light-emitting diode), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the terminal 100 may include 1 or N display screens, N being a positive integer greater than 1.
In some embodiments of the present application, the terminal may display a graphical interface for interacting with the user through a display screen, for example: prompting a user to connect a network and activating an installation process of a pre-installed application; or prompting the user to input information of the target delivery market, such as country information, operator information and the like; or ask the user whether to start a process of reclaiming the storage space, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the terminal 100. The external memory card communicates with the processor through the external memory interface to realize the data storage function. For example, files such as music, video, etc. are saved in an external memory card.
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 terminal 100 and data processing by executing instructions stored in the internal memory 121. The memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, a phonebook, etc.) created during use of the terminal 100, and the like. Further, the 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, other volatile solid-state storage devices, a universal flash memory (UFS), and the like.
In the embodiment of the present application, the storage space in the internal memory includes a system partition (which may be the above-mentioned program storage area), a pre-installed partition, and a data partition (which may be the above-mentioned data storage area). The system partition is stored with a system installation package, the pre-installation partition is stored with a pre-installation package, and the pre-installation package comprises an installation package of a pre-installation application and pre-installation resources of the pre-installation application, such as files, videos, pictures, music and the like. In some embodiments of the present application, the pre-mount partition and the data partition are adjacent. The processor can install the corresponding pre-installed application and/or pre-installed resources in the pre-installed application by reading the installation package of the pre-installed application of the pre-installed partition.
The terminal 100 can implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module is used for converting digital audio information into analog audio signals to be output and converting the analog audio input into digital audio signals. The audio module may also be used to encode and decode audio signals. In some embodiments, the audio module may be disposed in the processor 110, or some functional modules of the audio module 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 terminal 100 can listen to music through a speaker or listen to a hands-free call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the terminal 100 receives a call or voice information, it is possible to receive voice by placing a receiver close to the ear of a person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending voice information, a user can input a voice signal into the microphone by making a sound by approaching the microphone through the mouth of the user. The terminal 100 may be provided with at least one microphone. In some embodiments, the terminal 100 may be provided with two microphones to achieve a noise reduction function in addition to collecting sound signals. In some embodiments, the terminal 100 may further include three, four or more microphones to collect sound signals and reduce noise, and may further identify sound sources and implement directional recording functions.
The headphone interface 170D is used to connect a wired headphone. The earphone interface may be a USB interface, or may be an open mobile platform (OMTP) standard interface of 3.5mm, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, and the like. The keys may be mechanical keys. Or may be touch keys. The terminal 100 receives a key input, and generates a key signal input related to user setting and function control of the terminal 100.
The motor 191 may generate a vibration cue. The motor can be used for incoming call vibration prompt and can also be used for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The touch operation on different areas of the display screen can also correspond to different vibration feedback effects. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
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 Subscriber Identity Module (SIM). The SIM card can be brought into and out of contact with the terminal 100 by being inserted into or pulled out of the SIM card interface. The terminal 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface can support a Nano SIM card, a Micro SIM card, a SIM card and the like. Multiple cards can be inserted into the same SIM card interface at the same time. The types of the plurality of cards may be the same or different. The SIM card interface may also be compatible with different types of SIM cards. The SIM card interface may also be compatible with external memory cards. The terminal 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the terminal 100 employs eSIM, namely: an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
In some embodiments of the application, the terminal may determine information of a destination delivery market where the terminal is located by reading information in a SIM card inserted into the terminal, and further determine a pre-installed application to be installed according to the information of the destination delivery market. Wherein the information in the SIM card comprises: mobile Country Code (MCC) and Mobile Network Code (MNC) in the SIM card. The MCC is used to uniquely identify the country to which the mobile terminal belongs, and occupies 3 digits. The MNC is used to identify the mobile communication network (i.e., operator information) in which the mobile terminal is located, and occupies 2 or 3 digits.
The software system of the terminal 100 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the terminal 100.
Fig. 2 is a block diagram of a software configuration of the terminal 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. And the layers communicate with each other through an 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. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
In the embodiment of the application, when the terminal leaves a factory, the application layer of the terminal includes an installation package of a pre-installed application. The installation packages of the pre-installed applications comprise installation packages of the pre-installed applications corresponding to the target delivery market of the terminal and installation packages of the pre-installed applications not belonging to the target delivery market. However, after the terminal has installed the pre-installed application corresponding to the destination shipping market according to the destination shipping market information, the terminal may delete the installation package that does not belong to the pre-installed application corresponding to the destination shipping market.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application of the application layer. The application framework layer includes some predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a 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 a communication function of the terminal 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 so forth.
The notification manager enables applications to display notification information in a status bar, can be used to convey notification-type messages, can automatically disappear 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, text information is prompted in the status bar, a prompt tone is given, the terminal vibrates, an indicator light flashes, and the like.
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 layer and the application 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 manager (surface manager), Media Libraries (Media Libraries), three-dimensional graphics processing library OpenGL ES, 2D graphics engine SGL, etc.
The surface manager is used to manage the display subsystem and provide a 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, etc.
OpenGL ES is used to implement three-dimensional graphics drawing, image rendering, compositing, and layer processing, among others.
SGL is a drawing engine for 2D drawing.
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.
The technical solutions in the following embodiments may be implemented in a terminal (e.g., the terminal 100) having the above hardware architecture and software architecture.
The technical solutions of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
In the software development stage, a terminal manufacturer can develop a common ROM image version for at least two target delivery markets with different pre-installed contents.
Specifically, an installation package of the terminal operating system (hereinafter referred to as a system installation package), an installation package of a pre-installed application, and a pre-installed resource (hereinafter referred to as a pre-installed installation package) are packaged into a ROM mirror image.
The pre-installation package comprises pre-installation contents of all target delivery markets or pre-installation contents of all target delivery markets in a certain area. Specifically, the installation package and the pre-installed resources of the pre-installed applications included in the multiple target delivery markets. The pre-installed package may also include differential information of pre-installed content of each destination shipping market. For example: the information of the preinstalled application installation package corresponding to each target delivery market, the information of the layout design corresponding to each target delivery market and the like.
It should be noted that the terminal operating systems of different destination shipping markets are basically the same, and the pre-installed applications and pre-installed resources are generally different. In addition, the pre-installed resources are generally resources in the pre-installed application, the pre-installed resources are generally contained in an installation package of the pre-installed application, and the installation package with the pre-installed application loads the corresponding resources. Therefore, the installation package containing resources of the pre-installed application will be described as an example.
For example: fig. 4A shows an example of a pre-installed package composition. Specifically, the pre-installed installation package 401 includes the pre-installed application installation package 402 and difference information of each terminal product, for example: different market diversity information 403 corresponding to the terminal, different types of terminals (e.g., mobile phone, tablet, etc.) (not shown in fig. 4A), different models of terminals (e.g., mate 9, mate10, etc.) (not shown in fig. 4A), and the like.
The pre-installed application installation package 402 includes installation packages of pre-installed applications of all target delivery markets (market 1, market 2, and the like), for example: application 1, application 2, application 3, application 4, etc. The different market difference information 403 includes difference information of different target delivery markets, such as market 1 difference information 404 and market 2 difference information 405.
For example, suppose market 1 needs to install pre-installed applications, application 1, application 2 and application 3, and market 2 needs to install pre-installed applications, application 1 and application 4. Then, the application list (or catalog, manifest) 1 in the market 1 diversity information 404 contains the following application identifications: application 1, application 2 and application 3. The application list (or catalog, manifest) 2 in market 2 diversity information 405 contains the following identifications of applications: application 1 and application 4. Specifically, reference may also be made to table one, as follows:
watch 1
Figure PCTCN2018101776-APPB-000001
The terminal determines the information of the destination shipping market after arriving at the destination shipping market. Assuming that the market 1 exists, the terminal may search the pre-installed application list 1 and the layout design file 1 corresponding to the market 1 from the pre-installed installation package. Then, the identifier of the pre-installed application is determined according to the pre-installed application list 1, and the installation package corresponding to the identifier of each pre-installed application is searched from the pre-installed application installation package 402. And finally, installing the corresponding pre-installed application according to the found installation package of the pre-installed application. After the terminal is installed with the pre-installed applications, the display positions of the icons of the pre-installed applications on the terminal desktop can be determined according to the layout design file 1.
It should be noted that, in some embodiments of the present application, a common pre-installed package may also be used for different types and models of terminals. The pre-installed installation package comprises installation packages of pre-installed applications of all types of all models of terminals in all target delivery markets. When the terminal reaches the target delivery market, the information of the target delivery market is determined, then corresponding difference information is searched from the pre-installed package according to the information of the target delivery market corresponding to the terminal, the type of the terminal and the model of the terminal, and further pre-installed applications which should be automatically installed by the terminal are determined.
Fig. 4B shows another example of a preassembled package format. Wherein: the different market diversity information 403 may specifically include market 1 diversity information 406, market 2 diversity information, and the like. The market 1 difference information 406 further includes terminal type 1 (or terminal model 1) information 407, terminal type 2 (or terminal model 2) information, and the like. For example, after determining that the target delivery market is market 1, the terminal may search a pre-installed application list corresponding to the type or model of the terminal in the market 1 difference information 406 to determine a pre-installed application of the terminal. The remaining steps can be referred to the above related description.
Fig. 4C shows an example of another pre-installed package configuration. Wherein: the different market diversity information 403 may specifically include terminal type 1 (or terminal model 1) information 408 and terminal type 2 (or terminal model 2) information, and the like. The terminal type 1 (or terminal model 1) information 408 further includes market 1 diversity information 406, market 2 diversity information, and the like. For example, after the terminal determines that the type is terminal type 1 or the type is terminal type 1 and the target delivery market is market 1, the terminal may search the pre-installed application list 1 corresponding to the market 1 difference information 406 in the terminal type 1 (or terminal type 1)408 to determine the pre-installed application of the terminal. The remaining steps can be referred to the above related description.
It should be noted that, in the embodiments of the present application, specific composition forms and specific contents included in the preinstalled installation package are not limited.
The following description will take the example of different target delivery markets as the differential information.
In the terminal production process, a terminal manufacturer writes a common ROM image version into the terminal, that is, the storage space of the terminal contains installation packages of pre-installed applications of all target delivery markets, or contains installation packages of pre-installed applications of all target delivery markets in a certain area. Therefore, only one version of ROM image needs to be prepared, and compared with the prior art that different versions of ROM images need to be written in aiming at different target delivery markets, the method provided by the embodiment of the application is beneficial to simplifying the production flow and saving the labor cost. Moreover, the software and the hardware of the terminals of the same model are the same, so when the terminal manufacturer delivers goods to each target delivery market, the terminal manufacturer can directly allocate the goods from one target delivery market to another target delivery market without modifying a ROM mirror image, and the rapid delivery and the rapid response of terminal products are facilitated.
Then, after the terminal reaches the target delivery market and is started up for the first time, information (such as country information and operator information) of the target delivery market can be acquired through information of a network where the terminal is located, SIM card information installed in the terminal and the like, and then pre-installed application corresponding to the target delivery market is determined and installed according to the information of the target delivery market.
As shown in fig. 5, a schematic flow chart of an application installation method provided in the embodiment of the present application specifically includes:
s101, starting the terminal for the first time.
It should be noted that, the first startup of the terminal in the embodiment of the present application refers to the first power-on after the terminal leaves the factory, and is not included in the production phase of the terminal, and a production line worker starts the terminal when performing power-on detection. In the production phase of the terminal, the terminal may be power-on detected by, for example, inserting a special SIM card. The terminal does not execute the process of automatically installing the pre-installed application in the embodiment of the present application when detecting the special SIM card (i.e., step S102 and subsequent steps).
In some embodiments, after the terminal leaves the factory, whether the terminal is powered on for the first time may be determined by querying the first flag. For example: before the terminal leaves the factory, the first flag bit is set to a specific value, which indicates that the terminal is not powered on or a flow of installing the pre-installed application is not executed. After the terminal is powered on and powered on, when the first flag is detected to be a specific value, the subsequent steps (i.e., step S102 and the subsequent steps) are executed. After the terminal executes the preinstalled application, the terminal sets the first flag bit to other values to indicate that the terminal is started or executes the process of installing the preinstalled application. Subsequently, if the terminal is powered on again, it may be determined that the terminal is not powered on for the first time or the terminal has already executed a process of installing the pre-installed application, and the terminal may not execute step S102 and the subsequent steps.
S102, the terminal acquires information of a target delivery market where the terminal is located.
The target delivery market is a market in which a terminal sales destination is located, may also be understood as a market in which the terminal is located when the terminal is used, and specifically may refer to information such as a region, a country, and an operator in which the terminal is located when the terminal is used.
Illustratively, the terminal may obtain the information of the destination delivery market by the following ways:
in the first method, a terminal is connected to a network, and information of a target delivery market of the terminal is inquired from a server.
Firstly, after the terminal detects the operation of pressing a power key by a user, the terminal automatically installs the operating system of the terminal according to the operating system installation package, and after the operating system is installed, the terminal displays a navigation interface to prompt the user to set some basic information, which may include prompting the user to connect to a Wireless Local Area Network (WLAN).
Illustratively, as shown in fig. 6, the navigation interface is shown after the terminal is first powered on. The basic information set by the user may include setting a language, such as an interface shown in (1) in fig. 6, and signing various agreements, etc. The interface shown in (1) in fig. 6 may include a status bar 601 and a language setting item 602. The user can select a language used by the terminal through the language setting item 602. The terminal may also prompt the user to connect to the network, such as the interface shown in (2) of fig. 6. The interface may include a status bar 601, network settings 603, and a back button 604. Wherein, in response to the operation of the user clicking the return button 604, the terminal displays the previous interface of the current interface. In response to an operation of a network (e.g., network 3) selected by the user through the network setting item 603, the terminal starts to connect to the corresponding network. If the connection is successful, the terminal displays an interface as shown in (3) in fig. 6. The interface is used to prompt the user to activate installation of the pre-installed application via a setting item 605. If the connection fails, the terminal displays an interface as shown in (4) in fig. 6, and the interface is used for prompting the user to connect to the WLAN through a pop-up dialog box 606, so that the terminal can enter the desktop of the terminal only after the installation of the pre-installed application is activated. The user can re-enter the network-connected interface, i.e., the interface shown in (2) of fig. 6, through the network-connected button in the dialog 606.
As shown in fig. 7, a schematic flow chart of activating installation of a preset application for a terminal and querying information of a target delivery market from a server specifically includes S201 to S204, as follows:
s201, starting and activating the terminal.
It should be noted that the activation refers to the installation process of the terminal starting the pre-installed application. The activation process may be an independent service, or may be a service included in other networking services, for example, a member service or a cloud service, and the embodiment of the present application is not limited.
S202, the terminal sends the terminal identification to the server.
The terminal identifier may be a Serial Number (SN) of the terminal, or may be an International Mobile Equipment Identity (IMEI) of the terminal.
For example, as shown in (3) in fig. 6, after the terminal is connected to the network, the terminal may establish a communication connection with the server in response to the user clicking an "activate immediately" button, and may further send an identifier of the terminal to the server. Wherein the address of the server may be stored in the terminal so that the terminal finds the corresponding server.
S203, the server inquires the information of the target delivery market corresponding to the terminal identification according to the terminal identification.
The server may be a Purchase and Sales (PSI) database or other device used by the terminal manufacturer to store Sales of the terminal. The sales condition of the terminal comprises the streaming information of the terminal after leaving the factory and the information of the target delivery market which is finally reached by the terminal. That is, the server stores the correspondence between the terminal identifier and the destination shipping market.
Therefore, the server can inquire the information of the target delivery market corresponding to the terminal identification according to the terminal identification.
And S204, the server sends the inquired information of the target delivery market to the terminal.
For example, The server may send The information to The terminal through an upgrade package of a COTA in a customized Over-The-Air technology (COTA) manner, where The upgrade package of The COTA includes information of The target shipping market. Therefore, the terminal can acquire the information of the target delivery market corresponding to the terminal by downloading and installing the upgrade package of the COTA.
Then, the terminal may perform steps S103 and S104, i.e.: and determining the preset application corresponding to the target delivery market according to the acquired information of the target delivery market, searching the installation package corresponding to the preset applications, decompressing and installing the preset applications.
In another embodiment of the present application, the server stores the correspondence between the terminal and the destination shipping market information, but the server does not have list information of pre-installed applications corresponding to the destination shipping market. Therefore, after the terminal has installed the pre-installed application, the terminal may upload the list of pre-installed applications to the server (shown in fig. 7 as step S205), and the server stores the list of pre-installed applications uploaded by the terminal (shown in fig. 7 as step S206). Therefore, the server can conveniently perform service management such as charging for the installation of the pre-installed application in the terminal, charging for activation of the pre-installed application and the like according to the list of the pre-installed application.
And in the second mode, the terminal can acquire the information of the target delivery market through the SIM module in the terminal.
Specifically, the SIM module may be a hardware SIM card, or implemented by software (e.g., an e-SIM) and stores a national Mobile Subscriber identity Number (IMSI). The IMSI is an identifier for distinguishing the mobile terminal. The IMSI includes a Mobile Country Code (MCC) and a Mobile Network Code (MNC). The MCC is used to uniquely identify the country to which the mobile terminal belongs, and occupies 3 digits. For example: china is 460. The MNC is used to identify the mobile communication network (i.e. operator information) where the mobile terminal is located, and occupies 2 or 3 digits. For example: the China Mobile TD system uses 00, the China Unicom GSM system uses 01, the China Mobile GSM system uses 02, the China telecom CDMA system uses 03, etc.
Therefore, after the terminal is started for the first time, whether the terminal has the SIM module can be detected, and if the SIM module is detected, the country information in the MCC in the SIM card and/or the operator information in the MNC are/is read to serve as the information of the target delivery market.
And thirdly, when the radio frequency network of the terminal is connected (emergency call can be made), the terminal can call a standard interface of the system to acquire the information of the target delivery market.
For example, taking the terminal as an Android system for explanation, the terminal may call a standard interface of the Android system, for example: call interface getsimoperorraname () or return the Service Provider Name () to get the Name of the Service Provider, for example: telecommunications, connectivity, mobility, etc., as information for the targeted delivery market.
In the fourth mode, the terminal may obtain the target shipping market information through some preset services, such as Google Mobile Service (GMS).
For example, after the terminal is first powered on, the terminal automatically installs an operating system and some preset services, and then displays a navigation interface. Among these preset services, for example: there are some services in GMS that can obtain geographical location, or country information. For example: map (map) service. Country information can be acquired as destination shipping market information through these services in the embodiment of the present application.
And in the fifth mode, the terminal can prompt the user to input information of the destination delivery market, such as country information.
Firstly, after the terminal detects the startup operation of a user, a navigation interface is displayed to prompt the user to set some basic information, including prompting the user to input national information.
Illustratively, as shown in fig. 8, some schematic diagrams of the navigation interface are shown after the terminal is first powered on. The basic information set by the user includes setting a language, an interface shown as (1) in fig. 8, and signing various agreements, and the like. In the interface shown in (1) in fig. 8, a status bar 801 and a language setting item 802 may be included. The terminal may also display information prompting the user to select or enter a destination shipping market, such as: country information, or operator information, etc., as shown in (2) of fig. 8. The interface may include a status bar 801, country settings 803, and a back button 804. Wherein the user can select or input country information through the country setting item 803.
Therefore, the terminal can be used as the information of the target shipping market according to the country information or the operator information selected or input by the user. Then, the pre-installed application corresponding to the target delivery market is determined, i.e., steps S103 and S104 are performed.
It should be noted that the terminal may select any one or any several of the above manners to acquire the target delivery market information, and may also sequentially acquire the target delivery market information according to a certain priority order.
S103, the terminal determines an installation package of the pre-installed application to be installed according to the information of the target delivery market.
For example, the installation package pre-installed in the terminal is illustrated as an organization form shown in fig. 4A. The terminal may search, according to the obtained information of the target delivery market, a pre-installed application list corresponding to the target delivery market from the different market difference information 403. The pre-installed application list contains the identifier of the pre-installed application corresponding to the target delivery market. Then, the terminal may search the application installation package corresponding to the pre-installed application identifier from the pre-installed application installation package 402 according to the identifier of the pre-installed application.
And S104, the terminal automatically installs the corresponding pre-installed application according to the determined installation package of the pre-installed application.
And the terminal decompresses the installation package of the pre-installed application and installs the corresponding pre-installed application.
In other embodiments of the present application, in step S103, the terminal may also find a layout design file corresponding to the target delivery market. Then, in this step, the installed icons of the preinstalled applications are laid out according to the found layout design file.
Further, it is considered that the terminal stores an installation package (which may be referred to as a first pre-installation package) of pre-installed applications corresponding to the target delivery market, and also stores a large number of installation packages (which may be referred to as a second pre-installation package) of pre-installed applications not belonging to the target delivery market. Since these second preinstalled installation packages occupy a large amount of storage space of the terminal, the storage resources of the terminal are wasted. Therefore, the terminal can only reserve the first pre-installed package for use when the subsequent terminal needs to reinstall the pre-installed application, and delete the second pre-installed package to release the corresponding storage space. The terminal deletes the second preinstalled installation package to release the corresponding storage space, where the whole process may be referred to as a process of recovering the storage space.
First, a principle of the terminal reclaiming the memory space will be explained.
It should be noted that, in the terminal production process, when a terminal manufacturer writes a common ROM image version into a terminal, the terminal may divide a system partition and a pre-installed partition in the storage space. The system partition is used for storing the system installation package, and the pre-installation partition is used for storing the pre-installation package. In order to make the storage space reclaimed by the terminal available for storing data, the divided pre-installed partition may be adjacent to the data partition of the terminal.
Exemplarily, as shown in (1) in fig. 9, a schematic diagram of a method for dividing a storage space of a terminal when the terminal is shipped from a factory is shown. In some embodiments of the present application, a partitioned pre-mount partition may be adjacent to a data partition, and the pre-mount partition remains consistent with the file system of the data partition, such as: a Flash Friendly File System (F2 FS) is adopted. The memory address of the pre-partition may be located at the upper bit of the memory address of the data partition, as shown in (3) in fig. 9, or the memory address of the pre-partition may be located at the lower bit of the memory address of the data partition, as shown in (1) in fig. 9.
Because the pre-installation partition and the data partition are adjacent and the file system format is consistent, the unnecessary storage space in the pre-installation partition (storing the installation package of the pre-installation application which does not belong to the current target delivery market, namely the second pre-installation package) can be conveniently re-divided into the data partitions. As shown in fig. 9 (2) and (4), the partial pre-mount partition is re-divided into data partitions. That is to say, after the terminal is started for the first time and the pre-installed application corresponding to the target delivery market is installed, the installation package of the pre-installed application which does not need to be installed can be deleted, so that the space left after deletion can be used for storing data.
The timing when the terminal starts to reclaim the storage space will be described below.
Fig. 10 is a schematic diagram illustrating the timing for starting the storage space recovery for several terminals according to the embodiment of the present application.
Specifically, in some embodiments of the present application, as shown in fig. 10 (1), at time t1, the terminal is powered on for the first time. And from the time t1 to the time t2, displaying a power-on navigation interface by the terminal, and indicating the user to set basic information. And from the time t3 to the time t4, the terminal acquires the target delivery market information and installs the pre-installed application corresponding to the target delivery market information. At time t4 when the terminal is fully installed, a second flag may be set to indicate that there is recoverable storage space in the pre-installed partition of the terminal. The terminal may also set the second flag bit slightly before or after time t4, which is not limited in the embodiment of the present application. Then, the terminal may automatically start a process of reclaiming the unused storage space in the pre-installed partition, that is, execute the process of reclaiming the storage space at time t5 at time t 4.
In other embodiments of the present application, as shown in (2) in fig. 10, after the pre-installed application is installed, the terminal may wait for a preset time period (from time t4 to time t5, which may be 6 hours, for example), and then automatically start a process of recovering unused storage space in the pre-installed partition, that is, perform a process of recovering storage space from time t5 to time t6, where time t6 is a time when the process of recovering storage space ends.
In still other embodiments of the present application, as shown in (3) in fig. 10, after the terminal has installed the pre-installed application, the process of recovering the storage space may not be started. But upon some specific operations subsequently performed by the terminal, such as: when the operating system is upgraded or the user cleans up the space (for example, using a mobile phone housekeeping application), the user is asked whether to start or automatically start the process of recovering the storage space.
For example: when the user instruction is detected at time t5, the terminal starts the reclamation of the unused storage space in the non-preinstalled partition, i.e. the process of reclaiming the storage space is executed from time t5 to time t 6. Alternatively, the terminal may initiate an os upgrade at time t5, and may initiate reclamation of unused storage space in the pre-installed partition before, during, or after the os upgrade is performed at the terminal. Alternatively, when the terminal detects that the user has cleared the space at time t5, the terminal may initiate reclamation of unused storage space in the pre-installed partition before, during, or after the terminal has cleared the space.
It should be noted that, in the embodiment of the present application, the timing for starting the terminal to recover the storage space is not limited.
In the following, taking the process of receiving the user instruction and starting the storage space recycling by the terminal as an example, the process of recycling storage by the terminal is described as follows:
as shown in fig. 11, a schematic flow chart of a method for recovering a storage space provided in an embodiment of the present application specifically includes the following steps:
s301, the terminal displays a graphical interface and inquires whether the user starts a process of recovering the storage space.
For example, the terminal may ask the user whether to start the process of recovering the storage space through a pop-up dialog box or in a form of displaying information in a notification bar after the pre-installed application is installed. As shown in (1) of fig. 12, it is a graphical interface of the terminal. The interface may include a status bar 1201, time and weather controls 1202, and icons for a plurality of applications, such as: an icon 1203 of the calendar. The interface may also include a dialog box 1204. This dialog box 1204 is used to ask the user whether to initiate a process to reclaim storage space. As shown in (2) of fig. 12, is another graphical interface of the terminal. The interface may also include a notification bar 1205. And a notification bar 1205 for displaying prompt information and inquiring whether the user starts the process of recovering the storage space.
The terminal can also ask the user whether to start the process of recovering the storage space through a pop-up dialog box or in the form of information displayed in a notification bar before or after the operating system is upgraded or before or after the terminal clears the space. The embodiment of the application does not limit the interface of the terminal inquiry.
S302, the terminal detects the operation of the user. If the user is detected to start the operation of recovering the storage space, step S304 is executed, and if the user is detected not to start the operation of recovering the storage space, step S303 is executed.
For example: if the terminal detects that the user clicks a "yes" button in the interface shown in (1) in fig. 12, or the terminal detects that the user clicks a "yes" button in the interface shown in (2) in fig. 12, it is determined that the operation of recovering the storage space is started. If the terminal detects that the user clicks the no button in the interface shown in (1) in fig. 12, or the terminal detects that the user clicks the no button in the interface shown in (2) in fig. 12, it is determined that the operation of recovering the storage space is not started.
And S303, the terminal does not execute the operation of recovering the storage space and continues to execute the original process of the terminal.
For example: after the terminal is started for the first time and the pre-installed application is installed, the terminal inquires whether a user starts a process of recovering the storage space. When it is detected that the user does not start the process of reclaiming the storage space, the terminal may display a home screen interface. Before the operating system is upgraded, the terminal inquires whether the user starts a process of recovering the storage space. When detecting that the user does not start the process of recovering the storage space, the terminal can upgrade the operating system.
S304, the terminal starts a process of recovering the storage space.
In some embodiments, the terminal may write, for example, in an MISC partition (a standard partition of an android system), an operation that the terminal needs to perform after the restart (for example, delete an installation package of a pre-installed application that is not needed in a pre-installed partition, recycle a storage space occupied by the pre-installed application installation package that is not needed in the pre-installed partition as a data partition, and the like), and restart the terminal.
And S305, after the terminal is restarted, entering a Recovery mode.
The Recovery mode is a backup function of the terminal, and may modify data inside the terminal or a system of the terminal. In this mode, the terminal may perform limited operations, which is not the normal operating mode of the terminal.
In some embodiments, the terminal may continue to perform subsequent operations by calling data in the MISC partition after entering Recovery mode. The MISC partition stores the guide information of the Recovery program and the content of the operation required to be executed after the terminal is restarted.
S306, the terminal deletes the installation package of the pre-installed application which is not needed in the pre-installed partition.
Illustratively, as shown in (1) of fig. 13, a schematic diagram of a storage space of a terminal before deleting an installation package of a non-use pre-installed application is shown, in which an installation package of a required pre-installed application and an installation package of a non-use pre-installed application in a pre-installed partition are alternately stored. As shown in (2) in fig. 13, after the installation package that does not need to use the pre-installed application is deleted for the terminal, a schematic diagram of the storage space of the terminal is shown.
S307, the size of the pre-installation partition is recalculated.
Specifically, the size of the installation package without the use of the pre-installation application is subtracted from the size of the original pre-installation partition, and the size of a certain reserved space is added to serve as the size of the pre-installation partition after the space is recovered. Optionally, the size of the installation package of the required preinstalled application may be calculated, and the size of a certain reserved space is added to the size of the preinstalled partition after the space is recovered.
And S308, sorting the pre-installed subareas.
Specifically, considering that the storage space released in the pre-installed partition needs to be re-divided into data partitions, the installation package of the pre-installed application that needs to be used can be migrated to the other head of the pre-installed partition that is not adjacent to the data partitions. Illustratively, as shown in (3) of fig. 13, a schematic diagram of a storage space of the terminal after the pre-partition is consolidated for the terminal. It can be seen that the terminal migrates the installation package of the required pre-installed application to the beginning of the pre-installed partition, and the end of the pre-installed partition is adjacent to the data partition. It should be noted that, if the beginning of the pre-installed partition is adjacent to the data partition, the installation package of the pre-installed application to be used needs to be migrated to the end of the pre-installed partition. In this way, the unused space in the pre-installed partition is adjacent to the data partition of the terminal, and thus, the unused storage space can be directly partitioned into the data partitions.
S309, modifying the pre-installed partition table.
Illustratively, as shown in (4) in fig. 13, an example of the storage space of the terminal is obtained after the pre-installed partition table is modified for the terminal.
S310, detecting whether the pre-installed partition is normal. If so, continue to execute step S312, otherwise execute step S311.
S311, prompting the user of the exception, and guiding the user to process, for example, entering an overload mode for repairing.
The recovery mode is a terminal recovery mode, and is generally used for upgrading the terminal to the latest version when the terminal cannot be started or the system is unstable, so that the terminal can be normally used.
For example, if the terminal is powered off or hardware fails during execution of the storage space recovery process, the terminal is prompted to perform processing.
And S312, modifying the data partition table.
Illustratively, as shown in (5) in fig. 13, an example of the terminal storage space after the terminal modifies the data partition table is provided.
S313, detect whether the data partition is normal? If so, continue to execute step S315, otherwise execute step S314.
S314, prompting the user for exception and guiding the user to process, such as formatting the data partition.
And S315, prompting the user to finish the process of recovering the storage space, and restarting or closing the terminal.
After the process of recovering the storage space by the terminal is finished, the terminal needs to exit the current Recovery mode and re-enter the normal working mode of the terminal, that is, a user can use the terminal to enter a desktop and run the corresponding application and the like. The terminal can be automatically restarted or can be closed, and the terminal is automatically restarted by a user.
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 (16)

  1. A method of installing an application, the method comprising:
    the terminal detects a starting operation;
    responding to the starting operation detected by the terminal, and starting the terminal;
    if the terminal is started for the first time, the terminal acquires information of a target delivery market where the terminal is located; wherein the information of the destination shipping market comprises: any one or more of a country where the terminal is located, an operator where the terminal is located, and an area where the terminal is located; the terminal stores an installation package of a first application and an installation package of a second application;
    the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal; the first application is an application corresponding to the target delivery market, and the first application is at least one;
    and the terminal deletes the installation package of the second application, wherein the second application is not the application corresponding to the target delivery market.
  2. The application installation method of claim 1, wherein the obtaining, by the terminal, information of a destination delivery market in which the terminal is located comprises:
    the terminal sends a terminal identification to a first server; the terminal receives information of a target delivery market corresponding to the terminal identification sent by the first server;
    or the terminal reads a mobile country code MCC and a mobile network code MNC in a national mobile subscriber identity (IMSI) from a Subscriber Identity Module (SIM) of the terminal and determines the information of the target delivery market;
    or when the radio frequency network of the terminal is communicated, the terminal calls an interface to acquire the information of a service provider and determines the information of the target delivery market;
    or the terminal calls Google mobile service GMS to acquire the geographic position and/or the national information of the terminal and determine the information as the information of the target delivery market;
    or the terminal displays a first interface, wherein the first interface is used for prompting a user to input a target delivery market where the terminal is located; and the terminal determines the target delivery market where the terminal is positioned, which is input in the first interface by the user, as the target delivery market.
  3. The application installation method according to claim 1 or 2, wherein the terminal automatically installing the first application according to the acquired information of the destination delivery market and the installation package of the first application stored in the terminal comprises:
    the terminal determines an application identifier corresponding to the first application according to the acquired information of the target delivery market;
    the terminal determines an installation package of the first application according to the application identifier corresponding to the first application;
    and the terminal uses the installation package of the first application to install the first application.
  4. The method for installing the application according to any one of claims 1 to 3, wherein after the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal, the method further comprises:
    and the terminal displays the icon of the first application on the desktop.
  5. The application installation method according to any one of claims 1 to 4, wherein the terminal deleting the installation package of the second application comprises:
    after the terminal is in a first preset time period, the terminal automatically starts to delete the installation package of the second application;
    or the terminal displays a second interface, wherein the second interface is used for inquiring whether the user deletes the installation package of the second application; the terminal detects that the user deletes the installation package of the second application; the terminal starts to delete the installation package of the second application;
    or after the terminal detects that the terminal executes the operation system upgrade or the operation of cleaning the storage space, the terminal starts to delete the installation package of the second application.
  6. The method for installing the application according to claim 5, wherein before the terminal deletes the installation package of the second application, the method further comprises:
    the terminal writes in the operation to be executed when the terminal is in a first working mode; the operation to be executed when the terminal is in the first working mode comprises that the terminal deletes the installation package of the second application; wherein, the first working mode is a working mode that the terminal modifies data in a storage space and/or modifies the terminal operating system;
    and the terminal is restarted and enters a first working mode.
  7. The application installation method according to claim 6, wherein a first partition in the storage space of the terminal is used for storing the installation package of the first application and the installation package of the second application, and a second partition in the storage space of the terminal is used for storing data; the first partition is adjacent to the second partition;
    after the terminal deletes the installation package of the second application, the method further includes:
    the terminal calculates the file size of the installation package of the first application to determine the size of the modified first partition; wherein the modified size of the first partition is smaller than the size of the first partition;
    the terminal moves the installation package of the first application to one side, which is not adjacent to the second partition, of the first partition;
    the terminal modifies the address table of the first partition;
    the terminal modifies the address table of the second partition; wherein the modified second partition comprises a storage space in the moved first partition, in which the installation package of the first application is not stored;
    the terminal is shut down or restarted again.
  8. The method for installing the application according to any one of claims 1 to 7, wherein after the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal, the method further comprises:
    and the terminal sends the list of the first application to the second server.
  9. A method of installing an application, the method comprising:
    the terminal detects a starting operation;
    responding to the starting operation detected by the terminal, and starting the terminal;
    if the terminal is started for the first time, the terminal reads a mobile country code MCC and a mobile network code MNC in a national mobile subscriber identity (IMSI) from a Subscriber Identity Module (SIM) of the terminal and determines the information of the target delivery market; wherein the information of the destination shipping market comprises: any one or more of a country where the terminal is located, an operator where the terminal is located, and an area where the terminal is located;
    the terminal automatically installs the first application according to the acquired information of the target delivery market and the installation package of the first application stored in the terminal; the first application is an application corresponding to the target delivery market, and the first application is at least one.
  10. The application installation method according to claim 9, wherein the terminal further stores an installation package of a second application, the second application not corresponding to the target delivery market; the method further comprises the following steps:
    and after the terminal detects that the terminal executes the operation system upgrade or clears the storage space, the terminal automatically deletes the installation package of the second application.
  11. A terminal, comprising: a processor, a memory and a touch screen, the memory and the touch screen being coupled to the processor, the memory for storing computer program code comprising computer instructions which, when read from the memory by the processor, cause the terminal to perform the method of installation of an application according to any of claims 1-8.
  12. A terminal, comprising: a processor, a memory and a touch screen, the memory and the touch screen being coupled to the processor, the memory for storing computer program code comprising computer instructions which, when read from the memory by the processor, cause the terminal to perform the method of installation of an application according to claim 9 or 10.
  13. A computer storage medium, characterized in that it comprises computer instructions which, when run on a terminal, cause the terminal to perform the installation method of an application according to any one of claims 1-8.
  14. A computer storage medium characterized in that it comprises computer instructions which, when run on a terminal, cause the terminal to execute the installation method of an application according to claim 9 or 10.
  15. A computer program product, characterized in that it causes a computer to carry out the installation method of an application according to any one of claims 1 to 8, when said computer program product is run on said computer.
  16. A computer program product, characterized in that it causes a computer to carry out the installation method of an application according to claim 9 or 10, when said computer program product is run on said computer.
CN201880093405.0A 2018-08-22 2018-08-22 Application installation method and terminal Pending CN112119378A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/101776 WO2020037560A1 (en) 2018-08-22 2018-08-22 Application installation method and terminal

Publications (1)

Publication Number Publication Date
CN112119378A true CN112119378A (en) 2020-12-22

Family

ID=69592138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880093405.0A Pending CN112119378A (en) 2018-08-22 2018-08-22 Application installation method and terminal

Country Status (2)

Country Link
CN (1) CN112119378A (en)
WO (1) WO2020037560A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113064615A (en) * 2021-03-26 2021-07-02 西安万像电子科技有限公司 Software updating method and device, storage medium and electronic device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489689B (en) * 2021-08-26 2023-01-13 荣耀终端有限公司 Application program installation method and system, electronic equipment and server
CN117111965A (en) * 2023-03-21 2023-11-24 荣耀终端有限公司 Application program installation method, electronic device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138282A (en) * 2015-08-06 2015-12-09 上海七牛信息技术有限公司 Storage space recycling method and storage system
CN106506611A (en) * 2016-10-21 2017-03-15 北京小米移动软件有限公司 Method, device and electronic equipment that application is installed
CN108064038A (en) * 2017-12-06 2018-05-22 广东欧珀移动通信有限公司 Method, electronic device and the readable storage medium storing program for executing of unified custom terminal software version

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140029733A (en) * 2012-08-29 2014-03-11 주식회사 팬택 Device supporting application management function and application management method for the device
CN104461667B (en) * 2014-12-31 2017-09-26 广东欧珀移动通信有限公司 The brush machine method and apparatus of intelligent terminal
CN106126289B (en) * 2016-06-27 2019-06-25 贵州万臻时代通讯技术有限公司 A kind of application installation file loading method and mobile terminal
CN108153558B (en) * 2017-12-06 2022-01-07 Oppo广东移动通信有限公司 Method for uniformly customizing terminal software version, electronic device and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138282A (en) * 2015-08-06 2015-12-09 上海七牛信息技术有限公司 Storage space recycling method and storage system
CN106506611A (en) * 2016-10-21 2017-03-15 北京小米移动软件有限公司 Method, device and electronic equipment that application is installed
CN108064038A (en) * 2017-12-06 2018-05-22 广东欧珀移动通信有限公司 Method, electronic device and the readable storage medium storing program for executing of unified custom terminal software version

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113064615A (en) * 2021-03-26 2021-07-02 西安万像电子科技有限公司 Software updating method and device, storage medium and electronic device
CN113064615B (en) * 2021-03-26 2023-09-26 西安万像电子科技有限公司 Software updating method and device, storage medium and electronic device

Also Published As

Publication number Publication date
WO2020037560A1 (en) 2020-02-27

Similar Documents

Publication Publication Date Title
EP4002108B1 (en) Application start method and electronic device
CN112119378A (en) Application installation method and terminal
WO2020010584A1 (en) Data recovery method for when restoring factory settings of terminal, and terminal
CN114554005B (en) Notification message management method and electronic equipment
CN114461240B (en) Software upgrading method, software upgrading system and electronic equipment
EP4109864A1 (en) Application display continuation method and device
CN114356258A (en) Electronic device, screen projection method thereof and medium
CN114428618A (en) Cross-device application interaction method, electronic device and server
CN114461239B (en) Software upgrading system and software upgrading method
US20230054451A1 (en) Communication Connection Method and Electronic Device
WO2022052766A1 (en) Theme packet adaptation method and apparatus
CN113608753A (en) Application uninstalling method, application recovery method, electronic device and storage medium
CN114253558A (en) Method and device for installing patch package
CN114489689B (en) Application program installation method and system, electronic equipment and server
CN115278642A (en) Method for acquiring information of SIM card, electronic equipment and terminal equipment
CN113709720A (en) SIM dual-mode card abnormity optimization method and electronic equipment
WO2023160217A1 (en) Method for detecting embedded subscriber identity module (esim) card, and terminal device
CN117009023B (en) Method for displaying notification information and related device
CN116048710B (en) Application identifier display method, electronic device and readable storage medium
CN116033333B (en) Method for determining position information, electronic device and readable storage medium
CN114816169B (en) Desktop icon display method and device and storage medium
CN114816463A (en) Upgrade prompting method, terminal device and computer readable storage medium
CN116680118A (en) Application backup method, electronic device, storage medium and program product
CN114488961A (en) Equipment control method and device
CN115480834A (en) 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