WO2020037560A1 - Application installation method and terminal - Google Patents

Application installation method and terminal Download PDF

Info

Publication number
WO2020037560A1
WO2020037560A1 PCT/CN2018/101776 CN2018101776W WO2020037560A1 WO 2020037560 A1 WO2020037560 A1 WO 2020037560A1 CN 2018101776 W CN2018101776 W CN 2018101776W WO 2020037560 A1 WO2020037560 A1 WO 2020037560A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
application
installation package
information
target shipping
Prior art date
Application number
PCT/CN2018/101776
Other languages
French (fr)
Chinese (zh)
Inventor
徐顺海
李英伟
陈磊
张皓然
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880093405.0A priority Critical patent/CN112119378A/en
Priority to PCT/CN2018/101776 priority patent/WO2020037560A1/en
Publication of WO2020037560A1 publication Critical patent/WO2020037560A1/en

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

Definitions

  • the present application relates to the field of communication technologies, and in particular, to an application installation method and a terminal.
  • a mobile phone manufacturer can package a mobile phone operating system and an installation package of an application that needs to be stored or installed in advance into a read-only memory (ROM) image, that is, a type of data that records read-only memory chips. Copy.
  • ROM read-only memory
  • the mobile phone manufacturer burns the ROM image of the corresponding version of the target shipping market into the mobile phone (that is, writes the ROM image of the corresponding version of the target shipping market into the storage space of the mobile phone), so that the mobile phone can
  • the ROM image installs the mobile phone operating system, and installs pre-installed applications and pre-installed resources corresponding to the target shipping market. Because the ROM image of the version corresponding to the target shipping market has been written into the mobile phone, when the target shipping market changes, the already written mobile phone cannot be directly deployed to the new shipping market.
  • An application installation method and a terminal provided by the present application can reduce the number of software versions of ROM images, help reduce the workload of terminal manufacturers in developing and maintaining software versions, and facilitate the terminal to be directly deployed to other target shipping markets. .
  • an application installation method provided in this application includes:
  • the terminal detects a startup operation; in response to the startup operation detected by the terminal, the terminal is turned on; if the terminal is turned on for the first time, the terminal obtains information about the target shipping market where the terminal is located; wherein the information of the target shipping market includes: Any one or more of the country, the operator where the terminal is located, and the area where the terminal is located; the terminal stores the installation package of the first application and the installation package of the second application; the terminal according to the information of the target delivery market information, and the terminal
  • the installation package of the first application stored in the system automatically installs the first application; wherein the application corresponding to the first application target delivery market, the first application is at least one; the terminal automatically deletes the installation package of the second application, and the second application is not Application corresponding to the target shipping market.
  • the first power-on of the terminal in the embodiments of the present application refers to the first power-on of the terminal after it leaves the factory, which is not included in the terminal's production stage.
  • the production line workers start the power-on when the terminal is powered on and tested.
  • the terminal can be tested for power-on by, for example, inserting a special SIM card.
  • the terminal detects a special SIM card, it will not perform the process of automatically installing a pre-installed application in the embodiment of the present application.
  • terminal manufacturers can prepare a common ROM image version, which contains pre-installed applications in all target shipping markets in a certain area (including at least two target shipping markets). It is beneficial to reduce the workload of developing and maintaining software versions for terminal manufacturers.
  • the terminal can be directly deployed from one target shipping market to another target market after leaving the factory.
  • the terminal obtaining the information about the target shipping market where the terminal is located includes: the terminal sends a terminal identifier to the first server; the terminal receives information about the target shipping market corresponding to the terminal identifier sent by the first server; or, The terminal reads the mobile country code MCC and mobile network code MNC in the national mobile subscriber identification code IMSI from the user identity module SIM of the terminal, and determines the information as the target shipping market; or, when the radio frequency network of the terminal is connected, the terminal calls the interface Obtain the information of the service provider and determine the information of the target shipping market; or, the terminal calls the Google Mobile Service GMS to obtain the geographical location and / or country information of the terminal and determine the information of the target shipping market; or, the terminal displays A first interface, the first interface is used to prompt a user to input a target shipping market where the terminal is located; the terminal determines the target shipping market where the terminal entered by the user in the first interface is the target shipping market.
  • the terminal may choose any one or several of the above methods to obtain the target shipping market information, or may sequentially obtain the target shipping market information according to a certain priority order.
  • the combination of modes and priority order are not limited.
  • the terminal automatically installing the first application according to the obtained target shipping market information includes: the terminal determining an application identifier corresponding to the first application according to the obtained target shipping market information; the terminal according to the first The application identifier corresponding to the application determines the installation package of the first application; the terminal uses the installation package of the first application to install the first application.
  • the method further includes: the terminal displays the first on the desktop Application icon.
  • deleting the installation package of the second application by the terminal includes: the terminal automatically starts deleting the installation package of the second application after the terminal is in the first preset time period; or the terminal displays the second interface and the second interface Used to ask the user whether to delete 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, the terminal detects that the terminal performs an operating system upgrade or cleans up After the storage space operation, the terminal starts to delete the installation package of the second application.
  • the method before the terminal deletes the installation package of the second application, the method further includes: the terminal writes an operation to be performed when the terminal is in the first working mode; the operation to be performed when the terminal is in the first working mode includes The terminal deletes the installation package of the second application.
  • the first working mode is that the terminal modifies data in the storage space and / or changes the operating mode of the terminal operating system; the terminal restarts and enters the first working mode.
  • the first partition in the storage space of the terminal is used to store the installation package of the first application and the installation package of the second application
  • the second partition in the storage space of the terminal is used to store data
  • the first The partition is adjacent to the second partition
  • 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; The size of the subsequent first partition is smaller than the size of the first partition; the terminal moves the installation package of the first application to the side of the first partition that is not adjacent to the second partition; the terminal modifies the address table of the first partition; the terminal modifies the first The address table of the two partitions;
  • the modified second partition includes the storage space in the first partition after the first partition is not stored, and the terminal is shut down or restarted again.
  • the method further includes: the terminal sends a list of the first application to the second server.
  • an application installation method includes:
  • the terminal detects a power-on operation; in response to the power-on operation detected by the terminal, the terminal powers up; if the terminal is powered on for the first time, the terminal reads the mobile country code MCC and mobile network in the national mobile user identification code IMSI from the user identity module SIM of the terminal.
  • Code MNC which is determined as the information of the target shipping market; among them, the information of the target shipping market includes: the country where the terminal is located, the operator where the terminal is located, and any one or several of the areas where the terminal is located;
  • the information of the delivery market and the installation package of the first application stored in the terminal automatically installs the first application.
  • the first application is at least one.
  • the terminal further stores an installation package of the second application, and the second application is not an application corresponding to the target delivery market; the method further includes: the terminal detects that the terminal performs an operating system upgrade or clears the storage space. After that, the terminal automatically deletes the installation package of the second application.
  • a terminal in a third aspect, includes a processor, a memory, and a touch screen.
  • the memory and the touch screen are coupled to the processor.
  • the memory is used to store computer program code.
  • the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, To perform the method as described in the first aspect and any of its possible implementations.
  • a terminal in a fourth aspect, includes a processor, a memory, and a touch screen.
  • the memory and the touch screen are coupled to the processor.
  • the memory is used to store computer program code.
  • the computer program code includes computer instructions. To perform the method as described in the second aspect and any one of its possible implementations.
  • a computer storage medium includes computer instructions, and when the computer instructions are run on a terminal, the terminal is caused to execute the method as described in the first aspect and any possible implementation manner thereof.
  • a computer storage medium includes computer instructions, and when the computer instructions are run on a terminal, the terminal is caused to execute the method as described in the second aspect and any possible implementation manner thereof.
  • a seventh aspect is a computer program product that, when the computer program product runs 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, when the computer program product runs on a computer, causes the computer to perform the method described in the second aspect and any one of its possible implementations.
  • FIG. 1 is a first schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 2 is a second schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a method for installing an application in a terminal according to an embodiment of the present application
  • FIG. 4A is a first form of a pre-installed installation package provided by an embodiment of the present application.
  • 4B is a second composition form of a pre-installed installation package provided by an embodiment of the present application.
  • 4C is a third form of a pre-installed installation package provided by an embodiment of the present application.
  • FIG. 5 is a first schematic flowchart of an application installation method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of some terminal interfaces according to an embodiment of the present application.
  • FIG. 7 is a second schematic flowchart of an application installation method according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another terminal interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a method for dividing storage space in a terminal according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of timings when several terminals start to recover storage space according to an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of a method for reclaiming storage space of a terminal according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of still other terminal interfaces according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a method for reclaiming storage space by a terminal according to an embodiment of the present application.
  • Pre-installed applications The terminal comes with its own factory, or is pre-stored or installed in the terminal by third-party flashing channels.
  • the application is not downloaded and installed by the user.
  • the terminal stores an installation package of such applications after the production is completed.
  • the terminal automatically installs such applications.
  • Pre-installed resources pre-installed resources related to some pictures, videos, music, files, etc.
  • Pre-installed installation package The installation package corresponding to the pre-installed application.
  • Pre-installed partition In the embodiment of the present application, in the production stage of the terminal, the pre-installed installation package is written into the storage space of the terminal. The area in the terminal storage space used to store the preinstalled installation package is the preinstalled partition.
  • the technical solution provided in the embodiment of the present application is that terminal manufacturers can respond to different target shipping markets.
  • Provide a common ROM image version contains pre-installed content for all target shipping markets, or the common ROM image version contains pre-installation for all target shipping markets in a certain region (including at least two target shipping markets).
  • Loading content refers to the market where the terminal sales destination is located, for example: a certain region, a certain country, or an operator in a certain country.
  • the pre-installed content includes an operating system installation package, a pre-installed application installation package, and pictures, videos, music, files and other resources related to the pre-installed application.
  • the target delivery market includes market A and market B
  • the pre-installed content is used as an example for description.
  • the pre-installed applications that Market A needs to install are Application 1, Application 2 and Application 3, and the pre-installed applications that Market B needs to install have Application 1 and Application 4.
  • the common ROM image version includes installation packages of application 1, application 2, application 3, and application 4.
  • the terminal manufacturer needs to write the corresponding ROM image version to the terminal according to the target shipping market, so that the terminal is called a customized product of the target shipping market, which in turn causes the terminal. It cannot be directly deployed to other target delivery markets, and it is also necessary to change the content stored in the terminal before deployment.
  • the terminal manufacturer burns the common ROM image version into the terminal.
  • the terminal contains pre-installed content of all target delivery markets, or pre-installed content of all target delivery markets in a certain area. Therefore, the terminal can be deployed directly from one target shipping market to another target market after leaving the factory.
  • the terminal After the terminal reaches the target shipping market, the user presses the power button, the terminal is turned on (that is, the terminal is turned on for the first time), and the terminal can obtain information about the target shipping market. For example: the country where the target shipping market is located, according to the relevant information, choose to install the pre-installed content corresponding to the target shipping market from the pre-installed content.
  • the terminal may delete the pre-installed content that does not need to be installed (that is, the pre-installed content that does not belong to the target shipping market) in order to recover the corresponding storage space. The specific implementation of this process will be described in detail below.
  • the terminal in this application may be a mobile phone, tablet computer, personal computer (PC), personal digital assistant (PDA), smart watch, netbook, wearable terminal, enhanced Augmented Reality (AR) equipment, Virtual Reality (VR) equipment, etc., this application does not specifically limit the specific form of the terminal.
  • PC personal computer
  • PDA personal digital assistant
  • AR Augmented Reality
  • VR Virtual Reality
  • FIG. 1 is a structural 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 charge 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, and an audio module.
  • a processor 110 an external memory interface 120, an internal memory 121, a USB interface 130, a charge 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, and an audio module.
  • speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display 194, and SIM card interface 195 may be included in the terminal 100.
  • the sensor module can include pressure sensor 180A, gyroscope sensor 180B, barometric pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, and ambient light sensor. 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not limit the terminal 100. It may include more or fewer parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU) Wait.
  • AP application processor
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image, signal processor, ISP
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural network processing unit
  • different processing units may be independent devices or integrated in one or more processors.
  • the controller may be a decision maker that instructs the various components of the terminal 100 to coordinate work according to the instructions. It is the nerve center and command center of the terminal 100.
  • the controller generates operation control signals according to the instruction operation code and timing signals, and completes the control of fetching and executing the instructions.
  • the processor 110 may further include a memory for storing instructions and data.
  • the memory in the processor is a cache memory, which can store instructions or data that the processor has just used or recycled. If the processor needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, the processor's waiting time is reduced, and the efficiency of the system is improved.
  • the processor 110 may include an interface.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
  • I2C integrated circuit
  • I2S integrated circuit
  • PCM pulse code modulation
  • UART universal asynchronous transceiver receiver / transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • SIM subscriber identity module
  • USB universal serial bus
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module may receive a charging input of a wired charger through a USB interface.
  • the charging management module may receive a wireless charging input through a wireless charging coil of the terminal 100. While the charging management module is charging the battery, it can also supply power to the terminal device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110.
  • the power management module receives inputs from the battery and / or charge management module, and supplies power to a processor, an internal memory, an external memory, a display screen, a camera, and a communication module.
  • the power management module can also be used to monitor battery capacity, battery cycle times, battery health (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charge management module may also be provided in the same device.
  • the wireless communication function of the terminal 100 may be implemented by the antenna module 1, the antenna module 2 radio frequency module 150, the communication module 160, a modem, and a baseband processor.
  • the antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals.
  • Each antenna in the terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, a cellular network antenna can be multiplexed into a wireless LAN diversity antenna. In some embodiments, the antenna may be used in conjunction with a tuning switch.
  • the radio frequency module 150 may provide a communication processing module applied to the terminal 100 and including a wireless communication solution such as 2G / 3G / 4G / 5G.
  • the radio frequency 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 from the antenna 1, and processes the received electromagnetic waves by filtering, amplifying, etc., and transmitting them to the modem for demodulation.
  • the radio frequency module can also amplify the signal modulated by the modem and turn it into electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the radio frequency module 150 may be disposed in the processor 150.
  • at least part of the functional modules of the radio frequency module 150 may be provided in the same device as at least part of the 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 to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs sound signals through audio equipment (not limited to speakers, receivers, etc.), or displays images or videos through a display screen.
  • the modem may be a separate device.
  • the modem may be independent of the processor and disposed in the same device as the radio frequency module or other functional modules.
  • the communication module 160 can provide wireless LAN (wireless local area networks, WLAN), Bluetooth (Bluetooth, BT), global navigation satellite system (GNSS), frequency modulation (FM) applied to the terminal 100.
  • Communication processing module for wireless communication solutions such as near field communication (NFC) and infrared (IR).
  • the communication module 160 may be one or more devices that integrate at least one communication processing module.
  • the communication module receives the electromagnetic wave through the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor.
  • the communication module 160 may also receive a signal to be transmitted from the processor, frequency-modulate it, amplify it, and turn it into electromagnetic wave radiation through the antenna 2.
  • the antenna 1 of the terminal 100 is coupled to a radio frequency module, and the antenna 2 is coupled to a communication module, so that the terminal 100 can communicate with a network and other devices through a wireless communication technology.
  • the wireless communication technology may include a global mobile communication system (GSM), a general packet radio service (GPRS), a code division multiple access (CDMA), and broadband.
  • GSM global mobile communication system
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • TD-SCDMA time-division code division multiple access
  • LTE long term evolution
  • BT GNSS
  • WLAN NFC
  • FM FM
  • IR technology IR
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS)) and / or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS beidou navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal may communicate with other devices, such as a server, through a communication module.
  • the terminal can inquire from the server the information of the target shipping market where the terminal is located, for example: the country where the terminal is located, or the information of the operator where the terminal is located, so that the terminal can choose to install the target based on the information of the target shipping market Pre-installed applications corresponding to the shipping market.
  • the terminal 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen and the 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 change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display includes a display panel.
  • the display panel can adopt LCD (liquid crystal display), OLED (organic light-emitting diode), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode) emitting diodes (AMOLED), flexible light-emitting diodes (FLEDs), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLEDs), etc.
  • the terminal 100 may include one or N display screens, where N is a positive integer greater than 1.
  • the terminal may display a graphical interface for interacting with the user through the display screen, for example: prompting the user to connect to the network to activate the installation process of the pre-installed application; or prompting the user to enter information about the target shipping market, such as the country Information, operator information, etc .; or asking the user whether to start the process of reclaiming storage space, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to achieve the expansion of the storage capacity of the terminal 100.
  • the external memory card communicates with the processor through an external memory interface to implement a data storage function. For example, save music, videos and other files on an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 100 by executing instructions stored in the internal memory 121.
  • the memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.) and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 100.
  • the memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, other volatile solid-state storage devices, a universal flash memory (universal flash storage, UFS), etc. .
  • a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, other volatile solid-state storage devices, a universal flash memory (universal flash storage, UFS), etc.
  • the storage space in the internal memory includes a system partition (which may be the aforementioned storage program area), a pre-installed partition, and a data partition (which may be the aforementioned storage data area).
  • the system partition stores a system installation package
  • the preinstalled partition stores a preinstalled installation package.
  • the preinstalled installation package includes a preinstalled application installation package and preinstalled resources of the preinstalled application, such as files, videos, pictures, and music. Wait.
  • the pre-installed partition and the data partition are adjacent.
  • the processor may install the corresponding pre-installed application and / or pre-installed resources in the pre-installed application by reading the pre-installed application installation package of the pre-installed partition.
  • the terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module can also be used to encode and decode audio signals.
  • 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 audio electrical signals into sound signals.
  • the terminal 100 can listen to music through a speaker or listen to a hands-free call.
  • the receiver 170B also referred to as the "handset" is used to convert audio electrical signals into sound signals.
  • the terminal 100 answers a call or a voice message, it can answer the voice by holding the receiver close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound through the mouth close to the microphone, and input the sound signal into the microphone.
  • the terminal 100 may be provided with at least one microphone.
  • the terminal 100 may be provided with two microphones, and in addition to collecting sound signals, a noise reduction function may also be implemented.
  • the terminal 100 may further be provided with three, four, or more microphones to collect sound signals, reduce noise, and also identify the source of the sound, and implement a directional recording function.
  • the headset interface 170D is used to connect a wired headset.
  • the earphone interface can be a USB interface or a 3.5mm open mobile terminal platform (OMTP) standard interface, and the American Cellular Telecommunications Industry Association (United States of America, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA American Cellular Telecommunications Industry Association
  • the keys 190 include a power-on key, a volume key, and the like.
  • the keys can be mechanical keys. It can also be a touch button.
  • the terminal 100 receives key input, and generates key signal inputs related to user settings and function control of the terminal 100.
  • the motor 191 may generate a vibration alert.
  • the motor can be used for incoming vibration alert and touch vibration feedback.
  • the touch operation applied to different applications can correspond to different vibration feedback effects.
  • Touch operations on different areas of the display can also correspond to different vibration feedback effects.
  • Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to a subscriber identity module (SIM).
  • SIM subscriber identity module
  • the SIM card can be contacted and separated from the terminal 100 by inserting or removing the SIM card interface.
  • the terminal 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple SIM cards can be inserted into the same SIM card interface at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface is also compatible with different types of SIM cards.
  • the SIM card interface is also compatible with external memory cards.
  • the terminal 100 interacts with the network through a SIM card to implement functions such as calling and data communication.
  • the terminal 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
  • the terminal may determine the information of the target shipping market where the terminal is located by reading the information in the SIM card inserted in the terminal, and further determine the pre-installed applications that need to be installed based on the information of the target shipping market.
  • the information in the SIM card includes: Mobile Country Code (MCC) and Mobile Network Code (MNC) in the SIM card.
  • MCC Mobile Country Code
  • MNC Mobile Network Code
  • MCC is used to uniquely identify the country to which the mobile terminal belongs, occupying three digits.
  • the MNC is used to identify the mobile communication network (ie, the operator information) where the mobile terminal is located, occupying 2 or 3 digits.
  • the software system of the terminal 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present invention takes the Android system with a layered architecture as an example, and exemplifies the software structure of the terminal 100.
  • FIG. 2 is a software structural block diagram of the terminal 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through interfaces.
  • the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and a system library, and a kernel layer from top to bottom.
  • the application layer may include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application layer of the terminal when the terminal leaves the factory, the application layer of the terminal includes a pre-installed application installation package.
  • the installation packages of these pre-installed applications include the installation packages of the pre-installed applications corresponding to the terminal in the target shipping market, and also include the installation packages of the pre-installed applications corresponding to the target shipping market.
  • the terminal may delete the installation package of the pre-installed application corresponding to the target shipping market.
  • the application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • 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 to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and so on.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can consist of one or more views.
  • the display interface including the SMS notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide a communication function of the terminal 100. For example, management of call status (including connection, hang up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are displayed in the status bar, a tone is emitted, the terminal vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library OpenGL ES, 2D graphics engine SGL, etc.
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • OpenGL ES is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • SGL is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the technical solutions involved in the following embodiments can be implemented in a terminal (for example, the terminal 100) having the foregoing hardware architecture and software architecture.
  • terminal manufacturers can develop a common ROM image version for at least two target shipping markets with different preinstalled contents.
  • a terminal operating system installation package (hereinafter referred to as a system installation package), a pre-installed application installation package, and a pre-installed resource (hereinafter referred to as a pre-installed installation package) are packaged into a ROM image.
  • the pre-installed installation package contains pre-installed content of all target delivery markets, or pre-installed content of all target delivery markets in a certain region. Specifically, it includes all pre-installed application installation packages and pre-installed resources for these multiple target shipping markets.
  • the pre-installed installation package may also contain the difference information of the pre-installed content of each target shipping market. For example: information about the pre-installed application installation package corresponding to each target shipping market, and layout design corresponding to each target shipping market.
  • pre-installed applications are generally different.
  • pre-installed resources are generally resources in pre-installed applications.
  • Pre-installed resources are usually included in the installation package of the pre-installed application.
  • the installation package of the pre-installed application also loads the corresponding resources. Therefore, the installation package of a pre-installed application is included as an example for description.
  • the pre-installed installation package 401 includes the pre-installed application installation package 402 and the difference information of each terminal product, for example: different market difference information 403 corresponding to the terminal, and different types of terminals (for example, mobile phones, tablet computers, etc.) ( 4A), and different models of the terminal (for example, mate9, mate10, etc.) (not shown in FIG. 4A), and the like.
  • different market difference information 403 corresponding to the terminal
  • different types of terminals for example, mobile phones, tablet computers, etc.
  • different models of the terminal for example, mate9, mate10, etc.
  • the pre-installed application installation package 402 includes all pre-installed application installation packages of the target delivery market (market 1, market 2, etc.), for example: application 1, application 2, application 3, application 4, and so on.
  • the difference information 403 in different markets includes difference information in different target shipping markets, such as market 1 difference information 404 and market 2 difference information 405.
  • the application list (or directory, list) 1 in the market 1 difference information 404 contains the identifications of the following applications: application 1, application 2, and application 3.
  • the application list (or directory, list) 2 in the market 2 difference information 405 includes the following application identifiers: application 1 and application 4. For details, please refer to Table 1:
  • the terminal may search the pre-installed installation package corresponding to the pre-installed application list 1 and the layout design file 1 from the pre-installed installation package. Then, according to the identifier of the pre-installed application determined in the pre-installed application list 1, an installation package corresponding to the identifier of each pre-installed application is searched from the pre-installed application installation package 402. Finally, install the corresponding pre-installed application according to the found installation package of the pre-installed application. After the pre-installed application is installed on the terminal, the display position of the icon of each pre-installed application on the desktop of the terminal may also be determined according to the layout design file 1.
  • a common pre-installed installation package may also be adopted for terminals of different types and different models.
  • the pre-installed installation package includes installation packages for pre-installed applications of all types and types of terminals in all target shipping markets. When the terminal reaches the target shipping market, first determine the information of the target shipping market, and then find the corresponding difference information from the pre-installed installation package according to the information of the target shipping market corresponding to the terminal, the type of the terminal, and the model of the terminal. To further determine the pre-installed applications that the terminal should automatically install.
  • the different market difference information 403 may specifically include the market 1 difference information 406 and the market 2 difference information.
  • the market 1 difference information 406 also includes terminal type 1 (or terminal model 1) information 407 and terminal type 2 (or terminal model 2) information.
  • terminal type 1 or terminal model 1
  • terminal type 2 or terminal model 2
  • the different market difference information 403 may specifically include terminal type 1 (or terminal model 1) information 408 and terminal type 2 (or terminal model 2) information.
  • the terminal type 1 (or terminal model 1) information 408 further includes market 1 difference information 406 and market 2 difference information.
  • the terminal type 1 (or terminal model 1) 408 can be used to find market 1 difference information 406.
  • the corresponding pre-installed application list 1 determines the pre-installed application of the terminal. For the remaining steps, refer to the related description above.
  • the terminal manufacturer writes a common ROM image version to the terminal, which means that the storage space of the terminal contains the installation packages of all pre-installed applications in the target shipping market, or contains a certain area. Pre-installed application installation packages for all target shipping markets. In this way, only one version of the ROM image needs to be prepared.
  • the method provided in the embodiment of the present application is helpful to simplify the production process and save labor costs.
  • the software and hardware of the same type of terminal are the same, so when the terminal manufacturer ships to each target shipping market, it can also be directly deployed from one target shipping market to another target shipping market without modifying the ROM image. Facilitate the rapid delivery and quick response of end products.
  • the terminal After the terminal reaches the target shipping market and is powered on for the first time, you can obtain information about the target shipping market (such as country information, operator information, etc.) through information such as the network where the terminal is located, information about the SIM card installed on the terminal, and then The information of the shipping market, determine and install the pre-installed application corresponding to the target shipping market.
  • information about the target shipping market such as country information, operator information, etc.
  • a schematic flowchart of an application installation method provided by an embodiment of the present application includes:
  • the terminal is turned on for the first time.
  • the first power-on of the terminal in the embodiments of the present application refers to the first power-on of the terminal after it leaves the factory, which is not included in the terminal's production stage.
  • the production line workers start the power-on when the terminal is powered on and tested.
  • the terminal can be tested for power-on by, for example, inserting a special SIM card.
  • the terminal detects a special SIM card, it does not execute the process of automatically installing a pre-installed application in the embodiment of the present application (ie, step S102 and subsequent steps).
  • the terminal after the terminal leaves the factory, it may be determined by querying the first flag bit whether the terminal is turned on for the first time. For example, before the terminal leaves the factory, the first flag bit is set to a specific value, which indicates that the terminal has not been turned on or the process of installing a pre-installed application has not been performed. After the terminal is powered on, when the first flag bit is detected to be a specific value, the subsequent steps (ie, steps S102 and subsequent steps) are performed. After the terminal has performed the installation of the pre-installed application, the terminal sets the first flag bit to another value, which indicates that the terminal has been powered on, or has performed the process of installing the pre-installed application.
  • the terminal is turned on again and it is detected that the first flag bit is not a specific value, it can be determined that the terminal is not turned on for the first time, or the terminal has already performed the process of installing a pre-installed application, and the terminal will not perform steps S102 and subsequent steps .
  • the terminal obtains information about a target shipping market where the terminal is located.
  • the target delivery market refers to the market where the terminal is sold, and it can also be understood as the market where the terminal is used. Specifically, it can refer to the region, country, and operator when the terminal is used.
  • the terminal can obtain the information of the target shipping market in the following ways, as follows:
  • Method 1 The terminal is connected to the network and queries the server's target shipping market information from the server.
  • the terminal After the terminal detects the user's operation of pressing the power key, the terminal automatically installs the terminal's operating system according to the operating system installation package. After the operating system is installed, the terminal displays a navigation interface to prompt the user to set some basic information, which can include prompt Users connect to Wireless Local Area Networks (WLANs).
  • WLANs Wireless Local Area Networks
  • FIG. 6 it is a schematic diagram of some navigation interfaces displayed after the terminal is turned on for the first time.
  • the basic information set by the user may include a setting language, an interface as shown in (1) in FIG. 6, and signing various agreements and the like.
  • the interface shown in (1) in FIG. 6 may include a status bar 601 and a language setting item 602.
  • the user can select the language used by the terminal through the language setting item 602.
  • the terminal may also prompt the user to connect to the network, as shown in the interface shown in (2) in FIG. 6.
  • the interface may include a status bar 601, a network setting item 603, and a return button 604. Wherein, in response to the user clicking the return button 604, the terminal displays the previous interface of the current interface.
  • the terminal In response to the operation of the network (for example, 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. A setting item 605 is used in this interface to prompt the user to activate the installation of a pre-installed application. If the connection fails, the terminal displays the interface as shown in (4) of FIG. 6. In this interface, a pop-up dialog box 606 is used to prompt the user to connect to the WLAN. After activating the installation of pre-installed applications, the terminal can enter the terminal Desktop. The user can re-enter the network connection interface through the button of the network connection in the dialog box 606, that is, the interface shown in (2) in FIG. 6.
  • activation here refers to the process of starting the pre-installed application by the terminal.
  • the activation process may be an independent service or a service included in other networked services, such as a member service or a cloud service, which is not limited in the embodiment of the present application.
  • the terminal sends a terminal identifier to the server.
  • the terminal identifier may be a serial number (SN) of the terminal, or an international mobile equipment identity (IMEI) of the terminal.
  • SN serial number
  • IMEI international mobile equipment identity
  • the terminal displays the interface for activating the installation of pre-installed applications.
  • the terminal can establish a communication connection with the server.
  • the identity of the terminal can be sent to the server.
  • the address of the server can be stored in the terminal so that the terminal can find the corresponding server.
  • S203 The server queries the information about the target shipping market corresponding to the terminal identifier according to the terminal identifier.
  • the server may be a purchase, sales, inventory (PSI) database or a device used by other terminal manufacturers to store terminal sales.
  • the sales situation of the terminal includes the circulation information after the terminal leaves the factory, including the information of the target delivery market that the terminal finally arrived at.
  • the server stores the correspondence between the terminal identification and the target shipping market.
  • the server can query the information of the target shipping market corresponding to the terminal identifier according to the terminal identifier.
  • the server sends the queried information of the target shipping market to the terminal.
  • the server may adopt a custom over-the-air technology non-coy (COTA) method, and send it to the terminal through a COTA upgrade package, where the COTA upgrade package includes information of a target shipping market. Therefore, the terminal can obtain the information of the target shipping market corresponding to the terminal by downloading and installing the upgrade package of COTA.
  • COOTA over-the-air technology non-coy
  • the terminal may execute steps S103 and S104, that is, determine the preset applications corresponding to the target shipping market according to the obtained target shipping market information, and find the installation packages corresponding to these pre-installed applications, decompress and install these presets. application.
  • the server stores the correspondence between the terminal and the target shipping market information, but the server does not have the list information of the pre-installed applications corresponding to the target shipping market. Therefore, after the terminal has installed the pre-installed application, the terminal can upload the list of pre-installed applications to the server (shown in step S205 in FIG. 7), and the server saves the list of pre-installed applications uploaded by the terminal (step 7 in FIG. 7). S206). In this way, it is convenient for the server to perform service management such as charging for the installation of the pre-installed application in the terminal and charging for the activation of the pre-installed application according to the list of pre-installed applications.
  • Method 2 The terminal can obtain the information of the target shipping market through the SIM module in the terminal.
  • the SIM module may be a hardware SIM card, or may be implemented in software (such as e-SIM) and store a National Mobile Subscriber Identification Number (IMSI).
  • IMSI is an identifier that distinguishes a mobile terminal.
  • IMSI contains Mobile Country Code (MCC) and Mobile Network Code (MNC).
  • MCC Mobile Country Code
  • MNC Mobile Network Code
  • MCC is used to uniquely identify the country to which the mobile terminal belongs, occupying three digits. For example: China is 460.
  • the MNC is used to identify the mobile communication network (ie, the operator information) where the mobile terminal is located, occupying two or three digits.
  • China Mobile's TD system uses 00
  • China Unicom's GSM system uses 01
  • China Mobile's GSM system uses 02
  • China Telecom's CDMA system uses 03.
  • the terminal after the terminal is turned on for the first time, it can detect whether there is a SIM module in the terminal. If the SIM module is detected, it can be used as the target shipping market by reading the country information in the MCC in the SIM card and / or the operator information in the MNC. information.
  • Method 3 When the terminal's radio frequency network is connected (can make emergency calls), the terminal can call the system's standard interface to obtain information about the target shipping market.
  • the terminal is an Android system for illustration.
  • the terminal can call the standard interface of the Android system, for example: call the interface getSimOperratorName () or Returns the Service Provider Name () to obtain the name of the service provider, such as: Telecom, China Unicom , Mobile, etc. as information for the target shipping market.
  • getSimOperratorName or Returns the Service Provider Name () to obtain the name of the service provider, such as: Telecom, China Unicom , Mobile, etc. as information for the target shipping market.
  • Method four The terminal can obtain the target shipping market information through some preset services, such as Google Mobile Service (GMS).
  • GMS Google Mobile Service
  • the operating system and some preset services are automatically installed, and then the navigation interface is displayed.
  • these preset services for example, there are some services in the GMS that can obtain geographic location or country information.
  • map service In the embodiments of the present application, country information may be obtained through these services as target shipping market information.
  • Method five The terminal may prompt the user to input information of the target shipping market, such as country information.
  • the terminal After the terminal detects the user's power-on operation, it displays a navigation interface and prompts the user to set some basic information, including prompting the user to enter country information.
  • FIG. 8 some schematic diagrams of the navigation interface after the terminal is powered on for the first time.
  • the basic information set by the user includes the setting language, the interface as shown in (1) in Figure 8, and the signing of various agreements.
  • the interface shown in (1) in FIG. 8 may include a status bar 801 and a language setting item 802.
  • the terminal may also display information prompting the user to select or enter a target shipping market, such as country information or operator information, as shown in the interface shown in (2) of FIG. 8.
  • the interface may include a status bar 801, a country setting item 803, and a return button 804. The user can select or enter country information through the country setting item 803.
  • the terminal can use the country information or operator information selected or input by the user as the information of the target shipping market. Then, determine the pre-installed application corresponding to the target shipping market, that is, execute steps S103 and S104.
  • the terminal may choose any one or several of the above methods to obtain the target shipping market information, or may sequentially obtain the target shipping market information according to a certain priority order.
  • the combination of modes and priority order are not limited.
  • the terminal determines the installation package of the pre-installed application that needs to be installed according to the information of the target delivery market.
  • the pre-installed installation package in the terminal is taken as an example to describe the organizational form shown in FIG. 4A.
  • the terminal may search the pre-installed application list corresponding to the target shipping market from the different market difference information 403 according to the obtained information of the target shipping market.
  • the pre-installed application list includes an identifier of the pre-installed application corresponding to the target shipping market. Then, the terminal may find the application installation package corresponding to the pre-installed application identifier from the pre-installed application installation package 402 according to the identification of the pre-installed application.
  • the terminal automatically installs the corresponding pre-installed application according to the determined installation package of the pre-installed application.
  • the terminal decompresses the installation package of the pre-installed application and installs the corresponding pre-installed application.
  • the terminal may also find a layout design file corresponding to the target shipping market. Then, in this step, the icons of the installed pre-installed applications are laid out according to the found layout design file.
  • the terminal stores an installation package of pre-installed applications corresponding to the target shipping market (which may be recorded as a first pre-installed installation package), a large number of pre-installed applications that do not belong to the target shipping market are also stored.
  • Installation package can be recorded as the second pre-installed installation package). Since these second pre-installed installation packages occupy a large amount of storage space of the terminal, the storage resources of the terminal will be wasted. Therefore, the terminal may retain only the first pre-installed installation package, so that subsequent terminals need to reinstall the pre-installed application, and delete the second pre-installed installation package to free up corresponding storage space.
  • the entire process of deleting the second pre-installed installation package by the terminal to release the corresponding storage space may be referred to as a process of reclaiming the storage space.
  • the terminal can divide a system partition and a pre-installed partition in the storage space.
  • the system partition is used to store the system installation package
  • the pre-installed partition is used to store the pre-installed installation package.
  • the divided pre-installed partition may be adjacent to the data partition of the terminal.
  • the divided pre-installed partition may be adjacent to the data partition, and the file system of the pre-installed partition is consistent with the file system of the data partition, for example, both adopt a Flash Friendly File System (F2FS) .
  • the storage address of the pre-installed partition may be located at a high position of the data partition storage address, as shown in (3) of FIG. 9, and the storage address of the pre-installed partition may also be located at a low position of the data partition storage address, as shown in (1) of FIG. 9. As shown.
  • Two pre-installed installation packages) are re-divided into data partitions. As shown in (2) and (4) in FIG. 9, some pre-installed partitions are re-divided into data partitions. In other words, after the terminal is powered on for the first time, after installing the pre-installed application corresponding to the target shipping market, the installation package of the pre-installed application that does not need to be installed can be deleted, so that the space vacated after the deletion can be used to store data.
  • FIG. 10 it is a schematic diagram of a timing of starting recovery of storage space by several terminals provided in the embodiment of the present application.
  • the terminal is turned on for the first time at time t1.
  • the terminal displays a boot navigation interface, instructing the user to set basic information.
  • the terminal obtains the target shipping market information and installs a pre-installed application corresponding to the target shipping market information.
  • the terminal is installed, and a second flag bit can be set to identify that there is recyclable storage space in the pre-installed partition of the terminal.
  • the terminal may also set the second flag bit at a time before or at time t4, which is not limited in the embodiment of the present application. Then, the terminal can automatically start the process of reclaiming the storage space that is not used in the pre-installed partition, that is, the process of reclaiming the storage space at time t4 refers to time t5.
  • the terminal may wait for a preset period of time (from time t4 to time t5, for example, 6 hours) after installing the pre-installed application.
  • the process of reclaiming unused storage space in the pre-installed partition is automatically started, that is, the process of reclaiming storage space is executed from time t5 to time t6, where time t6 is the time when the process of reclaiming storage space ends.
  • the process of reclaiming storage space may not be started first. Instead, during certain subsequent operations performed by the terminal, such as: operating system upgrade, or when the user clears space (for example, using a mobile phone butler application), the user is asked whether to start or automatically start the process of reclaiming storage space.
  • the terminal when a user instruction is detected at time t5, the terminal initiates the recovery of the unused storage space in the pre-installed partition, that is, the process of reclaiming the storage space is executed from time t5 to time t6.
  • the operating system upgrade is started on the terminal at t5, and the recovery of the unused storage space in the pre-installed partition can be started before, at the same time, or after the operating system upgrade of the terminal.
  • the terminal detects that the user cleans up the space, and the recovery of the unused storage space in the pre-installed partition may be started before, at the same time, or after the terminal clears the space.
  • FIG. 11 it is a schematic flowchart of a method for reclaiming storage space according to an embodiment of the present application, and specifically includes the following steps:
  • the terminal displays a graphical interface and asks the user whether to initiate a process for reclaiming storage space.
  • the terminal may ask the user whether to start the process of reclaiming storage space by popping up a dialog box or displaying information in a notification bar.
  • FIG. 12 (1) it is a graphical interface of the terminal.
  • the interface may include a status bar 1201, a time and weather control 1202, and icons of multiple applications, for example, an icon 1203 of a calendar.
  • the interface may also include a dialog box 1204.
  • This dialog box 1204 is used to ask the user whether to start the process of reclaiming storage space.
  • (2) in FIG. 12 it is another graphical interface of the terminal.
  • the interface may further include a notification bar 1205.
  • the notification bar 1205 is used to display a prompt message to ask the user whether to start the process of reclaiming storage space.
  • the terminal can also ask the user whether to start the process of reclaiming storage space by popping up a dialog box or displaying information in the notification bar before or after the operating system upgrade, or before or after the terminal clears space.
  • the embodiment of the present application does not limit the interface of the terminal query.
  • step S302 The terminal detects a user operation. If it is detected that the user initiates the operation of reclaiming storage space, step S304 is performed; if it is detected that the user does not initiate the operation of reclaiming storage space, step S303 is performed.
  • the terminal detects that the user is in the interface shown in (1) of FIG. 12 and clicks the “Yes” button, or the terminal detects that the user is in the interface shown in (2) of FIG. 12 and clicks “Yes” Button to confirm the operation of reclaiming storage space. If the terminal detects that the user is in the interface shown in (1) of FIG. 12 and clicks the “No” button, or the terminal detects that the user is in the interface shown in (2) of FIG. 12 and clicks the “No” button, It is determined that the operation of reclaiming storage space is not started.
  • the terminal does not perform the operation of reclaiming storage space, and continues to execute the original procedure of the terminal.
  • the terminal After the terminal is installed for the first time after the pre-installed application is installed, the user is asked whether to start the process of reclaiming storage space. When it is detected that the user does not start the process of reclaiming storage space, the terminal may display a home screen interface. Before upgrading the operating system, the terminal asks the user whether to start the process of reclaiming storage space. When it is detected that the user does not start the process of reclaiming storage space, the terminal can perform an operating system upgrade.
  • the terminal initiates a process for reclaiming storage space.
  • the terminal may write, for example, a MISC partition (a standard partition of the android system) to perform operations that the terminal needs to perform after restarting (for example, deleting installation packages of pre-installed applications that are not needed in the pre-installed partition, and The storage space occupied by the pre-installed application installation package that is not needed in the installation partition is recycled as a data partition, etc.), and restarted.
  • a MISC partition a standard partition of the android system
  • the Recovery mode is a backup function of the terminal, which can modify the data inside the terminal or the system of the terminal.
  • the terminal can perform limited operations, which is not the normal working mode of the terminal.
  • the terminal may continue to perform subsequent operations by calling data in the MISC partition.
  • the MISC partition stores the booting information of the Recovery program and the content that needs to be performed after the terminal restarts.
  • the terminal deletes an installation package of a preinstalled application that is not needed in the preinstalled partition.
  • FIG. 13 it is a schematic diagram of the storage space of the terminal before the terminal deletes the installation package that does not require pre-installed applications.
  • the pre-installed partitions require pre-installed partitions.
  • the installation package of the installed application and the installation package of the unnecessary pre-installed application are stored alternately.
  • (2) in FIG. 13 it is a schematic diagram of the storage space of the terminal after deleting the installation package that does not require pre-installed applications for the terminal.
  • the size of the original pre-installed partition is subtracted from the size of the installation package that does not require pre-installed applications to be deleted, and the size of a certain reserved space is added as the size of the pre-installed partition after space recovery.
  • the size of the installation package of the pre-installed application that needs to be calculated, plus the size of a certain reserved space is used as the size of the pre-installed partition after space recovery.
  • the required pre-installed application installation package can be migrated to the other end of the pre-installed partition that is not adjacent to the data partition.
  • the storage space of the terminal is schematically illustrated. It can be seen that the terminal migrates the required pre-installed application installation package to the beginning of the pre-installed partition, and the end of the pre-installed partition is adjacent to the data partition.
  • the installation package of the preinstalled application that needs to be used needs to be migrated to the end of the preinstalled partition.
  • the unnecessary space in the pre-installed partition is adjacent to the data partition of the terminal, so these unnecessary storage spaces can be directly divided into the data partition.
  • this is an example of the terminal storage space after the terminal has modified the pre-installed partition table.
  • step S310 Check whether the pre-installed partition is normal. If normal, step S312 is continued, otherwise step S311 is performed.
  • the erecovery mode is a terminal recovery mode, which is usually used to upgrade the terminal to the latest version when the terminal cannot be turned on or the system is unstable, so that the terminal can be used normally.
  • the terminal if the terminal is powered off or the hardware fails during the process of reclaiming storage space, the terminal will work abnormally, and the user will be prompted to take action.
  • this is an example of the storage space of the terminal after the data partition table is modified by the terminal.
  • step S313. Check whether the data partition is normal? If normal, step S315 is continued, otherwise step S314 is performed.
  • S314 Prompt the user for an abnormality and guide the user to perform processing, such as formatting a data partition.
  • the terminal After the process of reclaiming the storage space of the terminal ends, the terminal needs to exit the current Recovery mode and re-enter the normal working mode of the terminal, that is, the user can use the terminal to enter the desktop and run the corresponding application.
  • the terminal can be restarted automatically, or the terminal can be closed, and the user can turn it on again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The present application relates to the technical field of communications and provides an application installation method and a terminal, facilitating to reduce the number of software versions of an ROM image, reduce the workload of developing and maintaining software versions of a mobile phone manufacturer, and facilitating the direct deployment of a terminal to other target shipping markets. The method comprises: the terminal detects a startup operation and is started; if the terminal is started for the first time, information of a target shipping market where the terminal is located is obtained, the information of the target shipping market comprising: any one or more of a country where the terminal is located, an operator where the terminal is located, and a 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 obtained information of the target shipping market and the installation package stored in the terminal, wherein the first application is an application corresponding to the target shipping market; and the terminal deletes the installation package of the second application, wherein the second application is not the application corresponding to the target shipping market.

