Layout adjustment method, device, and storage medium
By controlling the desktop process to clear and load a new layout during pre-installation, the problem of the desktop layout being unable to be adjusted in pre-installed scenarios is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202410608721.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2044-05-16
AI Technical Summary
Existing technology cannot adjust the desktop layout in pre-installed scenarios, resulting in a poor user experience.
The pre-installed process controls the desktop process to clear the desktop data of the first layout, and loads the second layout through the desktop process. It uses reflection to achieve cross-process communication to adjust the position of the application on the desktop.
It effectively solves the problem of desktop layout not being adjustable due to the unreasonable execution order of pre-installed processes and desktop processes, thus improving the user experience.
Smart Images

Figure CN118642795B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a layout adjustment method, device, and storage medium. Background Technology
[0002] For electronic devices sold globally, different applications can be installed for different user groups in a pre-installed scenario due to varying regional business needs or legal regulations. However, existing solutions cannot adjust the desktop layout in a pre-installed scenario due to factors such as the execution order between the pre-installed process and the desktop process. Summary of the Invention
[0003] This application provides a layout adjustment method, device, and storage medium that can adjust the desktop layout in a pre-installed scenario.
[0004] In a first aspect, embodiments of this application provide a layout adjustment method applied to an electronic device, the electronic device including a desktop process and a pre-installed process, the method including: starting the desktop process and loading a first layout of the desktop through the desktop process, the first layout including installed applications in a first position on the desktop; controlling the desktop process through the pre-installed process to clear the desktop data of the first layout; loading a second layout of the desktop through the desktop process; the second layout is a different layout from the first layout, an adjusted layout.
[0005] In the method described in this aspect, the electronic device controls the desktop process through the pre-installed process to clear the desktop data of the first layout, so that the desktop process can load the second layout of the desktop. This effectively solves the problem that the desktop layout cannot be adjusted in the pre-installed scenario due to the unreasonable execution order between the pre-installed process and the desktop process, which is beneficial for customizing the desktop layout.
[0006] In conjunction with the first aspect, in an optional implementation, controlling the desktop process to clear the desktop data of the first layout via the pre-installed process includes: controlling the desktop process to clear the desktop data of the first layout via the pre-installed process using a reflection mechanism. Since the pre-installed process and the desktop process communicate across processes, the pre-installed process can control the desktop process to clear the desktop data of the first layout via the reflection mechanism.
[0007] In conjunction with the first aspect, in one optional implementation, the second layout includes a second location on the desktop for the pre-installed application installed via the pre-installation process. This second location differs from the preset location of the pre-installed application on the desktop, which is determined based on the first layout. Loading the second layout of the desktop via the desktop process includes: after the pre-installed application is installed via the pre-installation process, loading the pre-installed application into the second location on the desktop via the desktop process. Therefore, the pre-installed application in the pre-installation scenario can be adjusted from the preset location to the second location.
[0008] In conjunction with the first aspect, in one optional implementation, loading a pre-installed application at a second location on the desktop via a desktop process includes: sending an identifier of the pre-installed application to the desktop process via the pre-installed process; and loading the pre-installed application at the second location on the desktop via the desktop process based on the identifier of the pre-installed application.
[0009] In conjunction with the first aspect, in one optional implementation, the second layout includes a third position of the installed associated application on the desktop, the third position being different from the first position of the associated application in the first layout; loading the second layout of the desktop via the desktop process includes: loading the associated application in the third position of the desktop via the desktop process. It can be seen that the associated application in the pre-installed scenario can be adjusted from the first position in the first layout to the third position.
[0010] In conjunction with the first aspect, in an optional implementation, loading the associated application in a third location on the desktop via the desktop process includes: sending the identifier of the associated application to the desktop process via the pre-installed process; and loading the associated application in the third location on the desktop via the desktop process based on the identifier of the associated application.
[0011] In conjunction with the first aspect, in an optional implementation, before controlling the desktop process through the pre-installation process to clear the desktop data of the first layout, the method further includes: parsing the pre-installation package through the pre-installation process to obtain at least one application to be processed in the pre-installation scenario; if there is a pre-installed application and / or associated application among the at least one application to be processed, then the step of controlling the desktop process through the pre-installation process to clear the desktop data of the first layout is performed.
[0012] In conjunction with the first aspect, in one optional implementation, for each application to be processed, if the operation type of the application to be processed is of the first type, the application to be processed is a pre-installed application; if the operation type of the application to be processed is of the second type, the application to be processed is an associated application. It is evident that pre-installed applications and associated applications can be distinguished by operation type, which is beneficial for the pre-installation process to perform different operations on pre-installed applications and associated applications respectively.
[0013] In conjunction with the first aspect, in an optional implementation, if at least one application to be processed contains a pre-installed application, the method further includes: determining, through the pre-installation process, whether the country information associated with the pre-installed application matches the country information of the country where the electronic device is currently located; if they match, then installing the pre-installed application through the pre-installation process.
[0014] In a second aspect, embodiments of this application also provide an electronic device, including: one or more processors and one or more memories; the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program code, the computer program code including computer instructions, and when the one or more processors execute the computer instructions, the electronic device performs the method described in the first aspect.
[0015] Thirdly, embodiments of this application also provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect.
[0016] Fourthly, embodiments of this application also provide a chip or chip system, including a processing circuit and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to run the code instructions to execute the method described in the first aspect.
[0017] Fifthly, embodiments of this application also provide a computer program product, which includes a computer program that, when run on a computer, causes the computer to perform the method described in the first aspect. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments of this application will be described below.
[0019] Figure 1 This is a schematic diagram of a desktop interface provided in an embodiment of this application;
[0020] Figure 2 This is a schematic diagram of a display grid provided in an embodiment of this application;
[0021] Figure 3 This is a schematic diagram of another desktop interface provided in an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of another desktop interface provided in an embodiment of this application;
[0023] Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0024] Figure 6 This is a schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0025] Figure 7 This is a flowchart illustrating a layout adjustment method provided in an embodiment of this application;
[0026] Figures 8 to 12This is a schematic diagram of another desktop interface provided in an embodiment of this application;
[0027] Figure 13 This is a flowchart illustrating another layout adjustment method provided in an embodiment of this application;
[0028] Figure 14 This is a schematic diagram of a boot wizard page provided in an embodiment of this application;
[0029] Figure 15 This is a schematic diagram of another boot wizard page provided in an embodiment of this application;
[0030] Figure 16 This is a schematic diagram of an enhanced service page provided in an embodiment of this application;
[0031] Figure 17 This is a flowchart illustrating another layout adjustment method provided in an embodiment of this application. Detailed Implementation
[0032] The following explanations of some terms used in this application are provided to facilitate understanding by those skilled in the art.
[0033] Unless otherwise stated in this application, " / " means "or," for example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. "At least one" means one or more, and "more" means two or more.
[0034] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0035] In this application, "application" has the same meaning as "application software" and "application program," referring to the software provided in an electronic device to meet the different application needs of users in different fields. It should be further noted that the "application software package" in this application can also be called an "application package," which refers to a collection of programs designed to solve a certain type of problem using a computer. For example, an application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0036] The desktop mentioned in this application, also known as the desktop interface, is the user interface provided by the operating system of an electronic device. The desktop is the starting point for operating applications on an electronic device. After the electronic device starts up, application icons can be displayed on the desktop. The application icon refers to the icon corresponding to the application displayed on the desktop. When a user interacts with an application icon, in response to that user interaction, the electronic device can display the user interface corresponding to that application, allowing the user to use the application. In other words, an application icon is the entry point for operating an application. For example, Figure 1 A schematic diagram of a desktop interface for an electronic device is shown. For example... Figure 1 As shown in the desktop interface 101, the desktop interface 101 can display icons for a calculator application, a voice recorder application, a music application, and a settings application 1011, etc. For example, when a user clicks the settings application icon 1011, in response to the user's operation, the electronic device can display the user interface of the settings application, allowing the user to perform relevant operations within the settings application.
[0037] Optionally, the desktop interface 101 can be the main page of the electronic device's desktop. In addition to the main desktop page, the desktop may also include other pages for displaying application icons, such as... Figure 1 The desktop interface 102 is shown. Users can switch between different pages on the electronic device's desktop interface by swiping left or right. For example, when the electronic device displays the main desktop page 101, the user can perform a left swipe operation, and in response to this user operation, the displayed interface of the electronic device can switch from the main desktop page 101 to another page 102 on the desktop. Similarly, when the electronic device displays another page 102 on the desktop, the user can perform a right swipe operation, and in response to this user operation, the displayed interface of the electronic device can switch from another page 102 on the desktop back to the main desktop page 101.
[0038] In the desktop interface (including the main page and other pages), application icons can be displayed in corresponding locations. To facilitate illustrating the location of application icons on the desktop, this application introduces a display grid, where one display grid can be used to display the icon of one application. For example, Figure 2 A schematic diagram of a display grid provided in an embodiment of this application is shown. For example... Figure 2 As shown, a planar coordinate system can be constructed with the upper left corner of the electronic device's display screen as the origin, and the display screen can be divided into M×N display grids. The values of M and N can be set according to the actual situation and are not limited. M and N can have the same value or different values. For example, they can be set to... Figure 2The 4×2 grid shown is optional. Each display cell in the display screen is of equal size, and each display cell occupies a length of one unit in the X direction and a length of one unit in the Y direction. The lengths of each cell in the X and Y directions can also be set according to the actual situation, and can be the same or different, without limitation.
[0039] In one implementation, the coordinates of the top-left corner of the display grid in a planar coordinate system can be used as the coordinates of the display grid, for example, as shown below. Figure 2 As shown, if the coordinates of the top left corner of the first displayed cell in the planar coordinate system are X=0, Y=0, then the coordinates of the first displayed cell are X=0, Y=0. In some embodiments of this application, the coordinates of the bottom left, top right, or bottom right corner of the displayed cell in the planar coordinate system can also be used as the coordinates of the displayed cell, without limitation.
[0040] Optionally, the position of the application icon may include the display page and display coordinates. That is, the electronic device can determine the position of the application icon on the desktop based on the display page and display coordinates. For example, the position of an application icon can be: screen="0", X="0", Y="0", where screen="0" indicates that the application icon is displayed on the main screen of the desktop, and X="0", Y="0" indicates that the application icon is displayed within the display grid at coordinates X=0, Y=0 on the screen. It should be noted that, for ease of explanation, in this application, "application icon position" and "application position" are interchangeable.
[0041] In one implementation, when the electronic device is started, it can load a first layout via a desktop process. This first layout includes all installed applications in a first position on the desktop, and displays icons for each application in the corresponding first position. For example, Table 1 illustrates one desktop layout, which includes the installed calculator, voice recorder, music, settings, clock, calendar, and weather applications in the first position on the desktop.
[0042] Table 1
[0043] serial number name screen X Y 1 calculator 0 0 0 2 recorder 0 1 0 3 music 0 2 0 4 set up 0 3 0 5 clock 1 0 0 6 calendar 1 1 0 7 weather 1 2 0
[0044] As shown in Table 1, `screen` represents the display page, which can be a page number on the desktop. The desktop has multiple pages; for example, `screen=0` means the application icon is displayed on page 0 (i.e., main page 101), and `screen=1` means the application icon is displayed on page 1 (i.e., other page 102). `X` represents the display position in the X-direction of the electronic device's display coordinate system, and `Y` represents the display position in the Y-direction. `X` and `Y` together represent the display coordinates in the electronic device's display coordinate system. It is understood that Table 1 is for illustrative purposes only and does not constitute any limitation.
[0045] When the electronic device loads the first layout shown in Table 1 via the desktop process, a calculator application icon can be displayed in the display cell with coordinates X = "0", Y = "0" on the main page 101; a recorder application icon can be displayed in the display cell with coordinates X = "1", Y = "0" on the main page 101; a music application icon can be displayed in the display cell with coordinates X = "2", Y = "0" on the main page 101; a settings application icon can be displayed in the display cell with coordinates X = "3", Y = "0" on the main page 101; a clock application icon can be displayed in the display cell with coordinates X = "0", Y = "0" on other pages 102; a calendar application icon can be displayed in the display cell with coordinates X = "1", Y = "0" on other pages 102; and a weather application icon can be displayed in the display cell with coordinates X = "2", Y = "0" on other pages 102. Figure 3 As shown.
[0046] Currently, for electronic devices sold globally, different applications can be installed for different user groups in pre-installed scenarios due to varying regional business needs or legal regulations. For example, taking user group A and user group B as examples, applications A, B, and C can be installed for user group A, and applications A, C, and D can be installed for user group B. It should be noted that the applications involved in this application can be collaborative applications negotiated between the electronic device manufacturer and the third-party software development company, or they can be the electronic device manufacturer's own applications; this application does not impose any restrictions on either.
[0047] Optionally, the user groups involved in this application may be divided in at least one way, such as by country, operator, enterprise, or specific region, without limitation. Taking user group A and user group B as examples, in one example, user group A may be electronic devices within country a, and user group B may be electronic devices within country b; in another example, user group A may be electronic devices provided by operator a, and user group B may be electronic devices provided by operator b, and so on.
[0048] In one implementation, electronic devices can install different applications for different user groups via a pre-installation process. For example, if user groups are divided by country, electronic devices can install different applications for different countries via a pre-installation process, in which case the pre-installation process could be a process included in the country-specific installation service.
[0049] Currently, when an electronic device is powered on (e.g., upon first boot), it typically loads a first layout via a desktop process, then installs pre-installed applications via a pre-installation process. The icons of each installed application are displayed in their respective first positions, and the icons of the pre-installed applications are also displayed in preset positions. These preset positions are determined based on the first layout. For example, the preset position is the next display cell after the display cell containing the icon of the last installed application on the last page of the desktop. For instance, if the last page of the desktop is another page 102, and the icon of the last installed application on that page is a weather app icon, with coordinates X=2, Y=0, then the coordinates of the next display cell are X=3, Y=0. The preset position could be: screen="1", X="3", Y="0". Taking a pre-installed application like Notes as an example, the Notes app icon could be displayed in the display cell on another page 102 with coordinates X=3, Y=0. Figure 4 As shown.
[0050] However, with the development of information technology, electronic devices are installing more and more applications, and the number of icons displayed on the desktop is also increasing. Users may not be able to quickly locate and use applications (including pre-installed and / or already installed applications), affecting the user experience. To facilitate users' quick location and use of applications, the position of applications on the desktop needs to be adjusted according to their needs.
[0051] In view of this, embodiments of this application provide a layout adjustment method. In this method, an electronic device can launch a desktop process and load a first desktop layout through the desktop process; a pre-installed process controls the desktop process to clear the desktop data of the first layout and loads a second desktop layout through the desktop process. The first layout includes a first position of the installed applications on the desktop; the second layout is an adjusted layout different from the first layout. By controlling the desktop process to clear the desktop data of the first layout through the pre-installed process, the desktop process can load the second desktop layout, thereby effectively solving the problem that the desktop layout cannot be adjusted in the pre-installed scenario due to an unreasonable execution order between the pre-installed process and the desktop process.
[0052] It is understood that electronic devices can specifically include mobile phones, tablets, desktop computers, wearable devices (such as laptops), handheld computers, laptops, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), or specialized cameras (such as SLR cameras and point-and-shoot cameras). This application does not impose any restrictions on the specific type of electronic device.
[0053] The electronic equipment will now be described in detail.
[0054] Please see Figure 5 This diagram illustrates a hardware structure of an electronic device. The electronic device may include: a processor, an external memory interface, internal memory, a Universal Serial Bus (USB) interface, a charging management module, a power management module, a battery, antenna 1, antenna 2, a mobile communication module, a wireless communication module, an audio module, a sensor module, buttons, a motor, an indicator, a camera, a display screen, and a SIM card slot. The audio module may include a speaker, a receiver, a microphone, and a headphone jack. The sensor module may include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer, a proximity sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor.
[0055] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0056] A processor can include one or more processing units, such as an application processor (AP), modem, central processing unit (CPU), graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), neural network processing unit (NPU), etc. Different processing units can be independent devices or integrated into one or more processors. The processor is the nerve center and command center of an electronic device.
[0057] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, a mobile communication module, a wireless communication module, and a modem. In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module, and antenna 2 is coupled to the wireless communication module, enabling the electronic device to communicate with network-side devices and other electronic devices through wireless communication technology.
[0058] In addition, an operating system runs on top of the aforementioned components. Examples include Apple's iOS operating system, Google's Android open-source operating system, and Microsoft's Windows operating system.
[0059] The operating system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application uses the layered architecture Android system as an example to exemplify the software structure of an electronic device. It should be noted that although this application uses the Android system as an example, its basic principles are equally applicable to electronic devices based on operating systems such as iOS or Windows.
[0060] See Figure 6 This is a software structure block diagram of an electronic device provided in an embodiment of this application. The software structure adopts a layered architecture, which divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. Taking the Android system as an example, in some embodiments, the Android system is divided into the application layer, application framework layer (Framework), hardware abstraction layer (HAL), and kernel layer from top to bottom.
[0061] The application layer may include a series of application packages. These application packages may include apps such as camera, gallery, calendar, call, map, WLAN, Bluetooth, and music. In some embodiments, the application package may also include pre-installed apps, desktop applications, and other similar apps.
[0062] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications within the application layer. The application framework layer includes predefined functions. For example, it may include a window manager, content provider, view system, resource manager, notification manager, etc. This application embodiment does not impose any limitations on these. For instance, the window manager is used to manage window programs. The window manager can obtain the screen size, determine if a status bar exists, lock the screen, capture the screen, etc. The content provider is used to store and retrieve data, making this data accessible to applications. The data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc. The view system can be used to construct the application's display interface. Each display interface can consist of one or more controls. Generally, controls may include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other interface elements. The resource manager provides various resources to the application, such as localized strings, icons, images, layout files, video files, etc. The notification manager described above allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also appear as an icon or scrolling text in the system's top status bar, such as notifications from background applications, or as a dialog window on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating, or flashing indicator lights. In some embodiments, the application framework layer may also include pre-installed processes and desktop processes. Pre-installed processes are used to install different pre-installed applications for different user groups; desktop processes are used to load the desktop layout.
[0063] The Hardware Abstraction Layer (HAL) is an interface layer located between the kernel layer and the hardware, used to abstract the hardware. In some embodiments, the HAL includes a Hardware Abstraction Layer Interface Definition Language (HIDL) interface. The HAL may include: a camera HAL, a display HAL, a sensor HAL, etc.
[0064] The kernel layer is the foundation of the Android operating system, responsible for hardware drivers, networking, power, system security, and memory management. It acts as an intermediary between hardware and software, relaying application requests to the hardware. The kernel layer includes at least camera drivers, sensor drivers, display drivers, and audio drivers.
[0065] Please see Figure 7 , Figure 7 A flowchart illustrating a layout adjustment method is shown. (For example...) Figure 7 As shown, the method includes, but is not limited to, steps S101 to S103:
[0066] S101. The electronic device starts the desktop process and loads the first layout of the desktop through the desktop process.
[0067] In one alternative implementation, the desktop process can be triggered by the electronic device being powered on. That is, the electronic device can launch the desktop process when it is powered on. It should be noted that other related descriptions of the desktop process can be found in the foregoing embodiments, and will not be repeated here.
[0068] The first layout includes the initial location of installed applications on the desktop. For example, if an electronic device has a calculator app, a voice recorder app, a music app, a settings app, a clock app, a calendar app, and a weather app installed, the first layout could include the initial location of the calculator app, the voice recorder app, the music app, the settings app, the clock app, the calendar app, and the weather app on the desktop. Optionally, in a specific scenario, the first layout can be replaced with other names. For example, if the first layout is the layout loaded upon first boot, then the first layout could include the initial location of each installed application on the desktop before the first boot.
[0069] S102. The electronic device clears the desktop data of the first layout through the pre-installed process control desktop process.
[0070] In one optional implementation, the electronic device controls the desktop process to clear the desktop data of the first layout through a pre-installed process. This includes: the electronic device, through the pre-installed process, controlling the desktop process to clear the desktop data of the first layout based on a reflection mechanism. Reflection is a core feature of the Java language, referring to the ability of a program to access, inspect, and modify its own state or behavior. In inter-process communication between process A and process B, based on the reflection mechanism, process A can obtain the attributes and methods of process B and can call the corresponding attributes and methods of process B. In this application, the pre-installed process can obtain the first interface of the desktop process based on the reflection mechanism. This first interface is used to clear desktop data. When the pre-installed process calls the first interface of the desktop process, the desktop data of the first layout can be cleared. Therefore, in this implementation, the pre-installed process can control the desktop process to clear the desktop data of the first layout through a reflection mechanism.
[0071] In another optional implementation, the electronic device controls the desktop process to clear the desktop data of the first layout via a pre-installed process. This includes: the electronic device sending a control command to the desktop process via the pre-installed process, the control command instructing the desktop process to clear the desktop data. When the desktop process receives the control command, it clears the desktop data of the first layout. Therefore, in this implementation, the pre-installed process can control the desktop process to clear the desktop data of the first layout via a control command.
[0072] Optionally, the desktop process can also clear other data (such as application information) to prevent other data from affecting the subsequent desktop process loading the second layout of the desktop.
[0073] Optionally, after the desktop process clears the desktop data of the first layout, it can be restarted, and the restarted desktop process can then load the second layout. Because of the restart operation, the restarted desktop process is less susceptible to interference and can more accurately load the second layout.
[0074] S103, The electronic device loads the second layout of the desktop through the desktop process.
[0075] The second layout is a modified layout, different from the first layout. For example, the second layout includes a second position on the desktop for pre-installed applications, which differs from the default position of pre-installed applications on the desktop. Another example is that the second layout includes a third position on the desktop for installed related applications, which differs from the first position of related applications in the first layout.
[0076] In one optional implementation, the second layout includes a second position of the pre-installed application on the desktop (i.e., the adjusted position of the pre-installed application), which is different from the preset position of the pre-installed application on the desktop. Loading the second layout of the desktop through the desktop process includes step S103a: after the pre-installed application is installed through the pre-installed process, the second position of the pre-installed application on the desktop is loaded through the desktop process.
[0077] For example, if the pre-installed application is a Notes application, the Notes application loaded by the desktop process will be located in the second position on the desktop as: screen="0", X="0", Y="0". The electronic device can display the Notes application icon on the display grid with coordinates X="0", Y="0" on the main page 101, such as... Figure 8 As shown, with Figure 4 Compared to the desktop interface shown, the position of the memo application is not the preset position screen="1", X="3", Y="0", but a second position screen="0", X="0", Y="0" adjusted according to needs. It can be seen that the embodiments of this application can adjust the position of the pre-installed application on the desktop in the pre-installed scenario.
[0078] Optionally, the placement of a pre-installed app in the second position on the desktop is related to the frequency of its use and / or the corresponding advertising effectiveness. For example, the higher the frequency of the pre-installed app's use, the greater the probability that screen="0" is set in the second position, and the greater the probability that the pre-installed app's icon will be displayed on the homepage; similarly, the higher the advertising effectiveness of the pre-installed app, the greater the probability that screen="0" is set in the second position, and the greater the probability that the pre-installed app's icon will be displayed on the homepage.
[0079] Optionally, loading the pre-installed application into a second location on the desktop via the desktop process includes: sending the identifier of the pre-installed application to the desktop process via the pre-installed process, and loading the pre-installed application into a second location on the desktop via the desktop process based on the identifier of the pre-installed application. It should be noted that the identifier of the pre-installed application can be obtained from the application information of the pre-installed application. For a detailed explanation of the application information, please refer to the relevant explanation in subsequent step S202.
[0080] Optionally, the identifier of the pre-installed application can be transmitted via a first list, for example, the first list can be represented as autoinstall_co_add_list. That is, the electronic device sends the first list, which includes the identifier of the pre-installed application, to the desktop process through the pre-installation process. When the electronic device receives the first list through the desktop process, it can load the pre-installed application into a second position on the desktop based on the identifier of the pre-installed application in the first list. It should be noted that the first list can be sent separately or carried in instructions. For example, if the pre-installation process controls the desktop process to clear the desktop data of the first layout through a reflection mechanism, the first list can be carried in the reflection call instruction of the transmission mechanism; if the pre-installation process controls the desktop process to clear the desktop data of the first layout through control instructions, the first list can be carried in the control instructions; there is no limitation. It should also be noted that in other embodiments, the identifier of the pre-installed application can also be transmitted in other ways, such as being transmitted within a data object, without limitation.
[0081] In one optional implementation, the second layout includes a third position of the installed associated application on the desktop (i.e., the adjusted position of the associated application), the third position being different from the first position of the associated application in the first layout; loading the second layout of the desktop through the desktop process includes step S103b: loading the associated application in the third position of the desktop through the desktop process.
[0082] In one implementation, the position of the associated application is changed by the second position of the pre-installed application. For example, the second position of the pre-installed application (such as a memo app) is screen="0", X="0", Y="0", while this position is the first position of the installed calculator app. Since the second position of the pre-installed application conflicts with the first position of the installed calculator app, the position of the installed calculator app can be adjusted. For example, the position of the installed calculator app can be changed from screen="0", X="0", Y="0" to screen="0", X="0", Y="1". The electronic device can then display the calculator app icon on the display screen in the grid at coordinates X="0", Y="1" on the main page 101. Figure 8 As shown. With Figure 4 Compared to the desktop interface shown, the position of the calculator app icon is not the first position (screen="0", X="0", Y="0"), but rather the adjusted position (screen="0", X="0", Y="1") based on requirements. This shows that in this implementation, when the position of the associated app "Calculator App" is affected by the second position of the pre-installed app and needs to be changed, the position of the calculator app on the desktop can be adjusted.
[0083] In another implementation, the location of the associated application is changed by other factors (such as the user's personalized needs). For example, if the location of an installed settings application needs to be adjusted from screen="0", X="3", Y="0" to screen="1", X="3", Y="0", the electronic device can display the settings application icon on the display screen in a display cell on other page 102 with coordinates X="3", Y="0", such as... Figure 9 As shown. With Figure 4 Compared to the desktop interface shown, the position of the settings application icon is not the first position (screen="1", X="3", Y="0"), but rather the adjusted position (screen="1", X="3", Y="0") based on requirements. This shows that in this implementation, when the position of the associated application "Settings Application" needs to be adjusted due to other factors, the position of the settings application on the desktop in the pre-installed scenario can be adjusted.
[0084] Furthermore, there can be multiple associated applications. For each associated application, its position can be changed by the second position of the pre-installed application, or by the adjusted position of other associated applications, or by other factors (such as the user's personalized needs).
[0085] For example, the second position of the pre-installed application (i.e., the Notes app) is screen="0", X="0", Y="0", while this position is the first position of the installed calculator app. The second position of the pre-installed application conflicts with the first position of the installed calculator app. Therefore, the position of the installed calculator app can be adjusted. For example, the position of the installed calculator app can be adjusted from screen="0", X="0", Y="0" to screen="0", X="1", Y="0". The electronic device can then display the calculator app on the display screen in the display cell with coordinates X="1", Y="0" on the main page 101. The calculator app's adjusted position is screen="0", X="1", Y="0", which is the first position of the installed recorder app. The adjusted position of the calculator app conflicts with the first position of the installed recorder app. Therefore, the position of the installed recorder app can also be adjusted. For example, changing the position of the installed recorder app from screen="0", X="1", Y="0" to screen="0", X="0", Y="1", the electronic device can display the recorder app icon on the display screen in the grid with coordinates X="0", Y="1" on the main page 101. Figure 10As shown. In this implementation, the position of the associated application "Calculator Application" is changed by the second position of the pre-installed application (i.e., the Notes Application), and the position of the associated application "Voice Recorder Application" is changed by the adjusted position of other associated applications (i.e., the Calculator Application).
[0086] For example, the second position of the pre-installed application (i.e., the Notes app) is screen="0", X="0", Y="0", while this position is the first position of the installed calculator app. The second position of the pre-installed application conflicts with the first position of the installed calculator app. Therefore, the position of the installed calculator app can be adjusted. For example, the position of the installed calculator app can be changed from screen="0", X="0", Y="0" to screen="0", X="1", Y="0". The electronic device can then display the grid on the main page 101 with coordinates X="1", Y="0". The calculator app icon is displayed. The adjusted position of the calculator app is screen="0", X="1", Y="0", which is the initial position of the installed recorder app. The adjusted position of the calculator app conflicts with the initial position of the installed recorder app. Therefore, the position of the installed recorder app can also be adjusted, for example, from screen="0", X="1", Y="0" to screen="0", X="2", Y="0". The electronic device can then display the calculator app icon on the main page 101 at coordinates X="2", Y="0". The sound recorder app icon is displayed. The adjusted position of the sound recorder app is screen="0", X="2", Y="0", which is the first position of the installed music app. The adjusted position of the sound recorder app conflicts with the first position of the installed music app. Therefore, the position of the installed music app can also be adjusted, for example, from screen="0", X="2", Y="0" to screen="0", X="3", Y="0". The electronic device can then display the sound recorder icon on the display screen in the grid at coordinates X="3", Y="0" on the main page 101. The music app icon; the adjusted position of the music app is screen="0", X="3", Y="0", which is the first position of the installed settings app. The adjusted position of the music app conflicts with the first position of the installed settings app. Therefore, the position of the installed settings app can also be adjusted, for example, changing the position of the installed settings app from screen="0", X="3", Y="0" to screen="0", X="0", Y="1". The electronic device can then display the settings app icon on the display screen in the grid with coordinates X="0", Y="1" on the main page 101; for example... Figure 11As shown. In this implementation, the calculator app, sound recorder app, music app, and settings app are associated apps. The position of the associated app "calculator app" is changed by the second position of the pre-installed app (i.e., the notes app). The positions of the associated apps "sound recorder app," "music app," and "settings app" are changed by the adjusted positions of the other associated apps. That is, the position of the sound recorder app is changed by the adjusted position of the calculator app, the position of the music app is changed by the adjusted position of the sound recorder app, and the position of the settings app is changed by the adjusted position of the music app.
[0087] For another example, the second position of the pre-installed application (i.e., the Notes app) is screen="0", X="0", Y="0", while this position is the first position of the installed calculator app. The second position of the pre-installed application conflicts with the first position of the installed calculator app. Therefore, the position of the installed calculator app can be adjusted. For example, the position of the installed calculator app can be changed from screen="0", X="0", Y="0" to screen="0", X="0", Y="1". The electronic device can then display the calculator app icon on the display screen in the grid with coordinates X="0", Y="1" on the main page 101. Simultaneously, it may also be necessary to adjust the position of the installed settings app. For example, the position of the installed settings app can be changed from screen="0", X="3", Y="0" to screen="1", X="3", Y="0". The electronic device can then display the settings app icon on the display screen in the grid with coordinates X="3", Y="0" on another page 102. Figure 12 As shown. In this implementation, the calculator app and the settings app are associated apps, and the position of the associated app "calculator app" is changed by the second position of the pre-installed app (i.e., the notes app), while the position of the settings app is changed by other factors (such as the user's personalized needs).
[0088] Optionally, loading the associated application into a third location on the desktop via the desktop process includes: sending the identifier of the pre-installed application to the desktop process via the pre-installed process, and loading the associated application into a third location on the desktop via the desktop process based on the identifier of the associated application. It should be noted that the identifier of the associated application can be obtained from the application information of the associated application.
[0089] Optionally, the identifier of the associated application can also be transmitted via a first list. That is, the electronic device sends a first list, including the identifiers of associated applications, to the desktop process through a pre-installed process. When the electronic device receives the first list through the desktop process, it can load the associated application into a third position on the desktop based on the identifiers of the associated applications in the first list. It should be noted that in other embodiments, the identifier of the associated application can also be transmitted via a second list. For a detailed explanation of the second list, please refer to the relevant embodiments of the first list; further details will not be provided here. It should also be noted that in other embodiments, the identifier of the associated application can be transmitted in other ways, such as being carried within a data object, without limitation.
[0090] It should be noted that, in this embodiment, since the desktop data clearing step clears the first locations of all installed applications, the electronic device still needs to load the first locations of the installed applications (without adjusting their positions) through the desktop process in order to obtain the locations of all installed applications. For example, in Figure 8 In the example shown, in addition to loading the Notes app (second location) and the Calculator app (third location) via the desktop process, the electronic device also needs to load the Voice Recorder app (first location), Music app (first location), Settings app (first location), Clock app (first location), Calendar app (first location), and Weather app (first location) via the desktop process. This demonstrates that the desktop process can load the entire layout, resolving the issue of layout adjustments needed in pre-installed scenarios.
[0091] It should be noted that the above steps S103a and S103b are two parallel implementations of step S103. In the embodiments of this application, the electronic device may execute step S103a without executing step S103b, or it may execute step S103b without executing step S103a, or it may execute steps S103a and S103b simultaneously, without limitation.
[0092] In an alternative implementation, before performing step S103a, the method further includes step S104 (not shown in the figure): the electronic device installs a pre-installed application through a pre-installation process.
[0093] As can be seen, in this embodiment, the electronic device controls the desktop process through the pre-installation process to clear the desktop data of the first layout, enabling the desktop process to load the second layout of the desktop. This effectively solves the problem that the desktop layout cannot be adjusted in the pre-installation scenario due to the unreasonable execution order between the pre-installation process and the desktop process, which is beneficial for customizing the desktop layout. For example, pre-installed applications in the pre-installation scenario can be moved from a preset position to a second position; or, associated applications in the pre-installation scenario can be moved from a first position in the first layout to a third position. Furthermore, since the pre-installation process and the desktop process communicate across processes, the pre-installation process in this embodiment can control the desktop process to clear the desktop data of the first layout through a reflection mechanism.
[0094] In some embodiments, before the electronic device controls the desktop process to clear the desktop data of the first layout via the pre-installation process, the electronic device needs to determine, via the pre-installation process, whether a pre-installed application and / or associated application exists in the application to be processed. This application to be processed is obtained by parsing the pre-installation package through the pre-installation process. See also... Figure 13 , Figure 13 A flowchart illustrating another layout adjustment method is shown. (For example...) Figure 13 As shown, the method includes, but is not limited to, steps S201 to S204:
[0095] S201. The electronic device starts the desktop process and loads the first layout of the desktop through the desktop process.
[0096] It should be noted that for a detailed explanation of step S201, please refer to step S101, which will not be repeated here.
[0097] S202. The electronic device parses the pre-installed package through the pre-installation process to obtain at least one application to be processed in the pre-installed scenario, and determines whether there is a pre-installed application and / or associated application in the at least one application to be processed based on the operation type of each application to be processed.
[0098] In this context, "applications to be processed" refers to applications obtained by parsing pre-installed packages through a pre-installation process on an electronic device. For example, this pre-installed package could be the pre-installed package autoInstallCountryAPK.xml included with a country installation service. Pre-installed applications are those that need to be installed through the pre-installation process and require layout adjustments. Associated applications are those already installed and whose layout needs adjustment, as determined by the pre-installation process. It should be noted that this application does not limit the number of applications to be processed, pre-installed applications, and associated applications; the number of applications to be processed can be one or more, the number of pre-installed applications can be one or more, and the number of associated applications can be one or more.
[0099] In one optional implementation, the electronic device determines, through a pre-installation process, whether at least one application to be processed exists as a pre-installed application, and / or an associated application, based on the operation type of each application to be processed. This includes: the electronic device obtaining the operation type of each application to be processed through the pre-installation process, and determining whether each application to be processed is a pre-installed application based on the operation type of each application to be processed. For example, for each application to be processed, if the operation type of the application to be processed is a first type, the application to be processed is determined to be a pre-installed application; otherwise, the application to be processed is not a pre-installed application.
[0100] Similarly, electronic devices can determine whether each application to be processed is an associated application based on the operation type of each application through the pre-installed process. For example, for each application to be processed, if the operation type of the application to be processed is the second type, the application to be processed is determined to be an associated application; otherwise, the application to be processed is not an associated application.
[0101] It should be noted that the first type and the second type are used to represent different operation types. In other embodiments, the first type and the second type can also be interchanged without limitation. In one implementation, the operation type of the application to be processed can be represented by the field "actiontype". When the value of the field "actiontype" is different, the operation type represented by the field "actiontype" is different. The value of the field "actiontype" can be set according to the actual situation without limitation. For example, when the field "actiontype = 1", the operation type of the application to be processed is the first type, that is, the application to be processed is a pre-installed application; when the field "actiontype = 3", the operation type of the application to be processed is the second type, that is, the application to be processed is an associated application.
[0102] It should be noted that in other embodiments, the operation type of the application to be processed may also include a third type and a fourth type. If the operation type of the application to be processed is the third type, it is determined that the application to be processed is an application that is not installed; if the operation type of the application to be processed is the fourth type, it is determined that the application to be processed is an application that needs to be uninstalled. Accordingly, the third type and the fourth type can also be represented by the field "actiontype". For example, when the field "actiontype = 0", the operation type of the application to be processed is the third type, that is, the application to be processed is an application that is not installed; when the field "actiontype = 2", the operation type of the application to be processed is the fourth type, that is, the application to be processed is an application that needs to be uninstalled.
[0103] Optionally, the operation type of the application to be processed can be carried in the application information of the application to be processed.
[0104] Optionally, in other implementations, the application information of the application to be processed may include, but is not limited to, at least one of the following: the identifier of the application to be processed, the application path, the associated country information, or the matching factor information.
[0105] For example, the following example illustrates the application information obtained by parsing a pre-installed package in XML format (such as autoInstallCountryAPK.xml):
[0106] <? xml version="1.0" encoding="UTF-8"? >
[0107] <config hashvalue=“ead092aab2c439b51c3953685bb6ca46”>
[0108] <array key=“apks”>
[0109] <dict>
[0110] <array key="country”> / / Related country information
[0111] <string> CN< / string>
[0112]
[0113] <int key="actiontype”> 0 / 1 / 2 / 3 / / Operation type, with actiontype=0 representing the third type, actiontype=1 representing the first type, actiontype=2 representing the fourth type, and actiontype=3 representing the second type;
[0114] <string key="apkpackagename”> apkpackagename / / The identifier of the application, for example, the application package name is used as the identifier of the application;
[0115] <string key="apkpath”> apkpath / name.apk / / Application path;
[0116] <string key="filter”> filter1, filter2, filter3, filter4, filter5 / / Matching factor information, used to indicate the type of matching factor;
[0117] <int key="schemetype”> 1
[0118] <string key="systemflag”> nosys
[0119] <string key="uninstallflag”> true
[0120] <dict>
[0121]
[0122]
[0123] It should be noted that the above pre-installed package is illustrated using XML format as an example. In other implementations, the pre-installed package can also be packaged in other formats, such as ZIP format, without limitation.
[0124] S203. If at least one application to be processed contains a pre-installed application and / or an associated application, the electronic device clears the desktop data of the first layout through the pre-installed process controlling the desktop process.
[0125] S204. Electronic devices load the second layout of the desktop through a desktop process.
[0126] It should be noted that for the relevant explanations of steps S203 and S204, please refer to steps S102 and S103, which will not be repeated here.
[0127] In one alternative implementation, the process ends if at least one application to be processed does not have a pre-installed application and no associated application.
[0128] In an optional implementation, if at least one application to be processed contains a pre-installed application, the method may further include S205 (not shown in the figure): determining, through the pre-installation process, whether the country information associated with the pre-installed application matches the country information of the country where the electronic device is currently located; if they match, the executing electronic device installs the pre-installed application through the pre-installation process. Otherwise, the pre-installed application is not installed.
[0129] Optionally, the country information associated with a pre-installed application can be obtained from the application information of the pre-installed application.
[0130] Optionally, the country information of the electronic device's current location can be manually entered by the user. For example, please see... Figure 14 The image shows a schematic diagram of a startup wizard page. Figure 14 As shown, the startup wizard page 1400 may include multiple country options. When a user performs a selection operation for a country option on the startup wizard page 1400, the electronic device can determine the country information of the country where the electronic device is currently located based on the selection operation.
[0131] Optionally, the country information of the electronic device's current location can also be determined based on a matching factor. This matching factor includes, but is not limited to, at least one of the following: language type, the operator the electronic device is connected to, or network information (such as the Public Land Mobile Network (PLMN) the electronic device is hosted on). In one example, if the matching factor is language type, when the language type is "Simplified Chinese," the electronic device's current country can be determined as country a; when the language type is "English," the electronic device's current country can be determined as country b. In another example, if the matching factor is the operator the electronic device is connected to, when the operator the electronic device is connected to is "China Telecom," the electronic device's current country can be determined as country a; when the selected language type is "Vodafone," the electronic device's current country can be determined as country b; and so on.
[0132] Optionally, this matching factor can be obtained during the power-on wizard process of the electronic device. For example, see [link to relevant documentation]. Figure 15 As shown, this is a schematic diagram of another boot wizard page. Figure 15 As shown, the boot wizard page 1500 may include multiple language options, with each language option corresponding to a language type. When a user operation is detected on the "Simplified Chinese" option in the boot wizard page 1500, the electronic device determines that the entered language type is "Simplified Chinese," i.e., the selected language type is "Simplified Chinese." For example, in the boot wizard process, the operator to which the electronic device is connected can be determined based on the VENDOR_COTA information. Optionally, this VENDOR_COTA information may be obtained through a software update service. For example, in the boot wizard process, the electronic device may obtain network registration information.
[0133] In one implementation, the electronic device can obtain at least one of the following during the boot wizard process: language type, the operator the electronic device is connected to, or network registration information, and store at least one of these in a database. When the electronic device parses the pre-installed package through the pre-installation process to obtain the application information of the pre-installed application, it can determine the type of the matching factor based on the matching factor information in the application information. Based on the type of the matching factor, it can select the corresponding matching factor from the language type, the operator the electronic device is connected to, or the network registration information to determine the country information of the country where the electronic device is currently located.
[0134] It should be noted that step S202 can be triggered upon detecting a triggering operation. For example, the triggering operation could be a user action on an enhanced service page. For instance, as shown... Figure 16 The diagram illustrates an enhanced service page. When a user action is detected on option 1601 in the enhanced service page 1600, the electronic device determines that a trigger operation has been detected and triggers execution step S202. Optionally, the enhanced service page can be a user interface in a startup wizard process, for example... Figure 16 The enhanced service page shown is from Figure 14 or Figure 15 The user interface shown after the startup wizard page appears; optional. Figure 16 The Enhanced Services page 1600 shown can also be a user interface outside of the startup wizard process, without limitation.
[0135] Furthermore, in order to better illustrate the embodiments of this application, Figure 17 A flowchart illustrating another layout adjustment method is shown. For example... Figure 17 As shown, the method includes, but is not limited to, steps s11 to s24:
[0136] s11. The electronic device is powered on and the desktop process is started.
[0137] s12. Electronic devices load the first layout of the desktop through the desktop process.
[0138] s13. During the power-on wizard process, the electronic device obtains the country information of the current location of the electronic device.
[0139] s14. The electronic device obtains the language type during the power-on wizard process.
[0140] s15. During the power-on wizard process, the electronic device determines the operator to which it is connected.
[0141] s16. Electronic devices determine network registration information during the power-on wizard process.
[0142] It should be noted that steps s13 to s16 are parallel steps, and the electronic device may execute at least one of them. For example, the electronic device may execute step s13 but not steps s14 to s16; or, for another example, the electronic device may execute steps s14 to s16 but not step s13, without limitation.
[0143] s17. The electronic device parses the pre-installation package through the pre-installation process to obtain at least one application to be processed in the pre-installation scenario.
[0144] s18. The electronic device determines, through a pre-installation process, whether there is a related application in at least one application to be processed, based on the operation type of each application to be processed in at least one application to be processed.
[0145] Optionally, for each application to be processed, if the operation type of the application to be processed is the second type, then the application to be processed is determined to be an associated application.
[0146] s19. If at least one application to be processed has an associated application, the electronic device sends the identifier of the associated application to the desktop process through the pre-installed process.
[0147] Optionally, if no associated application exists in at least one of the applications to be processed, then step s20 is executed directly.
[0148] s20. The electronic device determines, through a pre-installation process, whether a pre-installed application exists in at least one application to be processed, based on the operation type of each application to be processed in at least one application to be processed.
[0149] Optionally, for each application to be processed, if the operation type of the application to be processed is the first type, then the application to be processed is determined to be a pre-installed application.
[0150] s21. If at least one application to be processed contains a pre-installed application, the electronic device determines, through the pre-installation process, whether the country information associated with the pre-installed application matches the country information of the country where the electronic device is currently located.
[0151] Optionally, if no pre-installed application exists in at least one application to be processed, then step s23 is executed or the process ends. For example, if no pre-installed application exists in at least one application to be processed, but an associated application exists, then step s23 is executed; or, for another example, if no pre-installed application exists in at least one application to be processed, and no associated application exists, then the process ends.
[0152] s22. If the country information associated with the pre-installed application matches the country information of the country where the electronic device is currently located, the electronic device sends the identifier of the pre-installed application to the desktop process through the pre-installation process.
[0153] s23. Electronic devices clear the desktop data of the first layout through the pre-installed process control desktop process.
[0154] s24. The electronic device loads a second layout of the desktop via a desktop process based on the identifier of a pre-installed application and / or the identifier of an associated application.
[0155] Optionally, the second layout includes a second location on the desktop where the pre-installed application is located, and / or, the second layout includes a third location on the desktop where the associated application is located.
[0156] It should be noted that after the electronic device loads the second layout of the desktop through the desktop process, the method also includes the electronic device displaying the icon of the pre-installed application in the second position of the desktop, and / or displaying the icon of the associated application in the third position of the desktop.
[0157] Optionally, it should be noted that in this embodiment, after step s21, if the country information associated with the pre-installed application matches the country information of the country where the electronic device is currently located, the electronic device still needs to install the pre-installed application through the pre-installation process; if the country information associated with the pre-installed application does not match the country information of the country where the electronic device is currently located, the electronic device does not install the pre-installed application, and step s22 does not need to be executed.
[0158] It should be noted that steps s11 to s24 are merely an example. In other implementations, the execution order between steps can be adjusted. For example, steps s20 to s22 can be executed first, followed by steps s18 to s19. This application does not impose any restrictions on this.
[0159] In this embodiment, pre-installed applications and associated applications can be distinguished by operation type. This allows the pre-installation process to perform different operations for each application. For example, for an associated application with operation type 2, the pre-installation process directly sends the identifier of the associated application to the desktop process, so that the desktop process can load the adjusted position of the associated application based on the identifier. For a pre-installed application with operation type 1, the pre-installation process needs to determine whether the country information associated with the pre-installed application matches the country information of the electronic device. If they match, the pre-installed application is installed, and the identifier of the pre-installed application is sent to the desktop process, so that the desktop process can load the adjusted position of the pre-installed application based on the identifier. This facilitates the display of the adjusted layout after the desktop process has finished loading.
[0160] The above embodiments are illustrated using a game scenario as an example. In other embodiments, the solution of this application may also be applicable to other application scenarios, such as instant messaging scenarios, without limitation.
[0161] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if..." or "after..." or "in response to determining..." or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is detected" can be interpreted as meaning "if determining..." or "in response to determining..." or "when (the stated condition or event) is detected" or "in response to detecting (the stated condition or event)".
[0162] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0163] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.< / dict> < / dict>
Claims
1. A layout adjustment method characterized by, The method is applied to an electronic device, the electronic device comprising a desktop process and a pre-installed process, the pre-installed process installing different applications for different countries, and being a process in a country installation service, the method comprising: starting the desktop process and loading a first layout of a desktop by the desktop process, the first layout comprising a first position of an installed application on the desktop; obtaining country information in which the electronic device is currently located in a startup guide process, the country information comprising at least one of a language type, a connected operator, and network information; analyzing a pre-installed package by the pre-installed process to obtain at least one to-be-processed application, an operation type of each to-be-processed application, and country information associated with each to-be-processed application; determining whether there is an associated application and a pre-installed application in the at least one to-be-processed application according to the operation type of each to-be-processed application; controlling the desktop process to clear desktop data of the first layout by the pre-installed process based on reflection control; when there is a pre-installed application in the at least one to-be-processed application, sending an identifier of the pre-installed application to the desktop process by the pre-installed process, and loading the pre-installed application at a second position on the desktop by the desktop process based on the identifier of the pre-installed application; when there is an associated application in the at least one to-be-processed application, sending an identifier of the associated application to the desktop process by the pre-installed process, and loading the associated application at a third position on the desktop by the desktop process based on the identifier of the associated application; wherein the second position is different from a preset position of the pre-installed application on the desktop, and the preset position is determined based on the first layout; and the third position is different from a first position of the associated application in the first layout; when there is a pre-installed application in the at least one to-be-processed application, the method further comprises: determining whether the country information associated with the pre-installed application matches country information of the country in which the electronic device is currently located by the pre-installed process; when the country information matches, installing the pre-installed application by the pre-installed process; when the country information does not match, not installing the pre-installed application.
2. The method of claim 1, wherein, The determining of the associated application and / or the pre-installed application according to the operation type of each to-be-processed application comprises: for each to-be-processed application, if the operation type of the to-be-processed application is a first type, determining that the to-be-processed application is the pre-installed application; and if the operation type of the to-be-processed application is a second type, determining that the to-be-processed application is the associated application.
3. An electronic device, comprising: comprise: one or more processors and one or more memories, the one or more memories being coupled to the one or more processors, the one or more memories being configured to store computer program codes, the computer program codes comprising computer instructions, which, when executed by the one or more processors, cause the electronic device to perform the method according to any one of claims 1-2.
4. A computer-readable storage medium, characterized in that, comprise computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method according to any one of claims 1-2.
5. A chip or chip system, characterized by comprising processing circuitry and interface circuitry for receiving code instructions and transferring to the processing circuitry, the processing circuitry being for running the code instructions to perform the method of any of claims 1-2.
Citation Information
Patent Citations
Desktop layout method and device for mobile equipment
CN106095448A