Intelligent device attribute configuration method and device based on Android system
By configuring modules and preset applications in smart devices, adjusting switch attributes according to custom requirements and calling system interfaces, the high manual consumption and maintenance problems caused by the customization requirements of smart devices are solved, and efficient attribute configuration and maintenance are achieved.
Patent Information
- Application Number
- CN202411501327.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-03-18
AI Technical Summary
When facing the diverse customization needs of smart devices based on Android, the existing technology requires a lot of manual configuration and maintenance, resulting in inefficiency and large maintenance workload.
By introducing configuration modules into smart devices, the general switch attributes and sub-switch attributes are adjusted according to custom requirements, and the preset application reads these attributes, and calls the target interface of the system module to perform configuration tasks, realizing the attribute configuration of the smart device.
This method greatly reduces the need for manual configuration, improves the efficiency of the attribute configuration of smart devices, reduces the subsequent maintenance workload, and meets the needs of personalized customization.
Smart Images

Figure CN119645513A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart devices, and in particular to a method and apparatus for configuring properties of smart devices based on an Android system. Background Art
[0002] As various products based on the Android system are widely used in production and life, more and more usage scenarios have led to the birth of various customization requirements. In the field of smart device technology, facing different customization requirements, there are two common solutions: one is to manually configure the factory settings according to different requirements; the other is to customize specific firmware for different products and complete the burning at the factory.
[0003] However, the first solution will consume a lot of manpower when faced with a large number of various products, and the second solution will generate more and more customized firmware as the customization demand increases, which will greatly increase the subsequent maintenance workload. Summary of the invention
[0004] In order to solve the problem of large amount of manpower consumption and increased maintenance workload caused by the customization requirements of the above-mentioned smart devices, the embodiment of the present application provides a method and apparatus for configuring attributes of a smart device based on the Android system, and its technical solution is as follows: In a first aspect, an embodiment of the present application provides a method for configuring properties of an intelligent device based on an Android system, the method being applied to an intelligent device, the intelligent device comprising a system module, a configuration module, and a preset application program, the method comprising: The configuration module adjusts the main switch attribute and the sub-switch attribute according to the customization requirements; wherein the configuration module includes a main switch attribute and at least two sub-switch attributes; The master switch attributes are read by a preset application program, and the master switch state is determined according to the master switch attributes; When it is detected that the main switch state is on, the preset application program queries all sub-switch properties and generates a corresponding request according to the query result, so as to read the configuration information corresponding to the query result in the configuration module; The preset application program calls the target interface corresponding to the configuration information in the system module, and executes the configuration task corresponding to the customization requirement based on the target interface.
[0005] In an optional solution of the first aspect, the configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, including: When it is identified that the customized requirement is inconsistent with the preset requirement, the configuration module adjusts the general switch attribute to the first attribute; When it is identified that the customization requirement is consistent with the preset requirement, the configuration module adjusts the general switch attribute to the second attribute; wherein the first attribute is different from the second attribute; The configuration module obtains the sub-function name corresponding to the customization requirement and adjusts the sub-switch attribute according to the sub-function name.
[0006] In another optional solution of the first aspect, the configuration module obtains a sub-function name corresponding to the customization requirement, and adjusts the sub-switch attribute according to the sub-function name, including: The configuration module obtains the sub-function name corresponding to the customization requirement, and determines the first sub-switch group and the second sub-switch group according to the sub-function name; wherein all sub-switches in the first sub-switch group have the same attributes, all sub-switches in the second sub-switch group have the same attributes, and all sub-switch attributes in the first sub-switch group are different from all sub-switch attributes in the second sub-switch group; The configuration module adjusts the attributes of all sub-switches in the first sub-switch group to a third attribute, and adjusts the attributes of all sub-switches in the second sub-switch group to a fourth attribute; wherein the third attribute is different from the fourth attribute.
[0007] In another optional solution of the first aspect, a preset application program reads the main switch attribute, and determines the main switch state according to the main switch attribute, including: The master switch properties are read by the preset application; When it is identified that the master switch attribute is inconsistent with the historical attribute, the preset application uses the on state as the master switch state; wherein the historical attribute is the master switch attribute read by the preset application last time; When it is identified that the master switch attribute is consistent with the historical attribute, the closed state is used as the master switch state by the preset application.
[0008] In yet another optional solution of the first aspect, after determining the main switch state according to the main switch attribute, the method further includes: When it is detected that the main switch is in the off state, the system module starts the intelligent device.
[0009] In yet another optional solution of the first aspect, before the configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, the method further includes: The configuration module creates at least two sub-functions and sub-switch attributes corresponding to the sub-functions; At least two target interfaces corresponding to all sub-functions are generated by the system module.
[0010] In yet another optional solution of the first aspect, after performing the configuration task corresponding to the customization requirement based on the target interface, the method further includes: When it is detected that the configuration task is completed, the preset application sets its own state to a waiting state to avoid the configuration task from being repeatedly executed; wherein, when the preset application is in the waiting state, the preset application does not execute the configuration task.
[0011] In a second aspect, an embodiment of the present application provides an Android-based smart device attribute configuration device, which is applied to a smart device, the smart device including a system module, a configuration module, and a preset application program, the device including: A first processing module, configured to adjust the main switch attribute and the sub-switch attribute according to the customization requirements by the configuration module; wherein the configuration module includes a main switch attribute and at least two sub-switch attributes; A second processing module, configured to read the main switch attributes by a preset application program, and determine the main switch state according to the main switch attributes; The third processing module is used for, when it is detected that the main switch state is turned on, querying all sub-switch properties by a preset application program, and generating a corresponding request according to the query result, so as to read the configuration information corresponding to the query result in the configuration module; The fourth processing module is used to call the target interface corresponding to the configuration information in the system module by a preset application program, and execute the configuration task corresponding to the customization requirement based on the target interface.
[0012] In a third aspect, an embodiment of the present application further provides an Android-based smart device attribute configuration device, including a processor and a memory; The processor is connected to the memory; A memory for storing executable program codes; The processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the smart device attribute configuration method based on the Android system provided by the first aspect of the embodiment of the present application or any implementation method of the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the method for configuring smart device attributes based on the Android system provided by the first aspect of the embodiment of the present application or any one of the implementation methods of the first aspect can be implemented.
[0014] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: In the process of configuring the properties of smart devices based on the Android system, the configuration information corresponding to the customization requirements in the configuration module is read by the preset application in the smart device, and then the preset application calls the corresponding target interface in the system module according to the configuration information, thereby completing the property configuration of the smart device. While meeting the personalized customization requirements, efficient property configuration of the smart device is achieved, which greatly reduces labor consumption and subsequent maintenance workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 An overall flow chart of a method for configuring properties of an Android-based smart device provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of an Android-based smart device provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an Android-based smart device attribute configuration device provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of another device attribute configuration apparatus based on the Android system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0018] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.
[0019] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.
[0020] See also Figure 1 , Figure 1An overall flow chart of an Android-based smart device attribute configuration method provided in an embodiment of the present application is shown.
[0021] like Figure 1 As shown, the method for configuring attributes of an Android-based smart device may at least include the following steps: Step 101: The configuration module adjusts the main switch attributes and sub-switch attributes according to customization requirements.
[0022] In the embodiment of the present application, the property configuration method of an intelligent device based on the Android system is applied to an intelligent device, which includes a system module, a configuration module, and a preset application program, wherein the system module is a part of the Android operating system, which may be, but is not limited to, a component similar to the Framework Service, and may provide an API (Application Programming Interface) for other applications or services to call, and the configuration module is usually an important component of the Android system, which may be, but is not limited to, a specific software component or a database table, and is mainly used to save configuration information and various version information, etc. The preset application program is mainly used to complete the property configuration of the device. For example, set the basic information of the device, such as name, location, etc.; configure the network connection of the device so that it can access the home or enterprise network; apply necessary security settings, such as setting a strong password, enabling encryption, etc.; adjust the working mode of the device, such as energy-saving mode, performance mode, etc.; configure the functional options of the device, such as timed power on and off, automation rules, etc.; set the theme, icon, etc. In the process of configuring the properties of smart devices based on the Android system, the configuration information corresponding to the customization requirements in the configuration module is read by the preset application in the smart device, and then the preset application calls the corresponding target interface in the system module according to the configuration information, thereby completing the property configuration of the smart device. While meeting the personalized customization requirements, efficient property configuration of the smart device is achieved, which greatly reduces labor consumption and subsequent maintenance workload.
[0023] Specifically, in the process of configuring the properties of an Android-based smart device, the configuration module in the smart device can first determine the sub-functions that need to be turned on according to the user's customization requirements, and then turn on the main switch and the sub-switches corresponding to the sub-functions to achieve the customization requirements. These sub-switches can allow users to enable or disable specific functions or features to meet different needs and scenarios, and can also be used for maintenance and debugging purposes, allowing technicians to isolate and fix specific problems without affecting the overall system, which not only improves the flexibility of property configuration, but also reduces the labor cost of meeting different needs and subsequent maintenance costs.
[0024] For example, the Ethernet configuration sub-switch allows users to choose whether to enable Ethernet connection; the auto-start application management sub-switch allows users to decide whether to allow certain applications to run automatically when the device starts; the screen rotation sub-switch allows users to choose whether to allow the screen to rotate automatically; the application keep-alive sub-switch allows users to control whether to allow certain applications to continue running in the background.
[0025] It should be noted that the configuration module includes a main switch attribute and at least two sub-switch attributes. The main switch can enable or disable a group of related functions or services at one time, that is, it can control the status of a group of sub-switches. The functions of sub-switches usually depend on the status of the main switch. If the main switch is turned off, all sub-switches controlled by it will be invalid; conversely, if the main switch is turned on, the sub-switches can independently control their corresponding functions.
[0026] As an option of the embodiment of the present application, the configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, including: When it is identified that the customized requirement is inconsistent with the preset requirement, the configuration module adjusts the general switch attribute to the first attribute; When it is identified that the customization requirement is consistent with the preset requirement, the configuration module adjusts the general switch attribute to the second attribute; wherein the first attribute is different from the second attribute; The configuration module obtains the sub-function name corresponding to the customization requirement and adjusts the sub-switch attribute according to the sub-function name.
[0027] Specifically, in the process of adjusting the main switch attributes and sub-switch attributes according to the customization requirements by the configuration module, when it is identified that the user's customization requirements are inconsistent with the preset requirements, it means that the user's customization requirements are relatively rare, and the system does not store the corresponding configuration information, so it is necessary to determine new configuration information and reconfigure the device. Therefore, the configuration module can adjust the main switch attributes to the first attribute so that the main switch is in the on state.
[0028] At the same time, when it is identified that the user's customization requirements are consistent with the preset requirements, it means that the user's customization requirements are relatively common, and the system has stored the corresponding configuration information, so there is no need to reconfigure the device. Therefore, the configuration module can adjust the main switch attribute to the second attribute to make the main switch in the off state.
[0029] It should be noted that the preset customization requirement can be but is not limited to at least one user requirement that is more common in the market. The first attribute is an attribute that can turn the main switch on, and the second attribute is an attribute that can turn the main switch off, and the two are different.
[0030] Furthermore, after the configuration module has adjusted the attributes of the main switch, the configuration module can also determine the name of the sub-function to be configured according to the customization requirements. For example, when the customization requirements include allowing certain applications to run automatically when the device is started, the corresponding sub-function name can be the self-starting application management sub-function; when the customization requirements include allowing the screen to rotate automatically, the corresponding sub-function name can be the screen rotation sub-function. Thereafter, the configuration module can adjust the attributes of the sub-switch corresponding to the sub-function name according to the determined sub-function name, so that the corresponding sub-switch is in the on state, thereby enabling the sub-function to be implemented.
[0031] As another option of the embodiment of the present application, the configuration module obtains the sub-function name corresponding to the customization requirement, and adjusts the sub-switch attribute according to the sub-function name, including: The configuration module obtains the sub-function name corresponding to the customization requirement, and determines the first sub-switch group and the second sub-switch group according to the sub-function name; wherein all sub-switches in the first sub-switch group have the same attributes, all sub-switches in the second sub-switch group have the same attributes, and all sub-switch attributes in the first sub-switch group are different from all sub-switch attributes in the second sub-switch group; The configuration module adjusts the attributes of all sub-switches in the first sub-switch group to a third attribute, and adjusts the attributes of all sub-switches in the second sub-switch group to a fourth attribute; wherein the third attribute is different from the fourth attribute.
[0032] Specifically, in the process of obtaining the sub-function name corresponding to the customization requirement by the configuration module and adjusting the sub-switch attributes according to the sub-function name, the configuration module can first obtain the sub-function name corresponding to the customization requirement, and then determine all sub-switches that need to be in the on state (i.e., the first switch group) according to the obtained sub-function name, so as to obtain all sub-switches that need to be in the off state (i.e., the second switch group, that is, the sub-switches remaining after excluding the first sub-switch group from all sub-switches).
[0033] Then, the configuration module can adjust the attributes of all sub-switches in the first sub-switch group to the third attribute, so that all sub-switches in the first sub-switch group are in the on state. At the same time, the configuration module can also adjust the attributes of all sub-switches in the second sub-switch group to the fourth attribute, so that all sub-switches in the second sub-switch group are in the off state.
[0034] It should be noted that the third attribute is an attribute that enables the sub-switch to be in an on state, and the fourth attribute is an attribute that enables the sub-switch to be in an off state, and the two are different.
[0035] As another option of the embodiment of the present application, before the configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, the following is further included: The configuration module creates at least two sub-functions and sub-switch attributes corresponding to the sub-functions; At least two target interfaces corresponding to all sub-functions are generated by the system module.
[0036] Specifically, before the configuration module adjusts the main switch properties and sub-switch properties according to customization requirements, the configuration module can also create at least two sub-functions and sub-switch properties corresponding to the sub-functions. This can not only form the preset customization requirements, but also increase the system flexibility to meet more diverse individual needs.
[0037] Next, the system module may generate at least two target interfaces corresponding to all sub-functions, so that the preset application program can complete the configuration task of the created sub-functions through the target interface.
[0038] Step 102: The preset application program reads the main switch attributes and determines the main switch state according to the main switch attributes.
[0039] Specifically, after the configuration module adjusts the main switch properties and sub-switch properties according to customized requirements, the preset application can also read the adjusted main switch properties, and then determine the main switch state based on the read main switch properties (such as the first property corresponding to the on state or the main switch property changes corresponding to the on state, etc.), so as to determine whether the configuration task needs to be executed.
[0040] It is worth noting that when no new customization requirements arise, the main switch attribute is the first attribute or the main switch state does not change, so the preset application does not need to perform the configuration task, and the smart device starts normally directly; when new customization requirements arise, the main switch attribute is the second attribute or the main switch state changes, so the smart device needs to start after the preset application completes the configuration task.
[0041] As another option of the embodiment of the present application, a preset application program reads the main switch attribute and determines the main switch state according to the main switch attribute, including: The master switch properties are read by the preset application; When it is identified that the master switch attribute is inconsistent with the historical attribute, the preset application uses the on state as the master switch state; wherein the historical attribute is the master switch attribute read by the preset application last time; When it is identified that the master switch attribute is consistent with the historical attribute, the closed state is used as the master switch state by the preset application.
[0042] Specifically, after the configuration module adjusts the main switch attributes and sub-switch attributes according to customized requirements, the main switch attributes can be read by the preset application first, and then the main switch attributes and historical attributes can be judged, where the historical attributes are the main switch attributes read by the preset application last time.
[0043] Next, when it is identified that the main switch attributes are inconsistent with the historical attributes, it means that the main switch attributes have changed, which also means that new attribute configuration is required. Therefore, the preset application can use the on state as the main switch state, thereby making the sub-switch effective, so that subsequent configuration tasks (implementation of sub-functions, etc.) can be completed smoothly.
[0044] At the same time, when it is identified that the attributes of the main switch are consistent with the historical attributes, it means that the attributes of the main switch have not changed, which also means that no new attribute configuration is required. Therefore, the preset application can use the closed state as the main switch state, thereby invalidating the sub-switch and the sub-function cannot be implemented.
[0045] It should be noted that there are two types of master switch attributes. Each time a new attribute configuration is performed, the master switch attribute changes once.
[0046] Step 103: When it is detected that the main switch state is on, the preset application program queries all sub-switch properties and generates a corresponding request according to the query result, so as to read the configuration information corresponding to the query result in the configuration module.
[0047] Specifically, after the preset application determines the state of the main switch according to the properties of the main switch, when it is detected that the state of the main switch is on, it means that a new property configuration is required. Therefore, the preset application can query all sub-switch properties and generate a corresponding request based on the query result to read the configuration information in the configuration module, so that the preset application can call the corresponding interface according to the configuration information to complete the property configuration of the smart device. For example, if the result of the query of all sub-switch properties is: X is on, Y is on, and Z is off, the preset application can generate a request to obtain the configuration information containing the sub-functions corresponding to X and Y from the configuration module.
[0048] It is understandable that the configuration information in the configuration module corresponds to the sub-functions to be implemented, and these sub-functions can be determined by the sub-switch attributes. Therefore, the configuration information in the configuration module read by the preset application corresponds to the sub-switch attributes.
[0049] As another option of the embodiment of the present application, after determining the state of the main switch according to the main switch attribute, the method further includes: When it is detected that the main switch is in the off state, the system module starts the intelligent device.
[0050] Specifically, after the main switch state is determined according to the main switch attributes, when it is detected that the main switch state is off, it means that no new attribute configuration is required, and therefore, the smart device can be directly started by the system module.
[0051] Step 104: The preset application program calls the target interface corresponding to the configuration information in the system module, and executes the configuration task corresponding to the customization requirement based on the target interface.
[0052] Specifically, after the preset application reads the configuration information corresponding to the sub-switch attributes in the configuration module, the preset application can call the target interface corresponding to the configuration information in the system module, and then implement the sub-function corresponding to the configuration information based on the target interface, thereby completing the configuration task corresponding to the customized requirements.
[0053] It can be understood that a plurality of target interfaces are stored in the system module, each target interface corresponds to a sub-function, and the target interface can be called by a preset application program to implement the corresponding sub-function.
[0054] As another option of the embodiment of the present application, after executing the configuration task corresponding to the customization requirement based on the target interface, the method further includes: When it is detected that the configuration task is completed, the preset application sets its own state to a waiting state to avoid the configuration task from being repeatedly executed; wherein, when the preset application is in the waiting state, the preset application does not execute the configuration task.
[0055] Specifically, after executing the configuration task corresponding to the customization requirement based on the target interface, it is also possible to detect whether the configuration task is completed, and when it is detected that the configuration task is completed, the preset application automatically exits. At the same time, the preset application sets its own state to a waiting state, so that it will enter the running state again only when new configuration information is detected, so as to avoid the configuration task being repeatedly executed. It is understandable that when the preset application is in a waiting state, the preset application does not execute the configuration task.
[0056] See also Figure 2 , Figure 2 A schematic diagram of the structure of an Android-based smart device provided in an embodiment of the present application is shown.
[0057] like Figure 2As shown, the Android-based smart device includes at least a system module 201, a configuration module 202 and a preset application 203, wherein: the system module 201 is mainly used to provide an interface to the preset application to implement the functions required by the user; the configuration module 202 is mainly used to store configuration information corresponding to the functions required by the user; the preset application 203 is mainly used to complete the attribute configuration of the smart device, that is, to execute the configuration task.
[0058] It is understandable that the preset application 203 reads the configuration information in the configuration module 202 and then calls the corresponding interface from the system module according to the configuration information, thereby realizing the corresponding function to complete the attribute configuration of the smart device.
[0059] See also Figure 3 , Figure 3 A schematic diagram of the structure of an Android-based smart device attribute configuration device provided in an embodiment of the present application is shown.
[0060] like Figure 3 As shown, the Android-based smart device attribute configuration apparatus may include at least a first processing module 301, a second processing module 302, a third processing module 303, and a fourth processing module 304, wherein: The first processing module 301 is used for adjusting the main switch attribute and the sub-switch attribute according to the customization requirements by the configuration module; wherein the configuration module includes a main switch attribute and at least two sub-switch attributes; The second processing module 302 is used to read the main switch attributes by a preset application program, and determine the main switch state according to the main switch attributes; The third processing module 303 is used for, when it is detected that the main switch state is turned on, querying all sub-switch properties by a preset application program, and generating a corresponding request according to the query result, so as to read the configuration information corresponding to the query result in the configuration module; The fourth processing module 304 is used to call the target interface corresponding to the configuration information in the system module by a preset application program, and execute the configuration task corresponding to the customization requirement based on the target interface.
[0061] In some possible embodiments, the configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, including: The first processing module 301 is specifically used for: When it is identified that the customized requirement is inconsistent with the preset requirement, the configuration module adjusts the general switch attribute to the first attribute; When it is identified that the customization requirement is consistent with the preset requirement, the configuration module adjusts the general switch attribute to the second attribute; wherein the first attribute is different from the second attribute; The configuration module obtains the sub-function name corresponding to the customization requirement and adjusts the sub-switch attribute according to the sub-function name.
[0062] In some possible embodiments, the configuration module obtains the sub-function name corresponding to the customization requirement and adjusts the sub-switch attribute according to the sub-function name, including: The first processing module 301 is specifically used for: The configuration module obtains the sub-function name corresponding to the customization requirement, and determines the first sub-switch group and the second sub-switch group according to the sub-function name; wherein all sub-switches in the first sub-switch group have the same attributes, all sub-switches in the second sub-switch group have the same attributes, and all sub-switch attributes in the first sub-switch group are different from all sub-switch attributes in the second sub-switch group; The configuration module adjusts the attributes of all sub-switches in the first sub-switch group to a third attribute, and adjusts the attributes of all sub-switches in the second sub-switch group to a fourth attribute; wherein the third attribute is different from the fourth attribute.
[0063] In some possible embodiments, before the configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, the following is further included: The first processing module 301 is specifically used for: The configuration module creates at least two sub-functions and sub-switch attributes corresponding to the sub-functions; At least two target interfaces corresponding to all sub-functions are generated by the system module.
[0064] In some possible embodiments, a preset application program reads the main switch attribute and determines the main switch state according to the main switch attribute, including: The second processing module 302 is specifically used for: The master switch properties are read by the preset application; When it is identified that the master switch attribute is inconsistent with the historical attribute, the preset application uses the on state as the master switch state; wherein the historical attribute is the master switch attribute read by the preset application last time; When it is identified that the master switch attribute is consistent with the historical attribute, the closed state is used as the master switch state by the preset application.
[0065] In some possible embodiments, after determining the state of the main switch according to the main switch attribute, the method further includes: The third processing module 303 is specifically used for: When it is detected that the main switch is in the off state, the system module starts the intelligent device.
[0066] In some possible embodiments, after executing the configuration task corresponding to the customization requirement based on the target interface, the method further includes: The fourth processing module 304 is specifically used for: When it is detected that the configuration task is completed, the preset application sets its own state to a waiting state to avoid the configuration task from being repeatedly executed; wherein, when the preset application is in the waiting state, the preset application does not execute the configuration task.
[0067] See also Figure 4 , Figure 4 A schematic diagram of the structure of another device attribute configuration apparatus based on the Android system provided in an embodiment of the present application is shown.
[0068] like Figure 4 As shown, the Android-based smart device attribute configuration apparatus 400 may include at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0069] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.
[0070] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0071] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.
[0072] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire Android-based smart device attribute configuration device 400, and executes various functions and processes data of the Android-based smart device attribute configuration device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented by a single chip.
[0073] The memory 405 may include a RAM or a ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an Android-based smart device attribute configuration application.
[0074] Specifically, the processor 401 may be used to call the Android-based smart device attribute configuration application stored in the memory 405, and specifically perform the following operations: The configuration module adjusts the main switch attribute and the sub-switch attribute according to the customization requirements; wherein the configuration module includes a main switch attribute and at least two sub-switch attributes; The master switch attributes are read by a preset application program, and the master switch state is determined according to the master switch attributes; When it is detected that the main switch state is on, the preset application program queries all sub-switch properties and generates a corresponding request according to the query result, so as to read the configuration information corresponding to the query result in the configuration module; The preset application program calls the target interface corresponding to the configuration information in the system module, and executes the configuration task corresponding to the customization requirement based on the target interface.
[0075] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0076] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0077] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0078] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0079] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0080] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0082] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0083] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for configuring properties of an intelligent device based on an Android system, characterized in that: The method is applied to a smart device, the smart device includes a system module, a configuration module and a preset application program, and the method includes: The configuration module adjusts the main switch attribute and the sub-switch attribute according to the customization requirements; wherein the configuration module includes one main switch attribute and at least two sub-switch attributes; The preset application program reads the master switch attribute and determines the master switch state according to the master switch attribute; When it is detected that the master switch is in the on state, the preset application program queries all the sub-switch properties and generates a corresponding request according to the query result, so as to read the configuration information corresponding to the query result in the configuration module; The preset application program calls the target interface corresponding to the configuration information in the system module, and executes the configuration task corresponding to the customization requirement based on the target interface.
2. The method according to claim 1, characterized in that The configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, including: When it is identified that the customized requirement is inconsistent with the preset requirement, the configuration module adjusts the general switch attribute to the first attribute; When it is identified that the customization requirement is consistent with the preset requirement, the configuration module adjusts the master switch attribute to a second attribute; wherein the first attribute is different from the second attribute; The configuration module obtains a sub-function name corresponding to the customization requirement, and adjusts the sub-switch attribute according to the sub-function name.
3. The method according to claim 2, characterized in that The configuration module acquires the sub-function name corresponding to the customization requirement, and adjusts the sub-switch attribute according to the sub-function name, including: The configuration module obtains a sub-function name corresponding to the customization requirement, and determines a first sub-switch group and a second sub-switch group according to the sub-function name; wherein all sub-switches in the first sub-switch group have the same attributes, all sub-switches in the second sub-switch group have the same attributes, and all sub-switch attributes in the first sub-switch group are different from all sub-switch attributes in the second sub-switch group; The configuration module adjusts the attributes of all sub-switches in the first sub-switch group to a third attribute, and adjusts the attributes of all sub-switches in the second sub-switch group to a fourth attribute; wherein the third attribute is different from the fourth attribute.
4. The method according to claim 1, characterized in that The step of reading the master switch attribute by the preset application program and determining the master switch state according to the master switch attribute includes: The preset application program reads the master switch attribute; When it is identified that the master switch attribute is inconsistent with the historical attribute, the preset application uses the on state as the master switch state; wherein the historical attribute is the master switch attribute read by the preset application last time; When it is identified that the master switch attribute is consistent with the historical attribute, the preset application program uses the closed state as the master switch state.
5. The method according to claim 1, characterized in that After determining the main switch state according to the main switch attribute, the method further includes: When it is detected that the main switch is in the off state, the system module starts the smart device.
6. The method according to claim 1, characterized in that Before the configuration module adjusts the main switch attributes and the sub-switch attributes according to the customization requirements, the method further includes: The configuration module creates at least two sub-functions and sub-switch attributes corresponding to the sub-functions; At least two target interfaces corresponding to all the sub-functions are generated by the system module.
7. The method according to claim 1, characterized in that After executing the configuration task corresponding to the customization requirement based on the target interface, the method further includes: When it is detected that the configuration task is completed, the preset application sets its own state to a waiting state to avoid the configuration task from being repeatedly executed; wherein, when the preset application is in the waiting state, the preset application does not execute the configuration task.
8. An Android-based smart device attribute configuration device, characterized in that: The device is applied to a smart device, the smart device includes a system module, a configuration module and a preset application program, and the device includes: A first processing module, configured to adjust the master switch attribute and the sub-switch attribute according to the customization requirements by the configuration module; wherein the configuration module includes one master switch attribute and at least two sub-switch attributes; A second processing module, configured to read the master switch attribute by the preset application program, and determine the master switch state according to the master switch attribute; a third processing module, configured to query the attributes of all the sub-switches by the preset application program when it is detected that the master switch is in the on state, and generate a corresponding request according to the query result, so as to read the configuration information corresponding to the query result in the configuration module; The fourth processing module is used to call the target interface corresponding to the configuration information in the system module by the preset application program, and execute the configuration task corresponding to the customization requirement based on the target interface.
9. An Android-based smart device attribute configuration device, characterized in that: including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1 to 7.