Description

一种应用的安装方法及终端Application installation method and terminal 技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种应用的安装方法及终端。The present application relates to the field of communication technologies, and in particular, to an application installation method and a terminal.
背景技术Background technique
随着智能手机市场的竞争越来越激烈,手机厂商也都越来越重视全球市场。通常,不同国家的运营商网络制式不同,不同国家的相关法律不同,不同地区的消费者使用习惯不同等原因,使得手机厂商需要根据目标发货市场(包括不同区域、不同国家以及不同运营商)为手机预先存储或安装一些不同的内容,例如:不同的应用,以及应用中不同的图片、视频、文件等资源。也就是说,即便是同一手机厂商的同一型号的手机上的预先存储或安装内容也可能不同。As competition in the smart phone market becomes more intense, mobile phone manufacturers are paying more and more attention to the global market. Generally, different countries have different network standards for carriers, different laws in different countries, and different consumer habits in different regions. For this reason, mobile phone manufacturers need to target delivery markets (including different regions, different countries, and different operators). Store or install some different content for the phone in advance, for example: different applications, and different resources such as pictures, videos, and files in the application. That is to say, even the pre-stored or installed content on the same mobile phone of the same mobile phone manufacturer may be different.
现有技术中,手机厂商可以将手机操作系统、需要预先存储或安装的应用的安装包打包成一个只读存储器(read only memory,ROM)镜像(image),即一种记录只读存储器芯片数据副本。显然,即便是同一型号的手机,手机厂商也需要针对不同的目标发货市场开发、发行和维护不同版本的ROM镜像,即ROM镜像的软件版本数量大,手机厂商的工作量大,人力成本高。In the prior art, a mobile phone manufacturer can package a mobile phone operating system and an installation package of an application that needs to be stored or installed in advance into a read-only memory (ROM) image, that is, a type of data that records read-only memory chips. Copy. Obviously, even for mobile phones of the same model, mobile phone manufacturers also need to develop, issue, and maintain different versions of ROM images for different target shipping markets. That is, the number of software versions of ROM images is large, the workload of mobile phone manufacturers is high, and the labor cost is high. .
而后,在手机的生产过程中,手机厂商将目标发货市场对应版本的ROM镜像烧录到手机中(即将目标发货市场对应版本的ROM镜像写入到手机的存储空间中),以便手机根据ROM镜像安装手机操作系统、以及安装与目标发货市场对应的预装应用和预装资源。由于手机已经写入了与目标发货市场对应版本的ROM镜像,当目标发货市场发生改变时,已经写入完成的手机不能直接调配到新的发货市场。Then, in the production process of the mobile phone, the mobile phone manufacturer burns the ROM image of the corresponding version of the target shipping market into the mobile phone (that is, writes the ROM image of the corresponding version of the target shipping market into the storage space of the mobile phone), so that the mobile phone can The ROM image installs the mobile phone operating system, and installs pre-installed applications and pre-installed resources corresponding to the target shipping market. Because the ROM image of the version corresponding to the target shipping market has been written into the mobile phone, when the target shipping market changes, the already written mobile phone cannot be directly deployed to the new shipping market.
综上,上述现有技术加大了手机厂商的工作量,且不利于手机在不同目标发货市场之间的流转。In summary, the above-mentioned existing technologies increase the workload of mobile phone manufacturers and are not conducive to the circulation of mobile phones between different target delivery markets.
发明内容Summary of the Invention
本申请提供的一种应用的安装方法及终端,可以减少ROM镜像的软件版本的数量,有利于降低终端厂商的开发和维护软件版本的工作量,且有利于终端直接调配到其他目标发货市场。An application installation method and a terminal provided by the present application can reduce the number of software versions of ROM images, help reduce the workload of terminal manufacturers in developing and maintaining software versions, and facilitate the terminal to be directly deployed to other target shipping markets. .
第一方面,本申请提供的一种应用的安装方法,包括:In a first aspect, an application installation method provided in this application includes:
终端检测到开机操作;响应于终端检测到的开机操作,终端开机;若终端为首次开机,则终端获取终端所在的目标发货市场的信息;其中,目标发货市场的信息包括:终端所在的国家、终端所在的运营商以及终端所在区域中任一项或任几项;终端存储有第一应用的安装包和第二应用的安装包;终端根据获取的目标发货市场的信息,和终端中存储的第一应用的安装包,自动安装第一应用;其中,第一应用目标发货市场对应的应用,第一应用为至少一个;终端自动删除第二应用的安装包,第二应用不是目标发货市场对应的应用。The terminal detects a startup operation; in response to the startup operation detected by the terminal, the terminal is turned on; if the terminal is turned on for the first time, the terminal obtains information about the target shipping market where the terminal is located; wherein the information of the target shipping market includes: Any one or more of the country, the operator where the terminal is located, and the area where the terminal is located; the terminal stores the installation package of the first application and the installation package of the second application; the terminal according to the information of the target delivery market information, and the terminal The installation package of the first application stored in the system automatically installs the first application; wherein the application corresponding to the first application target delivery market, the first application is at least one; the terminal automatically deletes the installation package of the second application, and the second application is not Application corresponding to the target shipping market.
需要说明的是,本申请实施例中的终端首次开机,是指终端出厂后的第一次上电,不包含在终端的生产阶段中,产线工人对终端进行上电检测时的开机。在终端的生产 阶段中,可以通过例如插入特殊的SIM卡,对终端进行上电检测。终端在检测到特殊的SIM卡,不会执行本申请实施例中的自动安装预装应用的流程。It should be noted that the first power-on of the terminal in the embodiments of the present application refers to the first power-on of the terminal after it leaves the factory, which is not included in the terminal's production stage. The production line workers start the power-on when the terminal is powered on and tested. In the terminal's production phase, the terminal can be tested for power-on by, for example, inserting a special SIM card. When the terminal detects a special SIM card, it will not perform the process of automatically installing a pre-installed application in the embodiment of the present application.
由此可见,终端中存储有全部目标发货市场的预装应用。也就是说,终端厂商可以准备一个共同的ROM镜像版本,该版本中包含有某个区域(包括至少两个目标发货市场)内全部目标发货市场的预装应用。有利于减少有利于降低终端厂商的开发和维护软件版本的工作量。It can be seen that all pre-installed applications in the target shipping market are stored in the terminal. In other words, terminal manufacturers can prepare a common ROM image version, which contains pre-installed applications in all target shipping markets in a certain area (including at least two target shipping markets). It is beneficial to reduce the workload of developing and maintaining software versions for terminal manufacturers.
再有,由于终端中存储有全部目标发货市场的预装应用,那么,终端在出厂后,可以在直接从一个目标发货市场调配到另一个目标市场。Furthermore, since all pre-installed applications in the target shipping market are stored in the terminal, the terminal can be directly deployed from one target shipping market to another target market after leaving the factory.
一种可能的实现方式中,终端获取终端所在的目标发货市场的信息包括:终端向第一服务器发送终端标识;终端接收第一服务器发送的终端标识对应的目标发货市场的信息;或者,终端从终端的用户标识模块SIM中,读取国家移动用户识别码IMSI中移动国家码MCC和移动网络码MNC,确定为目标发货市场的信息;或者,当终端的射频网络连通时,终端调用接口获取服务提供商的信息,确定为目标发货市场的信息;或者,终端调用谷歌移动服务GMS,获取终端所在的地理位置和/或国家信息,确定为目标发货市场的信息;或者,终端显示第一界面,第一界面用于提示用户输入终端所在的目标发货市场;终端将用户在第一界面中输入的终端所在的目标发货市场确定为目标发货市场。In a possible implementation manner, the terminal obtaining the information about the target shipping market where the terminal is located includes: the terminal sends a terminal identifier to the first server; the terminal receives information about the target shipping market corresponding to the terminal identifier sent by the first server; or, The terminal reads the mobile country code MCC and mobile network code MNC in the national mobile subscriber identification code IMSI from the user identity module SIM of the terminal, and determines the information as the target shipping market; or, when the radio frequency network of the terminal is connected, the terminal calls the interface Obtain the information of the service provider and determine the information of the target shipping market; or, the terminal calls the Google Mobile Service GMS to obtain the geographical location and / or country information of the terminal and determine the information of the target shipping market; or, the terminal displays A first interface, the first interface is used to prompt a user to input a target shipping market where the terminal is located; the terminal determines the target shipping market where the terminal entered by the user in the first interface is the target shipping market.
需要说明的是,终端可以选取上述方式中任一种或任几种的方式来获取目标发货市场信息,也可以按照一定的优先级顺序依次获取目标发货市场信息,本申请实施例对获取方式的组合以及优先级顺序均不做限定。It should be noted that the terminal may choose any one or several of the above methods to obtain the target shipping market information, or may sequentially obtain the target shipping market information according to a certain priority order. The combination of modes and priority order are not limited.
一种可能的实现方式中,终端根据获取的目标发货市场的信息,自动安装第一应用包括:终端根据获取的目标发货市场的信息,确定第一应用对应的应用标识;终端根据第一应用对应的应用标识,确定第一应用的安装包;终端使用第一应用的安装包,安装第一应用。In a possible implementation manner, the terminal automatically installing the first application according to the obtained target shipping market information includes: the terminal determining an application identifier corresponding to the first application according to the obtained target shipping market information; the terminal according to the first The application identifier corresponding to the application determines the installation package of the first application; the terminal uses the installation package of the first application to install the first application.
一种可能的实现方式中,在终端根据获取的目标发货市场的信息,和终端中存储的第一应用的安装包,自动安装第一应用之后,方法还包括:终端在桌面上显示第一应用的图标。In a possible implementation manner, after the terminal automatically installs the first application according to the obtained target shipping market information and the installation package of the first application stored in the terminal, the method further includes: the terminal displays the first on the desktop Application icon.
一种可能的实现方式中,终端删除第二应用的安装包包括:终端在第一预设时间段后,终端自动开始删除第二应用的安装包;或者,终端显示第二界面,第二界面用于询问用户是否删除第二应用的安装包;终端检测到用户删除第二应用的安装包的操作;终端开始删除第二应用的安装包;或者,终端检测到终端执行操作系统升级,或清理存储空间的操作之后,终端开始删除第二应用的安装包。In a possible implementation manner, deleting the installation package of the second application by the terminal includes: the terminal automatically starts deleting the installation package of the second application after the terminal is in the first preset time period; or the terminal displays the second interface and the second interface Used to ask the user whether to delete 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, the terminal detects that the terminal performs an operating system upgrade or cleans up After the storage space operation, 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 an operation to be performed when the terminal is in the first working mode; the operation to be performed when the terminal is in the first working mode includes The terminal deletes the installation package of the second application. The first working mode is that the terminal modifies data in the storage space and / or changes the operating mode of the terminal operating system; the terminal restarts and enters the first working mode.
一种可能的实现方式中,终端的存储空间中的第一分区用于存储第一应用的安装包和第二应用的安装包,终端的存储空间中的第二分区用于存储数据;第一分区与第二分区相邻;在终端删除第二应用的安装包之后,该方法还包括:终端计算第一应用 的安装包的文件大小,以确定修改后的第一分区的大小;其中,修改后的第一分区的大小小于第一分区的大小;终端将第一应用的安装包移动到第一分区中与第二分区不相邻的一边;终端修改第一分区的地址表;终端修改第二分区的地址表;其中,修改后的第二分区包括移动后第一分区中没有存储第一应用的安装包的存储空间;终端关机或再次重启。In a possible implementation manner, the first partition in the storage space of the terminal is used to store the installation package of the first application and the installation package of the second application, and the second partition in the storage space of the terminal is used to store data; the first The 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; The size of the subsequent first partition is smaller than the size of the first partition; the terminal moves the installation package of the first application to the side of the first partition that is not adjacent to the second partition; the terminal modifies the address table of the first partition; the terminal modifies the first The address table of the two partitions; the modified second partition includes the storage space in the first partition after the first partition is not stored, and the terminal is shut down or restarted again.
一种可能的实现方式中,在终端根据获取的目标发货市场的信息,自动安装第一应用之后,方法还包括:终端向第二服务器发送第一应用的列表。In a possible implementation manner, after the terminal automatically installs the first application according to the obtained target shipping market information, the method further includes: the terminal sends a list of the first application to the second server.
第二方面、提供一种应用的安装方法,方法包括:In a second aspect, an application installation method is provided. The method includes:
终端检测到开机操作;响应于终端检测到的开机操作,终端开机;若终端为首次开机,则终端从终端的用户标识模块SIM中,读取国家移动用户识别码IMSI中移动国家码MCC和移动网络码MNC,确定为目标发货市场的信息;其中,目标发货市场的信息包括:终端所在的国家、终端所在的运营商以及终端所在区域中任一项或任几项;终端根据获取的目标发货市场的信息,和终端中存储的第一应用的安装包,自动安装第一应用;其中,第一应用目标发货市场对应的应用,第一应用为至少一个。The terminal detects a power-on operation; in response to the power-on operation detected by the terminal, the terminal powers up; if the terminal is powered on for the first time, the terminal reads the mobile country code MCC and mobile network in the national mobile user identification code IMSI from the user identity module SIM of the terminal. Code MNC, which is determined as the information of the target shipping market; among them, the information of the target shipping market includes: the country where the terminal is located, the operator where the terminal is located, and any one or several of the areas where the terminal is located; The information of the delivery market and the installation package of the first application stored in the terminal automatically installs the first application. Among the applications corresponding to the first application target delivery market, the first application is at least one.
一种可能的实现方式中,终端还存储有第二应用的安装包,第二应用不是目标发货市场对应的应用;方法还包括:终端检测到终端执行操作系统升级,或清理存储空间的操作之后,终端自动删除第二应用的安装包。In a possible implementation manner, the terminal further stores an installation package of the second application, and the second application is not an application corresponding to the target delivery market; the method further includes: the terminal detects that the terminal performs an operating system upgrade or clears the storage space. After that, the terminal automatically deletes the installation package of the second application.
第三方面、一种终端,包括:处理器、存储器和触摸屏,存储器、触摸屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,以执行如第一方面及其中任一种可能的实现方式中的所述的方法。In a third aspect, a terminal includes a processor, a memory, and a touch screen. The memory and the touch screen are coupled to the processor. The memory is used to store computer program code. The computer program code includes computer instructions. When the processor reads the computer instructions from the memory, To perform the method as described in the first aspect and any of its possible implementations.
第四方面、一种终端,包括:处理器、存储器和触摸屏,存储器、触摸屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,以执行如第二方面及其中任一种可能的实现方式中的所述的方法。In a fourth aspect, a terminal includes a processor, a memory, and a touch screen. The memory and the touch screen are coupled to the processor. The memory is used to store computer program code. The computer program code includes computer instructions. To perform the method as described in the second aspect and any one of its possible implementations.
第五方面、一种计算机存储介质,包括计算机指令,当计算机指令在终端上运行时,使得终端执行如第一方面及其中任一种可能的实现方式中所述的方法。According to a fifth aspect, a computer storage medium includes computer instructions, and when the computer instructions are run on a terminal, the terminal is caused to execute the method as described in the first aspect and any possible implementation manner thereof.
第六方面、一种计算机存储介质,包括计算机指令,当计算机指令在终端上运行时,使得终端执行如第二方面及其中任一种可能的实现方式中所述的方法。According to a sixth aspect, a computer storage medium includes computer instructions, and when the computer instructions are run on a terminal, the terminal is caused to execute the method as described in the second aspect and any possible implementation manner thereof.
第七方面、一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面中及其中任一种可能的实现方式中所述的方法。A seventh aspect is a computer program product that, when the computer program product runs 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, when the computer program product runs on a computer, causes the computer to perform the method described in the second aspect and any one of its possible implementations.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种终端的结构示意图一;FIG. 1 is a first schematic structural diagram of a terminal according to an embodiment of the present application; FIG.
图2为本申请实施例提供的一种终端的结构示意图二;FIG. 2 is a second schematic structural diagram of a terminal according to an embodiment of the present application; FIG.
图3为本申请实施例提供的一种终端中应用的安装方法的示意图;3 is a schematic diagram of a method for installing an application in a terminal according to an embodiment of the present application;
图4A为本申请实施例提供的一种预装安装包的组成形式一;FIG. 4A is a first form of a pre-installed installation package provided by an embodiment of the present application; FIG.
图4B为本申请实施例提供的一种预装安装包的组成形式二;4B is a second composition form of a pre-installed installation package provided by an embodiment of the present application;
图4C为本申请实施例提供的一种预装安装包的组成形式三;4C is a third form of a pre-installed installation package provided by an embodiment of the present application;
图5为本申请实施例提供的一种应用的安装方法的流程示意图一;FIG. 5 is a first schematic flowchart of an application installation method according to an embodiment of the present application; FIG.
图6为本申请实施例提供的一些终端界面的示意图;6 is a schematic diagram of some terminal interfaces according to an embodiment of the present application;
图7为本申请实施例提供的一种应用的安装方法的流程示意图二;FIG. 7 is a second schematic flowchart of an application installation method according to an embodiment of the present application; FIG.
图8为本申请实施例提供的另一些终端界面的示意图;8 is a schematic diagram of another terminal interface provided by an embodiment of the present application;
图9为本申请实施例提供的一种终端中存储空间划分方法的示意图;9 is a schematic diagram of a method for dividing storage space in a terminal according to an embodiment of the present application;
图10为本申请实施例提供的几种终端启动回收存储空间的时机的示意图;FIG. 10 is a schematic diagram of timings when several terminals start to recover storage space according to an embodiment of the present application; FIG.
图11为本申请实施例提供的一种终端存储空间的回收方法的流程示意图;11 is a schematic flowchart of a method for reclaiming storage space of a terminal according to an embodiment of the present application;
图12为本申请实施例提供的又一些终端界面的示意图;FIG. 12 is a schematic diagram of still other terminal interfaces according to an embodiment of the present application; FIG.
图13为本申请实施例提供的终端回收存储空间方法的示意图。FIG. 13 is a schematic diagram of a method for reclaiming 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-installed applications: The terminal comes with its own factory, or is pre-stored or installed in the terminal by third-party flashing channels. The application is not downloaded and installed by the user. In the embodiment of the present application, the terminal stores an installation package of such applications after the production is completed. When a user powers on the terminal for the first time to start the terminal, the terminal automatically installs such applications.
预装资源:预装应用相关的一些图片、视频、音乐、文件等资源。Pre-installed resources: pre-installed resources related to some pictures, videos, music, files, etc.
预装安装包:即预装应用对应的安装包。Pre-installed installation package: The installation package corresponding to the pre-installed application.
预装分区:在本申请实施例中,在终端的生产阶段,会将预装安装包写入到终端的存储空间中。终端存储空间中用于存储预装安装包的区域即为预装分区。Pre-installed partition: In the embodiment of the present application, in the production stage of the terminal, the pre-installed installation package is written into the storage space of the terminal. The area in the terminal storage space used to store the preinstalled installation package is the preinstalled partition.
考虑到现有技术中终端厂商因需要开发和维护不同版本的ROM镜像而带来大量的工作量,本申请实施例提供的技术方案,如图3所示,终端厂商针对不同目标发货市场能够提供一个共同的ROM镜像版本。该共同的ROM镜像版本中包含有全部目标发货市场的预装内容,或者该共同的ROM镜像版本中包含有某个区域(包括至少两个目标发货市场)内全部目标发货市场的预装内容。其中,目标发货市场是指终端销售目的地所在的市场,例如:某个地区、某个国家或某个国家的某个运营商等。其中,预装内容包括操作系统安装包、预装应用的安装包,以及预装应用相关的图片、视频、音乐、文件等资源。Considering that in the prior art, the terminal manufacturers need to develop and maintain different versions of ROM images, which brings a lot of workload. As shown in FIG. 3, the technical solution provided in the embodiment of the present application is that terminal manufacturers can respond to different target shipping markets. Provide a common ROM image version. The common ROM image version contains pre-installed content for all target shipping markets, or the common ROM image version contains pre-installation for all target shipping markets in a certain region (including at least two target shipping markets). Loading content. Among them, the target shipping market refers to the market where the terminal sales destination is located, for example: a certain region, a certain country, or an operator in a certain country. The pre-installed content includes an operating system installation package, a pre-installed application installation package, and pictures, videos, music, files and other resources related to the pre-installed application.
举例来说,以目标发货市场包含有市场A和市场B,以预装内容为预装应用为例进行说明。市场A需要安装的预装应用有应用1,应用2和应用3,市场B需要安装的预装应用有应用1和应用4。那么,该共同ROM镜像版本中包含有应用1、应用2、应用3和应用4的安装包。For example, the target delivery market includes market A and market B, and the pre-installed content is used as an example for description. The pre-installed applications that Market A needs to install are Application 1, Application 2 and Application 3, and the pre-installed applications that Market B needs to install have Application 1 and Application 4. Then, the common ROM image version includes installation packages of application 1, application 2, application 3, and application 4.
在现有技术中,在终端的生产阶段,终端厂商需要根据目标发货市场将对应的ROM镜像版本的写入到终端中,使得终端称为该目标发货市场的定制产品,进而造成该终端不能直接调配到其他目标发货市场,还需要改变终端中已存储的内容才能进行调配。然而,在本申请实施例中,仍然如图3所示,在终端的生产阶段,终端厂商将该共同的ROM镜像版本烧录到终端中。此时,该终端中包含有全部目标发货市场的预装内容,或者某个区域内全部的目标发货市场的预装内容。因此,该终端在出厂后,可以在直接从一个目标发货市场调配到另一个目标市场。In the prior art, during the production phase of the terminal, the terminal manufacturer needs to write the corresponding ROM image version to the terminal according to the target shipping market, so that the terminal is called a customized product of the target shipping market, which in turn causes the terminal. It cannot be directly deployed to other target delivery markets, and it is also necessary to change the content stored in the terminal before deployment. However, in the embodiment of the present application, as shown in FIG. 3, at the terminal production stage, the terminal manufacturer burns the common ROM image version into the terminal. At this time, the terminal contains pre-installed content of all target delivery markets, or pre-installed content of all target delivery markets in a certain area. Therefore, the terminal can be deployed directly from one target shipping market to another target market after leaving the factory.
在本申请实施例中,后续,继续参见图3,终端到达目标发货市场后,用户按下电源键,终端开机(即终端的首次开机),终端可以获取该目标发货市场的相关信息,例如:该目标发货市场所在国家,根据该相关信息从预装内容中选择安装该目标发货市场对应的预装内容。在本申请的另一些实施例中,终端可以对不需要安装的预装内容(即不属于该目标发货市场对应的预装内容)进行删除,以便回收相应的存储空间。该过程的具体实现将在下文详细介绍。In the embodiment of the present application, referring to FIG. 3 afterwards, after the terminal reaches the target shipping market, the user presses the power button, the terminal is turned on (that is, the terminal is turned on for the first time), and the terminal can obtain information about the target shipping market. For example: the country where the target shipping market is located, according to the relevant information, choose to install the pre-installed content corresponding to the target shipping market from the pre-installed content. In other embodiments of the present application, the terminal may delete the pre-installed content that does not need to be installed (that is, the pre-installed content that does not belong to the target shipping market) in order to recover the corresponding storage space. The specific implementation of this process will be described in detail below.
示例性的,本申请中的终端可以为可以安装应用的手机、平板电脑、个人计算机(Personal Computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴终端、增强现实技术(Augmented Reality,AR)设备、虚拟现实(Virtual Reality,VR)设备等,本申请对该终端的具体形式不做特殊限制。Exemplarily, the terminal in this application may be a mobile phone, tablet computer, personal computer (PC), personal digital assistant (PDA), smart watch, netbook, wearable terminal, enhanced Augmented Reality (AR) equipment, Virtual Reality (VR) equipment, etc., this application does not specifically limit the specific form of the terminal.
图1是本发明实施例的终端100的结构框图。FIG. 1 is a structural block diagram of a terminal 100 according to an embodiment of the present invention.
终端100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,射频模块150,通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及SIM卡接口195等。其中传感器模块可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charge 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, and an audio module. 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display 194, and SIM card interface 195. The sensor module can include pressure sensor 180A, gyroscope sensor 180B, barometric pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, and ambient light sensor. 180L, bone conduction sensor 180M, etc.
本发明实施例示意的结构并不构成对终端100的限定。可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。The structure illustrated in the embodiment of the present invention does not limit the terminal 100. It may include more or fewer parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU) Wait. Among them, different processing units may be independent devices or integrated in one or more processors.
控制器可以是指挥终端100的各个部件按照指令协调工作的决策者。是终端100的神经中枢和指挥中心。控制器根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be a decision maker that instructs the various components of the terminal 100 to coordinate work according to the instructions. It is the nerve center and command center of the terminal 100. The controller generates operation control signals according to the instruction operation code and timing signals, and completes the control of fetching and executing the instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器中的存储器为高速缓冲存储器,可以保存处理器刚用过或循环使用的指令或数据。如果处理器需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器的等待时间,因而提高了系统的效率。The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor is a cache memory, which can store instructions or data that the processor has just used or recycled. If the processor needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, the processor's waiting time is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口 (mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include an interface. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块可以通过USB接口接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块可以通过终端100的无线充电线圈接收无线充电输入。充电管理模块为电池充电的同时,还可以通过电源管理模块141为终端设备供电。The charging management module 140 is configured to receive a 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 a charging input of a wired charger through a USB interface. In some embodiments of wireless charging, the charging management module may receive a wireless charging input through a wireless charging coil of the terminal 100. While the charging management module is charging the battery, it can also supply power to the terminal device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块接收所述电池和/或充电管理模块的输入,为处理器,内部存储器,外部存储器,显示屏,摄像头,和通信模块等供电。电源管理模块还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在一些实施例中,电源管理模块141也可以设置于处理器110中。在一些实施例中,电源管理模块141和充电管理模块也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110. The power management module receives inputs from the battery and / or charge management module, and supplies power to a processor, an internal memory, an external memory, a display screen, a camera, and a communication module. The power management module can also be used to monitor battery capacity, battery cycle times, battery health (leakage, impedance) and other parameters. 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 charge management module may also be provided in the same device.
终端100的无线通信功能可以通过天线模块1,天线模块2射频模块150,通信模块160,调制解调器以及基带处理器等实现。The wireless communication function of the terminal 100 may be implemented by the antenna module 1, the antenna module 2 radio frequency module 150, the communication module 160, a modem, and a baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将蜂窝网天线复用为无线局域网分集天线。在一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, a cellular network antenna can be multiplexed into a wireless LAN diversity antenna. In some embodiments, the antenna may be used in conjunction with a tuning switch.
射频模块150可以提供应用在终端100上的包括2G/3G/4G/5G等无线通信的解决方案的通信处理模块。射频模块可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(Low Noise Amplifier,LNA)等。射频模块由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调器进行解调。射频模块还可以对经调制解调器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,射频模块150的至少部分功能模块可以被设置于处理器150中。在一些实施例中,射频模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The radio frequency module 150 may provide a communication processing module applied to the terminal 100 and including a wireless communication solution such as 2G / 3G / 4G / 5G. The radio frequency 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 from the antenna 1, and processes the received electromagnetic waves by filtering, amplifying, etc., and transmitting them to the modem for demodulation. The radio frequency module can also amplify the signal modulated by the modem and turn it into electromagnetic wave radiation through the antenna 1. In some embodiments, at least part of the functional modules of the radio frequency module 150 may be disposed in the processor 150. In some embodiments, at least part of the functional modules of the radio frequency module 150 may be provided in the same device as at least part of the 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 to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs sound signals through audio equipment (not limited to speakers, receivers, etc.), or displays images or videos through a display screen. In some embodiments, the modem may be a separate device. In some embodiments, the modem may be independent of the processor and disposed in the same device as the radio frequency module or other functional modules.
通信模块160可以提供应用在终端100上的包括无线局域网(wireless local area networks,WLAN),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案的通信处理模 块。通信模块160可以是集成至少一个通信处理模块的一个或多个器件。通信模块经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器。通信模块160还可以从处理器接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The communication module 160 can provide wireless LAN (wireless local area networks, WLAN), Bluetooth (Bluetooth, BT), global navigation satellite system (GNSS), frequency modulation (FM) applied to the terminal 100. Communication processing module for wireless communication solutions such as near field communication (NFC) and infrared (IR). The communication module 160 may be one or more devices that integrate at least one communication processing module. The communication module receives the electromagnetic wave through the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor. The communication module 160 may also receive a signal to be transmitted from the processor, frequency-modulate it, amplify it, and turn it into electromagnetic wave radiation through the antenna 2.
在一些实施例中,终端100的天线1和射频模块耦合,天线2和通信模块耦合,使得终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS))和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal 100 is coupled to a radio frequency module, and the antenna 2 is coupled to a communication module, so that the terminal 100 can communicate with a network and other devices through a wireless communication technology. The wireless communication technology may include a global mobile communication system (GSM), a general packet radio service (GPRS), a code division multiple access (CDMA), and broadband. Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS)) and / or satellite-based augmentation systems (SBAS).
在本申请的一些实施例中,终端可以通过通信模块与其他设备进行通信,例如服务器。终端可以从服务器中查询该终端所在目标发货市场的信息,例如:该终端所在的国家信息,或该终端所在的运营商的信息,以便终端可以根据目标发货市场的信息,选择安装该目标发货市场对应的预装应用等。In some embodiments of the present application, the terminal may communicate with other devices, such as a server, through a communication module. The terminal can inquire from the server the information of the target shipping market where the terminal is located, for example: the country where the terminal is located, or the information of the operator where the terminal is located, so that the terminal can choose to install the target based on the information of the target shipping market Pre-installed applications corresponding to the shipping market.
终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen and the 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 change display information.
显示屏194用于显示图像,视频等。显示屏包括显示面板。显示面板可以采用LCD(liquid crystal display,液晶显示屏),OLED(organic light-emitting diode,有机发光二极管),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端100可以包括1个或N个显示屏,N为大于1的正整数。The display screen 194 is used to display images, videos, and the like. The display includes a display panel. The display panel can adopt LCD (liquid crystal display), OLED (organic light-emitting diode), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode) emitting diodes (AMOLED), flexible light-emitting diodes (FLEDs), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLEDs), etc. In some embodiments, the terminal 100 may include one or N display screens, where N is 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 the display screen, for example: prompting the user to connect to the network to activate the installation process of the pre-installed application; or prompting the user to enter information about the target shipping market, such as the country Information, operator information, etc .; or asking the user whether to start the process of reclaiming storage space, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端100的存储能力。外部存储卡通过外部存储器接口与处理器通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to achieve the expansion of the storage capacity of the terminal 100. The external memory card communicates with the processor through an external memory interface to implement a data storage function. For example, save music, videos and other files on an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端100的各种功能应用以及数据处理。存储器121可以包括存储程序区和存储数据区。其中,存储 程序区可存储操作系统,至少一个功能所需的应用(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,其他易失性固态存储器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the terminal 100 by executing instructions stored in the internal memory 121. The memory 121 may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.) and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 100. In addition, the memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, other volatile solid-state storage devices, a universal flash memory (universal flash storage, UFS), etc. .
在本申请实施例中,内部存储器中的存储空间包含系统分区(可以是上述的存储程序区)、预装分区和数据分区(可以是上述的存储数据区)。其中,系统分区中存储有系统安装包,预装分区中存储有预装安装包,预装安装包包括预装应用的安装包、预装应用的预装资源,例如文件、视频、图片、音乐等。在本申请的一些实施例中,预装分区和数据分区相邻。处理器可以通过读取预装分区的预装应用的安装包,安装相应的预装应用和/或预装应用中的预装资源。In the embodiment of the present application, the storage space in the internal memory includes a system partition (which may be the aforementioned storage program area), a pre-installed partition, and a data partition (which may be the aforementioned storage data area). The system partition stores a system installation package, and the preinstalled partition stores a preinstalled installation package. The preinstalled installation package includes a preinstalled application installation package and preinstalled resources of the preinstalled application, such as files, videos, pictures, and music. Wait. In some embodiments of the present application, the pre-installed partition and the data partition are adjacent. The processor may install the corresponding pre-installed application and / or pre-installed resources in the pre-installed application by reading the pre-installed application installation package of the pre-installed partition.
终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. Such as music playback, recording, etc.
音频模块用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块还可以用于对音频信号编码和解码。在一些实施例中,音频模块可以设置于处理器110中,或将音频模块的部分功能模块设置于处理器110中。The audio module is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module can 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.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端100可以通过扬声器收听音乐,或收听免提通话。The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals. The terminal 100 can listen to music through a speaker or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端100接听电话或语音信息时,可以通过将受话器靠近人耳接听语音。The receiver 170B, also referred to as the "handset", is used to convert audio electrical signals into sound signals. When the terminal 100 answers a call or a voice message, it can answer the voice by holding the receiver close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风发声,将声音信号输入到麦克风。终端100可以设置至少一个麦克风。在一些实施例中,终端100可以设置两个麦克风,除了采集声音信号,还可以实现降噪功能。在一些实施例中,终端100还可以设置三个,四个或更多麦克风,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound through the mouth close to the microphone, and input the sound signal into the microphone. The terminal 100 may be provided with at least one microphone. In some embodiments, the terminal 100 may be provided with two microphones, and in addition to collecting sound signals, a noise reduction function may also be implemented. In some embodiments, the terminal 100 may further be provided with three, four, or more microphones to collect sound signals, reduce noise, and also identify the source of the sound, and implement a directional recording function.
耳机接口170D用于连接有线耳机。耳机接口可以是USB接口,也可以是3.5mm的开放移动终端平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headset interface 170D is used to connect a wired headset. The earphone interface can be a USB interface or a 3.5mm open mobile terminal platform (OMTP) standard interface, and the American Cellular Telecommunications Industry Association (United States of America, CTIA) standard interface.
按键190包括开机键,音量键等。按键可以是机械按键。也可以是触摸式按键。终端100接收按键输入,产生与终端100的用户设置以及功能控制有关的按键信号输入。The keys 190 include a power-on key, a volume key, and the like. The keys can be mechanical keys. It can also be a touch button. The terminal 100 receives key input, and generates key signal inputs related to user settings and function control of the terminal 100.
马达191可以产生振动提示。马达可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏不同区域的触摸操作,也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 may generate a vibration alert. The motor can be used for incoming vibration alert and touch vibration feedback. For example, the touch operation applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations on different areas of the display can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接用户标识模块(subscriber identity module,SIM)。SIM卡可以通过插入SIM卡接口,或从SIM卡接口拔出,实现和终端100的接触和分离。终端100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口也可以兼容不同类型的SIM卡。SIM卡接口也可以兼容外部存储卡。终端100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端100中,不能和终端100分离。The SIM card interface 195 is used to connect to a subscriber identity module (SIM). The SIM card can be contacted and separated from the terminal 100 by inserting or removing the SIM card interface. The terminal 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple SIM cards can be inserted into the same SIM card interface at the same time. The types of the multiple cards may be the same or different. The SIM card interface is also compatible with different types of SIM cards. The SIM card interface is also compatible with external memory cards. The terminal 100 interacts with the network through a SIM card to implement functions such as calling and data communication. In some embodiments, the terminal 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
在本申请的一些实施例中,终端可以通过读取终端中插入的SIM卡中的信息,确定终端所在目标发货市场的信息,进一步根据目标发货市场的信息,确定需要安装的预装应用。其中SIM卡中的信息包括:SIM卡中的移动国家码(Mobile Country Code,MCC)和移动网络码(Mobile Network Code,MNC)。其中,MCC用于唯一识别移动终端所属的国家,占3位数字。MNC用于识别移动终端所在的移动通信网络(即运营商信息),占2位或3位数字。In some embodiments of the present application, the terminal may determine the information of the target shipping market where the terminal is located by reading the information in the SIM card inserted in the terminal, and further determine the pre-installed applications that need to be installed based on the information of the target shipping market. . The information in the SIM card includes: Mobile Country Code (MCC) and Mobile Network Code (MNC) in the SIM card. Among them, MCC is used to uniquely identify the country to which the mobile terminal belongs, occupying three digits. The MNC is used to identify the mobile communication network (ie, the operator information) where the mobile terminal is located, occupying 2 or 3 digits.
终端100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明终端100的软件结构。The software system of the terminal 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system with a layered architecture as an example, and exemplifies the software structure of the terminal 100.
图2是本发明实施例的终端100的软件结构框图。FIG. 2 is a software structural block diagram of the terminal 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用层,应用框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through interfaces. In some embodiments, the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and a system library, and a kernel layer from top to bottom.
应用层可以包括一系列应用包。The application layer may include a series of application packages.
如图2所示,应用包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用。As shown in FIG. 2, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
在本申请实施例中,终端在出厂时,终端的应用层中包括预装应用的安装包。这些预装应用的安装包包括终端在目标发货市场对应的预装应用的安装包,也包括不属于该目标发货市场对应的预装应用的安装包。然而,在终端根据目标发货市场信息,安装完该目标发货市场对应的预装应用后,终端可以删除不属于该目标发货市场对应的预装应用的安装包。In the embodiment of the present application, when the terminal leaves the factory, the application layer of the terminal includes a pre-installed application installation package. The installation packages of these pre-installed applications include the installation packages of the pre-installed applications corresponding to the terminal in the target shipping market, and also include the installation packages of the pre-installed applications corresponding to the target shipping market. However, after the terminal finishes installing the pre-installed application corresponding to the target shipping market according to the target shipping market information, the terminal may delete the installation package of the pre-installed application corresponding to the target shipping market.
应用框架层为应用层的应用提供应用编程接口(application programming interface,API)和编程框架。应用框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。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 to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and so on.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can consist of one or more views. For example, the display interface including the SMS notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供终端100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide a communication function of the terminal 100. For example, management of call status (including connection, hang up, etc.).
资源管理器为应用提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform download completion, message reminders, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are displayed in the status bar, a tone is emitted, the terminal vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
应用层和应用框架层运行在虚拟机中。虚拟机将应用层和应用框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库OpenGL ES,2D图形引擎SGL等。The system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library OpenGL ES, 2D graphics engine SGL, etc.
表面管理器用于对显示子系统进行管理,并且为多个应用提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
OpenGL ES用于实现三维图形绘图,图像渲染,合成,和图层处理等。OpenGL ES is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
SGL是2D绘图的绘图引擎。SGL is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
以下实施例中所涉及的技术方案均可以在具有上述硬件架构和软件架构的终端(例如终端100)中实现。The technical solutions involved in the following embodiments can be implemented in a terminal (for example, the terminal 100) having the foregoing 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 drawings.
软件开发阶段,终端厂商可以针对至少两个预装的内容不完全相同的目标发货市场,开发一个共同的ROM镜像版本。During the software development phase, terminal manufacturers can develop a common ROM image version for at least two target shipping markets with different preinstalled contents.
具体的,将终端操作系统的安装包(以下简称系统安装包)、预装应用的安装包和预装资源(以下简称预装安装包)打包到一个ROM镜像中。Specifically, a terminal operating system installation package (hereinafter referred to as a system installation package), a pre-installed application installation package, and a pre-installed resource (hereinafter referred to as a pre-installed installation package) are packaged into a ROM image.
其中,预装安装包中包含有全部目标发货市场的预装内容,或者某个区域内全部目标发货市场的预装内容。具体的,包含有这多个目标发货市场所有的预装应用的安 装包和预装资源。该预装安装包还可以包含有各个目标发货市场预装内容的差异性信息。例如:各个目标发货市场对应的预装应用安装包的信息,各个目标发货市场对应的布局设计等信息。The pre-installed installation package contains pre-installed content of all target delivery markets, or pre-installed content of all target delivery markets in a certain region. Specifically, it includes all pre-installed application installation packages and pre-installed resources for these multiple target shipping markets. The pre-installed installation package may also contain the difference information of the pre-installed content of each target shipping market. For example: information about the pre-installed application installation package corresponding to each target shipping market, and layout design corresponding to each target shipping market.
需要说明的是,不同目标发货市场的终端操作系统基本相同,而预装应用和预装资源一般不同。另外,预装资源一般是预装应用中的资源,预装资源通常包含在预装应用的安装包里,安装了预装应用的安装包也就加载了相应的资源。故先以预装应用的安装包包含资源为例进行说明。It should be noted that the terminal operating systems of different target delivery markets are basically the same, and pre-installed applications and pre-installed resources are generally different. In addition, pre-installed resources are generally resources in pre-installed applications. Pre-installed resources are usually included in the installation package of the pre-installed application. The installation package of the pre-installed application also loads the corresponding resources. Therefore, the installation package of a pre-installed application is included as an example for description.
例如:如图4A所示,为一种预装安装包组成形式的示例。具体的,预装安装包401包括预装应用安装包402和各个终端产品的差异性信息,例如:终端对应的不同市场差异性信息403、终端不同的类型(例如:手机、平板电脑等)(图4A中未示出)、以及终端不同的型号(例如:mate 9、mate10等)(图4A中未示出)等。For example, as shown in FIG. 4A, it is an example of a pre-installed installation package composition form. Specifically, the pre-installed installation package 401 includes the pre-installed application installation package 402 and the difference information of each terminal product, for example: different market difference information 403 corresponding to the terminal, and different types of terminals (for example, mobile phones, tablet computers, etc.) ( 4A), and different models of the terminal (for example, mate9, mate10, etc.) (not shown in FIG. 4A), and the like.
其中,预装应用安装包402中包含有所有的目标发货市场(市场1、市场2等)的预装应用的安装包,例如:应用1、应用2、应用3、应用4等。其中,不同市场差异性信息403中包括不同目标发货市场的差异性信息,例如市场1差异性信息404和市场2差异性信息405。The pre-installed application installation package 402 includes all pre-installed application installation packages of the target delivery market (market 1, market 2, etc.), for example: application 1, application 2, application 3, application 4, and so on. The difference information 403 in different markets includes difference information in different target shipping markets, such as market 1 difference information 404 and market 2 difference information 405.
举例来说,假设市场1需要安装的预装应用有应用1,应用2和应用3,市场2需要安装的预装应用有应用1和应用4。那么,市场1差异性信息404中的应用列表(或者目录、清单)1包含有以下应用的标识:应用1,应用2和应用3。市场2差异性信息405中的应用列表(或者目录、清单)2包含的以下应用的标识:应用1和应用4。具体也可以参考表一,如下:For example, suppose that the pre-installed applications that need to be installed in market 1 include application 1, application 2 and application 3, and the pre-installed applications that need to be installed in market 2 include application 1 and application 4. Then, the application list (or directory, list) 1 in the market 1 difference information 404 contains the identifications of the following applications: application 1, application 2, and application 3. The application list (or directory, list) 2 in the market 2 difference information 405 includes the following application identifiers: application 1 and application 4. For details, please refer to Table 1:
表一Table I
Figure PCTCN2018101776-appb-000001
Figure PCTCN2018101776-appb-000001
需要说明的是,终端到达目标发货市场后,再确定目标发货市场的信息。假设为市场1时,终端可以从预装安装包中查找市场1对应预装应用列表1和布局设计文件1。然后根据预装应用列表1中确定预装应用的标识,从预装应用安装包402中查找各个预装应用的标识对应的安装包。最后根据查找到的预装应用的安装包,安装相应的预装应用。在终端安装完成预装应用后,还可以根据布局设计文件1,确定各个预装应用的图标的在终端桌面上的显示位置。It should be noted that after the terminal reaches the target shipping market, the information of the target shipping market is determined. When it is assumed that the market is 1, the terminal may search the pre-installed installation package corresponding to the pre-installed application list 1 and the layout design file 1 from the pre-installed installation package. Then, according to the identifier of the pre-installed application determined in the pre-installed application list 1, an installation package corresponding to the identifier of each pre-installed application is searched from the pre-installed application installation package 402. Finally, install the corresponding pre-installed application according to the found installation package of the pre-installed application. After the pre-installed application is installed on the terminal, the display position of the icon of each pre-installed application on the desktop of the terminal may also 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 installation package may also be adopted for terminals of different types and different models. The pre-installed installation package includes installation packages for pre-installed applications of all types and types of terminals in all target shipping markets. When the terminal reaches the target shipping market, first determine the information of the target shipping market, and then find the corresponding difference information from the pre-installed installation package according to the information of the target shipping market corresponding to the terminal, the type of the terminal, and the model of the terminal. To further determine the pre-installed applications that the terminal should automatically install.
如图4B所示,为另一种预装安装包组成形式的示例。其中:不同市场差异性信息403具体可以包括市场1差异性信息406和市场2差异性信息等。其中,市场1差 异性信息406还包括终端类型1(或终端型号1)信息407和终端类型2(或终端型号2)信息等。举例来说,终端在确定目标发货市场为市场1后,可以在市场1差异性信息406中,查找终端类型或型号对应的预装应用列表,确定终端的预装应用。其余步骤可参考上文相关描述。As shown in FIG. 4B, it is another example of the composition of the pre-installed installation package. Wherein: the different market difference information 403 may specifically include the market 1 difference information 406 and the market 2 difference information. The market 1 difference information 406 also includes terminal type 1 (or terminal model 1) information 407 and terminal type 2 (or terminal model 2) information. For example, after determining that the target shipping market is market 1, the terminal may search the pre-installed application list corresponding to the terminal type or model in market 1 difference information 406 to determine the pre-installed application of the terminal. For the remaining steps, refer to the related description above.
如图4C所示,为又一种预装安装包组成形式的示例。其中:不同市场差异性信息403具体可以包括终端类型1(或终端型号1)信息408和终端类型2(或终端型号2)信息等。其中,终端类型1(或终端型号1)信息408还包括市场1差异性信息406和市场2差异性信息等。举例来说,终端在确定类型为终端类型1或者型号为终端型号1,以及目标发货市场为市场1后,可以在终端类型1(或终端型号1)408中,查找市场1差异性信息406对应的预装应用列表1,确定终端的预装应用。其余步骤可参考上文相关描述。As shown in FIG. 4C, it is another example of the composition of the pre-installed installation package. Wherein, the different market difference information 403 may specifically include terminal type 1 (or terminal model 1) information 408 and terminal type 2 (or terminal model 2) information. The terminal type 1 (or terminal model 1) information 408 further includes market 1 difference information 406 and market 2 difference information. For example, after the terminal determines that the type is terminal type 1 or the model is terminal type 1, and the target delivery market is market 1, the terminal type 1 (or terminal model 1) 408 can be used to find market 1 difference information 406. The corresponding pre-installed application list 1 determines the pre-installed application of the terminal. For the remaining steps, refer to the related description above.
需要说明的是,本申请实施例中并不限定预装安装包的具体组成形式以及包含的具体内容。It should be noted that the embodiments of the present application do not limit the specific composition form and specific content of the pre-installed installation package.
下文以差异性信息为不同目标发货市场为例进行说明。The following uses different information as an example for different target shipping markets.
在终端生产过程中,终端厂商将共同的ROM镜像版本写入到终端中,也就是说终端的存储空间中包含有全部目标发货市场的预装应用的安装包,或者包含有某个区域内的全部目标发货市场的预装应用的安装包。这样,只需要准备一个版本的ROM镜像,相较于现有技术需要针对不同的目标发货市场写入不同版本的ROM镜像,本申请实施例提供的方法有利于简化生产流程,节省人工成本。并且,同一型号的终端的软硬件都相同,故终端厂商在向各个目标发货市场发货时,也可以直接从一个目标发货市场调配到另一个目标发货市场而无需修改ROM镜像,有利于终端产品的快速交付和快速响应。During the production process of the terminal, the terminal manufacturer writes a common ROM image version to the terminal, which means that the storage space of the terminal contains the installation packages of all pre-installed applications in the target shipping market, or contains a certain area. Pre-installed application installation packages for all target shipping markets. In this way, only one version of the ROM image needs to be prepared. Compared with the prior art, which needs to write different versions of the ROM image for different target shipping markets, the method provided in the embodiment of the present application is helpful to simplify the production process and save labor costs. In addition, the software and hardware of the same type of terminal are the same, so when the terminal manufacturer ships to each target shipping market, it can also be directly deployed from one target shipping market to another target shipping market without modifying the ROM image. Facilitate the rapid delivery and quick response of end products.
而后,终端达到目标发货市场并且首次开机后,可以通过例如终端所在网络的信息,终端安装的SIM卡信息等获取目标发货市场的信息(例如国家信息、运营商信息等),然后根据目标发货市场的信息,确定并安装该目标发货市场对应的预装应用。Then, after the terminal reaches the target shipping market and is powered on for the first time, you can obtain information about the target shipping market (such as country information, operator information, etc.) through information such as the network where the terminal is located, information about the SIM card installed on the terminal, and then The information of the shipping market, determine and install the pre-installed application corresponding to the target shipping market.
如图5所示,为本申请实施例提供的一种应用的安装方法的流程示意图,具体包括:As shown in FIG. 5, a schematic flowchart of an application installation method provided by an embodiment of the present application includes:
S101、终端首次开机。S101. The terminal is turned on for the first time.
需要说明的是,本申请实施例中的终端首次开机,是指终端出厂后的第一次上电,不包含在终端的生产阶段中,产线工人对终端进行上电检测时的开机。在终端的生产阶段中,可以通过例如插入特殊的SIM卡,对终端进行上电检测。终端在检测到特殊的SIM卡,不会执行本申请实施例中的自动安装预装应用的流程(即步骤S102及之后的步骤)。It should be noted that the first power-on of the terminal in the embodiments of the present application refers to the first power-on of the terminal after it leaves the factory, which is not included in the terminal's production stage. The production line workers start the power-on when the terminal is powered on and tested. In the terminal's production phase, the terminal can be tested for power-on by, for example, inserting a special SIM card. When the terminal detects a special SIM card, it does not execute the process of automatically installing a pre-installed application in the embodiment of the present application (ie, step S102 and subsequent steps).
在一些实施例中,终端在出厂后,可以通过查询第一标志位的方式来确定终端是否是第一次开机。例如:终端出厂前,将该第一标志位设置为特定值,表明终端没有开机过,或者没有执行过安装预装应用的流程。终端上电开机后,检测第一标志位为特定值时,执行后续步骤(即步骤S102及之后的步骤)。在终端执行过安装预装应用之后,终端将该第一标志位设置为其他值,表明终端已开机过,或者执行过安装预装应用的流程。后续,若终端再次开机时,检测第一标志位不为特定值,即可确定终端 非第一次开机,或者终端已经执行过安装预装应用的流程,终端不会执行步骤S102及之后的步骤。In some embodiments, after the terminal leaves the factory, it may be determined by querying the first flag bit whether the terminal is turned on for the first time. For example, before the terminal leaves the factory, the first flag bit is set to a specific value, which indicates that the terminal has not been turned on or the process of installing a pre-installed application has not been performed. After the terminal is powered on, when the first flag bit is detected to be a specific value, the subsequent steps (ie, steps S102 and subsequent steps) are performed. After the terminal has performed the installation of the pre-installed application, the terminal sets the first flag bit to another value, which indicates that the terminal has been powered on, or has performed the process of installing the pre-installed application. Subsequently, if the terminal is turned on again and it is detected that the first flag bit is not a specific value, it can be determined that the terminal is not turned on for the first time, or the terminal has already performed the process of installing a pre-installed application, and the terminal will not perform steps S102 and subsequent steps .
S102、终端获取该终端所在的目标发货市场的信息。S102. The terminal obtains information about a target shipping market where the terminal is located.
其中,目标发货市场是指终端销售目的地所在的市场,也可以理解为终端使用时所在的市场,具体可以指终端使用时所在的地区、国家、运营商等信息。The target delivery market refers to the market where the terminal is sold, and it can also be understood as the market where the terminal is used. Specifically, it can refer to the region, country, and operator when the terminal is used.
示例性的,终端可以通过以下几种方式,来获取目标发货市场的信息,如下:Exemplarily, the terminal can obtain the information of the target shipping market in the following ways, as follows:
方式一、终端连接到网络,从服务器查询该终端的目标发货市场的信息。Method 1: The terminal is connected to the network and queries the server's target shipping market information from the server.
首先,终端检测到用户的按下电源键的操作后,终端自动根据操作系统安装包安装终端的操作系统,在操作系统安装完成后,终端显示导航界面,提示用户设置一些基本信息,可以包括提示用户连接到无线局域网(Wireless Local Area Networks,WLAN)。First, after the terminal detects the user's operation of pressing the power key, the terminal automatically installs the terminal's operating system according to the operating system installation package. After the operating system is installed, the terminal displays a navigation interface to prompt the user to set some basic information, which can include prompt Users connect to Wireless Local Area Networks (WLANs).
示例性的,如图6所示,为终端首次开机后,显示的一些导航界面的示意。用户设置的基本信息可以包括设置语言,如图6中(1)所示的界面,以及签署各种协议等。其中,图6中(1)所示的界面中可以包括状态栏601和语言设置项602。用户可以通过语言设置项602,选择终端使用的语言。终端还可以提示用户连接网络,如图6中(2)所示的界面。该界面中可以包括状态栏601、网络设置项603和返回按钮604。其中,响应于用户点击返回按钮604的操作,终端显示当前界面的前一个界面。响应于用户通过网络设置项603选择的网络(例如网络3)的操作,终端开始连接相应的网络。若连接成功,则终端显示如图6中(3)所示的界面。该界面中通过设置项605,用于提示用户激活预装应用的安装。若连接失败,则终端显示如图6中(4)所示的界面,该界面中通过弹出对话框606,用于提示用户需要连接到WLAN,激活预装应用的安装后,终端才可以进入终端的桌面。用户可以通过对话框606中连接网络的按钮,再次进入连接网络的界面,即图6中的(2)所示的界面。Exemplarily, as shown in FIG. 6, it is a schematic diagram of some navigation interfaces displayed after the terminal is turned on for the first time. The basic information set by the user may include a setting language, an interface as shown in (1) in FIG. 6, and signing various agreements and the like. The interface shown in (1) in FIG. 6 may include a status bar 601 and a language setting item 602. The user can select the language used by the terminal through the language setting item 602. The terminal may also prompt the user to connect to the network, as shown in the interface shown in (2) in FIG. 6. The interface may include a status bar 601, a network setting item 603, and a return button 604. Wherein, in response to the user clicking the return button 604, the terminal displays the previous interface of the current interface. In response to the operation of the network (for example, 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. A setting item 605 is used in this interface to prompt the user to activate the installation of a pre-installed application. If the connection fails, the terminal displays the interface as shown in (4) of FIG. 6. In this interface, a pop-up dialog box 606 is used to prompt the user to connect to the WLAN. After activating the installation of pre-installed applications, the terminal can enter the terminal Desktop. The user can re-enter the network connection interface through the button of the network connection in the dialog box 606, that is, the interface shown in (2) in FIG. 6.
如图7所示,为终端激活预置应用的安装,从服务器查询目标发货市场的信息的流程示意图,具体包括S201~S204,如下:As shown in FIG. 7, for the installation of the terminal activated preset application, the process of querying the information of the target shipping market from the server is illustrated, including S201 to S204, as follows:
S201、终端启动激活。S201. The terminal starts activation.
需要说明的是,这里的激活是指终端启动预装应用的安装过程。该激活过程可以是独立的业务,也可以是包含在其他联网业务中,例如会员服务或云服务中的一项业务,本申请实施例不做限定。It should be noted that activation here refers to the process of starting the pre-installed application by the terminal. The activation process may be an independent service or a service included in other networked services, such as a member service or a cloud service, which is not limited in the embodiment of the present application.
S202、终端向服务器发送终端标识。S202. The terminal sends a terminal identifier to the server.
其中,终端标识可以是终端的序列号(series number,SN),也可以是终端的国际移动设备身份码(International Mobile Equipment Identity,IMEI)。The terminal identifier may be a serial number (SN) of the terminal, or an international mobile equipment identity (IMEI) of the terminal.
示例的,如图6中(3)所示,为终端连接到网络后,终端显示的激活预装应用的安装的界面,响应于用户点击“立即激活”按钮,终端可以与服务器建立通信连接,进而可以将终端的标识发送给服务器。其中服务器的地址可以存储在终端中,以便终端找到对应的服务器。For example, as shown in (3) of FIG. 6, after the terminal is connected to the network, the terminal displays the interface for activating the installation of pre-installed applications. In response to the user clicking the "Activate Now" button, the terminal can establish a communication connection with the server. Further, the identity of the terminal can be sent to the server. The address of the server can be stored in the terminal so that the terminal can find the corresponding server.
S203、服务器根据终端标识,查询该终端标识对应的目标发货市场的信息。S203: The server queries the information about the target shipping market corresponding to the terminal identifier according to the terminal identifier.
其中,服务器可以是进销存(Purchase,Sales & Inventory,PSI)数据库或者其他终端厂商用于存储终端销售情况的设备。其中,终端的销售情况包括终端出厂后的流 转信息,包括终端最后到达的目标发货市场的信息。也就是说,服务器上存储有终端标识和目标发货市场的对应关系。Among them, the server may be a purchase, sales, inventory (PSI) database or a device used by other terminal manufacturers to store terminal sales. Among them, the sales situation of the terminal includes the circulation information after the terminal leaves the factory, including the information of the target delivery market that the terminal finally arrived at. In other words, the server stores the correspondence between the terminal identification and the target shipping market.
因此,服务器可以根据终端标识,查询到该终端标识对应的目标发货市场的信息。Therefore, the server can query the information of the target shipping market corresponding to the terminal identifier according to the terminal identifier.
S204、服务器将查询到的目标发货市场的信息发送给终端。S204. The server sends the queried information of the target shipping market to the terminal.
示例性的,服务器可以采用定制空中下载技术(cust Over-The-Air technonogy,COTA)的方式,通过COTA的升级包发送给终端,其中,COTA的升级包中包含有目标发货市场的信息。因此,终端可以通过下载并安装COTA的升级包,从而获取到该终端对应的目标发货市场的信息。Exemplarily, the server may adopt a custom over-the-air technology non-coy (COTA) method, and send it to the terminal through a COTA upgrade package, where the COTA upgrade package includes information of a target shipping market. Therefore, the terminal can obtain the information of the target shipping market corresponding to the terminal by downloading and installing the upgrade package of COTA.
而后,终端可以执行步骤S103和S104,即:根据获取的目标发货市场的信息确定该目标发货市场对应的预置应用,并查找这些预装应用对应的安装包,解压并安装这些预置应用。Then, the terminal may execute steps S103 and S104, that is, determine the preset applications corresponding to the target shipping market according to the obtained target shipping market information, and find the installation packages corresponding to these pre-installed applications, decompress and install these presets. application.
还需要说明的是,在本申请的另一些实施例中,服务器上保存有终端与目标发货市场信息的对应关系,但服务器上没有该目标发货市场对应的预装应用的列表信息。因此,终端在安装完预装应用后,终端可以将预装应用的清单上传到服务器(图7中以步骤S205示出),由服务器保存终端上传的预装应用的清单(图7中以步骤S206示出)。这样,便于服务器后续根据该预装应用的清单,对终端中预装应用的安装进行收费、预装应用激活的收费等业务管理。It should also be noted that in other embodiments of the present application, the server stores the correspondence between the terminal and the target shipping market information, but the server does not have the list information of the pre-installed applications corresponding to the target shipping market. Therefore, after the terminal has installed the pre-installed application, the terminal can upload the list of pre-installed applications to the server (shown in step S205 in FIG. 7), and the server saves the list of pre-installed applications uploaded by the terminal (step 7 in FIG. 7). S206). In this way, it is convenient for the server to perform service management such as charging for the installation of the pre-installed application in the terminal and charging for the activation of the pre-installed application according to the list of pre-installed applications.
方式二、终端可以通过终端中的SIM模块,来获取目标发货市场的信息。Method 2: The terminal can obtain the information of the target shipping market through the SIM module in the terminal.
具体的,SIM模块可以为硬件SIM卡,或者由软件实现(如e-SIM)中存储有国家移动用户识别码(International Mobile Subscriber Identification Number,IMSI)。其中,IMSI是区别移动终端的标识。IMSI中包含有移动国家码(Mobile Country Code,MCC)和移动网络码(Mobile Network Code,MNC)。其中,MCC用于唯一识别移动终端所属的国家,占3位数字。例如:中国为460。其中,MNC用于识别移动终端所在的移动通信网络(即运营商信息),占2位或3位数字。例如:中国移动TD系统使用00,中国联通GSM系统使用01,中国移动GSM系统使用02,中国电信CDMA系统使用03等。Specifically, the SIM module may be a hardware SIM card, or may be implemented in software (such as e-SIM) and store a National Mobile Subscriber Identification Number (IMSI). Among them, IMSI is an identifier that distinguishes a mobile terminal. IMSI contains Mobile Country Code (MCC) and Mobile Network Code (MNC). Among them, MCC is used to uniquely identify the country to which the mobile terminal belongs, occupying three digits. For example: China is 460. Among them, the MNC is used to identify the mobile communication network (ie, the operator information) where the mobile terminal is located, occupying two or three digits. For example: China Mobile's TD system uses 00, China Unicom's GSM system uses 01, China Mobile's GSM system uses 02, and China Telecom's CDMA system uses 03.
因此,终端在首次开机后,可以检测终端中是否有SIM模块,如果检测到SIM模块,通过读取SIM卡中MCC中的国家信息,和/或MNC中运营商信息,作为目标发货市场的信息。Therefore, after the terminal is turned on for the first time, it can detect whether there is a SIM module in the terminal. If the SIM module is detected, it can be used as the target shipping market by reading the country information in the MCC in the SIM card and / or the operator information in the MNC. information.
方式三、当终端的射频网络连通(能够拨打紧急电话)时,终端可以调用系统的标准接口获取目标发货市场的信息。Method 3: When the terminal's radio frequency network is connected (can make emergency calls), the terminal can call the system's standard interface to obtain information about the target shipping market.
示例性的,以终端为Android系统为例进行说明,终端可以调用Android系统的标准接口,例如:调用接口getSimOperratorName()或者Returns the Service Provider Name()获取服务提供商的名字,例如:电信、联通、移动等,作为目标发货市场的信息。Exemplarily, the terminal is an Android system for illustration. The terminal can call the standard interface of the Android system, for example: call the interface getSimOperratorName () or Returns the Service Provider Name () to obtain the name of the service provider, such as: Telecom, China Unicom , Mobile, etc. as information for the target shipping market.
方式四、终端可以通过预置的一些服务,例如谷歌移动服务(Google Mobile Service,GMS)来获取目标发货市场信息。Method four: The terminal can obtain the target shipping market information through some preset services, such as Google Mobile Service (GMS).
示例性的,终端在首次开机后,会自动安装操作系统,以及一些预置的服务,然后显示导航界面。其中,这些预置的服务中,例如:GMS中有一些可以获取地理位置、 或国家信息的服务。例如:地图(map)服务。在本申请实施例中可以通过这些服务获取国家信息,作为目标发货市场信息。For example, after the terminal is powered on for the first time, the operating system and some preset services are automatically installed, and then the navigation interface is displayed. Among these preset services, for example, there are some services in the GMS that can obtain geographic location or country information. For example: map service. In the embodiments of the present application, country information may be obtained through these services as target shipping market information.
方式五、终端可以提示用户输入目标发货市场的信息,例如国家信息。Method five: The terminal may prompt the user to input information of the target shipping market, such as country information.
首先,终端检测到用户的开机操作后,显示导航界面,提示用户设置一些基本信息,包括提示用户输入国家信息。First, after the terminal detects the user's power-on operation, it displays a navigation interface and prompts the user to set some basic information, including prompting the user to enter country information.
示例性的,如图8所示,为终端首次开机后,导航界面的一些示意图。用户设置的基本信息包括设置语言,如图8中(1)所示的界面,以及签署各种协议等。其中,图8中(1)所示的界面中,可以包括状态栏801和语言设置项802。终端还可以显示提示用户选择或者输入目标发货市场的信息,例如:国家信息,或运营商信息等,如图8中(2)所示的界面。该界面中可以包含状态栏801、国家设置项803和返回按钮804。其中,用户可以通过国家设置项803选择或输入国家信息。Exemplarily, as shown in FIG. 8, some schematic diagrams of the navigation interface after the terminal is powered on for the first time. The basic information set by the user includes the setting language, the interface as shown in (1) in Figure 8, and the signing of various agreements. The interface shown in (1) in FIG. 8 may include a status bar 801 and a language setting item 802. The terminal may also display information prompting the user to select or enter a target shipping market, such as country information or operator information, as shown in the interface shown in (2) of FIG. 8. The interface may include a status bar 801, a country setting item 803, and a return button 804. The user can select or enter country information through the country setting item 803.
因此,终端可以根据用户选择的或输入的国家信息或运营商信息,作为目标发货市场的信息。而后,确定目标发货市场对应的预装应用,即执行步骤S103和S104。Therefore, the terminal can use the country information or operator information selected or input by the user as the information of the target shipping market. Then, determine the pre-installed application corresponding to the target shipping market, that is, execute steps S103 and S104.
需要说明的是,终端可以选取上述方式中任一种或任几种的方式来获取目标发货市场信息,也可以按照一定的优先级顺序依次获取目标发货市场信息,本申请实施例对获取方式的组合以及优先级顺序均不做限定。It should be noted that the terminal may choose any one or several of the above methods to obtain the target shipping market information, or may sequentially obtain the target shipping market information according to a certain priority order. The combination of modes and priority order are not limited.
S103、终端根据目标发货市场的信息,确定需要安装的预装应用的安装包。S103. The terminal determines the installation package of the pre-installed application that needs to be installed according to the information of the target delivery market.
示例性的,以终端中预装安装包为图4A所示的组织形式为例进行说明。终端可以根据获取到的目标发货市场的信息,从不同市场差异性信息403中,查找与该目标发货市场对应的预装应用列表。该预装应用列表中包含有该目标发货市场对应的预装应用的标识。然后,终端可以根据预装应用的标识,从预装应用安装包402中查找预装应用标识对应的应用安装包。Exemplarily, the pre-installed installation package in the terminal is taken as an example to describe the organizational form shown in FIG. 4A. The terminal may search the pre-installed application list corresponding to the target shipping market from the different market difference information 403 according to the obtained information of the target shipping market. The pre-installed application list includes an identifier of the pre-installed application corresponding to the target shipping market. Then, the terminal may find the application installation package corresponding to the pre-installed application identifier from the pre-installed application installation package 402 according to the identification of the pre-installed application.
S104、终端根据确定的预装应用的安装包,自动安装相应的预装应用。S104. The terminal automatically installs the corresponding pre-installed application according to the determined installation package of the pre-installed application.
终端将预装应用的安装包解压,并安装相应的预装应用。The terminal decompresses the installation package of the pre-installed application and installs the corresponding pre-installed application.
在本申请的另一些实施例中,终端在步骤S103中,还可以查找到与目标发货市场对应的布局设计文件。那么,在本步骤中,则根据查找到的布局设计文件对安装的预装应用的图标进行布局。In other embodiments of the present application, in step S103, the terminal may also find a layout design file corresponding to the target shipping market. Then, in this step, the icons of the installed pre-installed applications are laid out according to the found layout design file.
进一步的,考虑到终端中存储有该目标发货市场对应的预装应用的安装包(可记为第一预装安装包),还存储有大量不属于该目标发货市场对应的预装应用的安装包(可记为第二预装安装包)。由于这些第二预装安装包占用了终端大量的存储空间,会造成终端的存储资源的浪费。因此,终端可以只保留第一预装安装包,以便后续终端需要重新安装预装应用时使用,而删除掉第二预装安装包,以释放出相应的存储空间。其中,终端删除第二预装安装包,以释放出相应的存储空间的整个过程可以简称为回收存储空间的过程。Further, considering that the terminal stores an installation package of pre-installed applications corresponding to the target shipping market (which may be recorded as a first pre-installed installation package), a large number of pre-installed applications that do not belong to the target shipping market are also stored. Installation package (can be recorded as the second pre-installed installation package). Since these second pre-installed installation packages occupy a large amount of storage space of the terminal, the storage resources of the terminal will be wasted. Therefore, the terminal may retain only the first pre-installed installation package, so that subsequent terminals need to reinstall the pre-installed application, and delete the second pre-installed installation package to free up corresponding storage space. The entire process of deleting the second pre-installed installation package by the terminal to release the corresponding storage space may be referred to as a process of reclaiming the storage space.
首先,对终端回收存储空间的原理进行说明。First, the principle of reclaiming storage space by the terminal will be described.
需要说明的是,在终端生产过程中,终端厂商将共同的ROM镜像版本写入到终端时,终端可以在存储空间中划分一个系统分区和预装分区。系统分区用于存储系统安装包,预装分区,用于存储预装安装包。为了使得终端回收的存储空间可以用于存储数据,划分的预装分区可以与终端的数据分区相邻。It should be noted that, during the terminal production process, when the terminal manufacturer writes a common ROM image version to the terminal, the terminal can divide a system partition and a pre-installed partition in the storage space. The system partition is used to store the system installation package, and the pre-installed partition is used to store the pre-installed 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.
示例性的,如图9中(1)所示,为一种终端在出厂时的存储空间的划分方法的示意图。在本申请的一些实施例中,划分的预装分区可以与数据分区相邻,并且预装分区与数据分区的文件系统保持一致,例如:都采用闪存友好文件系统(Flash Friendly File System,F2FS)。其中,预装分区的存储地址可以位于数据分区存储地址的高位,如图9中(3)所示,预装分区的存储地址也可以位于数据分区存储地址的低位,如图9中(1)所示。Exemplarily, as shown in (1) of FIG. 9, it is a schematic diagram of a method for dividing a storage space of a terminal at the time of shipment. In some embodiments of the present application, the divided pre-installed partition may be adjacent to the data partition, and the file system of the pre-installed partition is consistent with the file system of the data partition, for example, both adopt a Flash Friendly File System (F2FS) . The storage address of the pre-installed partition may be located at a high position of the data partition storage address, as shown in (3) of FIG. 9, and the storage address of the pre-installed partition may also be located at a low position of the data partition storage address, as shown in (1) of FIG. 9. As shown.
由于预装分区和数据分区相邻,且文件系统格式一致,可以方便的将预装分区中不需用的存储空间(存储不属于当前目标发货市场对应的预装应用的安装包,即第二预装安装包)重新划分为数据分区。如图9中(2)和(4)所示,部分预装分区重新划分为数据分区。也就是说,终端在首次开机后,安装完目标发货市场对应的预装应用后,可以删除不需要安装的预装应用的安装包,使得删除后空出的空间可用于存储数据。Because the pre-installed partition and the data partition are adjacent, and the file system format is the same, it is convenient to use the unused storage space in the pre-installed partition Two pre-installed installation packages) are re-divided into data partitions. As shown in (2) and (4) in FIG. 9, some pre-installed partitions are re-divided into data partitions. In other words, after the terminal is powered on for the first time, after installing the pre-installed application corresponding to the target shipping market, the installation package of the pre-installed application that does not need to be installed can be deleted, so that the space vacated after the deletion can be used to store data.
以下对终端启动回收存储空间的时机进行说明。The following describes when the terminal starts to reclaim storage space.
如图10所示,为本申请实施例提供的几种终端启动回收存储空间的时机的示意图。As shown in FIG. 10, it is a schematic diagram of a timing of starting recovery of storage space by several terminals provided in the embodiment of the present application.
具体的,在本申请的一些实施例中,如图10中(1)所示,在t1时刻,终端首次开机。t1时刻至t2时刻,终端显示开机导航界面,指示用户进行基本信息的设置。t3时刻至t4时刻,终端获取目标发货市场信息,并安装该目标发货市场信息对应的预装应用。t4时刻,终端完成安装,可以设置第二标志位,用于标识该终端的预装分区中存在可回收的存储空间。终端也可以在t4时刻稍前或稍后的时刻,设置第二标志位,本申请实施例不做限定。而后,终端可以自动启动对预装分区中不用的存储空间进行回收的流程,即在t4时刻指t5时刻执行回收存储空间的流程。Specifically, in some embodiments of the present application, as shown in FIG. 10 (1), the terminal is turned on for the first time at time t1. From t1 to t2, the terminal displays a boot navigation interface, instructing the user to set basic information. From time t3 to time t4, the terminal obtains the target shipping market information and installs a pre-installed application corresponding to the target shipping market information. At t4, the terminal is installed, and a second flag bit can be set to identify that there is recyclable storage space in the pre-installed partition of the terminal. The terminal may also set the second flag bit at a time before or at time t4, which is not limited in the embodiment of the present application. Then, the terminal can automatically start the process of reclaiming the storage space that is not used in the pre-installed partition, that is, the process of reclaiming the storage space at time t4 refers to time t5.
在本申请的另一些实施例中,如图10中(2)所示,终端可以在安装完预装应用后,等待一个预设时间段(t4时刻至t5时刻,例如可以是6小时)后,自动启动对预装分区中不用的存储空间进行回收的流程,即在t5时刻至t6时刻执行回收存储空间的流程,其中t6时刻为回收存储空间的流程结束的时刻。In other embodiments of the present application, as shown in FIG. 10 (2), the terminal may wait for a preset period of time (from time t4 to time t5, for example, 6 hours) after installing the pre-installed application. , The process of reclaiming unused storage space in the pre-installed partition is automatically started, that is, the process of reclaiming storage space is executed from time t5 to time t6, where time t6 is the time when the process of reclaiming storage space ends.
在本申请的又一些实施例中,如图10中(3)所示,终端在安装完预装应用后,可以先不启动回收存储空间的流程。而是在终端后续执行的一些特定操作时,例如:操作系统升级、或用户在清理空间的时候(例如使用手机管家应用),询问用户是否启动或者自动启动回收存储空间的流程。In still other embodiments of the present application, as shown in FIG. 10 (3), after the terminal has installed the pre-installed application, the process of reclaiming storage space may not be started first. Instead, during certain subsequent operations performed by the terminal, such as: operating system upgrade, or when the user clears space (for example, using a mobile phone butler application), the user is asked whether to start or automatically start the process of reclaiming storage space.
例如:在t5时刻检测到用户指示,终端启动对不预装分区中不用的存储空间的回收,即在t5时刻至t6时刻执行回收存储空间的流程。或者,t5时刻终端启动了操作系统升级,可在终端进行操作系统升级之前、同时或之后,启动对预装分区中不用的存储空间的回收。又或者,t5时刻终端检测到用户清理空间,可在终端清理空间之前、同时或之后,启动对预装分区中不用的存储空间的回收。For example, when a user instruction is detected at time t5, the terminal initiates the recovery of the unused storage space in the pre-installed partition, that is, the process of reclaiming the storage space is executed from time t5 to time t6. Alternatively, the operating system upgrade is started on the terminal at t5, and the recovery of the unused storage space in the pre-installed partition can be started before, at the same time, or after the operating system upgrade of the terminal. Or, at time t5, the terminal detects that the user cleans up the space, and the recovery of the unused storage space in the pre-installed partition may be started before, at the same time, or after the terminal clears the space.
需要说明的是,本申请实施例对终端启动回收存储空间的时机不做限定。It should be noted that the embodiment of the present application does not limit the timing of the terminal starting to recover the storage space.
下面,以终端接收用户指示,启动回收存储空间的流程为例,对终端回收存储的过程进行说明,如下:The following takes the process of receiving a user's instruction to start the storage space recovery as an example to describe the process of terminal storage recovery, as follows:
如图11所示,为本申请实施例提供的一种存储空间的回收方法的流程示意图,具体包括如下:As shown in FIG. 11, it is a schematic flowchart of a method for reclaiming storage space according to an embodiment of the present application, and specifically includes the following steps:
S301、终端显示图形界面,询问用户是否启动回收存储空间的流程。S301. The terminal displays a graphical interface and asks the user whether to initiate a process for reclaiming storage space.
示例的,终端可以在预装应用安装完成后,通过弹出对话框或者在通知栏显示信息的形式,询问用户是否启动回收存储空间的过程。如图12中(1)所示,为终端的一种图形界面。该界面可以包括状态栏1201、时间和天气控件1202以及多个应用的图标,例如:日历的图标1203。该界面还可以包括对话框1204。该对话框1204用于询问用户是否启动回收存储空间的过程。如图12中(2)所示,为终端的另一种图形界面。该界面还可以包括通知栏1205。通知栏1205,用于显示提示信息,询问用户是否启动回收存储空间的流程。For example, after the pre-installed application is installed, the terminal may ask the user whether to start the process of reclaiming storage space by popping up a dialog box or displaying information in a notification bar. As shown in FIG. 12 (1), it is a graphical interface of the terminal. The interface may include a status bar 1201, a time and weather control 1202, and icons of multiple applications, for example, an icon 1203 of a calendar. The interface may also include a dialog box 1204. This dialog box 1204 is used to ask the user whether to start the process of reclaiming storage space. As shown in (2) in FIG. 12, it is another graphical interface of the terminal. The interface may further include a notification bar 1205. The notification bar 1205 is used to display a prompt message to ask the user whether to start the process of reclaiming storage space.
终端还可以在操作系统升级之前或者之后,或者终端清理空间之前或者之后,通过弹出对话框或者在通知栏显示信息的形式,询问用户是否启动回收存储空间的过程。本申请实施例对终端询问的界面不做限定。The terminal can also ask the user whether to start the process of reclaiming storage space by popping up a dialog box or displaying information in the notification bar before or after the operating system upgrade, or before or after the terminal clears space. The embodiment of the present application does not limit the interface of the terminal query.
S302、终端检测到用户的操作。若检测到用户启动回收存储空间的操作,则执行步骤S304,若检测到用户不启动回收存储空间的操作,则执行步骤S303。S302: The terminal detects a user operation. If it is detected that the user initiates the operation of reclaiming storage space, step S304 is performed; if it is detected that the user does not initiate the operation of reclaiming storage space, step S303 is performed.
例如:若终端检测到用户在如图12中(1)所示的界面中,点击“是”按钮,或者终端检测到用户在如图12中(2)所示的界面中,点击“是”按钮,则确定启动回收存储空间的操作。若终端检测到用户在如图12中(1)所示的界面中,点击“否”按钮,或者终端检测到用户在如图12中(2)所示的界面中,点击“否”按钮,则确定不启动回收存储空间的操作。For example: if the terminal detects that the user is in the interface shown in (1) of FIG. 12 and clicks the “Yes” button, or the terminal detects that the user is in the interface shown in (2) of FIG. 12 and clicks “Yes” Button to confirm the operation of reclaiming storage space. If the terminal detects that the user is in the interface shown in (1) of FIG. 12 and clicks the “No” button, or the terminal detects that the user is in the interface shown in (2) of FIG. 12 and clicks the “No” button, It is determined that the operation of reclaiming storage space is not started.
S303、终端不执行回收存储空间的操作,继续执行终端原有流程。S303. The terminal does not perform the operation of reclaiming storage space, and continues to execute the original procedure of the terminal.
例如:终端在首次开机安装完预装应用后,询问用户是否启动回收存储空间的流程。当检测到用户不启动回收存储空间的流程时,终端可以显示主屏幕界面。终端在操作系统升级之前,询问用户是否启动回收存储空间的流程。当检测到用户不启动回收存储空间的流程时,终端可以进行操作系统升级。For example, after the terminal is installed for the first time after the pre-installed application is installed, the user is asked whether to start the process of reclaiming storage space. When it is detected that the user does not start the process of reclaiming storage space, the terminal may display a home screen interface. Before upgrading the operating system, the terminal asks the user whether to start the process of reclaiming storage space. When it is detected that the user does not start the process of reclaiming storage space, the terminal can perform an operating system upgrade.
S304、终端启动回收存储空间的流程。S304. The terminal initiates a process for reclaiming storage space.
在一些实施例中,终端可以在例如MISC分区(android系统的一个标准分区)写入终端在重启后需要执行的操作(例如删除预装分区中不需用的预装应用的安装包,将预装分区中不需用的预装应用安装包占用的存储空间回收作为数据分区等),并重启。In some embodiments, the terminal may write, for example, a MISC partition (a standard partition of the android system) to perform operations that the terminal needs to perform after restarting (for example, deleting installation packages of pre-installed applications that are not needed in the pre-installed partition, and The storage space occupied by the pre-installed application installation package that is not needed in the installation partition is recycled as a data partition, etc.), and restarted.
S305、终端重启后,进入Recovery模式。S305. After the terminal restarts, it enters Recovery mode.
其中,Recovery模式是终端的一种备份功能,可以对终端内部的数据或者对终端的系统进行修改的模式。在该模式下,终端可执行的操作有限,非终端正常的工作模式。Among them, the Recovery mode is a backup function of the terminal, which can modify the data inside the terminal or the system of the terminal. In this mode, the terminal can perform limited operations, which is not the normal working mode of the terminal.
在一些实施例中,终端在进入Recovery模式后,可以通过调用MISC分区中数据,以继续执行之后的操作。其中,MISC分区中存储Recovery程序的引导信息,以及终端重启后需要执行操作的内容。In some embodiments, after the terminal enters the Recovery mode, the terminal may continue to perform subsequent operations by calling data in the MISC partition. Among them, the MISC partition stores the booting information of the Recovery program and the content that needs to be performed after the terminal restarts.
S306、终端删除预装分区中不需用的预装应用的安装包。S306. The terminal deletes an installation package of a preinstalled application that is not needed in the preinstalled partition.
示例性的,如图13中(1)所示,为终端在删除不需用预装应用的安装包之前,终端存储空间的一种示意图,在该示意图中,预装分区中需用的预装应用的安装包和不需用的预装应用的安装包是交替存储的。如图13中(2)所示,为终端删除不需用 预装应用的安装包后,终端存储空间的一种示意图。Exemplarily, as shown in (1) of FIG. 13, it is a schematic diagram of the storage space of the terminal before the terminal deletes the installation package that does not require pre-installed applications. In this diagram, the pre-installed partitions require pre-installed partitions. The installation package of the installed application and the installation package of the unnecessary pre-installed application are stored alternately. As shown in (2) in FIG. 13, it is a schematic diagram of the storage space of the terminal after deleting the installation package that does not require pre-installed applications for the terminal.
S307、重新计算预装分区的大小。S307. Recalculate the size of the pre-installed partition.
具体的,将原来预装分区的大小减去删除不需用预装应用的安装包的大小,再加上一定预留空间的大小,作为空间回收后预装分区的大小。可选的,也可以是计算需用的预装应用的安装包的大小,加上一定预留空间的大小,作为空间回收后预装分区的大小。Specifically, the size of the original pre-installed partition is subtracted from the size of the installation package that does not require pre-installed applications to be deleted, and the size of a certain reserved space is added as the size of the pre-installed partition after space recovery. Optionally, the size of the installation package of the pre-installed application that needs to be calculated, plus the size of a certain reserved space, is used as the size of the pre-installed partition after space recovery.
S308、整理预装分区。S308. Organize the pre-installed partition.
具体的,考虑到需要将预装分区中释放的存储空间,重新划分为数据分区,可以将需用的预装应用的安装包,迁移到预装分区中与数据分区不相邻的另一头。示例性的,如图13中(3)所示,为终端整理预装分区后,终端的一种存储空间的示意图。可见,终端将需用的预装应用的安装包迁移到预装分区的开始部分,而预装分区的结尾部分与数据分区相邻。需要说明的是,如果预装分区的开头部分与数据分区相邻,则需要将需用的预装应用的安装包迁移到预装分区的结尾部分。这样,预装分区中不需用的空间与终端的数据分区相邻,于是可以将这些不需用的存储空间直接划分到数据分区。Specifically, considering that the storage space released in the pre-installed partition needs to be re-divided into data partitions, the required pre-installed application installation package can be migrated to the other end of the pre-installed partition that is not adjacent to the data partition. Exemplarily, as shown in (3) of FIG. 13, after the terminal is pre-installed, the storage space of the terminal is schematically illustrated. It can be seen that the terminal migrates the required pre-installed application installation package 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 preinstalled partition is adjacent to the data partition, the installation package of the preinstalled application that needs to be used needs to be migrated to the end of the preinstalled partition. In this way, the unnecessary space in the pre-installed partition is adjacent to the data partition of the terminal, so these unnecessary storage spaces can be directly divided into the data partition.
S309、修改预装分区表。S309. Modify the pre-installed partition table.
示例性的,如图13中(4)所示,为终端修改预装分区表后,终端存储空间的一种示例。Exemplarily, as shown in (4) of FIG. 13, this is an example of the terminal storage space after the terminal has modified the pre-installed partition table.
S310、检测预装分区是否正常。若正常,则继续执行步骤S312,否则执行步骤S311。S310: Check whether the pre-installed partition is normal. If normal, step S312 is continued, otherwise step S311 is performed.
S311、提示用户异常,并引导用户处理,例如进入erecovery模式进行修复。S311. Prompt the user for an abnormality and guide the user to handle it, for example, enter erecovery mode for repair.
其中,erecovery模式是终端恢复模式,通常是终端无法开机或系统不稳定时,用于实现将终端升级到最新版本,使得终端可以正常使用。Among them, the erecovery mode is a terminal recovery mode, which is usually used to upgrade the terminal to the latest version when the terminal cannot be turned on or the system is unstable, so that the terminal can be used normally.
示例性的,若终端在执行回收存储空间的过程中,终端断电或者硬件出现故障等,都会造成终端工作异常,此时提示用户进行处理。Exemplarily, if the terminal is powered off or the hardware fails during the process of reclaiming storage space, the terminal will work abnormally, and the user will be prompted to take action.
S312、修改数据分区表。S312. Modify the data partition table.
示例性的,如图13中(5)所示,为终端修改数据分区表后,终端存储空间的一种示例。Exemplarily, as shown in (5) of FIG. 13, this is an example of the storage space of the terminal after the data partition table is modified by the terminal.
S313、检测数据分区是否正常?若正常,则继续执行步骤S315,否则执行步骤S314。S313. Check whether the data partition is normal? If normal, step S315 is continued, otherwise step S314 is performed.
S314、提示用户异常,并引导用户处理,例如格式化数据分区。S314: Prompt the user for an abnormality and guide the user to perform processing, such as formatting a data partition.
S315、提示用户回收存储空间的流程结束,终端重启或关闭。S315. The process of prompting the user to reclaim storage space is ended, and the terminal is restarted or closed.
在终端回收存储空间流程结束后,终端需要退出当前的Recovery模式,并重新进入终端的正常的工作模式,即用户可以使用终端进入桌面,运行相应的应用等的工作模式。终端可以自动重启,或者终端也可以关闭,由用户自行再开机。After the process of reclaiming the storage space of the terminal ends, the terminal needs to exit the current Recovery mode and re-enter the normal working mode of the terminal, that is, the user can use the terminal to enter the desktop and run the corresponding application. The terminal can be restarted automatically, or the terminal can be closed, and the user can turn it on again.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above description is only a specific implementation of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application shall be covered by the scope of protection of this application. . Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (16)

  1. 一种应用的安装方法,其特征在于,所述方法包括:An application installation method, characterized in that the method includes:
    终端检测到开机操作;The terminal detects a power-on operation;
    响应于所述终端检测到的所述开机操作,所述终端开机;In response to the power-on operation detected by the terminal, the terminal powers on;
    若所述终端为首次开机,则所述终端获取所述终端所在的目标发货市场的信息;其中,所述目标发货市场的信息包括:所述终端所在的国家、所述终端所在的运营商以及所述终端所在区域中任一项或任几项;所述终端存储有第一应用的安装包和第二应用的安装包;If the terminal is powered on for the first time, the terminal obtains information about a target shipping market where the terminal is located; wherein the information about the target shipping market includes: the country where the terminal is located, and the operation where the terminal is located Any one or several items in the region where the terminal is located; and the terminal stores the installation package of the first application and the installation package of the second application;
    所述终端根据获取的所述目标发货市场的信息,和所述终端中存储的第一应用的安装包,自动安装第一应用;其中,所述第一应用所述目标发货市场对应的应用,所述第一应用为至少一个;The terminal automatically installs the first application according to the obtained information about the target shipping market and the installation package of the first application stored in the terminal; wherein the first application corresponds to the target shipping market Application, the first application is at least one;
    所述终端删除所述第二应用的安装包,所述第二应用不是所述目标发货市场对应的应用。The terminal deletes the installation package of the second application, and the second application is not an application corresponding to the target shipping market.
  2. 根据权利要求1所述的应用的安装方法,其特征在于,所述终端获取所述终端所在的目标发货市场的信息包括:The method for installing an application according to claim 1, wherein the acquiring the information of a target shipping market where the terminal is located comprises:
    所述终端向第一服务器发送终端标识;所述终端接收所述第一服务器发送的所述终端标识对应的目标发货市场的信息;Sending, by the terminal, a terminal identifier to a first server; the terminal receiving information about a target shipping market corresponding to the terminal identifier sent by the first server;
    或者,所述终端从所述终端的用户标识模块SIM中,读取国家移动用户识别码IMSI中移动国家码MCC和移动网络码MNC,确定为所述目标发货市场的信息;Alternatively, the terminal reads the mobile country code MCC and mobile network code MNC in the national mobile user identification code IMSI from the user identification module SIM of the terminal, and determines the information as the target shipping market;
    或者,当所述终端的射频网络连通时,所述终端调用接口获取服务提供商的信息,确定为所述目标发货市场的信息;Alternatively, when the radio frequency network of the terminal is connected, the terminal invokes an interface to obtain information of a service provider, and determines the information of the target shipping market;
    或者,所述终端调用谷歌移动服务GMS,获取所述终端所在的地理位置和/或国家信息,确定为所述目标发货市场的信息;Alternatively, the terminal invokes the Google Mobile Service GMS, obtains the geographic location and / or country information of the terminal, and determines the information as the target shipping market;
    或者,所述终端显示第一界面,所述第一界面用于提示用户输入所述终端所在的目标发货市场;所述终端将所述用户在所述第一界面中输入的所述终端所在的目标发货市场确定为所述目标发货市场。Alternatively, the terminal displays a first interface, and the first interface is used to prompt a user to input a target shipping market where the terminal is located; the terminal uses the terminal where the user enters in the first interface to be located The target shipping market is determined as the target shipping market.
  3. 根据权利要求1或2所述的应用的安装方法,其特征在于,所述终端根据获取的所述目标发货市场的信息,和所述终端中存储的第一应用的安装包,自动安装第一应用包括:The method for installing an application according to claim 1 or 2, wherein the terminal automatically installs the first application according to the obtained information of the target shipping market and the installation package of the first application stored in the terminal. One application includes:
    所述终端根据获取的所述目标发货市场的信息,确定所述第一应用对应的应用标识;Determining, by the terminal, an application identifier corresponding to the first application according to the obtained information about the target shipping market;
    所述终端根据所述第一应用对应的应用标识,确定所述第一应用的安装包;Determining, by the terminal, an installation package of the first application according to an application identifier corresponding to the first application;
    所述终端使用所述第一应用的安装包,安装所述第一应用。The terminal uses the installation package of the first application to install the first application.
  4. 根据权利要求1-3任一项所述的应用的安装方法,其特征在于,在所述终端根据获取的所述目标发货市场的信息,和所述终端中存储的第一应用的安装包,自动安装第一应用之后,所述方法还包括:The method for installing an application according to any one of claims 1 to 3, wherein the terminal is based on the obtained information about the target shipping market and the installation package of the first application stored in the terminal. After the first application is automatically installed, the method further includes:
    所述终端在桌面上显示所述第一应用的图标。The terminal displays an icon of the first application on a desktop.
  5. 根据权利要求1-4任一项所述的应用的安装方法,其特征在于,所述终端删除所述第二应用的安装包包括:The method for installing an application according to any one of claims 1-4, wherein the deleting the installation package of the second application by the terminal comprises:
    所述终端在第一预设时间段后,所述终端自动开始删除所述第二应用的安装包;After the terminal is in the first preset time period, the terminal automatically starts to delete the installation package of the second application;
    或者,所述终端显示第二界面,所述第二界面用于询问用户是否删除所述第二应用的安装包;所述终端检测到所述用户删除所述第二应用的安装包的操作;所述终端开始删除所述第二应用的安装包;Alternatively, the terminal displays a second interface, where the second interface is used to ask a user whether to delete the installation package of the second application; the terminal detects an operation that the user deletes the installation package of the second application; The terminal starts deleting the installation package of the second application;
    或者,所述终端检测到所述终端执行操作系统升级,或清理存储空间的操作之后,所述终端开始删除所述第二应用的安装包。Alternatively, after the terminal detects that the terminal performs an operating system upgrade or an operation to clear a storage space, the terminal starts to delete the installation package of the second application.
  6. 根据权利要求5所述的应用的安装方法,其特征在于,在所述终端删除所述第二应用的安装包之前,所述方法还包括:The method for installing an application according to claim 5, wherein before the terminal deletes the installation package of the second application, the method further comprises:
    所述终端写入所述终端处于第一工作模式时要执行的操作;所述终端处于第一工作模式时要执行的操作包括所述终端删除所述第二应用的安装包;其中,所述第一工作模式为所述终端修改存储空间中数据和/或修改所述终端操作系统的工作模式;The terminal writes an operation to be performed when the terminal is in the first working mode; the operation to be performed when the terminal is in the first working mode includes the terminal deleting the installation package of the second application; wherein, the terminal The first working mode is that the terminal modifies data in a storage space and / or modifies a working mode of the terminal operating system;
    所述终端重启,进入第一工作模式。The terminal restarts and enters a first working mode.
  7. 根据权利要求6所述的应用的安装方法,其特征在于,所述终端的存储空间中的第一分区用于存储所述第一应用的安装包和所述第二应用的安装包,所述终端的存储空间中的第二分区用于存储数据;所述第一分区与所述第二分区相邻;The method for installing an application according to claim 6, wherein a first partition in a storage space of the terminal is used to store an installation package of the first application and an installation package of the second application, and A second partition in the storage space of the terminal is used to store 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:
    所述终端计算所述第一应用的安装包的文件大小,以确定修改后的所述第一分区的大小;其中,修改后的所述第一分区的大小小于所述第一分区的大小;Calculating, by the terminal, a file size of the installation package of the first application to determine a size of the modified first partition; wherein the size of the modified first partition is smaller than the size of the first partition;
    所述终端将所述第一应用的安装包移动到所述第一分区中与所述第二分区不相邻的一边;Moving, by the terminal, the installation package of the first application to a side of the first partition that is not adjacent to the second partition;
    所述终端修改所述第一分区的地址表;Modifying, by the terminal, an address table of the first partition;
    所述终端修改所述第二分区的地址表;其中,修改后的所述第二分区包括移动后的所述第一分区中没有存储所述第一应用的安装包的存储空间;Modifying, by the terminal, the address table of the second partition; wherein the modified second partition includes a storage space in the first partition after moving where the installation package of the first application is not stored;
    所述终端关机或再次重启。The terminal is shut down or restarted again.
  8. 根据权利要求1-7任一项所述的应用的安装方法,其特征在于,在所述终端根据获取的所述目标发货市场的信息,和所述终端中存储的第一应用的安装包,自动安装第一应用之后,所述方法还包括:The method for installing an application according to any one of claims 1 to 7, characterized in that, on the terminal, according to the obtained information about the target shipping market, and the installation package of the first application stored in the terminal After the first application is automatically installed, the method further includes:
    所述终端向所述第二服务器发送所述第一应用的列表。The terminal sends a list of the first application to the second server.
  9. 一种应用的安装方法,其特征在于,所述方法包括:An application installation method, characterized in that the method includes:
    终端检测到开机操作;The terminal detects a power-on operation;
    响应于所述终端检测到的所述开机操作,所述终端开机;In response to the power-on operation detected by the terminal, the terminal powers on;
    若所述终端为首次开机,则所述终端从所述终端的用户标识模块SIM中,读取国家移动用户识别码IMSI中移动国家码MCC和移动网络码MNC,确定为所述目标发货市场的信息;其中,所述目标发货市场的信息包括:所述终端所在的国家、所述终端所在的运营商以及所述终端所在区域中任一项或任几项;If the terminal is turned on for the first time, the terminal reads the mobile country code MCC and mobile network code MNC in the national mobile user identification code IMSI from the user identification module SIM of the terminal, and determines that the target delivery market Information; wherein the information of the target shipping market includes: any one or several of the country where the terminal is located, the operator where the terminal is located, and the area where the terminal is located;
    所述终端根据获取的所述目标发货市场的信息,和所述终端中存储的第一应用的安装包,自动安装第一应用;其中,所述第一应用所述目标发货市场对应的应用,所述第一应用为至少一个。The terminal automatically installs the first application according to the obtained information about the target shipping market and the installation package of the first application stored in the terminal; wherein the first application corresponds to the target shipping market Application, the first application is at least one.
  10. 根据权利要求9所述的应用的安装方法,其特征在于,所述终端还存储有第 二应用的安装包,所述第二应用不是所述目标发货市场对应的应用;所述方法还包括:The method for installing an application according to claim 9, wherein the terminal further stores an installation package of a second application, and the second application is not an application corresponding to the target shipping market; the method further comprises :
    所述终端检测到所述终端执行操作系统升级,或清理存储空间的操作之后,所述终端自动删除所述第二应用的安装包。After the terminal detects that the terminal performs an operating system upgrade or an operation to clear a storage space, the terminal automatically deletes the installation package of the second application.
  11. 一种终端,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述终端执行如权利要求1-8中任一项所述的应用的安装方法。A terminal, comprising: a processor, a memory, and a touch screen, the memory, the touch screen and the processor are coupled, the memory is used to store computer program code, and the computer program code includes computer instructions, When the processor reads the computer instructions from the memory, so that the terminal executes the method for installing an application according to any one of claims 1-8.
  12. 一种终端,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述终端执行如权利要求9或10所述的应用的安装方法。A terminal, comprising: a processor, a memory, and a touch screen, the memory, the touch screen and the processor are coupled, the memory is used to store computer program code, and the computer program code includes computer instructions, When the processor reads the computer instructions from the memory, so that the terminal executes the method for installing an application according to claim 9 or 10.
  13. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行如权利要求1-8中任一项所述的应用的安装方法。A computer storage medium, comprising computer instructions, which, when the computer instructions run on a terminal, cause the terminal to execute the method for installing an application according to any one of claims 1-8.
  14. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行如权利要求9或10所述的应用的安装方法。A computer storage medium includes computer instructions, and when the computer instructions are run on a terminal, the terminal causes the terminal to execute the method for installing an application according to claim 9 or 10.
  15. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-8中任一项所述的应用的安装方法。A computer program product, wherein when the computer program product is run on a computer, the computer is caused to execute the method for installing an application according to any one of claims 1-8.
  16. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求9或10所述的应用的安装方法。A computer program product, wherein when the computer program product is run on a computer, the computer is caused to execute the method for installing an application according to claim 9 or 10.
