CN114064055B - System theme configuration method and electronic equipment - Google Patents

System theme configuration method and electronic equipment Download PDF

Info

Publication number
CN114064055B
CN114064055B CN202111192936.5A CN202111192936A CN114064055B CN 114064055 B CN114064055 B CN 114064055B CN 202111192936 A CN202111192936 A CN 202111192936A CN 114064055 B CN114064055 B CN 114064055B
Authority
CN
China
Prior art keywords
target
application
theme
installation
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111192936.5A
Other languages
Chinese (zh)
Other versions
CN114064055A (en
Inventor
张金博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111192936.5A priority Critical patent/CN114064055B/en
Publication of CN114064055A publication Critical patent/CN114064055A/en
Application granted granted Critical
Publication of CN114064055B publication Critical patent/CN114064055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/451Execution arrangements for user interfaces

Abstract

The embodiment of the application provides a configuration method of a system theme and electronic equipment, relates to the technical field of terminals, and not only is the purpose of automatically generating target theme information liked by a user realized, but also the complicated process of manually configuring the system theme by the user is avoided. The method is applied to the electronic equipment and comprises the following steps: the electronic equipment displays a first system interface and determines a target application meeting a first preset condition; the first system interface is configured by adopting first theme information; acquiring an installation package of the target application corresponding to the identification information according to the identification information of the target application; generating target subject information according to an installation file in an installation package of a target application; the electronic equipment displays a second system interface; the second system interface is configured with the target subject information.

Description

System theme configuration method and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for configuring a system theme and an electronic device.
Background
In order to provide better use experience for users, electronic devices such as mobile phones, tablet computers and the like are equipped with various system themes when being shipped from a factory. At present, when a user configures a system theme of an electronic device, the user needs to download the system theme from a theme application in a manual manner, and then apply the downloaded system theme to the electronic device. However, the simple and fixed system theme in the theme application of the electronic device cannot meet the personalized requirements of the user.
Disclosure of Invention
The embodiment of the application provides a configuration method of a system theme and electronic equipment, which identify target applications such as high-frequency applications and the like which are interesting or liked by a user from applications of the electronic equipment through the electronic equipment, and then recommend the target theme information to the system theme used by the user to the electronic equipment after the electronic equipment generates corresponding target theme information according to the theme information of the target applications. Therefore, target theme information liked by the user is automatically generated, the personalized requirements of the user are met, the complex process that the user configures the system theme is avoided, and the use experience of the user is improved.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a method for configuring a system theme is provided, and applied to an electronic device, the method includes:
the electronic equipment displays a first system interface and determines a target application meeting a first preset condition; the first system interface is configured by adopting first theme information; acquiring an installation package of the target application corresponding to the identification information according to the identification information of the target application; generating a second system interface for displaying target subject information electronic equipment according to the installation files in the installation package of the target application; the second system interface is configured with the target subject information.
In this embodiment of the application, the first system interface and the second system interface may be the same system interface of the electronic device, or may be different system interfaces of the electronic device, which is not limited herein. For example, the first system interface and the second system interface may both be a first page of a desktop of the electronic device, or the first system interface is a first page of a desktop of the electronic device, the second system interface is a second page of a desktop of the electronic device, and so on.
Therefore, after the electronic equipment generates the target theme information according to the resources in the installation file of the target application, the second system interface configured by the target theme information is displayed on the electronic equipment, the purpose of switching the system theme of the electronic equipment according to the application theme information is achieved, the personalized requirements of users are met, and the use experience of the users is improved.
Optionally, the first preset condition includes that the usage duration and/or the usage number of the target application is the longest, or the usage duration and/or the usage number of the target application is greater than a first threshold and/or a second threshold, or the target application is a preset application.
In the embodiment of the application, the electronic device may determine the application with the longest usage time and/or the largest number of usage times as the target application, and thus, the application with the most frequent usage may be determined as the target application. The electronic device can determine applications with usage duration longer than a first threshold and/or usage times longer than a second threshold as target applications, and therefore the electronic device can determine multiple applications with usage frequency as the target applications, and further generate multiple corresponding target theme information according to the theme information of the multiple target applications, and the electronic device can randomly display a second system interface configured by any one target theme information, or display a second system interface configured by target theme information specified by a user, so that personalized requirements of different users are met.
Optionally, the electronic device displays a second system interface, comprising: the electronic equipment displays prompt information; the prompt message is used for reminding a user whether to switch the first system interface into a second system interface configured by adopting the target subject information; the electronic device responds to the control instruction of the user and displays the second system interface.
Therefore, the electronic equipment can remind the user that the target theme information is generated by displaying the prompt information on the display interface, and the user can determine whether to adopt the target theme information to configure the system interface according to the requirement of the user.
Optionally, the electronic device displays the second system interface, further comprising: the electronic equipment automatically displays a second system interface at a preset moment; the preset time comprises the time of generating the target theme information, the time of displaying the desktop by the electronic equipment, the time of starting the electronic equipment after restarting or the time of displaying the desktop again after locking the screen of the electronic equipment.
Therefore, after the target theme information is determined to be generated, the electronic equipment can automatically display the second system interface configured by the target theme information, so that the complicated process of configuring the system theme by a user is avoided, and the use experience of the user is improved.
Optionally, the configuration method of the system theme may further include: the electronic equipment displays a first application interface of a first application, and determines a target application meeting a first preset condition; the first application interface is configured by adopting the second theme information; the target application is an application different from the first application; acquiring an installation package of the target application corresponding to the identification information according to the identification information of the target application; generating a second application interface of the target subject information electronic equipment for displaying the first application according to the installation file in the installation package of the target application; the second application interface is configured with the target subject information.
In the embodiment of the application, after the electronic device generates the target theme information, the target theme information can be applied to application interfaces of other applications different from the target application in the electronic device, so that the application of the electronic device displays personalized themes, and personalized requirements of users are met.
Optionally, the target theme information may include at least one of audio information, picture information, or font information, and the generating of the target theme information according to the installation file in the installation package of the target application includes: screening at least one target installation file meeting a second preset condition from the installation files to generate a target resource library; the second preset condition includes that the suffix name of the installation file is the same as the suffix name of the expected file; the expected file comprises at least one of an audio file, a picture file, or a font file; screening at least one target theme file from a target resource library; the target theme file comprises at least one of an audio file, an icon file containing a foreground picture and a background picture, a picture file containing a preview and/or wallpaper and a font file, wherein the difference value between the duration of the audio file and the duration of the system ring tone is smaller than a difference threshold value; and generating target subject information according to the at least one target subject file.
Therefore, the electronic equipment determines at least one of audio information, picture information or fonts in the target theme information from the installation file of the target application to generate the target theme information meeting the requirements of the user.
Optionally, obtaining, according to the identification information of the target application, an installation package of the target application corresponding to the identification information, includes: and acquiring the installation package of the target application corresponding to the identification information from the installation catalog according to the identification information of the target application.
In the embodiment of the application, because the identification information of the target application can uniquely identify the target application, the electronic device can accurately acquire the installation package of the target application corresponding to the identification information of the target application from the installation catalog.
Optionally, obtaining the installation package of the target application corresponding to the identification information from the installation directory includes: analyzing the installation packages of all applications in the installation catalog to obtain identification information of all applications; target identification information which is the same as the identification information of the target application is obtained by inquiring the identification information of all the applications; and determining the installation package corresponding to the target identification information as the installation package of the target application.
Therefore, the electronic equipment can obtain the target identification information which is the same as the identification information of the target application from the identification information of the application by inquiring, so that the installation package corresponding to the target identification information is determined as the installation package of the target application, and the accuracy of determining the installation package of the target application is improved.
Optionally, the identification information may be a package name, and acquiring an installation package of the target application corresponding to the identification information from the installation directory includes: scanning files in the installation directory to obtain installation packages of all applications; screening all installation packages of the applications according to the package names of the target applications to obtain at least one installation package; analyzing the at least one installation package to obtain a package name corresponding to the at least one installation package; and matching the package name corresponding to at least one installation package with the package name of the target application to obtain the installation package of the target application matched with the package name of the target application.
Therefore, the electronic equipment can obtain at least one installation package from the installation packages of the applications through screening, and then the installation package of the target application matched with the package name of the target application is determined from the at least one installation package, so that the accuracy of determining the installation package of the target application is improved.
In a second aspect, the present application provides an electronic device having functions for implementing the method of the first aspect. The function can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. For example, the electronic device comprises a system control module, a first system interface and a second system interface, wherein the electronic device is used for displaying the first system interface and determining a target application meeting a first preset condition; the first system interface is configured by adopting first theme information; the theme generation module is used for acquiring an installation package of the target application corresponding to the identification information according to the identification information of the target application; generating target subject information according to an installation file in an installation package of a target application; the notification module is used for the electronic equipment to display a second system interface; the second system interface is configured with the target subject information.
In a third aspect, the present application provides an electronic device, comprising: one or more processors; a memory; wherein the memory has stored therein one or more computer programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of configuring a system subject matter as defined in any one of the above first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein instructions that, when executed on an electronic device, cause the electronic device to perform the method of configuring a system subject matter as defined in any one of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of configuring a system subject matter as defined in any one of the first aspects.
It is to be understood that the electronic device according to the second and third aspects, the computer storage medium according to the fourth aspect, and the computer program product according to the fifth aspect are all configured to execute the corresponding method provided above, and therefore, the beneficial effects achieved by the electronic device may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a software structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a first configuration scenario of a system theme according to an embodiment of the present application;
fig. 4 is a configuration scenario diagram ii of a system theme provided in the embodiment of the present application;
fig. 5 is a third configuration scenario diagram of a system theme provided in the embodiment of the present application;
fig. 6 is a fourth configuration scenario of a system theme provided in the embodiment of the present application;
fig. 7 is a schematic flowchart of a configuration method of a system theme according to an embodiment of the present application;
fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein in the description of the embodiments of the present application, "/" indicates an inclusive meaning, for example, a/B may indicate a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
In the embodiments of the present application, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
The system theme refers to the interface style of the electronic device system, for example, the style of the interface such as the display interface, the notification management interface, etc. of the electronic device. The system theme may include a preview, a wallpaper, an icon file, and the like. The preview image refers to a preview effect image after the electronic device uses the system theme. The wallpaper refers to a main interface picture, a screen locking picture and the like of the electronic device. An icon file refers to a file that can be regarded as an icon, such as a desktop icon, a folder icon, and the like. The system theme is usually pre-configured when the electronic equipment leaves a factory, and the pre-configured system theme of the electronic equipment can be replaced according to own preference when a user uses the electronic equipment, so that the display interface of the electronic equipment is changed into the favorite style of the user.
Currently, when configuring a system theme of an electronic device, a user manually downloads the system theme from a theme application (the theme application is an application program set on the electronic device), and then applies the downloaded system theme to the electronic device. Alternatively, the user may select one theme from a plurality of system themes provided when the electronic device is shipped from a factory, to apply to the electronic device. For users, the existing configuration method of the system theme has the problems of complicated operation process, time and labor waste and the like, so that the use experience of the users is reduced. In addition, the styles of the system theme configured when the electronic device leaves the factory and the system theme downloaded from the theme application are relatively fixed, and the personalized requirements of the user cannot be met.
Therefore, in the method, after the electronic device identifies the target application, the electronic device generates target theme information according to an installation file in an installation package of the target application, and recommends the target theme information to a user for use, where the target theme information may be a resource in an application installation package of the target application, such as an audio resource, a picture resource, a font resource, and the like. Therefore, the method and the device not only realize automatic generation of the favorite theme of the user, meet the individual requirements of the user, but also avoid the complicated process of configuring the system theme by the user, and improve the use experience of the user.
For example, the configuration method of the system theme provided in the embodiment of the present application may be applied to an electronic device, which may be an electronic device having a display screen, such as a mobile phone, a tablet computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, an in-vehicle device, a smart car, and a smart audio device, and the embodiment of the present application does not limit the electronic device.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
Wherein the controller may be a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. The modem processor may include a modulator and a demodulator. The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 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 alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV and other formats. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. The NPU is a neural-network (NN) computing processor, which processes input information quickly by referring to a biological neural network structure, for example, by referring to a transfer mode between neurons of a human brain, and can also learn by itself continuously. The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The software system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the invention takes an Android system with a layered architecture as an example to exemplarily explain the software structure of the electronic equipment.
Fig. 2 is a software structure diagram of an electronic device according to an embodiment of the present disclosure.
It will be appreciated that the hierarchical architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may include an application layer (referred to as an application layer for short) and an application framework layer (referred to as a framework layer for short).
The application layer may include a series of application packages. As shown in fig. 2, the application layer includes system applications. The system application refers to an application that is set in the electronic device before the electronic device is shipped from the factory. Exemplary system applications may include programs for settings, cameras, gallery, calendar, music, short messages, calls, theme generation module, system control module, and notification module.
The system control module is used for determining a target application from applications in the electronic device (the applications may be applications installed in the electronic device or applications that can be used without installation, and the like). Then, the system control module obtains the identification information of the target application and obtains the application name according to the identification information of the target application. The system control module is also used for searching in the theme application according to the application name of the target application to obtain a target theme pack matched with the application name of the target application. Illustratively, the system control module may be a system manager in the electronic device.
The theme generating module is used for acquiring the theme information of the target application according to the package name of the target application determined by the system control module and generating a target theme package according to the theme information of the target application. And the theme generation module uploads the target theme pack to a server of the theme application.
The notification module is used for generating a target theme pack of the target application by the theme generation module, or recommending the target theme pack of the target application to a user in a notification mode after the system control module searches the target theme pack matched with the application name of the target application in the theme application.
The application framework layer provides an Application Programming Interface (API) and a programming framework for an application of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
Content providers are used to store and retrieve data and make it accessible to applications.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The phone manager is used to provide communication functions of the electronic device 100. The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Therefore, after the system control module of the electronic equipment identifies the target application from the applications of the electronic equipment, the system control module acquires the identification information of the target application and acquires the application name according to the identification information of the target application. And the system control module sends the identification information of the target application to the theme generation module. And the theme generation module acquires the installation package of the target application according to the identification information of the target application and further generates target theme information according to the installation files in the installation package of the target application. And the theme generation module recommends the target theme information to the user for use. Therefore, the use experience of the electronic equipment is improved, and the individual requirements of different users are met.
The technical solutions involved in the following embodiments can be implemented in the electronic device 100 having the above-described hardware structure and software architecture. The electronic device 100 is taken as a mobile phone as an example, and the present solution is exemplarily described below.
In a possible scenario, when the display interface of the mobile phone resides in the same application for a long time (for example, the user plays a game for a long time), the theme generation module generates the target theme information according to the theme information of the application (for example, an installation file in an application program installation package of the application), and then the system configures the system theme by using the target theme information. For example, assuming that a user plays a certain game frequently, the theme generation module generates a theme package corresponding to the game application according to resources (e.g., audio resources, image resources, font resources, and the like) in an application installation package of the game application. And when the user exits the game application, the system theme of the electronic equipment is changed into the theme corresponding to the game application. I.e. the style and style of the theme interface of the electronic device is changed to the theme and style of the game.
In another possible scenario, the system control module may identify a target application from applications (e.g., applications installed in the mobile phone and/or applications not installed in the mobile phone) in the mobile phone in real time or periodically (e.g., three days, five days, seven days, etc.), and the theme generation module generates the target theme information according to resources (e.g., resources such as pictures, videos, audios, and fonts) in an installation package of the target application. The mobile phone system recommends the target theme information generated by the theme generation module to the user for use so as to meet the personalized requirements of the user.
In the embodiment of the application, the target theme information generated by the theme generation module can be used for configuring a system interface of a mobile phone and can also be used for configuring a handApplication interfaces for applications other than the target application in the machine, and the like, and are not limited herein. For example, assume that the target topic information is the topic generation module according to
Figure BDA0003301939180000081
The mobile phone can use the target theme information to configure the system interface of the mobile phone, and can also use the target theme information to configure the system interface of the mobile phone
Figure BDA0003301939180000082
And the like.
The target application may be a high-frequency application frequently used in the electronic device (for example, an application with the longest use time and/or the largest use number of users), a favorite application marked by a user in the electronic device, an application displayed in a preset area (for example, a main interface) of the electronic device, an application with the largest interaction with the user, or the like, and a method for determining the target application is not limited in this embodiment.
Illustratively, assume that the target application is a game-like application (e.g., such as
Figure BDA0003301939180000083
) After the theme generation module generates the target theme information according to the installation file in the installation package of the target application, the mobile phone system recommends the target theme information to the user for use, and the effect before and after the target theme information is used for configuring the system theme of the mobile phone is shown in fig. 3. As shown in fig. 3, the mobile phone displays a first system interface, wherein the first system interface is configured by using the first theme information. After the target theme information generated by the theme generation module is used for configuring the system theme of the mobile phone, the mobile phone displays a second system interface, and the second system interface is configured by adopting the target theme information, so that the wallpaper, the application icon, the font and the like of the second system interface are changed. Wallpaper switch for example for a game type wallpaper (wallpaper color changes, not shown in fig. 3), icons for applications (such as video, address book, phone, and information applications) occurAnd changing the font displayed on the mobile phone interface from the regular script to the Chinese running script, and the like.
The sources of the target subject information in the mobile phone include, but are not limited to, the following two ways: one provided by the provider of the third party application within the subject application installed in the handset; and the other is target subject information generated by the mobile phone system according to the resources in the application program installation package of the target application.
The following explains in detail the process of the system control module identifying a target application from the installed applications in the mobile phone and generating target theme information according to the resources in the application program installation package of the target application.
For example, after the mobile phone is powered on, the mobile phone displays a first system interface, and the system control module may determine a target application that meets a first preset condition from applications in the mobile phone. The first system interface is configured by adopting the first theme information. The first preset condition comprises that the use time of the target application is longest and/or the use times are the largest, or the use time of the target application is larger than a first threshold and/or the use times are larger than a second threshold, or the target application is a preset application. In some embodiments, assuming that the target application is a high frequency application, the system control module may determine the target application from the installed applications according to the usage duration and/or the usage number of the installed applications in the mobile phone.
As a possible implementation manner, the system control module may count the usage duration of the application in the mobile phone within a preset duration (for example, the last three days, the last five days, or the last week, etc.), and the system control module determines the application with the longest usage duration as the target application.
In some embodiments, after the system control module counts the usage time of the applications in the mobile phone within the preset time, the system control module determines that the applications with the longest usage time are greater than or equal to two applications. That is, the system control module determines that the usage time of more than two applications is the same and the usage time is longest. In this case, the system control module may count the number of times of use of the two or more applications, and determine the application with the largest number of times of use as the target application.
As another possible implementation manner, the system control module may count the number of times of use of the applications in the mobile phone within a preset time duration (for example, the last three days, the last five days, or the last week, and the like), and the system control module determines the application with the largest number of times of use as the target application.
In some embodiments, after the system control module counts the number of times of using the applications in the mobile phone within the preset time period, the system control module determines that the applications with the largest number of times of using are greater than or equal to two. Namely, the system control module determines that more than two applications are used the same time and the use times are the most. In this case, the system control module may count the usage periods of the two or more applications, and determine the application having the largest usage period as the target application.
It should be explained that, because the theme of the system application in the mobile phone cannot meet the personalized requirement of the user, in the embodiment of the present application, in order to obtain the personalized system theme, the system control module may determine the target application according to the usage duration and/or the usage frequency of the third-party application having the personalized theme in the mobile phone. For example, the third party application may be a game-like application (e.g.,
Figure BDA0003301939180000091
etc.), i.e., the target application may be a game-like application. Of course, the target application may be other types of applications, such as an educational application, a video application, and the like, and is not limited herein.
In the embodiment of the application, after the system control module determines the target application from the applications in the mobile phone, the system control module obtains the identification information of the target application. The identification information of the target application can uniquely identify the application, for example, the identification information of the target application may be a package name of the target application. For example, the system control module may obtain the package name of the application in the mobile phone by calling a command "pm list package". Then, the system control module may search for the package name of the target application from the obtained package names of the applications through a keyword (e.g., a cookstone story, etc.) of the target application.
In this embodiment, after the system control module obtains the package name of the target application, the package name of the target application may be sent to the theme generation module. After the theme generation module obtains the package name of the target application, the theme generation module may obtain an installation package (APK) file of the target application according to the package name of the target application. The applications in the mobile phone are generally installed in an installation directory fixed in the mobile phone. For example, the installation directory may be/data/app. Therefore, the theme generation module can acquire the APK file of the target application from the installation directory of the application in the mobile phone according to the package name of the target application. Furthermore, the theme generation module may generate the target theme information according to the APK file of the target application.
As a possible implementation manner, the theme generation module may parse APK files of all applications in the installation directory of the mobile phone to obtain identification information (for example, package names of the applications) of all applications. The theme generation module can obtain the APK file corresponding to the package name which is the same as the package name of the target application by inquiring the package names of all the applications according to the package name of the target application.
As another possible implementation manner, the theme generation module may further scan files in the installation directory of the application to obtain APK files of all applications. For example, the theme generation module may scan all files in the installation directory by using a file scanning method to obtain all APK files. For example, the theme generation module may use a scanDirLI file scanning method to traverse the installation package file with APK as suffix under the installation directory, so as to obtain all APK files in the installation directory. Then, the theme generation module screens all the APK files according to the keywords (such as package names) of the target application to obtain at least one screened APK file. And the theme generation module analyzes the screened at least one APK file to obtain the package name of the screened at least one APK file. And the theme generation module matches the package name of the screened at least one APK file with the package name of the target application to obtain the APK file matched with the package name of the target application, namely the APK file of the target application.
Then, the theme generation module copies the application installation package file (for example, base. APK file) in the APK file of the target application to any work directory. The working directory may be a newly created working directory for the user, or an existing working directory in the mobile phone, and is not limited herein. For example, the user creates a work directory D: apk file of target application can be copied to D: system/temp/apk catalog. Apk file is a compressed file.
Because the application program installation package file of the target application is a compressed file, the theme generation module can decompress the application program installation package file under the working directory to obtain all decompressed files. For example, the theme generation module may decompress the base.apk file using a related method of the ZipFile class. The ZipEtry enumerates files obtained by decompressing the base.apk files to obtain all decompressed files.
It should be explained that the file obtained by decompressing the base.apk file by the theme generation module may be placed in the same work directory as the base.apk file, or may be placed in a different work directory from the base.apk file, which is not limited herein. That is, the mobile phone may create a new work directory in response to the user operation, where the new work directory is used to store a file obtained by decompressing the base.
And the theme generation module decompresses the APK file of the target application to obtain all decompressed files, and screens out at least one target installation file meeting a second preset condition from all the decompressed files to form a target resource library. The second preset condition includes that the suffix name of the target installation file obtained by decompression is the same as the suffix name of the expected file. Types of expected files include, but are not limited to, audio files, picture files, font files, and the like. The suffix name of the audio file is mp3, the suffix name of the picture file is png, and the suffix name of the font file is ttf. I.e., suffix names of the desired file include, but are not limited to, mp3, png, and ttf, etc. The suffix name of a file, also known as a file extension, is a mechanism used by the operating system to flag the file type. Typically, an extension follows the main file name, separated by a separator. For example, assume that the file name is "read me. Txt", where "read me" is the main file name and "txt" is the extension.
In the embodiment of the application, the theme generation module screens each target installation file obtained by decompression according to the suffix name of the expected file, and stores the file meeting the second preset condition in the target resource library. For example, the theme generation module may screen out target installation files with the suffix names mp3, png, and ttf from all the files obtained through decompression, and store the files with the suffix names mp3, png, and ttf in the target repository. And the files meeting the second preset condition and stored in the target resource library are related resources for generating the target theme information. The theme generating module can screen out target theme information meeting a third preset condition from the target resource library, and pack all target theme information meeting the third preset condition to obtain a target theme pack. The target theme information refers to a file for configuring a system theme. The target theme information includes, but is not limited to, audio files, picture files, font files, and the like.
It should be explained that the resources in the target theme pack may include picture resources (e.g., wallpaper, lock screen picture and icon, etc.), audio resources (e.g., incoming ring tone of mobile phone, etc.), font resources (e.g., system font), and so on. For example, the picture resources in the target theme pack include wallpaper, lock screen, icon file, preview picture, and the like. The wallpaper can be any picture in the target application. The lock screen may also be any picture in the target application. That is, the theme generation module may select any picture file from the target repository as wallpaper and/or lock screen. For example, the theme generation module may obtain a screenshot of a home page or other page of the target application from the target repository as wallpaper and/or lock screen. In the embodiment of the application, the lock screen and the wallpaper in the theme pack may be the same picture or different pictures, which is not limited herein.
The icon file may include at least two pictures, one background picture and one foreground picture. The name of each icon file may be unique identification information of the respective system application (e.g., package name of the system application). Because the foreground and the background cannot be optimally combined by the picture acquired from the third-party application, the background picture can be a transparent picture, and the foreground picture can be any picture acquired from a resource library. The background picture may be a transparent picture with any shape or size, and the background picture of each icon file may be the same background picture or different background pictures, which is not limited herein. Illustratively, as shown in fig. 3, for example, the background picture of the icon of the file management application and the icon of the email application displayed in the right-hand cell phone in fig. 3 are the same. Also for example, the background picture of the icon of the weather application in fig. 3 is a transparent picture. The background pictures of the pictures such as information, camera, browser and video in fig. 3 are different.
The theme generation module may select a picture from the target repository as a foreground picture for each system application. In the embodiment of the application, a selection strategy for selecting the pictures from the resource library by the theme generation module is not limited, and the theme generation module can randomly select some pictures from the target resource library as foreground pictures applied by the system. Due to the fact that the screen of the mobile phone is limited, the background picture and the foreground picture in the picture file can be set to be proper in resolution, and when the theme of the target application is applied to the mobile phone, the icon applied to the system is clearly displayed on the desktop of the mobile phone. For example, the resolution of the background picture and the foreground picture may be 258 × 258 or 300 × 400, etc.
In some embodiments, after the theme generation module randomly selects the foreground picture of the system application from the target resource library, the theme generation module may further change or replace the foreground picture of the system application in response to the operation of the user. In addition, the theme generation module can randomly select a plurality of pictures from the resource library, and the theme generation module responds to the operation of a user to select a foreground picture applied by the system from the plurality of pictures.
It should be explained that, because the foreground picture of the third-party application is fixed and cannot be changed, in the embodiment of the present application, the theme generation module changes the background picture of the third-party application, so that the display range of the foreground picture of the third-party application is changed. Illustratively, as shown in FIG. 3, shown in the cell phone screen of FIG. 3
Figure BDA0003301939180000111
The foreground picture is not changed, and the background picture of the third party application is changed to enable the foreground picture displayed in the mobile phone screen
Figure BDA0003301939180000112
The icon display range is changed.
Because the preview image is an effect image of the target theme pack after being applied to the mobile phone, when the target theme pack generated by the theme generation module is applied to the mobile phone, the system can automatically capture the picture of the first screen as the preview image. For example, after the target theme pack is applied to the mobile phone, the system may capture a picture of the main interface of the mobile phone as a preview.
In the embodiment of the application, after the theme generation module acquires all the audio files from the resource library, the theme generation module acquires the durations of all the audio files. For example, the theme generation module may obtain the durations of all audio files by a mediastore. Then, the theme generation module selects the audio files with the same or similar duration as the system ring from all the audio files according to the duration of each audio file, and stores the audio files in a ring standby library as ring standby. When the target theme pack is applied to a mobile phone, the user may select any audio file from the ring library as the mobile phone ring, or the system randomly selects a certain audio file from the ring library as the mobile phone ring, which is not limited herein.
The fonts applied to the mobile phone have a fixed font storage directory in the APK file, for example, the applied fonts can be placed in the fonts directory under the assets or res of the APK file and stored in ttf format. The theme generation module can acquire the font file corresponding to the target application from the font storage directory in the APK file of the target application, and store the font file corresponding to the target application in the resource library. For example, the topic generation module can generate a topic from D: and searching a font file corresponding to the target application under the/system/temp/apk/assets directory.
For example, as shown in fig. 3, assuming that the font of the target application is the running-in-Chinese-script, after the theme generation module generates the target theme pack according to the theme information of the target application, and after the mobile phone system configures the system theme using the target theme pack, the font displayed on the display interface of the mobile phone is switched from the running-in-Chinese-script to the running-in-Chinese-script.
And if the font file corresponding to the target application is not found from the font storage directory in the APK file of the target application, the theme generation module indicates that the font of the target application follows the system and does not have the font file of the target application. In this case, the theme generation module may obtain the font file of the system to set the font in the target theme pack according to the font of the system.
In the embodiment of the application, after acquiring resources (such as a preview, a wallpaper, a lock screen, an icon file, an audio file, a font file, and the like) for generating a target theme pack from a target resource library, a theme generation module packages the resources in one file and compresses the materials into the target theme pack.
In some embodiments, after the theme generation module generates the target theme pack, the mobile phone system may automatically configure the system theme of the mobile phone by using the target theme pack at a preset time. The preset time comprises the time of generating the target theme information, the time of displaying the desktop of the mobile phone, the time of starting the mobile phone after restarting the mobile phone or the time of displaying the desktop again after locking the screen of the mobile phone. Therefore, the problem that the operation steps are complicated when the user switches the system theme is avoided, and the use experience of the user is improved.
In other embodiments, after the topic generation module generates the target topic package, the topic generation module may send the target topic package to a server of the topic application. The user can search the target theme pack from the theme application according to the pack name of the target application so as to configure the system theme of the mobile phone by adopting the target theme pack. Therefore, the user can configure the system theme by adopting the target theme pack at any time, and the use experience of the user is improved.
In still other embodiments, after the theme generation module generates the target theme pack, the mobile phone may recommend the target theme pack to the user for use by displaying the prompt message. Therefore, the problem that the operation steps are complicated when the user switches the system theme is avoided, and the use experience of the user is improved.
As a possible implementation manner, after the theme generation module generates the target theme pack, the mobile phone may display a prompt message on the notification management interface to recommend the target theme pack to be used to the user.
For example, as shown in fig. 4, after the theme generation module generates the target theme pack, the mobile phone may display a prompt message "whether the target theme pack is generated and applied" on the notification management interface. And if the mobile phone detects that the user clicks the determined control operation, the mobile phone system adopts the target theme pack to configure the system theme of the mobile phone.
As another possible implementation manner, after the theme generation module generates the theme pack of the target application, the mobile phone may further display the prompt information in a system popup manner, so as to recommend the target theme pack to the user.
For example, as shown in fig. 5, after the theme generation module generates the theme pack of the target application, the mobile phone may display a prompt message "whether the target theme pack is generated and applied" through a system pop-up window. And if the mobile phone detects that the user clicks the determined control operation, the mobile phone system adopts the target theme pack to configure the system theme of the mobile phone.
It should be noted that the system popup in fig. 5 may be displayed on any display interface of the mobile phone, and the manner of displaying the system popup in fig. 5 is merely an example and is not limited herein. In the above examples, the specific shape, form, size, and the like of the system pop-up window display are not limited. The manner of displaying the prompt information in fig. 4 and 5 is merely an example, and the prompt information may be displayed at any position such as an upper side, a lower side, a left side, and a right side of the display interface of the mobile phone, which is not limited herein. In addition, the prompting mode of displaying the prompting information in the display interface of the mobile phone is only used as an exemplary description, and the mobile phone can also prompt the user that the target theme pack is generated by adopting a prompting sound and other modes. In response to the operation of the user, the mobile phone may search for the target theme pack in the theme application according to the operation of the user, which is not limited herein.
It can be understood that if a user likes a certain application in a mobile phone, the user is usually interested in the related materials of the application, such as the theme, style, font, and music. Therefore, in the embodiment of the present application, after the system control module determines the target application from the applications in the current mobile phone, the theme generation module generates the corresponding target theme package according to the resource in the application program installation package of the target application. The mobile phone system recommends the target theme pack generated by the theme generation module to the user for use, thereby meeting the personalized requirements of the user. For example, when the system control module determines the target application as the application in the mobile phone according to the use condition of the application in the mobile phone
Figure BDA0003301939180000121
Figure BDA0003301939180000122
The theme generation module generates a theme based on
Figure BDA0003301939180000123
The relevant material of this application generates a corresponding target theme pack. The mobile phone system can recommend the user to adopt the method
Figure BDA0003301939180000124
The target theme pack generated by the resource in the theme installation pack configures the system theme.
In the embodiment of the present application, the number of the target theme packages generated by the theme generation module according to the resources in the application program installation package of the target application is not limited to one, and the theme generation module may generate a plurality of target theme packages according to the resources in the application program installation package of the target application and upload the target theme packages to the theme application. Therefore, after the user searches the theme application to obtain a plurality of target theme packages according to the package name of the target application, the mobile phone responds to the operation of the user to determine one theme package from the target theme packages as the system theme of the mobile phone.
In summary, in the embodiment of the present application, after the system control module determines the target application from the applications in the mobile phone, the theme generation module generates the corresponding target theme information according to the installation file in the installation package of the target application, and the mobile phone displays the system interface configured by using the target theme information. Therefore, the purpose of automatically generating the theme liked by the user is achieved, the personalized requirements of the user are met, the complex process of configuring the system theme by the user is avoided, and the use experience of the user is improved.
In the embodiment of the application, the electronic device displays a first application interface of a first application, and the system control module determines a target application meeting a first preset condition, wherein the first application interface is configured by using second theme information, and the target application is an application different from the first application. And the theme generating module generates target theme information according to the theme information of the target application. The electronic device displays a second application interface of the first application. And the second application interface is configured by adopting the target theme information. Here, the specific implementation process of the theme generation module generating the target theme information according to the theme information of the target application may refer to the implementation process of the above embodiment, and details are not described here.
For example, as shown in fig. 6, assuming that the electronic device is a mobile phone and the first application is a clock, the mobile phone in fig. 6 displays a first application interface of an alarm clock, and the system control module determines that the target application meeting the first preset condition is the first application
Figure BDA0003301939180000131
Then, the theme generation module generates a theme according to
Figure BDA0003301939180000132
The target subject information is generated from the subject information of (1). Displaying a second application interface of the clock by the mobile phone, wherein the second application interface is a clock acquisition interfaceConfigured with target subject information. As can be seen from fig. 6, the wallpaper and font of the application interface of the clock have changed.
In the embodiment of the application, the mobile phone does not limit the time for configuring the application interface of the clock by adopting the target theme information. For example, a cell phone may be generating
Figure BDA0003301939180000133
And after corresponding target subject information, configuring an application interface of the clock by adopting the target subject information. The mobile phone can also adopt the target theme information to configure the application interface of the clock when the clock application is restarted next time. The mobile phone can also be generated
Figure BDA0003301939180000134
And displaying prompt information after corresponding target theme information, responding to an operation instruction of a user, and configuring an application interface of the clock by adopting the target theme information.
Fig. 7 is a schematic flowchart of a configuration method of a system theme according to an embodiment of the present application. Referring to fig. 7, the configuration method of the system theme is described below, and as shown in fig. 7, the configuration method of the system theme, applied to an electronic device, may include the following steps:
step 701, the electronic device displays a first system interface and determines a target application meeting a first preset condition.
The first system interface is configured by adopting the first theme information.
In this embodiment of the present application, the first preset condition includes that the usage duration of the target application is longest and/or the number of times of usage is largest, or the usage duration of the target application is greater than a first threshold and/or the number of times of usage is greater than a second threshold, or the target application is a preset application. Here, the implementation process of determining the target application by the electronic device may refer to the specific process in the foregoing embodiment, and details are not described here.
Step 702, obtaining an installation package of the target application corresponding to the identification information according to the identification information of the target application.
In some embodiments, the identification information of the target application may be a package name of the target application.
As can be seen in fig. 7, step 702 may include sub-step 7021: and acquiring an installation package of the target application corresponding to the identification information from the installation catalog according to the identification information of the target application.
In some embodiments, when the electronic device obtains the installation package of the target application corresponding to the identification information from the installation directory, the electronic device may first analyze the installation packages of all applications in the installation target to obtain the identification information of all applications, then query, by the electronic device, the identification information of all applications to obtain the target identification information that is the same as the identification information of the target application, and then determine, by the electronic device, the installation package corresponding to the target identification information as the installation package of the target application.
In other embodiments, when the electronic device obtains the installation package of the target application corresponding to the identification information from the installation directory, the electronic device may further scan files in the installation directory to obtain installation packages of all applications, and then, the electronic device obtains at least one installation package by screening from the installation packages of all applications according to the package name of the target application. Further, the electronic device analyzes the at least one installation package to obtain a package name corresponding to the at least one installation package, and then matches the package name corresponding to the at least one installation package with the package name of the target application to obtain the installation package of the target application matched with the package name of the target application.
And 703, generating target theme information according to the installation files in the installation package of the target application.
Wherein the target subject information may include at least one of audio information, picture information, or font information.
As can be seen in fig. 7, step 703 may include sub-step 7031: and screening at least one target installation file meeting a second preset condition from the installation files to generate a target resource library.
Wherein the second preset condition comprises that the suffix name of the target installation file is the same as the suffix name of the expected file; the desired file includes at least one of an audio file, a picture file, or a font file.
Sub-step 7032: and screening out at least one target theme file from the target resource library.
The target theme file comprises at least one of an audio file, an icon file, a picture file and a font file, wherein the difference value between the duration of the audio file and the duration of the system ringtone is smaller than a difference threshold value, the icon file comprises a foreground picture and a background picture, and the picture file comprises a preview picture and/or wallpaper.
Sub-step 7033: and generating target subject information according to the at least one target subject file.
In some embodiments, after the electronic device generates the target theme information according to the at least one target theme file, the electronic device may directly configure the system theme using the target theme information.
In other embodiments, after the electronic device generates the target theme information according to the at least one target theme file, the electronic device may package the target theme information to obtain the target theme pack. Further, the electronic device can configure the system theme with the target theme pack.
Step 704, the electronic device displays a second system interface.
And the second system interface is configured by adopting the target theme information.
In the embodiment of the application, after the electronic device generates the target theme information according to the installation file in the installation package of the target application, the electronic device may configure the system theme of the electronic device by using the target theme information.
As can be seen in fig. 7, step 704 may include sub-step 7041: and the electronic equipment displays the prompt message.
The prompt message is used for reminding a user whether to switch the first system interface to a second system interface configured by adopting the target subject information.
Sub-step 7042: the electronic device responds to the control instruction of the user and displays the second system interface.
As a possible implementation manner, after the electronic device generates the target theme information, the electronic device may display a prompt message on the notification management interface to prompt the first system interface to switch to the second system interface configured by using the target theme information. And if the user determines that the electronic equipment adopts the second system interface configured by the target theme, the electronic equipment responds to the control instruction of the user and displays the second system interface.
As another possible implementation manner, after the electronic device generates the target theme information, prompt information may be displayed in a system popup manner to prompt a user whether to switch the first system interface to a second system interface configured with the target theme information. And if the user determines that the electronic equipment adopts the second system interface configured by the target theme, the electronic equipment responds to the control instruction of the user and displays the second system interface.
It should be noted that the manner of displaying the prompt information by the electronic device is only described as an example, and certainly, other manners may also be used to display the prompt information, which is not limited in the embodiment of the present application.
As can be seen in fig. 7, step 704 may include sub-step 7043: and the electronic equipment automatically displays the second system interface at a preset moment.
The preset time comprises the time of generating the target theme information, the time of displaying the desktop by the electronic equipment, the time of starting the electronic equipment after restarting or the time of displaying the desktop again after locking the screen of the electronic equipment.
In some embodiments, after the electronic device generates the target subject information, the electronic device may further automatically display the second system interface at a preset time.
It can be understood that, after the target subject information is generated, the electronic device configures the system interface by using the target subject information, that is, the electronic device automatically displays the second system interface after the target subject information is generated.
When the electronic device generates the target theme information, the electronic device is running other applications, and in this case, the electronic device may automatically display the second system interface at the moment that the running application exits and displays the desktop.
After the electronic device generates the target theme information, the electronic device may automatically display the second system interface at a time when the user controls the electronic device to power off and restart the electronic device.
After the electronic device generates the target theme information, the electronic device may further display the second system interface at a moment when the desktop is redisplayed after the screen is locked.
It should be explained that the first system interface and the second system interface may be the same system interface of the electronic device, or may be different system interfaces of the electronic device, and are not limited herein. For example, the first system interface and the second system interface may both be a first page of a desktop of the electronic device, or the first system interface is a first page of a desktop of the electronic device, the second system interface is a second page of the desktop of the electronic device, and so on.
In summary, in the embodiment of the present application, after the electronic device determines a target application that meets a first preset condition, and generates corresponding target theme information according to an installation file in an installation package of the target application, the electronic device displays a system interface configured by using the target theme information. Therefore, the method and the device not only realize the aim of automatically generating the system theme liked by the user, meet the individual requirements of the user, but also avoid the complicated process of configuring the system theme by the user, and improve the use experience of the user.
As shown in fig. 8, an embodiment of the present application discloses an electronic device, which may be the foregoing mobile phone. The electronic device may specifically include: a touch screen 801, the touch screen 801 including a touch sensor 806 and a display 807; one or more processors 802; a memory 803; one or more application programs (not shown); and one or more computer programs 804, which may be connected by one or more communication buses 805. Wherein the one or more computer programs 804 are stored in the memory 803 and configured to be executed by the one or more processors 802, the one or more computer programs 804 include instructions that can be used to perform the relevant steps in the embodiments described above.
It is to be understood that the electronic devices and the like described above include hardware structures and/or software modules for performing the respective functions in order to realize the functions described above. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
In the embodiment of the present application, the electronic device and the like may be divided into functional modules according to the method example, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only one logic function division, and another division manner may be available in actual implementation.
In a case of adopting a manner that each function module is divided corresponding to each function, the electronic device according to one possible composition diagram of the above embodiment may include: display unit, transmission unit and processing unit etc. It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Embodiments of the present application also provide an electronic device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors for storing computer program code comprising computer instructions which, when executed by the one or more processors, cause the electronic device to perform the associated method steps described above to implement the method of configuring the system subject matter in the embodiments described above.
Embodiments of the present application further provide a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are executed on an electronic device, the electronic device is caused to execute the above related method steps to implement the configuration method of the system subject matter in the above embodiments.
Embodiments of the present application further provide a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the configuration method of the system subject executed by the electronic device in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the device executes the configuration method of the system theme executed by the electronic equipment in the above-mentioned method embodiments.
In addition, the electronic device, the computer-readable storage medium, the computer program product, or the apparatus provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer-readable storage medium, the computer program product, or the apparatus can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for configuring a system theme, applied to an electronic device, the method comprising:
the electronic equipment displays a first system interface and determines a target application meeting a first preset condition; the first system interface is configured by adopting first theme information; the first preset condition comprises that the use duration of the target application is longest and/or the use times are the largest, or the use duration of the target application is larger than a first threshold and/or the use times are larger than a second threshold;
acquiring an installation package of the target application corresponding to the identification information according to the identification information of the target application;
generating target subject information according to the installation files in the installation package of the target application;
the electronic equipment displays a second system interface; the second system interface is configured by adopting the target subject information.
2. The method of claim 1, wherein the electronic device displays a second system interface comprising:
the electronic equipment displays prompt information; the prompt message is used for reminding a user whether to switch the first system interface to the second system interface configured by the target subject information;
and the electronic equipment responds to a control instruction of a user and displays the second system interface.
3. The method of claim 1, wherein the electronic device displays a second system interface, further comprising:
the electronic equipment automatically displays the second system interface at a preset moment; the preset time comprises the time of generating the target theme information, the time of displaying the desktop of the electronic equipment, the time of starting up the electronic equipment after restarting or the time of displaying the desktop of the electronic equipment after locking the screen.
4. The method according to any one of claims 1-3, further comprising:
the electronic equipment displays a first application interface of a first application, and determines a target application meeting a first preset condition; the first application interface is configured by adopting second theme information; the target application is an application different from the first application;
acquiring an installation package of the target application corresponding to the identification information according to the identification information of the target application;
generating target subject information according to the installation files in the installation package of the target application;
the electronic equipment displays a second application interface of the first application; the second application interface is configured by adopting the target theme information.
5. The method according to any one of claims 1 to 3, wherein the target subject information includes at least one of audio information, picture information or font information, and the generating the target subject information according to the installation file in the installation package of the target application includes:
screening at least one target installation file meeting a second preset condition from the installation files to generate a target resource library; the second preset condition comprises that the suffix name of the target installation file is the same as the suffix name of the expected file; the desired file comprises at least one of an audio file, a picture file, or a font file;
screening out at least one target theme file from the target resource library; the target theme file comprises at least one of an audio file, an icon file containing a foreground picture and a background picture, a picture file containing a preview and/or wallpaper and a font file, wherein the difference value between the duration of the audio file and the duration of the system ring tone is smaller than a difference threshold value;
and generating the target subject information according to the at least one target subject file.
6. The method according to any one of claims 1 to 3, wherein the obtaining, according to the identification information of the target application, the installation package of the target application corresponding to the identification information includes:
and acquiring an installation package of the target application corresponding to the identification information from an installation directory according to the identification information of the target application.
7. The method according to claim 6, wherein the obtaining the installation package of the target application corresponding to the identification information from an installation directory comprises:
analyzing the installation packages of all applications in the installation catalog to obtain identification information of all applications;
target identification information which is the same as the identification information of the target application is obtained by inquiring the identification information of all the applications;
and determining the installation package corresponding to the target identification information as the installation package of the target application.
8. The method according to claim 6, wherein the identification information is a package name, and the obtaining the installation package of the target application corresponding to the identification information from the installation directory comprises:
scanning the files in the installation directory to obtain installation packages of all applications;
screening the installation packages of all the applications to obtain at least one installation package according to the package name of the target application;
analyzing the at least one installation package to obtain a package name corresponding to the at least one installation package;
and matching the package name corresponding to the at least one installation package with the package name of the target application to obtain the installation package of the target application matched with the package name of the target application.
9. An electronic device, comprising:
one or more processors;
a memory;
wherein the memory has stored therein one or more computer programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of configuring a system subject matter of any one of claims 1-8.
10. A computer-readable storage medium having instructions stored therein, which when executed on an electronic device, cause the electronic device to perform the method of configuring a system subject of any one of claims 1-8.
CN202111192936.5A 2021-10-13 2021-10-13 System theme configuration method and electronic equipment Active CN114064055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111192936.5A CN114064055B (en) 2021-10-13 2021-10-13 System theme configuration method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111192936.5A CN114064055B (en) 2021-10-13 2021-10-13 System theme configuration method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114064055A CN114064055A (en) 2022-02-18
CN114064055B true CN114064055B (en) 2022-12-06

Family

ID=80234377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111192936.5A Active CN114064055B (en) 2021-10-13 2021-10-13 System theme configuration method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114064055B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314332A (en) * 2022-07-11 2022-11-08 青岛海尔科技有限公司 Method and device for setting equipment theme, storage medium and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495733A (en) * 2020-03-20 2021-10-12 华为技术有限公司 Theme pack installation method and device, electronic equipment and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055328B (en) * 2016-05-27 2019-04-02 努比亚技术有限公司 For the subject replacement device and method of third-party application
CN110737493A (en) * 2019-09-02 2020-01-31 华为技术有限公司 theme switching method and device
CN112379962A (en) * 2020-11-25 2021-02-19 Oppo(重庆)智能科技有限公司 Desktop theme adjusting method, mobile terminal, server and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495733A (en) * 2020-03-20 2021-10-12 华为技术有限公司 Theme pack installation method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114064055A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
WO2020238774A1 (en) Notification message preview method and electronic device
WO2021023220A1 (en) Content continuation method and system, and electronic device
WO2022078295A1 (en) Device recommendation method and electronic device
WO2022089207A1 (en) Cross-device application interaction method, electronic device, and server
CN114356258A (en) Electronic device, screen projection method thereof and medium
CN112817634B (en) COTA package downloading method and device
CN114461239B (en) Software upgrading system and software upgrading method
CN111835904A (en) Method for starting application based on context awareness and user portrait and electronic equipment
CN112860445B (en) Method and terminal for sharing data between fast application and native application
CN114157756A (en) Task processing method and related electronic equipment
CN114064055B (en) System theme configuration method and electronic equipment
CN113170279A (en) Communication method based on low-power-consumption Bluetooth and related device
CN115291919B (en) Packet searching method and related device
CN115309431B (en) Parameter updating method, readable medium and electronic equipment
WO2023005711A1 (en) Service recommendation method and electronic device
WO2022052706A1 (en) Service sharing method, system and electronic device
CN116795435A (en) Compatibility management and control method and related equipment
CN113760191A (en) Data reading method, data reading apparatus, storage medium, and program product
CN115268737A (en) Information processing method and device
CN117009023B (en) Method for displaying notification information and related device
WO2022267786A1 (en) Shortcut icon display method and terminal device
CN117492879A (en) Application program management method and electronic equipment
CN117729561A (en) System upgrading method, terminal and storage medium
CN117851617A (en) Display method, electronic device, storage medium, and program product
CN116668997A (en) Positioning method, user interface and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant