Virtual attribute information generation method and device, electronic device and storage medium
By constructing the system attribute key containing the user identification in the bionic layer and operating it in the corresponding memory area, the problem of the Android system being unable to distinguish and manage user-specific system attributes in a multi-user environment is solved, and user-specific system attribute configuration and privacy protection are realized. .
Patent Information
- Application Number
- CN202410985361.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-23
AI Technical Summary
In a multi-user environment, the Android system cannot effectively distinguish and manage user-specific system attributes, resulting in users' needs for personalized settings and privacy protection not being fully met.
In the bionic layer, the original key of the system attribute is constructed to obtain the constructed key containing the user ID, and the attribute value of the system attribute is modified or added in the corresponding memory area, thereby ensuring that the system attribute data of different users are isolated from each other and achieving user-specific System property configuration.
It realizes the differentiation and management of user-specific system attributes in a multi-user environment, meets the needs of personalized settings and privacy protection, and ensures the isolation and independence of system attribute configurations of different users.
Smart Images

Figure CN118519726B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud applications, and in particular to a method and device for generating virtual attribute information, an electronic device and a storage medium. Background Art
[0002] Currently, the Android operating system has introduced a multi-user function, which allows multiple user accounts to be created on the same device. Each account has independent applications, data and personalized settings. This function improves the flexibility of device use and privacy protection. Currently, multiple application openings, extended control, and elderly mode are all achieved through secondary development based on this technology.
[0003] However, although each user has independent application and data space, they still share the same set of configurations at the system property level stored in the system property service. Especially in multi-user scenarios, users hope to be able to customize system properties according to their needs, such as independent device information, operating status, network settings, etc.
[0004] Therefore, how to develop a technology that can distinguish and manage user-specific system attributes in a multi-user environment has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of the technical problems existing in the prior art, the embodiments of the present application provide a method and device for generating virtual attribute information, an electronic device and a storage medium.
[0006] In a first aspect, an embodiment of the present application provides a method for generating virtual attribute information, including:
[0007] When modifying or adding a system property, the original key of the system property is constructed in the bionic layer to obtain a constructed key, wherein the system property is a system property managed by the system property service, and the constructed key includes a user identifier;
[0008] A memory area corresponding to the construction key is determined, and an attribute value of the system attribute is modified or added in the memory area.
[0009] In a second aspect, the embodiment of the present application further provides a virtual attribute information generating device, including:
[0010] A construction unit, used for constructing an original key of the system property in the bionic layer to obtain a construction key when modifying or adding a system property, wherein the system property is a system property managed by a system property service, and the construction key includes a user identifier;
[0011] The determination unit is used to determine the memory area corresponding to the construction key, and to modify or add the attribute value of the system attribute in the memory area.
[0012] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the virtual attribute information generation method described in the first aspect are executed.
[0013] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the virtual attribute information generation method as described in the first aspect.
[0014] In summary, the virtual attribute information generation method and device, electronic device and storage medium provided in the embodiments of the present application, because when modifying or adding system attributes managed by the system attribute service, the original key of the system attribute is constructed in the bionic layer to obtain a construction key containing a user identifier, and the memory area corresponding to the construction key is determined, and the attribute value of the system attribute is modified or added in the memory area. Obviously, the entire solution no longer operates on the global original key, but on the construction key corresponding to the user, thereby ensuring that the system attribute data of different users are isolated from each other, and realizing the system attribute configuration of different users, that is, it is possible to distinguish and manage user-specific system attributes in a multi-user environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of an embodiment of a method for generating virtual attribute information provided in an embodiment of the present application;
[0016] Figure 2 A schematic diagram of the structure of an embodiment of a virtual attribute information generating device provided in an embodiment of the present application;
[0017] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0019] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0020] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0021] The system property service is a low-level system service initialized by the init process. It can conveniently and efficiently store and query various system property information for system processes and application processes. These property information are usually used to control various behaviors and settings of the system, such as network configuration, display settings, permission control, system status, etc. Usually, using the interface provided by the system, system processes and application processes can store system properties in the form of key-value pairs in the shared memory where the system property service stores system properties. At the same time, system processes and application processes can also query the key-value pairs stored in the shared memory through the interface provided by the system to obtain the specific value corresponding to a certain key. However, there is only one copy of the system property service, which is global for all users, and all users share the same system property configuration. Android multi-user function, technically, is achieved by introducing the concept of multi-user in the Android framework service layer, maintaining different application lists, storage data, system settings, etc. for different users. However, some system states and configurations (such as whether the phone is unlocked, the phone model, the phone manufacturer, the baseband version, etc.) are not stored through the above content, but through the more basic system property services. Since multiple users share the same set of system property services, the multi-user function of the current Android system has limitations in system property management. Although this design simplifies system management, it also results in users' needs for personalized settings and privacy protection not being fully met. Especially in enterprise environments or home shared devices, different users may need different system property configurations to suit their respective work or life habits.
[0022] To solve the problem that the Android system cannot distinguish and manage user-specific system properties in a multi-user environment, refer to Figure 1 As shown, an embodiment of the present application provides a flow chart of a method for generating virtual attribute information, the method for generating virtual attribute information comprising:
[0023] S10. When modifying or adding a system property, constructing an original key of the system property in the bionic layer to obtain a constructed key, wherein the system property is a system property managed by a system property service, and the constructed key includes a user identifier;
[0024] It should be noted that in the Android system, there are four ways to set system properties: (1) setprop program; (2) java layer SystemProperties.set method; (3) ndk (native layer development toolkit provided by Android to developers) __system_property_set function; (4) native layer calls property_set function. These methods will eventually call the bionic layer __system_property_set function and notify the system property service through IPC (inter-process communication). After the system property service determines the storage address of the property to be modified or added, it searches for the shared memory storing the system properties through the SystemProperties::Find function and updates the data in this memory.
[0025] Because the underlying implementation of the Android system property service is sufficiently efficient and stable, this solution uses the underlying function of the Android system to store system properties, and constructs different keys for the system properties of different users in a multi-user environment in the bionic layer, so as to store the system properties of different users in different memory areas. The constructed key obtained by constructing the original key of the system property includes a user ID. Specifically, during construction, content including the user ID can be added to the original key (in addition to the user ID, the content can also include other content), such as adding a prefix to the original key (the prefix includes the user ID). It should be noted that the user ID is the user ID of the current user. Since there is a corresponding relationship between the process ID and the user ID, the user ID can be determined based on the corresponding relationship and the ID of the current process.
[0026] S11. Determine a memory area corresponding to the construction key, and modify or add an attribute value of a system attribute in the memory area.
[0027] In this embodiment, it should be noted that when the system or application modifies or adds a system property, the system property service is called to execute steps S10 and S11. When determining the memory area corresponding to the construction key, if the construction key has a corresponding memory area, the system property service will locate the memory area, otherwise, the memory area will be applied for the construction key. Afterwards, the value of the system property to be modified or added is written to the memory area corresponding to the construction key. For example, if the application wants to modify the value of the system property app1.example1 to 1, the system property service will calculate the user ID of the current user through the ID of the current process in the bionic layer. Assuming that the calculated user ID is u10, the key app1.example1 will be reconstructed to obtain the construction key mu.u10.app1.example1, determine the memory area corresponding to mu.u10.app1.example1, and write 1 to the memory area.
[0028] The virtual attribute information generation method provided in the embodiment of the present application, since when modifying or adding the system attribute managed by the system attribute service, the original key of the system attribute is constructed in the bionic layer to obtain the constructed key containing the user identifier, and the memory area corresponding to the constructed key is determined, and the attribute value of the system attribute is modified or added in the memory area. Obviously, the entire scheme no longer operates on the global original key, but on the constructed key corresponding to the user, thereby ensuring that the system attribute data of different users are isolated from each other, realizing the system attribute configuration of different users, that is, being able to distinguish and manage user-specific system attributes in a multi-user environment.
[0029] Based on the foregoing method embodiment, the method may further include:
[0030] When obtaining system properties, if obtained through the SystemProperties::Find function, the original key of the system property is constructed to obtain the constructed key. If the property value is stored in the memory area corresponding to the constructed key, the original key and the property value are obtained and returned. Otherwise, the original key and the property value corresponding to the original key are obtained and returned.
[0031] It should be noted that in the Android system, the system or application has the following four ways to obtain system properties: (1) getprop program; (2) java layer SystemProperties.get method; (3) ndk's __system_property_find and __system_property_get methods; (4) native layer calls property_get function. For the acquisition of a single property, the above four methods will eventually call the system or application's own bionic layer SystemProperties::Find function to find the memory area where the property is stored, and then read the property value through SystemProperties::Read or SystemProperties::ReadCallback function.
[0032] In this embodiment, similar to the setting and storage of system properties in the previous embodiment, in a multi-user environment, the system or application will reconstruct the original key of the system property in its own bionic layer to obtain a construction key, and then find the memory area corresponding to the construction key through the SystemProperties::Find function and read the value of the memory area through the SystemProperties::Read or SystemProperties::ReadCallback function. If the property value is finally read from the memory area corresponding to the construction key, the original key and the property value are returned. Otherwise, it means that the current user has not set his independent system property and needs to obtain the property again with the original key, then the original key and the property value corresponding to the original key are obtained and returned. For example, if the application tries to obtain the value of the system property app2.example2, the application will reconstruct the key app2.example2 in the bionic layer of the application, such as constructing app2.example2 into mu.u20.app2.example2, and then use the SystemProperties::Find function to find the memory area corresponding to mu.u20.app2.example2. If it is found, the SystemProperties::Read or SystemProperties::ReadCallback function will read the value of the memory area and return it. Otherwise, app2.example2 and its corresponding property value will be obtained and returned.
[0033] Based on the foregoing method embodiment, the method may further include:
[0034] When obtaining system properties, if the SystemProperties::Foreach function is used to obtain system properties, if the key currently traversed by the SystemProperties::Foreach function does not contain the agreed content, the key currently traversed is constructed to obtain the constructed key. If the constructed key exists in the memory area, the key currently traversed and the property value corresponding to the constructed key are obtained and returned. Otherwise, the key currently traversed and the property value corresponding to the key currently traversed are obtained and returned; or
[0035] When obtaining system properties, if obtained through the SystemProperties::Foreach function, if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is the same as the user ID of the current user, then the property value corresponding to the key currently traversed is obtained, and the original key corresponding to the key currently traversed and the property value corresponding to the key currently traversed are returned; or if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is not the same as the user ID of the current user, then the return of the property value corresponding to the key currently traversed is skipped.
[0036] It should be noted that in addition to the above method of obtaining properties by searching the property value memory through the SystemProperties::Find function, you can also use the SystemProperties::Foreach function to traverse all property storage areas and read each property value. In this way, there are two situations:
[0037] (1) When the currently traversed key does not contain the agreed content, the system or application will first calculate the user ID of the current user based on the ID of the current process at the bionic layer, and use the user ID to construct a constructed key. For example, the original key app3.example3 (i.e. the currently traversed key) is constructed as the constructed key mu.u30.app3.example3 (where u30 is the user ID and mu is an additional prefix that can be set as needed). Then, it will check whether the constructed key mu.u30.app3.example3 exists. If it exists, it means that the current user has independently set the attribute app3.example3. In this case, the return of the attribute value of app3.example3 is skipped directly, and the attribute values corresponding to the original key app3.example3 and the constructed key mu.u30.app3.example3 are returned; if it does not exist, the original key app3.example3 and its corresponding attribute value are returned.
[0038] (2) When the currently traversed key contains the agreed content, the system or application will first calculate the user ID of the current user based on the ID of the current process, and then compare whether the user ID in the currently traversed key is the same as the user ID of the current user. If they are the same, the attribute value corresponding to the currently traversed key is obtained, and the original key corresponding to the currently traversed key and the attribute value corresponding to the currently traversed key are returned, for example, the attribute value of the original key app4.example4 and the currently traversed key mu.u40.app4.example4 are returned; if they are not the same, the return of the attribute value corresponding to the currently traversed key is directly skipped.
[0039] It should be noted that the agreed content is the additional content of the constructed key compared to the original key, including the user ID. For example, the constructed key is obtained by adding the characters mu and the user ID as a prefix to the original key, in the form of mu.uXX.original key. If the currently traversed key starts with the content in the form of mu.uXX as a prefix, it is determined that the currently traversed key contains the specified content. Otherwise, it is determined that the currently traversed key does not contain the specified content.
[0040] So far, the present invention has realized the function of storing and obtaining system properties in a multi-user scenario.
[0041] Based on the foregoing method embodiment, the method may further include:
[0042] Determine the target user and write the attribute value of the system attribute into the attribute persistence file of the target user.
[0043] It should be noted that in actual application scenarios, each user among multiple users may involve their independent applications, data and even system properties. In order to meet the independence of each user account and facilitate the migration of user accounts, it is necessary to persist the system properties in the above-mentioned multi-user environment. In order to persist the system properties personalized by each user, the embodiment of the present invention saves a persistence file of system properties for each user, which is stored in the form of key-value pairs. Specifically, whenever a user's system property is added or modified in the bionic layer, the user to whom the system property belongs can be determined based on the user identifier in the key (i.e., construction key) of the system property, and the corresponding property value is written into the property persistence file of the corresponding user, wherein the system property values corresponding to the original key and the construction key are stored in the property persistence file. Through the file persistence mechanism, the user's system property configuration can be persistently stored on the device, thereby ensuring the persistence and stability of the system properties.
[0044] Based on the foregoing method embodiment, the method may further include:
[0045] When importing the target user's attribute persistence file in a multi-user scenario, the attribute persistence file is traversed and each key-value pair is loaded into the underlying storage of the system attribute service using the setprop method.
[0046] In this embodiment, a property persistence file can be imported by implementing a system service interface, and the key of each key-value pair therein is constructed through the setprop method and added to the memory area corresponding to the constructed key. That is, the memory area stores the system property values corresponding to the constructed key and the original key.
[0047] So far, the function of users importing historical attribute persistence files has been realized, and the persistent file can continuously record the latest changes during the operation of the system.
[0048] Reference Figure 2 FIG. 1 is a schematic diagram of a structure of a virtual attribute information generating device provided in an embodiment of the present application, the device comprising:
[0049] A construction unit 20, configured to construct an original key of the system property in the bionic layer to obtain a construction key when modifying or adding a system property, wherein the system property is a system property managed by a system property service, and the construction key includes a user identifier;
[0050] The determining unit 21 is used to determine the memory area corresponding to the construction key, and to modify or add the attribute value of the system attribute in the memory area.
[0051] The virtual attribute information generating device provided in the embodiment of the present application, because when modifying or adding the system attribute managed by the system attribute service, the original key of the system attribute is constructed in the bionic layer to obtain the constructed key containing the user identifier, and the memory area corresponding to the constructed key is determined, and the attribute value of the system attribute is modified or added in the memory area. Obviously, the whole scheme no longer operates on the global original key, but on the constructed key corresponding to the user, thereby ensuring that the system attribute data of different users are isolated from each other, realizing the system attribute configuration of different users, that is, being able to distinguish and manage user-specific system attributes in a multi-user environment.
[0052] Based on the above device embodiment, the device may further include:
[0053] The first return unit is used to construct the original key of the system property to obtain the constructed key when obtaining the system property through the SystemProperties::Find function. If the property value is stored in the memory area corresponding to the constructed key, the original key and the property value are obtained and returned; otherwise, the original key and the property value corresponding to the original key are obtained and returned.
[0054] Based on the above device embodiment, the device may further include:
[0055] The second return unit is used for:
[0056] When obtaining system properties through the SystemProperties::Foreach function, if the key currently traversed by the SystemProperties::Foreach function does not contain the agreed content, the key currently traversed is constructed to obtain the constructed key. If the constructed key exists in the memory area, the return of the property value corresponding to the original key is skipped. Otherwise, the key currently traversed and the property value corresponding to the key currently traversed are obtained and returned; or
[0057] When obtaining system properties, if obtained through the SystemProperties::Foreach function, if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is the same as the user ID of the current user, then the property value corresponding to the key currently traversed is obtained, and the original key corresponding to the key currently traversed and the property value corresponding to the key currently traversed are returned; or if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is not the same as the user ID of the current user, then the return of the property value corresponding to the key currently traversed is skipped.
[0058] The implementation process of the virtual attribute information generating device provided in the embodiment of the present application is consistent with the virtual attribute information generating method provided in the embodiment of the present application, and the effect that can be achieved is also the same as the virtual attribute information generating method provided in the embodiment of the present application, which will not be repeated here.
[0059] like Figure 3 As shown, an electronic device provided by an embodiment of the present application includes: a processor 30, a memory 31 and a bus 32, wherein the memory 31 stores machine-readable instructions executable by the processor 30, and when the electronic device is running, the processor 30 communicates with the memory 31 through the bus 32, and the processor 30 executes the machine-readable instructions to perform the steps of the virtual attribute information generation method as described above.
[0060] Specifically, the above-mentioned memory 31 and processor 30 can be general-purpose memories and processors, which are not specifically limited here. When the processor 30 runs the computer program stored in the memory 31, the above-mentioned virtual attribute information generation method can be executed.
[0061] Corresponding to the above-mentioned virtual attribute information generation method, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned virtual attribute information generation method are executed.
[0062] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for generating virtual attribute information, characterized in that: include: When modifying or adding a system property, the original key of the system property is constructed in the bionic layer to obtain a constructed key, wherein the system property is a system property managed by the system property service, and the constructed key includes a user identifier; Determine a memory area corresponding to the construction key, and modify or add an attribute value of the system attribute in the memory area; when determining the memory area corresponding to the construction key, if the construction key has a corresponding memory area, the system attribute service will locate the memory area, otherwise, apply for a memory area for the construction key; Also includes: If the property value is finally read from the memory area corresponding to the construction key, the original key and the property value are returned. Otherwise, it means that the current user has not set his independent system property and needs to obtain the property again with the original key. In this case, the original key and the property value corresponding to the original key are obtained and returned.
2. The method according to claim 1, characterized in that When obtaining system properties, if obtained through the SystemProperties::Find function, the original key of the system property is constructed to obtain the constructed key. If the property value is stored in the memory area corresponding to the constructed key, the original key and the property value are obtained and returned. Otherwise, the original key and the property value corresponding to the original key are obtained and returned.
3. The method according to claim 1, characterized in that Also includes: When obtaining system properties, if the SystemProperties::Foreach function is used to obtain system properties, if the key currently traversed by the SystemProperties::Foreach function does not contain the agreed content, the key currently traversed is constructed to obtain the constructed key. If the constructed key exists in the memory area, the key currently traversed and the property value corresponding to the constructed key are obtained and returned. Otherwise, the key currently traversed and the property value corresponding to the key currently traversed are obtained and returned; or When obtaining system properties, if obtained through the SystemProperties::Foreach function, if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is the same as the user ID of the current user, then the property value corresponding to the key currently traversed is obtained, and the original key corresponding to the key currently traversed and the property value corresponding to the key currently traversed are returned; or if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is not the same as the user ID of the current user, then the return of the property value corresponding to the key currently traversed is skipped.
4. The method according to any one of claims 1 to 3, characterized in that Also includes: Determine the target user and write the attribute value of the system attribute into the attribute persistence file of the target user.
5. The method according to claim 4, characterized in that Also includes: When importing the target user's attribute persistence file in a multi-user scenario, the attribute persistence file is traversed and each key-value pair is loaded into the underlying storage of the system attribute service using the setprop method.
6. A virtual attribute information generating device, characterized in that: include: A construction unit, used for constructing an original key of the system property in the bionic layer to obtain a construction key when modifying or adding a system property, wherein the system property is a system property managed by a system property service, and the construction key includes a user identifier; A determination unit, used to determine a memory area corresponding to a construction key, and to modify or add an attribute value of a system attribute in the memory area; when determining the memory area corresponding to the construction key, if a corresponding memory area exists for the construction key, the system attribute service will locate the memory area, otherwise, a memory area will be applied for the construction key; Also includes: The first return unit is used to return the original key and the attribute value if the attribute value is finally read from the memory area corresponding to the construction key. Otherwise, it means that the current user has not set his independent system attribute and needs to obtain the attribute again with the original key. In this case, the original key and the attribute value corresponding to the original key are obtained and returned.
7. The device according to claim 6, characterized in that The first return unit is used to construct the original key of the system property to obtain the constructed key when obtaining the system property through the SystemProperties::Find function. If the property value is stored in the memory area corresponding to the constructed key, the original key and the property value are obtained and returned; otherwise, the original key and the property value corresponding to the original key are obtained and returned.
8. The device according to claim 6, characterized in that Also includes: The second return unit is used for: When obtaining system properties, if the SystemProperties::Foreach function is used to obtain system properties, if the key currently traversed by the SystemProperties::Foreach function does not contain the agreed content, the key currently traversed is constructed to obtain the constructed key. If the constructed key exists in the memory area, the key currently traversed and the property value corresponding to the constructed key are obtained and returned. Otherwise, the key currently traversed and the property value corresponding to the key currently traversed are obtained and returned; or When obtaining system properties, if obtained through the SystemProperties::Foreach function, if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is the same as the user ID of the current user, then the property value corresponding to the key currently traversed is obtained, and the original key corresponding to the key currently traversed and the property value corresponding to the key currently traversed are returned; or if the key currently traversed by the SystemProperties::Foreach function contains the agreed content and the user ID in the key currently traversed is not the same as the user ID of the current user, then the return of the property value corresponding to the key currently traversed is skipped.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for generating virtual attribute information according to any one of claims 1 to 5 are executed.
10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the virtual attribute information generation method as described in any one of claims 1 to 5.