PCT/CN2018/101776 2018-08-22 2018-08-22 Application installation method and terminal WO2020037560A1 (en)

Priority Applications (2)

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

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
WO2020037560A1 true WO2020037560A1 (en) 2020-02-27

Family

ID=69592138

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101776 WO2020037560A1 (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
CN114489689A (en) * 2021-08-26 2022-05-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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667316A (en) * 2020-12-28 2021-04-16 深圳酷派技术有限公司 Application loading method and device, terminal and storage medium
CN112732365B (en) * 2021-01-28 2024-07-12 北京字跳网络技术有限公司 Preassembled application program starting method and device, electronic equipment and storage medium
CN113064615B (en) * 2021-03-26 2023-09-26 西安万像电子科技有限公司 Software updating method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140067879A1 (en) * 2012-08-29 2014-03-06 Pantech Co., Ltd. Application management for a terminal
CN104461667A (en) * 2014-12-31 2015-03-25 广东欧珀移动通信有限公司 Root method and device for intelligent terminal
CN105138282A (en) * 2015-08-06 2015-12-09 上海七牛信息技术有限公司 Storage space recycling method and storage system
CN106126289A (en) * 2016-06-27 2016-11-16 贵州万臻时代通讯技术有限公司 File loading method and mobile terminal are installed in a kind of application
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
CN108153558A (en) * 2017-12-06 2018-06-12 广东欧珀移动通信有限公司 Method, electronic device and the readable storage medium storing program for executing of unified custom terminal software version

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506611B (en) * 2016-10-21 2019-11-15 北京小米移动软件有限公司 Using the method, apparatus and electronic equipment of installation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140067879A1 (en) * 2012-08-29 2014-03-06 Pantech Co., Ltd. Application management for a terminal
CN104461667A (en) * 2014-12-31 2015-03-25 广东欧珀移动通信有限公司 Root method and device for intelligent terminal
CN105138282A (en) * 2015-08-06 2015-12-09 上海七牛信息技术有限公司 Storage space recycling method and storage system
CN106126289A (en) * 2016-06-27 2016-11-16 贵州万臻时代通讯技术有限公司 File loading method and mobile terminal are installed in a kind of application
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
CN108153558A (en) * 2017-12-06 2018-06-12 广东欧珀移动通信有限公司 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
CN114489689A (en) * 2021-08-26 2022-05-13 荣耀终端有限公司 Application program installation method and system, electronic equipment and server
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

Also Published As

Publication number Publication date
CN112119378A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
EP4002108B1 (en) Application start method and electronic device
WO2020037560A1 (en) Application installation method and terminal
WO2021036809A1 (en) Subscriber identity module (sim) management method and electronic device
CN114461239B (en) Software upgrading system and software upgrading method
CN110602686B (en) Method for using remote SIM module and electronic equipment
CN114461240B (en) Software upgrading method, software upgrading system and electronic equipment
US20230054451A1 (en) Communication Connection Method and Electronic Device
US20230179698A1 (en) Application Display Continuing Method and Device
WO2021052167A1 (en) Method for realizing pluginization of application, and electronic apparatus
WO2022052766A1 (en) Theme packet adaptation method and apparatus
CN113608753A (en) Application uninstalling method, application recovery method, electronic device and storage medium
CN114816463A (en) Upgrade prompting method, terminal device and computer readable storage medium
CN114253558A (en) Method and device for installing patch package
CN114489689B (en) Application program installation method and system, electronic equipment and server
CN115278642B (en) Method for acquiring information of SIM card, electronic equipment and terminal equipment
CN113709720B (en) SIM dual-mode card abnormity optimization method and electronic equipment
CN117389638B (en) Electronic equipment starting 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
CN116719556B (en) System upgrading method and electronic equipment
CN117707562B (en) Parameter updating method and terminal equipment
WO2024179203A1 (en) Voice control method and electronic device
CN117729561B (en) System upgrading method, terminal and storage medium
WO2024193526A1 (en) Backup method and device
CN118467020A (en) Version compatibility identification method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18931061

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18931061

Country of ref document: EP

Kind code of ref document: A1