A method for loading application resources, intelligent terminal and storage medium
By obtaining the target attribute value on the smart terminal and setting the system attributes, and directly loading the corresponding application resources, the problem of low efficiency in adjusting the default application resources in the existing technology is solved, and the degree of personalization and user experience are improved.
Patent Information
- Application Number
- CN202210178932.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-02-25
AI Technical Summary
Existing smart terminals are inefficient when adjusting default application resources, and require secondary development or update of system software, resulting in poor user experience and low development and maintenance efficiency of manufacturers.
Provides a method for loading application resources. By obtaining the target attribute value and setting system attributes, the corresponding application resources are directly loaded, avoiding secondary development or update of system software.
It improves the efficiency of adjusting smart terminal application resources, enhances the degree of personalization of smart terminals, thereby improving user experience, and reducing the development and maintenance costs of manufacturers.
Smart Images

Figure CN114510295B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent terminals, and in particular to a method for loading application resources, an intelligent terminal and a storage medium. Background Art
[0002] With the development of smart terminals, smart terminals such as mobile phones and tablets have become an indispensable part of people's lives. In recent years, the market for smart terminals has gradually expanded, sales have gradually increased, and customers in different regions have different demands for smart terminals. Smart terminal manufacturers can sell smart terminals with different default application resources to customers in different regions or different groups to meet the corresponding needs.
[0003] In the process of conceiving and implementing this application, the inventors found that there are at least the following problems: In some solutions, different versions of system software are usually burned on smart terminals to meet different customer needs. If the default application resources need to be adjusted, the original software needs to be redeveloped or set, and the adjustment can only be completed after the system software is updated on the smart terminal. However, the efficiency of adjustment in this way is low.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention
[0005] In response to the above technical problems, the present application provides an application resource loading method, a smart terminal and a storage medium, which can improve the efficiency of adjusting the application resources of the smart terminal, and can also improve the personalization of the smart terminal, thereby improving the user experience.
[0006] In order to solve the above technical problems, in a first aspect, the present application provides a method for loading application resources, which can be applied to a smart terminal, including:
[0007] Get the target attribute value, and set the system attribute according to the target attribute value;
[0008] The first application resource is loaded according to the set system property.
[0009] Optionally, the receiving of a target property value for setting a system property includes at least one of the following:
[0010] Receiving input of preset characters, the preset characters are used to set the target attribute value;
[0011] Receiving an input preset operation, the preset operation is used to set the target attribute value;
[0012] When it is determined that the logged-in account is a preset account, a setting instruction is received, and the setting instruction carries the target attribute value.
[0013] Optionally, the above-mentioned obtaining of the target attribute value includes:
[0014] receiving the target system property value for setting the system property;
[0015] storing the target attribute value; and / or,
[0016] Before receiving the target property value for setting the system property, the method further includes:
[0017] Receive an activation action; or,
[0018] Receive a factory reset operation.
[0019] Optionally, the above-mentioned obtaining of the target attribute value includes:
[0020] In response to the activation operation or the factory reset operation, outputting prompt information for prompting the user to input verification information;
[0021] Receive input target verification information;
[0022] The target attribute value of the system attribute is obtained according to the target verification information.
[0023] Optionally, the acquiring the target attribute value of the system attribute according to the target verification information includes at least one of the following:
[0024] When the target verification information matches the verification information of the preset account, a first setting interface including all system properties is output, and the target property values of all system properties are obtained in the first setting interface;
[0025] When the target verification information does not match the verification information of the preset account, outputting a second setting interface including the first part of system properties, and receiving the target property value of the first part of system properties in the second setting interface;
[0026] When the target verification information is not received within a preset time period, a third setting interface including the second part of system properties is output, and the target property value of the second part of system properties is received in the third setting interface.
[0027] Optionally, the system property includes a default property value, and the storing of the target property value includes:
[0028] In the case where the default attribute value is in a modifiable state, replacing the default attribute value with the target attribute value, and setting the target attribute value to be in a modifiable state; and / or,
[0029] When the default attribute value is empty, the target attribute value is used as the default attribute value and is stored in an unmodifiable state.
[0030] Optionally, after the first application resource indicated by the set system property is loaded, the method further includes:
[0031] receiving a reference property value for setting the above system property;
[0032] In the case where the target attribute value is in a modifiable state, replacing the target attribute value with the reference attribute value, and setting the reference attribute value to a modifiable state; and / or,
[0033] The system property is set according to the reference property value, and the second application resource is loaded according to the set system property.
[0034] Optionally, before storing the target attribute value, the method further includes:
[0035] When it is determined that the default attribute value is not empty and the default attribute value is in an unmodifiable state, the operation of storing the target attribute value is not performed.
[0036] Optionally, the loading of the first application resource according to the set system property includes:
[0037] Determining identification information of the first application resource according to a correspondence between the system attribute and the preset application resource;
[0038] The first application resource is loaded according to the identification information.
[0039] In a second aspect, the present application further provides a device for loading application resources, the device comprising:
[0040] An acquisition unit, used to acquire the target attribute value and set the system attribute according to the target attribute value;
[0041] The loading unit is used to load the first application resource according to the set system property.
[0042] In addition, in this aspect, other optional implementations of the device for loading application resources can refer to the relevant content of the first aspect mentioned above, and will not be described in detail here.
[0043] In a third aspect, the present application further provides an intelligent terminal, comprising: a memory and a processor, wherein the memory stores a loading program for application resources, and the loading program for application resources implements the steps of the above method when executed by the processor.
[0044] In a fourth aspect, the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0045] As described above, the method for loading application resources of the present application is applied to a smart terminal, and includes the following steps: the smart terminal can obtain a target attribute value, and set the system attribute according to the target attribute value. After the setting is completed, the smart terminal can load the first application resource according to the set system attribute. Through the above technical solution, the user can set the system attribute without the need for secondary development or maintenance of the original software, thereby realizing the function of personalized default application resources and solving the problem of low efficiency in adjusting the smart terminal. In addition, through user settings, the personalization level of the smart terminal can be improved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0047] Figure 1 A schematic diagram of the hardware structure of a smart terminal for implementing each embodiment of the present application;
[0048] Figure 2 A communication network system architecture diagram provided for an embodiment of the present application;
[0049] Figure 3 is a flowchart of a method for loading application resources according to the first embodiment;
[0050] Figure 4a is a diagram of a setting interface for receiving a setting of system properties according to the first embodiment;
[0051] Figure 4b is a schematic structural diagram of an intelligent terminal according to the first embodiment;
[0052] Figure 5 is a flowchart of a method for loading application resources according to the second embodiment;
[0053] Figure 6 is a timing diagram of a method for loading application resources according to the second embodiment;
[0054] Figure 7is a flowchart of a method for loading application resources according to a third embodiment;
[0055] Figure 8a is a timing diagram of a method for loading application resources according to a third embodiment;
[0056] Figure 8b is another timing diagram of the method for loading application resources according to the third embodiment;
[0057] Figure 8c is another timing diagram of the method for loading application resources according to the third embodiment;
[0058] Fig. 9 It is a structural diagram of an application resource loading device provided according to an embodiment of the present application.
[0059] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The above-mentioned drawings have shown clear embodiments of this application, which will be described in more detail later. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0061] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. Optionally, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context in the specific embodiment.
[0062] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. Optionally, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of..." or "when..." or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate the presence of the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" etc. used in this application can be interpreted as inclusive, or mean any one or any combination. Alternatively, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”, for example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0063] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0064] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0065] It should be noted that, in this article, step codes such as 301 and 302 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute 302 first and then 301, etc., but these should all be within the scope of protection of this application.
[0066] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0068] The smart terminal may be implemented in various forms. Optionally, the smart terminal described in this application may include smart terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs and desktop computers.
[0069] The subsequent description will be illustrated by taking a smart terminal as an example, and those skilled in the art will understand that, in addition to components specifically used for mobile purposes, the construction according to the embodiments of the present application can also be applied to fixed-type terminals.
[0070] See also Figure 1 , which is a schematic diagram of the hardware structure of a smart terminal for implementing various embodiments of the present application, the smart terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the smart terminal shown in the figure does not constitute a limitation on the smart terminal. The smart terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0071] Combine the following Figure 1 A detailed introduction to each component of the smart terminal:
[0072] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or calls. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. Optionally, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution) and 5G, etc.
[0073] WiFi is a short-range wireless transmission technology. The smart terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not a necessary component of the smart terminal and can be omitted as needed without changing the essence of the invention.
[0074] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the smart terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the smart terminal 100 (optionally, a call signal receiving sound, a message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0075] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.
[0076] The smart terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the smart terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0077] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0078] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the intelligent terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. Optionally, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Optionally, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.
[0079] Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Then, the processor 110 provides corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the smart terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the smart terminal, which is not limited here.
[0080] The interface unit 108 is used as an interface through which at least one external device can be connected to the smart terminal 100. Optionally, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (optionally, data information, power, etc.) from an external device and transmit the received input to one or more elements within the smart terminal 100 or may be used to transmit data between the smart terminal 100 and an external device.
[0081] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area. Optionally, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. Optionally, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, and optionally at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0082] The processor 110 is the control center of the smart terminal. It uses various interfaces and lines to connect various parts of the entire smart terminal. It executes various functions of the smart terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the smart terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0083] The intelligent terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0084] although Figure 1 Not shown, the smart terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0085] To facilitate understanding of the embodiments of the present application, the communication network system on which the smart terminal of the present application is based is described below.
[0086] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present application, wherein the communication network system is an LTE system of universal mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are connected in sequence for communication.
[0087] Optionally, UE201 may be the above-mentioned smart terminal 100, which will not be described in detail here.
[0088] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Optionally, eNodeB 2021 may be connected to other eNodeBs 2022 via a backhaul (optionally an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 may provide UE 201 with access to EPC 203 .
[0089] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, MME 2031 is a control node that processes signaling between UE 201 and EPC 203, and provides bearer and connection management. HSS 2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and store some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).
[0090] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.
[0091] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present application is not only applicable to the LTE system, but also to other wireless communication systems, optionally GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems (such as 5G), etc., which are not limited here.
[0092] Based on the above-mentioned smart terminal hardware structure and communication network system, various embodiments of the present application are proposed.
[0093] It should be noted that the same or similar parts between the various embodiments in this application can refer to each other. In the various embodiments in this application, and the various implementation methods / implementation methods / implementation methods in each embodiment, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The above-mentioned implementation methods of this application do not constitute a limitation on the scope of protection of this application.
[0094] First embodiment
[0095] The following further describes in detail the method for loading application resources, the intelligent terminal, and the storage medium provided in the embodiments of the present application. Figure 3 , Figure 3 It is a flowchart of a method for loading application resources according to the first embodiment. Figure 3 The method for loading application resources shown includes 301-302. The method of the embodiment of the present application can be performed by Figure 1 The smart terminal shown in the figure can also be executed by a chip in the smart terminal. The smart terminal can be applied to Figure 2 The communication network system shown. Figure 3 The method execution subject shown takes a smart terminal as an example. Optionally:
[0096] 301. Obtain a target attribute value, and set a system attribute according to the target attribute value.
[0097] In the embodiment of the present application, the smart terminal can install one or more operating systems, and install applications or services on the basis of the operating system, so that users can use the installed applications or services to bring convenience to daily life. The operating system installed in the smart terminal is equivalent to a software, and a version of the software can correspond to a system attribute, that is, to an application resource. When producing smart terminals, manufacturers can burn the software carrying system attributes (i.e., a certain version of the software) into the smart terminal, so that after starting the smart terminal, the application resources corresponding to the version of the software are loaded for user use. For customers in different regions or different groups of people who want to use different default application resources, it is necessary to set up the software differently or develop it again to obtain another version of the software, and install or update different versions of the software on the smart terminals of different customers, so as to meet the use needs of different users. On the one hand, for users, if they want to adjust the default application resources, they need to update the software version of the system again, the adjustment efficiency is low, the operation is relatively cumbersome, and the user experience is poor. On the other hand, for the generation manufacturer, it is necessary to develop or maintain different versions of software for different users, which cannot be applied to the scenarios of various different customers, and the development and maintenance efficiency is low and the adaptability is poor.
[0098] Optionally, the system attribute is the attribute of the operating system software installed in the current smart terminal, and the operating system is a computer program that manages the hardware and software resources of the smart terminal. Optionally, it can be an Android system, a Hongmeng system, a mobile phone operating system (iphone operation system, iOS), an origin system (OriginOS), etc., which is not limited in this application. For the convenience of description, this application takes the Android system as an example for explanation. In the Android system, there is a property file build.prop, which defines some initial (or permanent) parameter attributes, function opening, etc. in the Android system. The technical staff of the manufacturer can adjust / add the attributes or parameters in the property file to achieve the effect of adjusting the system performance and function. Optionally, the property file build.prop includes the attributes of the time zone and language of the smart terminal, such as the code of "persist.sys.timezone=Africa / Brazzaville, persist.sys.locale=en-US", indicating that the default system time zone is Africa / Brazzaville and the default system language is United States-English. Optionally, the above-mentioned default system time zone and default system language are system properties, and Africa / Brazzaville and United States-English are property values corresponding to the system time zone and default system language.
[0099] In a possible implementation, the smart terminal can obtain the target attribute value and set the system attribute according to the target attribute value. The system attributes may include a default time zone, a default language, and may also include wallpapers, ringtones, pre-installed application packages (Android application package, APK), application icons, displayed interface styles (optionally, such as themes), and the like. Optionally, the smart terminal may receive user settings for system attributes, that is, obtain the target attribute value. Optionally, the smart terminal obtains the target attribute value, which may include at least one of receiving preset characters input by the user, receiving preset operations input by the user, and receiving a setting instruction when the smart terminal determines that the logged-in account is a preset account, and the setting instruction carries the target attribute value.
[0100] Optionally, receiving the preset characters input by the user may be a character string input for one or more system attributes received by the smart terminal. After receiving the preset characters, the smart terminal determines the target attribute values corresponding to the one or more system attributes. Optionally, the preset characters may be characters of the attribute values of the system attributes, or characters that are not attribute values. Optionally, the characters that are not attribute values may be characters used to indicate the target attribute values. Optionally, the characters may be codes, and the so-called codes may be characters set by the technical staff of the manufacturer to set the target attribute values. Different attribute values of the system attributes may correspond to different codes, and the target attribute values of all the system attributes may also correspond to one code. After receiving the code, the smart terminal determines the target attribute value according to the correspondence between the characters of the code and the attribute values.
[0101] Optionally, a preset operation input by a user is received. Optionally, the preset operation can be an operation that the smart terminal receives for the setting interface displayed on the smart terminal. Optionally, the smart terminal can receive an operation by the user touching the display screen of the smart terminal, including but not limited to click, slide, continuous multiple clicks, continuous multiple slides, click and slide combination, and press operations. The preset operation can also be an operation received by a smart terminal including physical buttons through physical buttons, optionally, such as a press button operation, a long press operation of one or more physical buttons, etc. The preset operation can also be an operation that the smart terminal receives a voice command input by the user, and the user can input the target attribute value through the voice command.
[0102] Optionally, when the smart terminal determines that the logged-in account is a preset account, a setting instruction is received, and the setting instruction carries the target attribute value. Optionally, the smart terminal can set permissions for different accounts to set different system attributes. Optionally, the preset account can be set with the setting permission of all system attributes, the ordinary account can be set with the setting permission of the first part of system attributes, and the "visitor", that is, the user who has not logged in to the account, can be set with the setting permission of the second part of system attributes. Optionally, the second part of system attributes can be a subset of the first part of system attributes, that is, the second part of system attributes can be a part of the first part of system attributes.
[0103] Optionally, the preset account may be the manufacturer's account. Optionally, the smart terminal may respond to an activation operation or a factory reset operation, output a prompt message for prompting the user to input verification information, and then receive the target verification information input by the user, that is, the user logs in to a certain account, and obtains the target attribute value of the system attribute according to the target verification information. Optionally, when the target verification information matches the verification information of the preset account, the smart terminal determines that the account is any account in the preset account list stored in the smart terminal, and then the smart terminal determines that it can receive the setting instruction input by the user through the account. Optionally, the setting instruction may be triggered by the user inputting a preset character, or may be triggered by the user inputting a preset operation, and the setting instruction has the setting authority to set all system attributes, which is not limited in this application. The smart terminal may output a first setting interface including all system attributes, and obtain the target attribute values of all system attributes in the first setting interface.
[0104] Optionally, the smart terminal can output prompt information for inputting verification information in response to an activation operation or a factory reset operation, and receive target verification information input by the user. When the smart terminal determines that the target verification information does not match the verification information of a preset account, and determines that the account the user has logged in to is not any account in the preset account list stored in the smart terminal, that is, the account the user has logged in to is an ordinary account, the smart terminal can output a second setting interface including the first part of system properties, and obtain the target attribute values of the second part of system properties in the second setting interface.
[0105] Optionally, after the smart terminal outputs the prompt information for inputting the verification information, if the smart terminal does not receive the target verification information within a preset time period, it outputs a third setting interface including the second part of the system attributes, and receives the target attribute value of the second part of the system attributes in the third setting interface. Optionally, the process of the smart terminal outputting the prompt information for inputting the verification information can be similar to the startup setting wizard of the smart terminal, and the startup setting wizard ends when the user completes the setting.
[0106] Please also read Figure 4a , Figure 4a is a diagram of a setting interface for receiving a setting of system properties according to the first embodiment, such as Figure 4a As shown, the user interface includes three ways for the smart terminal to receive user input for setting the target attribute value of the system attribute. Optionally, the user interface can be a setting interface for setting the target attribute value, including the user's account, specific system attributes, optionally, such as language, time zone, market name, wallpaper, icon style, ringtone system attributes, and can also include an input box for entering a password. Optionally, the smart terminal can enable the setting of the system attribute when it is determined that the logged-in account is a preset account, that is, receive the input target attribute value. Optionally, the smart terminal can receive a click operation (preset operation) for a certain system attribute, and then display a menu interface of the system attribute value for the user to further select. Optionally, the smart terminal can receive a click operation (preset operation) for a certain system attribute, and then receive the input character, which can be the target attribute value of the system attribute, and the character can also be a preset character. Optionally, a password preset by the manufacturer, such as Figure 4a Enter the password in .
[0107] Optionally, Figure 4a Only one example of a setting interface for setting system properties is shown. In fact, the setting interface can be the first setting interface, the second setting interface, or the third setting interface, and this application does not limit this. Optionally, the specific contents in the first part of system properties and the second part of system properties can be set by the developer of the manufacturer.
[0108] Optionally, after receiving the input target attribute value, the smart terminal may store the target attribute value and set the system attribute according to the target attribute value.
[0109] Optionally, after the smart terminal receives the target attribute value input by the user, it can perform a confirmation operation after receiving the user input, and in response to the confirmation operation, perform a step of storing the target attribute value, and start the smart terminal after storing. The smart terminal can then display a startup interface and set the system attribute according to the stored target attribute value. After displaying the startup interface, the smart terminal can load the application resources corresponding to the target attribute value according to the set system attribute. Optionally, the startup interface can be a user interface displayed when starting the smart terminal, that is, a startup interface of the smart terminal. The startup interface can also be a user interface after the smart terminal has completed loading the first application resource according to the set system attribute, such as a desktop display interface of the smart terminal.
[0110] Optionally, the intelligent terminal can store the target attribute value by writing the target attribute value into the static memory (Flash) of the intelligent terminal, the static memory includes preset partitions, different partitions correspond to different storage states, and optionally, the non-volatile random access memory (Non-Volatile Random Access Memory) partition in the Flash, and the data stored in the partition is in an erasable state. Optionally, the intelligent terminal can store the target attribute value in a partition in an erasable and modifiable state, so that when the user wants to change the default attribute value of the system attribute, it can be modified. Optionally, the intelligent terminal can also store the target attribute value in a partition in an erasable but non-modifiable state. When the user wants to change the default attribute value of the system attribute, the intelligent terminal can delete the stored default attribute value and then receive and store the target attribute value. Optionally, the erasable state refers to a computer storage chip in which the memory has an erasable function, can be reprogrammed after erasure, and can retain data after power failure. The modifiable state can also be understood as a readable and writable state, that is, a state that can be read and modified. The modifiable state can be easily modified by the user, thereby improving the personalization of the smart terminal.
[0111] Optionally, the modifiable state means that the default attribute value of the system attribute is a readable and writable attribute value, that is, the user can directly enter the target attribute value, and the smart terminal can complete the modification by replacing the stored default attribute value with the target attribute value. The unmodifiable state means that the default attribute value of the system attribute is readable but not writable. The smart terminal can rewrite the target attribute value only after deleting the default attribute value of the system attribute or deleting the field of the system attribute and the default attribute value, and then store the target attribute value as the default attribute value in an unmodifiable state, that is, a readable and unwritable state. Optionally, the erasable state means that the smart terminal can restore the currently set target attribute value to the default attribute value or delete it. The default attribute value can be the attribute value set by the user last time, or it can be the default attribute value preset by the smart terminal. Optionally, when the default attribute value is stored in an unmodifiable state, the smart terminal can determine whether there is no default attribute value after deleting the default attribute value or deleting the field of the system attribute and the default attribute value. When it is determined that there is no default attribute value, the target attribute value can be stored in the smart terminal.
[0112] In a possible implementation, the smart terminal presets a default attribute value of the system attribute, and the default attribute value is in an erasable state, that is, written to an erasable state partition in the memory, and the default attribute value can be stored in a modifiable state. Then, after receiving the activation operation, the smart terminal can set the system attribute according to the default attribute value, or receive the set target attribute value, and replace the default attribute value with the target attribute value to store in a modifiable state, and then set the system attribute according to the target attribute value, and then load the application resources indicated by the set system attribute. Optionally, if you want to modify the target attribute value stored in the smart terminal, the smart terminal can delete the target attribute value (erase it from the memory) by receiving the factory reset operation, thereby receiving a new target attribute value, replacing the historical target attribute value with the new target attribute value, and storing it in a modifiable state. Then, the system attribute can be set according to the new target attribute value, and the application resources can be loaded according to the set system attribute.
[0113] In another possible implementation, the smart terminal may preset the default attribute value of the system attribute, or may not preset the default attribute value of the system attribute. The default attribute value of the system attribute is stored in an unmodifiable manner. If the smart terminal determines that the default attribute value is empty after receiving the activation operation, it means that there is no default attribute value. Then the smart terminal can receive the target attribute value and store the target attribute value as the default attribute value in an unmodifiable state. Then the system attribute is set according to the target attribute value, and then the application resource indicated by the set system attribute is loaded. If a new target attribute value is received again next, the smart terminal does not perform the operation of storing the new target attribute value when it determines that the current default attribute value is not empty and the default attribute value is in an unmodifiable state. Optionally, after receiving the factory reset operation, the smart terminal can delete the stored default attribute value (erase it from the memory), and then the smart terminal can receive and store the input target attribute value, and store the target attribute value as the default attribute value again in an unmodifiable state. Then, the smart terminal can set the system attribute according to the new default attribute value, and load the application resource according to the set system attribute.
[0114] Optionally, after the smart terminal stores the target attribute value, the target attribute value and the system attribute can be stored in correspondence, that is, the setting of the system attribute is completed. Optionally, a system attribute can correspond to one or more values in the target attribute value. Furthermore, the smart terminal can determine the identification information corresponding to the set system attribute based on the correspondence between the system attribute and the identification information of the preset application resource, and the identification information is used to indicate the application resource, and then obtain the corresponding application resource, load it and provide it to the user for use.
[0115] 302. Load a first application resource according to the set system properties.
[0116] Optionally, the above-mentioned target attribute value may include identification information for indicating application resources, and the target attribute value may also be converted into identification information, so as to obtain application resources corresponding to the identification information. Optionally, the system attribute is wallpaper, and the target attribute value may be a wallpaper image file, then the identification information may be the label of the wallpaper, and the label is the identification information, and the label may be used to indicate the application resources of the wallpaper image file, which is not limited in this application. Optionally, the so-called application resources may refer to display resources, audio resources, application program resources, etc. corresponding to the system attributes in the smart terminal. The smart terminal may obtain application resources according to different system attributes and load and configure them, and then output the loaded application resources. Optionally, the first application resource may be the sum of the application resources indicated by each system attribute, or may refer to the application resource indicated by any system attribute, which is not limited in this application.
[0117] Optionally, the system properties may include a default time zone and a default language, and the smart terminal may obtain the corresponding clock application resources and language application resources according to the default time zone and the default language to display the user interface of the corresponding clock resources and the corresponding language application resources. Optionally, the system properties may also include wallpapers, application icons, and displayed interface styles (optionally, such as themes), and the smart terminal may obtain the display resources corresponding to the set system properties and display them, and optionally display the wallpapers and application icon styles indicated by the set system properties and display them. The smart terminal may also change and load the interface styles of the desktop interface, the drop-down notification bar, and other system menus according to the display resources, and display them. Optionally, the system properties also include pre-installed APKs, and the smart terminal may obtain the corresponding application resources and install the application corresponding to the pre-installed APK in the smart terminal, and the smart terminal may display the icon style indicated by the display resources in the user interface of the desktop. Optionally, the system properties also include ringing sounds, and the smart terminal may obtain the audio resources corresponding to the ringing sounds and set them, that is, configure the corresponding audio files (i.e., audio resources) when a prompt sound is required.
[0118] Optionally, if the target attribute value entered by the user through the first setting interface is a setting for all system attributes, the first application resource loaded by the smart terminal according to the set system attributes may be the application resources corresponding to all system attributes obtained according to the target attribute value. Optionally, if the target attribute value entered by the user through the second setting interface is a setting for the first part of the system attributes, the first application resource loaded by the smart terminal according to the set system attributes may be the application resources corresponding to the first part of the system attributes obtained according to the target attribute value, as well as the default application resources of other system attributes except the first part of the system attributes. Optionally, if the target attribute value entered by the user through the third setting interface is a setting for the second part of the system attributes, the first application resource loaded by the smart terminal according to the set system attributes may be the application resources corresponding to the second part of the system attributes obtained according to the target attribute value, as well as the default application resources of other system attributes except the second part of the system attributes. Optionally, the first application resources finally loaded in the above three situations may be the same or different, and this application does not limit this.
[0119] Please also read Figure 4b , Figure 4b is a schematic diagram of the structure of the intelligent terminal according to the first embodiment, such as Figure 4b As shown, the intelligent terminal may include three modules, a receiving module 41, a management module 42, and a setting module 43. Optionally, the receiving module 41 is used to obtain a target attribute value, which is an attribute value of a system attribute. After obtaining the target attribute value, the receiving module 41 may pass the target attribute value to the management module 42. The management module 42 may store the target attribute value in an erasable partition or an inerasable partition of the memory, and set the target attribute value to a modifiable state or an unmodifiable state. Furthermore, the setting module 43 may set the system attribute according to the target attribute value, and load the application resources according to the set system attribute.
[0120] exist Figure 3 In the described method, the target attribute value is obtained, the system attribute is set according to the target attribute value, and the first application resource is loaded according to the set system attribute. Figure 3 The method described can achieve the purpose of modifying the attribute value of the system attribute on a version of software through the above method. On the one hand, the user can set the attribute value of the system attribute he wants without updating the software, which simplifies the user's operation and improves the user experience. On the other hand, by directly setting the system attribute, the technical personnel of the manufacturer do not need to perform secondary development or maintenance on the original software, which improves the efficiency of adjusting the smart terminal.
[0121] Second embodiment
[0122] See also Figure 5 , Figure 5 It is a flowchart of a method for loading application resources according to the second embodiment. Figure 5 The method for loading application resources shown includes 501 to 503. The method of the embodiment of the present application can be performed by Figure 1 The smart terminal shown in the figure can also be executed by a chip in the smart terminal. The smart terminal can be applied to Figure 2 The communication network system shown. Figure 5 The method execution subject shown takes a smart terminal as an example.
[0123] It should be noted that the same or similar parts between the various embodiments in this application can refer to each other. In the various embodiments in this application, and the various implementation methods / implementation methods / implementation methods in each embodiment, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The above-mentioned implementation methods of this application do not constitute a limitation on the scope of protection of this application. Optionally:
[0124] 501. Receive an activation operation; or receive a factory reset operation.
[0125] Optionally, the activation operation may be an operation for activating the software when the smart terminal is first started. The factory reset operation may be understood as restoring the smart terminal to the default state at the time of leaving the factory and clearing the saved parameter settings. Optionally, this embodiment mainly describes storing the attribute values of the system attributes in a modifiable state, thereby realizing that one software version corresponds to a variety of different attribute values of the system attributes, and different smart terminals can set the system attributes by receiving the target attribute values input by the user.
[0126] Please also read Figure 6 , Figure 6 FIG. 1 is a timing diagram of a method for loading application resources according to the second embodiment. Figure 6 As shown, optionally, the smart terminal can preset the application resources corresponding to each identification information, and can also preset the identification information corresponding to each attribute value, so as to determine the corresponding identification information according to the target attribute value (the system attribute after setting), and then load the corresponding application resources according to the identification information. First, the system attribute of the smart terminal can carry a default attribute value, which can correspond to the default identification information, that is, the default application resource, and the default attribute value is stored in the smart terminal in a modifiable state.
[0127] On the one hand, after receiving the activation operation, that is, after the smart terminal is turned on for the first time, the system properties can be set according to the default property values. If a target property value for setting the system property is received, the target property value is stored, and the system property is set according to the target property value, and then the first application resource when the property value of the system property is the target property value is loaded. On the other hand, after receiving the factory reset operation, the smart terminal can restore the property value of the current system property to the default property value, or delete the default property value (erase it in the memory). It should be noted that the current system property value can be the default property value, or it can be the property value set after the smart terminal receives the activation operation when it is turned on for the first time, or it can be the property value set after the factory reset operation is received last time. This application does not limit this. Then, after receiving the target property value, storing the target property value, and setting the system property according to the target property value, the first application resource is loaded according to the set system property.
[0128] Optionally, after the smart terminal loads the first application resource indicated by the set system attribute, it can also receive the reference attribute value output by the user for setting the system attribute, and then store the reference attribute value, and set the system attribute according to the reference attribute value, and then load the second application resource corresponding to the reference attribute value. Optionally, since the current default attribute value is in a modifiable state, the default attribute value is replaced with the target attribute value when storing the target attribute value, and the target attribute value is set to a modifiable state to facilitate subsequent modifications. For example, the user can replace the application resources in the process of using the smart terminal, such as changing the wallpaper, language, time zone and other application resources. In this way, multiple default attribute values can be achieved in one software version by setting the target attribute value, which is conducive to saving the manufacturer's time for maintaining and developing multiple versions of software, and can meet the requirements of different customers for software, thereby improving applicability.
[0129] 502. Receive a target property value for setting a system property.
[0130] Optionally, the specific implementation of step 502 may refer to the specific description of step 301 in the above embodiment, which will not be repeated here.
[0131] 503. When the default attribute value is in a modifiable state, the default attribute value is replaced with the target attribute value, and the target attribute value is set to be in a modifiable state.
[0132] Optionally, the intelligent terminal can determine whether the current default property value is in a modifiable state. In the property file build.prop, specific fields can be used to identify system properties in a modifiable state and system properties in an unmodifiable state. Optionally, system properties in an unmodifiable state may include preset fields. If it is determined that the system properties do not include the above preset fields, the current default property value is determined to be in a modifiable state. Optionally, the modifiable state and the unmodifiable state may include different preset fields, respectively. If it is determined that each system property includes a preset field corresponding to the modifiable state, the system property is determined to be in a modifiable state.
[0133] Optionally, in a modifiable state, that is, the attribute value of the system attribute is readable and writable, then when storing the received target attribute value, the default attribute value can be replaced by the target attribute value for storage, and the target attribute value can be set to a modifiable state for subsequent modification. Optionally, after the first setting is completed, a reference attribute value for setting the system attribute can be further received. Optionally, the reference attribute value can be the attribute value of some system attributes, or it can be the attribute value of all system attributes, that is, the user can modify the attribute value of some or all system attributes of the software version. Furthermore, the smart terminal can replace the target attribute value with the reference attribute value for storage, and set the reference attribute value to a modifiable state. After setting the system attribute according to the reference attribute value, the smart terminal can load the second application resource indicated by the set system attribute.
[0134] exist Figure 5 In the described method, the intelligent terminal receives an activation operation; or receives a factory reset operation, and receives a target attribute value for setting a system attribute; and then, if the default attribute value is in a modifiable state, replaces the default attribute value with the target attribute value, and sets the target attribute value to a modifiable state. Figure 5 The described method can modify the attribute value of the system attribute by means of the default attribute value of the modifiable state, so as to obtain a version of the software including system attributes of multiple attribute values, which is suitable for the usage requirements of various different users, avoids the need to develop various versions of software, and also avoids the need to update the software to modify the attribute value, simplifies user operations, improves development and maintenance efficiency, and enhances user experience.
[0135] Third embodiment
[0136] Based on the above embodiments, this embodiment proposes a specific embodiment of a method for loading application resources. Figure 7 , Figure 7 It is a flowchart of a method for loading application resources according to the third embodiment. Figure 7 The processing method shown includes 701 to 703. The method of the embodiment of the present application can be Figure 1 The smart terminal shown in the figure can also be executed by a chip in the smart terminal. The smart terminal can be applied to Figure 2 The communication network system shown. Figure 7 The method execution subject shown takes a smart terminal as an example. Optionally:
[0137] 701. Receive an activation operation; or receive a factory reset operation.
[0138] Optionally, the activation operation may be an operation for activating the software when the smart terminal is started for the first time. The factory reset operation may be understood as restoring the smart terminal to the default state at the time of leaving the factory and clearing the saved parameter settings. Optionally, this embodiment mainly describes storing the attribute values of system attributes in an unmodifiable state, thereby achieving one software version corresponding to a variety of different attribute values of system attributes, and different smart terminals may set the system attributes by receiving the target attribute values input by the user. It should be noted that the system attributes may be stored in an unmodifiable state or in a modifiable state, and some system attributes may be stored in an unmodifiable state and some system attributes may be stored in a modifiable state, and this application does not limit this.
[0139] See also Figure 8a and Figure 8b , Figure 8a and Figure 8b All of them are timing diagrams of the method for loading application resources according to the third embodiment. Figure 8a As shown, similarly, the smart terminal can preset the application resources corresponding to each identification information, and can also preset the identification information corresponding to each attribute value, so that the corresponding application resources can be directly loaded according to the identification information corresponding to the target attribute value in the subsequent process. Since the default attribute value is stored in an unmodifiable state in this method, the system attribute may not carry the default attribute value, that is, the default attribute value carried by the system attribute is empty. Optionally, since the user may set it as a visitor, the default attribute value of the second part of the system attribute in all system attributes may be empty, except that the attribute value of the second part of the system attribute may not be empty. Optionally, after receiving the activation operation, that is, after the smart terminal is turned on for the first time, the target attribute value can be obtained, that is, the default attribute value for setting the system attribute is received. Furthermore, when the smart terminal determines that the default attribute value is empty, the target attribute value is stored as the default attribute value, and optionally, the target attribute value is still in an unmodifiable state. Furthermore, the smart terminal can set the system attribute according to the target attribute value, and load the first application resource according to the set system attribute.
[0140] Alternatively, if Figure 8bAs shown, the smart terminal can preset the application resources corresponding to each identification information, and can also preset the identification information corresponding to each attribute value, so that the application resources corresponding to the identification information can be directly loaded according to the identification information corresponding to the target attribute value. Optionally, the system attribute carries a default attribute value, and the default attribute value is not empty. On the one hand, after receiving the activation operation, the smart terminal determines that the default attribute value is not empty and is in an unmodifiable state. The smart terminal can set the system attribute according to the default attribute value and load the application resources according to the set system attribute, that is, the user cannot set the default attribute value of the smart terminal. On the other hand, the smart terminal receives a factory reset operation and deletes the default attribute value (erases it from the memory).
[0141] Optionally, since the user may set it as a visitor, the default attribute value of the second part of the system attributes may be deleted in all system attributes, except that the attribute value of the second part of the system attributes may not be deleted. Then, the intelligent terminal makes a judgment again. If it is determined that the default attribute value is not empty and the default attribute value is in an unmodifiable state, the intelligent terminal also sets the system attribute according to the default attribute value and loads the application resource indicated by the set system attribute. When the intelligent terminal makes a judgment again to determine that the default attribute value is empty and the default attribute value is in an unmodifiable state, the target attribute value for setting the system attribute is received. When the intelligent terminal determines that the default attribute value is empty, the target attribute value is used as the default attribute value and is stored in an unmodifiable state. Optionally, the intelligent terminal determines that the default attribute value is empty, which may be determined that the default attribute value of the second part of the system attributes is empty. Then, the intelligent terminal sets the system attribute according to the target attribute value, and loads the corresponding first application resource according to the set system attribute. Thus, multiple default attribute values can be realized by setting the target attribute value in one software version, which is conducive to saving the time of the manufacturer to maintain and develop multiple versions of software, and can meet the requirements of different customers for software, thereby improving applicability.
[0142] 702. Receive a target property value for setting a system property.
[0143] Optionally, the specific implementation of step 702 may refer to the specific description of step 301 in the above embodiment, which will not be repeated here.
[0144] 703. When it is determined that the default attribute value is empty, the target attribute value is used as the default attribute value and is stored in an unmodifiable state.
[0145] Optionally, since the default attribute value is in an unmodifiable state, when storing the target attribute value, it is necessary to determine whether the default attribute value is empty. Only when the default attribute value is empty, the target attribute value is used as the default attribute value and stored in an unmodifiable state. Optionally, before storing the target attribute value, if the smart terminal determines that the default attribute value is not empty and the default attribute value is in an unmodifiable state, the operation of storing the target attribute value will not be performed. That is, if the current smart terminal determines that the default attribute value is in a readable and unwritable state and the default attribute value is not empty, the smart terminal can only set the system attribute according to the default attribute value and cannot modify it.
[0146] Optionally, for the default attribute value in the unmodifiable state in the attribute file build.prop, a preset identifier is provided. If it is detected that the default attribute value has a preset identifier, the default attribute value is determined to be in an unmodifiable state. Optionally, fields such as ro.childmode.support=1, ro.faceid.low_battery_light=1 in the attribute file build.prop begin with "ro", indicating readonly, which means it can only be read, and the attribute value can only be written once. Optionally, "ro" is a preset identifier. For the default attribute value in the unmodifiable state, the new target attribute value can only be rewritten after the smart terminal deletes the default attribute value (erases it from the memory) after receiving the factory reset operation.
[0147] Optionally, after the target attribute value is stored as the default attribute value in an unmodifiable state, the system attribute may be set according to the modified default attribute value, and then the application resource may be loaded according to the set default attribute.
[0148] See also Figure 8c , Figure 8c is another timing diagram of the method for loading application resources according to the third embodiment. Figure 8c is an overall timing diagram of the application resource loading method provided in the embodiment of the present application, such as Figure 8c As shown, 801, the smart terminal receives an activation operation, or receives a factory reset operation. 802, the smart terminal outputs prompt information for prompting to input verification information. 803, the smart terminal receives target verification information input by the user. 804, the smart terminal obtains the target attribute value of the system attribute according to the target verification information.
[0149] Optionally, the intelligent terminal may obtain the target attribute value of the system attribute according to the target verification information in three specific cases: (1) When the target verification information matches the verification information of the preset account, a first setting interface including all system attributes is output, and the target attribute values of all system attributes are obtained in the first setting interface. (2) When the target verification information does not match the verification information of the preset account, a second setting interface including the first part of the system attributes is output, and the target attribute values of the first part of the system attributes are received in the second setting interface. (3) When the target verification information is not received within the preset time period, a third setting interface including the second part of the system attributes is output, and the target attribute values of the second part of the system attributes are received in the third setting interface.
[0150] Optionally, the smart terminal may obtain the target attribute value of the system attribute in any setting interface among the above-mentioned first setting interface, the above-mentioned second setting interface and the third setting interface, including at least one of the following: receiving input of preset characters, the preset characters are used to set the target attribute value; receiving input of preset operations, the preset operations are used to set the target attribute value; when it is determined that the logged-in account is a preset account, receiving a setting instruction, and the setting instruction carries the target attribute value.
[0151] 805. The smart terminal receives the confirmation operation. 806. In response to the confirmation operation, the smart terminal stores the above-mentioned target attribute value. Optionally, if the system attribute in the smart terminal includes a default attribute value, when the default attribute value is in a modifiable state, the default attribute value is replaced with the target attribute value, and the target attribute value is set to a modifiable state. Optionally, when the default attribute value is empty, the smart terminal uses the target attribute value as the default attribute value and stores it in an unmodifiable state. Optionally, when it is determined that the default attribute value is not empty and the default attribute value is in an unmodifiable state, the smart terminal does not perform the operation of storing the target attribute value.
[0152] 807. The intelligent terminal sets the system property according to the target property value. 808. The intelligent terminal loads the first application resource according to the set system property. Optionally, the intelligent terminal determines the identification information according to the correspondence between the system property and the preset application resource, and loads the first application resource according to the identification information. 809. The intelligent terminal displays the startup interface. 810. The intelligent terminal receives the reference property value for setting the system property. 811. The intelligent terminal stores the parameter property value. 812. The intelligent terminal sets the system property according to the parameter property value, and loads the second application resource according to the set system property.
[0153] exist Figure 7In the described method, the intelligent terminal receives a target attribute value for setting a system attribute by receiving an activation operation or a factory reset operation, and then, if it is determined that the default attribute value is empty, the target attribute value is used as the default attribute value and stored in an unmodifiable state. Figure 7 The described method can implement multiple default settings in one software version, which not only ensures the personalized needs of various users for smart terminal application resources, but also helps manufacturers improve the efficiency of developing and maintaining multiple versions of software and improve user experience.
[0154] Fourth embodiment
[0155] Based on the above embodiment, the above embodiment provides a device for loading application resources corresponding to the above embodiment. Fig. 9 , Fig. 9 1 is a schematic diagram of a structure of an application resource loading device 90 provided in an embodiment of the present application. The application resource loading device 90 includes an acquisition unit 901, a loading unit 902, a receiving unit 903, a replacement unit 904, a setting unit 905, an execution unit 906 and a display unit 907. Optionally:
[0156] The acquisition unit 901 may be used to acquire a target attribute value and set the system attribute according to the target attribute value;
[0157] The loading unit 902 may be configured to load a first application resource according to the set system properties.
[0158] Optionally, the acquisition unit 901 is used to acquire a target attribute value, and specifically can be used to:
[0159] Receiving input of preset characters, the preset characters can be used to set the target attribute value;
[0160] Receiving an input preset operation, the preset operation can be used to set the target attribute value;
[0161] When it is determined that the logged-in account is a preset account, a setting instruction is received, and the setting instruction carries the target attribute value.
[0162] Optionally, the acquisition unit 901 is used to acquire a target attribute value, and specifically can be used to:
[0163] receiving the target property value for setting the system property;
[0164] storing the target attribute value; and / or,
[0165] The application resource loading device 90 further includes:
[0166] The receiving unit 903 is configured to receive an activation operation; or
[0167] Receive a factory reset operation.
[0168] Optionally, the acquisition unit 901 is used to acquire a target attribute value, and specifically can be used to:
[0169] In response to the activation operation or the factory reset operation, outputting prompt information for prompting input of verification information;
[0170] Receive input target verification information;
[0171] The target attribute value of the system attribute is obtained according to the target verification information.
[0172] Optionally, the acquisition unit 901 is used to acquire the target attribute value of the system attribute according to the target verification information, and can be specifically used to:
[0173] When the target verification information matches the verification information of the preset account, a first setting interface including all system properties is output, and the target property values of all system properties are obtained in the first setting interface;
[0174] When the target verification information does not match the verification information of the preset account, outputting a second setting interface including the first part of system properties, and receiving the target property value of the first part of system properties in the second setting interface;
[0175] When the target verification information is not received within a preset time period, a third setting interface including the second part of system properties is output, and the target property value of the second part of system properties is received in the third setting interface.
[0176] Optionally, the system attribute includes a default attribute value, and the acquisition unit 901 is used to store the target attribute value, which can be specifically used to:
[0177] In the case where the default attribute value is in a modifiable state, replacing the default attribute value with the target attribute value, and setting the target attribute value to be in a modifiable state; and / or,
[0178] When the default attribute value is empty, the target attribute value is used as the default attribute value and is stored in an unmodifiable state.
[0179] Optionally, the receiving unit 903 is further configured to receive a reference attribute value for setting the system attribute;
[0180] A replacing unit 904 is configured to replace the target attribute value with the reference attribute value when the target attribute value is in a modifiable state, and set the reference attribute value to be in a modifiable state; and / or,
[0181] The setting unit 905 is used to set the system property according to the reference property value, and load the second application resource according to the set system property.
[0182] Optionally, the receiving unit 903 is further configured to receive a confirmation operation input by a user;
[0183] An execution unit 906, configured to execute the step of storing the target attribute value in response to the confirmation operation;
[0184] The display unit 907 is used to display a startup interface.
[0185] Optionally, the loading unit 902 is used to load the first application resource according to the set system property, specifically to:
[0186] Determining identification information of the first application resource according to a correspondence between the system attribute and the preset application resource;
[0187] The first application resource is loaded according to the identification information.
[0188] It should be noted that Fig. 9 The operations performed by each unit of the device shown can refer to the relevant content of the method embodiment. No further details are given here. Each unit can be implemented in hardware, software or a combination of hardware and software.
[0189] The present application also provides an intelligent terminal, which includes a memory and a processor. The memory stores a loading program for application resources. When the loading program for application resources is executed by the processor, the steps of the method for loading application resources in any of the above embodiments are implemented.
[0190] The present application also provides a computer-readable storage medium, on which a loading program for application resources is stored. When the loading program for application resources is executed by a processor, the steps of the method for loading application resources in any of the above embodiments are implemented.
[0191] In the embodiments of the smart terminal and computer-readable storage medium provided in the present application, all technical features of any of the above-mentioned application resource loading method embodiments may be included, and the expanded and explained contents of the specification are basically the same as those of the above-mentioned method embodiments, and will not be repeated here.
[0192] The embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the methods in the above various possible implementation modes.
[0193] An embodiment of the present application also provides a chip, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip executes the methods in various possible implementation modes as described above.
[0194] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. Alternatively, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0195] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0196] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0197] The units in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0198] In the present application, the same or similar terminology concepts, technical solutions and / or application scenario descriptions are generally described in detail only the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of the present application, for the same or similar terminology concepts, technical solutions and / or application scenario descriptions that are not described in detail later, reference can be made to the previous related detailed descriptions.
[0199] In the present application, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0200] The various technical features of the technical solution of the present application can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.
[0201] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.
[0202] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a storage disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state storage disk Solid State Disk (SSD)), etc.
[0203] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for loading application resources, characterized in that: include: Obtaining a target attribute value, and setting at least one system attribute according to the target attribute value, wherein one of the system attributes corresponds to one value or multiple values in the target attribute value; Load the first application resource according to the set system property; The obtaining of the target attribute value includes: in response to an activation operation or a factory reset operation, outputting prompt information for prompting input of verification information; receiving input target verification information; outputting a setting interface corresponding to the system attribute according to the degree of matching between the target verification information and verification information of a preset account or when the verification information is not received within a preset time period, so as to obtain the target attribute value of the system attribute; receiving the target attribute value for setting the system attribute; and storing the target attribute value; The acquiring the target attribute value of the system attribute includes: receiving an input preset character, the preset character is used to set the target attribute value, the preset character is a character of the attribute value of the system attribute or a character used to indicate the target attribute value; The system property includes a default property value, and storing the target property value includes: when the default property value is in a modifiable state, replacing the default property value with the target property value and setting the target property value to a modifiable state; and / or, when the default property value is in an unmodifiable state and is empty, using the target property value as the default property value and storing it in an unmodifiable state.
2. The method according to claim 1, characterized in that: The obtaining the target attribute value of the system attribute includes: receiving an input of a preset character and / or receiving an input of a preset operation, wherein the preset operation is used to set the target attribute value; When it is determined that the logged-in account is a preset account, a setting instruction is received, where the setting instruction carries the target attribute value.
3. The method according to claim 1, characterized in that Before receiving the target property value for setting the system property, the method further includes: Receive an activation action; or, Receive a factory reset operation.
4. The method according to claim 3, characterized in that: The method further comprises: Receive confirmation operation input from the user; In response to the confirmation operation, performing the step of storing the target attribute value; After storing the target attribute value, the method further includes: The startup interface is displayed.
5. The method according to claim 1, characterized in that The output corresponds to a setting interface of a system property to obtain the target property value of the system property, including at least one of the following: When the target verification information matches the verification information of the preset account, outputting a first setting interface including all system properties, and obtaining the target attribute values of all system properties in the first setting interface; When the target verification information does not match the verification information of the preset account, outputting a second setting interface including the first part of system properties, and receiving the target property value of the first part of system properties in the second setting interface; When the target verification information is not received within a preset time period, a third setting interface including the second part of system properties is output, and the target property value of the second part of system properties is received in the third setting interface.
6. The method according to any one of claims 1 to 5, characterized in that After loading the first application resource according to the set system property, the method further includes: receiving a reference property value for setting the system property; When the target attribute value is in a modifiable state, replacing the target attribute value with the reference attribute value, and setting the reference attribute value to a modifiable state; and / or, The system property is set according to the reference property value, and the second application resource is loaded according to the set system property.
7. The method according to any one of claims 1 to 5, characterized in that The loading of the first application resource according to the set system property includes: Determining identification information of the first application resource according to a correspondence between system attributes and preset application resources; The first application resource is loaded according to the identification information.
8. An intelligent terminal, characterized in that: The intelligent terminal comprises: a memory and a processor, wherein the memory stores a loading program for application resources, and when the loading program for application resources is executed by the processor, the steps of the method for loading application resources as claimed in any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for loading application resources according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Electronic device suitable for multiple users and login method
CN103530539A
Application program management method and device
CN105354039A