CN112905285A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112905285A
CN112905285A CN202110212894.0A CN202110212894A CN112905285A CN 112905285 A CN112905285 A CN 112905285A CN 202110212894 A CN202110212894 A CN 202110212894A CN 112905285 A CN112905285 A CN 112905285A
Authority
CN
China
Prior art keywords
multimedia data
target storage
electronic device
power
storage partition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110212894.0A
Other languages
Chinese (zh)
Other versions
CN112905285B (en
Inventor
温泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110212894.0A priority Critical patent/CN112905285B/en
Publication of CN112905285A publication Critical patent/CN112905285A/en
Application granted granted Critical
Publication of CN112905285B publication Critical patent/CN112905285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data processing method, which comprises the following steps: the method comprises the steps that first electronic equipment obtains multimedia data and stores the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized; acquiring identification information during the power-on starting and/or power-off process of the first electronic equipment and before loading a power-on and power-off display object, and determining whether the power-on and power-off display object needs to be replaced by the multimedia data stored in the target storage partition based on the identification information; and if the identification information represents that the on-off display object needs to be replaced by the multimedia data, loading and displaying the multimedia data stored in the target storage area. The embodiment of the application also discloses a data processing device.

Description

Data processing method and device
Technical Field
The present application relates to, but not limited to, the field of computer technologies, and in particular, to a data processing method and apparatus.
Background
At present, when a user using an electronic device needs to replace a power on/off identifier (Logo) and/or a power on/off animation of the electronic device, the user needs to implement the method by modifying a system code and reissuing a system version. The current implementation mode is time-consuming and labor-consuming, and cannot meet the requirements of quick and personalized Logo and/or startup and shutdown animation replacement.
Disclosure of Invention
Embodiments of the present application are intended to provide a data transmission method, an electronic device, and a computer storage medium.
The technical scheme of the application is realized as follows:
in a first aspect, a data processing method is provided, which is applied to a first electronic device, and includes:
acquiring multimedia data and storing the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized;
acquiring identification information during the power-on starting and/or power-off process of the first electronic equipment and before loading a power-on and power-off display object, and determining whether the power-on and power-off display object needs to be replaced by the multimedia data stored in the target storage partition based on the identification information;
and if the identification information represents that the on-off display object needs to be replaced by the multimedia data, loading and displaying the multimedia data stored in the target storage area.
In a second aspect, a data processing method is provided, which is applied to a second electronic device, and includes:
acquiring and storing multimedia data;
sending the multimedia data to at least one first electronic device, so that the multimedia data is stored in a target storage partition by the at least one first electronic device, acquiring identification information during power-on starting and/or power-off of the at least one first electronic device and before loading a power-on and power-off display object, determining whether the power-on and power-off display needs to be correspondingly replaced by the multimedia data stored in the target storage partition based on the identification information, and loading and displaying the multimedia data stored in the target storage partition if the identification information represents that the power-on and power-off display object needs to be replaced by the multimedia data;
the target storage partition is a storage area which is initialized before the file system is initialized.
In a third aspect, a data processing apparatus is provided, which is applied to a first electronic device, and includes:
a first obtaining unit for obtaining multimedia data;
the storage processing unit is used for storing the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized;
a determining unit, configured to, during power-on startup and/or power-off of the first electronic device and before loading the on-off display object, acquire identification information, and determine whether the on-off display object needs to be replaced with the multimedia data stored in the target storage partition based on the identification information;
and the data loading unit is used for loading and displaying the multimedia data stored in the target storage area if the identification information represents that the on-off display object needs to be replaced by the multimedia data.
In a fourth aspect, a data processing apparatus is provided, which is applied in a second electronic device, and includes:
the second acquisition unit is used for acquiring and storing the multimedia data;
a transceiver unit, configured to send the multimedia data to at least one first electronic device, so that the first electronic device stores the multimedia data in a target storage partition, and in a power-on start and/or power-off process of the at least one first electronic device and before a power-on/off display object is loaded, obtain identification information, determine whether the power-on/off display needs to be replaced by the multimedia data stored in the target storage partition correspondingly based on the identification information, and if the identification information indicates that the power-on/off display object needs to be replaced by the multimedia data, load and display the multimedia data stored in the target storage partition;
the target storage partition is a storage area which is initialized before the file system is initialized.
In a fifth aspect, an embodiment of the present application further provides a first electronic device, where the first electronic device includes a first processor and a first memory storing instructions executable by the first processor;
the first processor and the first memory are connected through a first bus;
the first processor is configured to execute the steps of the data processing method according to the first aspect when the executable instructions stored in the first memory are executed.
In a sixth aspect, an embodiment of the present application further provides a second electronic device, where the second electronic device includes a second processor and a second memory storing instructions executable by the second processor;
the second processor and the second memory are connected through a second bus;
the second processor is configured to execute the steps of the data processing method according to the second aspect when the executable instructions stored in the second memory are executed.
In a seventh aspect, a computer-readable storage medium is provided, on which a program is stored, and the program, when executed by a processor, implements the steps included in the data processing method according to the first aspect or the second aspect.
In the data processing method provided by the embodiment of the application, the first electronic device can acquire multimedia data sent by the second electronic device; storing the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized; and reading and displaying the multimedia data stored in the target storage partition in the process of powering on, starting and/or powering off the first electronic device. Therefore, the first electronic device can determine whether to switch the on-off display object to the multimedia data according to the identification information before the on-off display object is loaded, and can directly read the multimedia data from the target storage partition to load the multimedia data if the on-off display object needs to be switched to the multimedia data. Therefore, the on-off display object of the electronic equipment can be switched, and convenience in switching the on-off display object is improved.
Drawings
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a first flowchart illustrating a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a data processing method according to an embodiment of the present application;
fig. 4 is a third schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 5 is a fourth schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 6 is a fifth flowchart illustrating a data processing method according to an embodiment of the present application;
fig. 7 is a first schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a hardware structure of a first electronic device according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram of a hardware structure of a second electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
It should be noted that the terms "first", "second", and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Additionally, the term "and/or," which describes an associative relationship of associated objects, means that there may be three relationships, e.g., A and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The step numbers in the present application are only for example, and may correspond to different embodiments, and the order thereof is not limited in the case of no conflict. Technical features in the examples and embodiments provided in the present application may be combined with each other without conflict.
In practical applications, a large enterprise or a manufacturer wants to use an on/off display object of an electronic device such as a computer or a mobile phone, for example, an on/off Logo, an on/off animation, etc., of the manufacturer, but cannot keep a mark related to the manufacturer.
However, the native android system of the electronic device only supports switching of wallpapers at present, and there is no corresponding switching method for the power on/off Logo and the power on/off animation. In particular, the Logo displayed when the electronic device is powered on is loaded before the file system is initialized, and therefore cannot be managed by the file system, and it is difficult to support dynamic loading. In practical application, if the boot Logo needs to be changed, only a series of processes such as revising the system code, recompiling, reissuing the system version, reentering the factory or flashing the channel dealer can be performed.
Based on this, the application provides a data processing method, a data processing device, an electronic device and a storage medium, which can dynamically switch the on/off display object of the electronic device, and improve the convenience of switching the on/off display object.
The data processing method provided by the embodiment of the present application may be applied to the system architecture 100 shown in fig. 1. As shown in fig. 1, the system architecture provided by the embodiment of the present application includes a terminal 110 and a server 120, where the terminal 110 (illustratively, the terminal 110-1 and the terminal 110-2) is connected to the server 120 through a network 130, and the network 130 may be a wide area network or a local area network, or a combination of both.
In some embodiments, the terminal 110 may be a laptop computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device), and the like. The terminal 110 may include a graphical display interface 111, and the terminal 110 may display an on/off Logo, an on/off animation, or the like on the graphical display interface 111 each time the terminal is turned on or off.
In some embodiments, the server 120 may be an independent physical server, may also be a server cluster or a distributed system formed by a plurality of physical servers, and may also be a cloud server providing basic cloud computing services such as cloud services, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware services, a domain name service, a security service, and a big data and artificial intelligence platform. The terminal 110 and the server 120 may be directly or indirectly connected through wired or wireless communication, and the embodiment of the disclosure is not limited thereto.
Next, a data processing method provided in the embodiment of the present application is described with reference to a system architecture shown in fig. 1.
An embodiment of the present application provides a data processing method, which is applied to a first electronic device. The first electronic device may be the terminal 110-1 or the terminal 110-2 shown in fig. 1. Referring to the schematic flow chart of the data processing method shown in fig. 2, the data processing method provided in the embodiment of the present application may include the following steps:
step 201, acquiring multimedia data, and storing the multimedia data in a target storage partition; the target storage partition is a storage area that has completed initialization before the file system is initialized.
Here, the multimedia data refers to image data, audio data, video data, and the like that can be an object of the on/off display of the first electronic device.
In this embodiment of the present application, the multimedia data may be uploaded by a user or sent by other electronic devices, and a source of the multimedia data is not limited in this embodiment of the present application.
Further, after the multimedia data is acquired by the first electronic device, the multimedia data may be stored in a target memory partition of the first electronic device.
Specifically, the hard disk storage space of the first electronic device may be divided into a plurality of independent areas for storing different types of files, such as an operating system, an application program, and a data file.
The target storage partition mentioned in the embodiment of the present application is a newly added partition, and is dedicated to storing the multimedia data. Here, the target storage partition may be initialized before a file system in the first electronic device is initialized. That is, the target storage partition is already available for storing and reading data before the file system initialization of the first electronic device is completed, and the file reading of the target storage partition is not affected by the file system.
Therefore, after the multimedia data is stored in the target storage partition, the first electronic device can read the stored multimedia data in the target storage partition, load the multimedia data and use the multimedia data as a startup and shutdown display object before the file system is initialized in the next startup and power-on process.
Step 202, in the process of power-on startup and/or power-off of the first electronic device and before loading the power-on and power-off display object, acquiring identification information, and determining whether the power-on and power-off display object needs to be replaced by multimedia data stored in the target storage partition based on the identification information.
Here, since the target storage partition is not affected by the file system, the target storage partition can be used for reading data after the electronic device is powered on. Thus, the target memory partition may be used for access to on/off display objects.
Specifically, before the first electronic device is powered on and starts up and loads the on/off display object, the identification information may be read first, and it is determined whether the on/off display object needs to be switched.
Here, the identification information may be stored in the above-described target storage partition. Therefore, after the first electronic device is powered on and started and before the file system is not initialized, the identification information can be directly read from the target storage partition, so that whether the switching on and off display object needs to be switched to the multimedia data stored in the target storage partition or not is judged. Therefore, the first electronic equipment immediately completes the switching of the on-off display object after being turned on.
And 203, if the identification information represents that the on-off display object needs to be replaced by the multimedia data, loading and displaying the multimedia data stored in the target storage area.
In this embodiment of the application, if the identification information indicates that the on/off display object of the first electronic device needs to be switched, the multimedia data in the target storage partition is directly read, and the multimedia data is displayed in the on/off process. And if the identification information indicates that the on-off display object of the first electronic equipment does not need to be switched, loading data corresponding to the original on-off display object.
For example, the identification information may be one-bit type data, and when the value of the identification information is 1, it may indicate that the target storage partition stores multimedia data and needs to be displayed as a power on/off display object, and when the value of the identification information is 0, it may indicate that the target storage partition does not store multimedia data, that is, it is not necessary to switch the power on/off display object.
To sum up, the data processing method provided in the embodiment of the present application may store the acquired multimedia data in the target storage partition that has been initialized before the file system is initialized; in addition, in the process of power-on starting and/or power-off of the first electronic equipment and before loading the on-off display object, acquiring identification information, and determining whether the on-off display object needs to be replaced by multimedia data stored in the target storage partition based on the identification information; and if the identification information represents that the on-off display object needs to be replaced by the multimedia data, loading and displaying the multimedia data stored in the target storage area. Therefore, the first electronic device can determine whether to switch the on-off display object to the multimedia data according to the identification information before the on-off display object is loaded, and can directly read the multimedia data from the target storage partition to load the multimedia data if the on-off display object needs to be switched to the multimedia data. Therefore, the on-off display object of the electronic equipment can be switched, and convenience in switching the on-off display object is improved.
In an embodiment of the present application, referring to the flowchart shown in fig. 3, before the step 201 acquires the multimedia data, the following steps may be further performed:
step 200, creating a target storage partition; the target storage partition is a partition without a file system;
wherein the target storage partition does not contain a file system, such that the target storage partition completes an initialization process prior to initializing the file system.
In the embodiment of the application, when the function of switching the on/off display object of the first electronic device needs to be implemented, a target storage partition not containing a file system may be created in the first electronic device. Partitions that do not contain a file system may also be referred to as bare areas.
Because the target storage partition does not contain the file system, the initialization process of the target storage partition is very quick, and the target storage partition can complete the initialization process before the file system is initialized.
Based on this, the data processing method provided by the embodiment of the present application can store multimedia data in the target storage partition. In this way, the first electronic device can read the multimedia data in the target storage partition in the early process of power-on start. Therefore, storage guarantee is provided for the switching function of the on-off display object of the first electronic equipment.
In an embodiment of the present application, the target storage partition may be structured in a customized manner. In particular, the target storage partition may be divided into an identification storage area, and a data storage area. The identification storage area is used for storing identification information, and the data storage area is used for storing multimedia data.
Correspondingly, the identification information obtained in step 202 may be implemented in the following manner:
the first electronic equipment acquires the stored identification information from the identification storage area;
in addition, the loading of the multimedia data stored in the target storage partition in step 203 can be implemented by:
the first electronic device reads and loads the multimedia data from the data storage area.
That is, each time the first electronic device is powered on, the first electronic device may first obtain the identification information from the identification storage area in the target storage partition. And according to the indication of the identification information, determining whether multimedia data needs to be read from the data storage area in the target storage partition for loading.
Specifically, if the identification information indicates that the on/off display object of the first electronic device needs to be switched, the first electronic device obtains the stored multimedia data from the data storage area in the target storage partition, and displays the multimedia data in the on/off process. And if the identification information indicates that the on-off display object of the first electronic equipment does not need to be switched, loading data corresponding to the original on-off display object.
In the embodiment of the present application, the identification information may be only one bit of data, and thus the reading is simple and fast. The first electronic device may determine whether to read the multimedia data according to the indication of the identification information. Therefore, the reading efficiency of the multimedia data can be improved.
Based on the foregoing embodiment, in an embodiment of the present application, referring to the flowchart shown in fig. 4, the step 201 of acquiring multimedia data may be implemented by:
step 2011, sending request information to the second electronic device; the request information is used to request multimedia data.
Step 2012, multimedia data fed back by the second electronic device is obtained.
In an embodiment of the present application, the second electronic device may be the server 120 in the system architecture shown in fig. 1. The first electronic device may be connected to the second electronic device through a preset network. Here, the default network may be a cellular network, a Wireless Fidelity (WiFi) network, a bluetooth network, and the like, and the type of the network is not limited in this embodiment of the application.
Specifically, the first electronic device may send request information to the second electronic device through the preset network to request the second electronic device to send multimedia data to the second electronic device. After receiving the request message, the second electronic device may also feed back the requested multimedia data to the first electronic device through the predetermined network.
In one possible implementation, the first electronic device may send request information to the second electronic device to request multimedia data according to a time period.
The second electronic device may receive the request information sent by the plurality of first electronic devices, and process the request information sent by the plurality of first electronic devices. Meanwhile, the second electronic device may also feed back the multimedia data to a plurality of first electronic devices at the same time.
Therefore, when the on-off display objects of the plurality of first electronic devices need to be switched in batch, the multimedia data only need to be uploaded to the second electronic device. After the first electronic equipment is started and networked with the second electronic equipment, the multimedia data are sent to the plurality of first electronic equipment, so that the switching of the on-off display objects of the plurality of first electronic equipment is realized. Therefore, one-button modification of the on-off display objects of the first electronic equipment can be achieved at the cloud, and convenience of the on-off display objects of the electronic equipment is improved.
In an embodiment of the present application, the acquiring of the multimedia data in step 201 and storing the multimedia data in the target storage partition may be implemented by the following steps:
step 2013, the first electronic device obtains multimedia data by using the first application;
step 2014, the first electronic device controls the first application to send multimedia data to the framework layer through the first interface in the application layer;
step 2015, the first electronic device sends the multimedia data to the kernel layer through the second interface on the framework layer;
step 2016, the first electronic device writes the multimedia data into the target storage partition through the third interface in the kernel layer.
It is understood that the first electronic device may manage multimedia data through a first application of a higher layer. For example, the first electronic device may download multimedia data from the second electronic device through the first application, or obtain multimedia data input by a user. In addition, the first electronic device may further read, by the first application, data stored in the target storage partition, delete multimedia data in the target storage partition, and the like.
Specifically, when the target storage partition is created, a plurality of interfaces may be added at the same time, and the interfaces may be connected to an application layer, a framework (frame) layer, and a kernel (kernel) layer, respectively. After the first application in the high-level application layer acquires the multimedia data, the multimedia data can be stored in the target storage partition of the hardware structure through the first interface, the second interface and the third interface. Therefore, the data processing method provided by the embodiment of the application can be automatically completed by controlling the data reading process through the high-level application.
Based on the foregoing embodiment, in an embodiment of the present application, before the first electronic device acquires the multimedia data by using the first application in step 2013, the following steps may be further performed:
acquiring an authority configuration instruction;
and responding to the authority configuration instruction, and setting the access authority of the target storage partition so that the first application has the authority of accessing the target storage partition.
In the embodiment of the application, the target storage partition is a newly added hardware storage partition. Since the target storage partition is limited by a Security-Enhanced Linux (SeLinux), the external application cannot read the newly added storage partition at will.
Based on this, after the target storage partition is created, the authority of the partition needs to be configured, so that the application responsible for reading and writing and the application responsible for Logo loading have the right to access the target storage partition.
Here, the first electronic device may obtain an authority configuration instruction input by a user, and configure the authority of the target storage partition based on the authority configuration instruction, so that the first application may read data in the target storage partition.
In summary, the data processing method provided in the embodiment of the present application can read multimedia data from the created target storage partition without the file system as the on/off display object before the file system is not loaded, so as to implement switching of the on/off display object; the convenience of switching the on-off display object is improved.
Another embodiment of the present application provides a data processing method, which can be applied to a second electronic device. The second electronic device is understood to be a management device that can modify the on/off display objects in the plurality of first electronic devices. The first electronic device may be the server 120 in the system architecture shown in fig. 1.
Referring to a schematic flow chart of a data processing method shown in fig. 5, a data processing method provided in an embodiment of the present application may include the following steps:
step 501, multimedia data is obtained and stored.
Here, the multimedia data may be image data, audio data, video data, and the like uploaded by the user. In the embodiment of the application, the second electronic device may obtain the file with the format png uploaded by the user, and convert the file with the data type png into a file with a bin or img format for storage by using a conversion tool. The file with the bin format is a binary file, and the file with the img format is stored in a two-dimensional array format, so that the file with the bin or img format can be read without decoding, and the loading speed of data is increased.
Step 502, sending multimedia data to at least one first electronic device, so that the at least one first electronic device stores the multimedia data in a target storage partition, acquiring identification information during power-on start and/or power-off of the at least one first electronic device and before loading a power-on and power-off display object, determining whether the power-on and power-off display needs to be correspondingly replaced by the multimedia data stored in the target storage partition based on the identification information, and if the identification information represents that the power-on and power-off display object needs to be replaced by the multimedia data, loading and displaying the multimedia data stored in the target storage partition;
the target storage partition is a storage area which is initialized before the file system is initialized.
In this embodiment of the application, the second electronic device may be connected to the plurality of first electronic devices through a preset network. The preset network may be a cellular network, a WiFi network, a bluetooth network, etc., and the embodiment of the present application is not limited to the type of the network.
Here, the second electronic device may transmit multimedia data to the at least one first electronic device through a preset network. After the first electronic device receives the media data, the multimedia data can be stored in the newly created target storage partition. The target storage partition may be initialized prior to file system initialization in the first electronic device. That is, the target storage partition is already available for storing and reading data before the file system initialization of the first electronic device is completed, and the file reading of the target storage partition is not affected by the file system.
Therefore, after the first electronic device is powered on and started and before the file system is not initialized, the first electronic device can directly read the identification information from the target storage partition, so as to determine whether the switching of the power-on and power-off display object to the multimedia data stored in the target storage partition is needed. Therefore, the first electronic equipment immediately completes the switching of the on-off display object after being turned on.
In the embodiments provided in the present application, the second electronic device may also send the multimedia data to a plurality of first electronic devices at the same time. When the on-off display objects of the electronic equipment need to be switched in batches, the multimedia data only need to be uploaded to the second electronic equipment. After the first electronic equipment is started and connected with the second electronic equipment, the second electronic equipment can send the multimedia data to all the first electronic equipment. Therefore, one-button modification of the on-off display objects of all the first electronic equipment can be achieved at the cloud, and convenience of the on-off display objects of the electronic equipment is improved.
In an embodiment of the present application, the second electronic device may divide the related management authority according to a user role of the first electronic device. For example, if the user role of the first electronic device is an administrator, the first electronic device may not only download the multimedia data, but also modify the multimedia data in the second electronic device. If the user role of the first electronic device is a common user, the first electronic device can only download the multimedia data stored in the second electronic device,
based on the foregoing embodiments, in the embodiments provided in this application, the sending of the multimedia data to the at least one first electronic device in step 502 may be implemented by:
step 5021, receiving request information sent by at least one first electronic device, wherein the request information is used for requesting multimedia data;
step 5022, multimedia data are sent to at least one first electronic device.
It is understood that the second electronic device may transmit the multimedia data to the first electronic device after the first electronic device requests the multimedia data.
In an embodiment of the application, the request information may include version information of multimedia data currently stored by the first electronic device.
Correspondingly, the step 5022 of sending the multimedia data to at least one first electronic device can be implemented by the following steps:
judging whether the version information sent by the target first electronic equipment is matched with the version information of the latest multimedia data; the target first electronic device is any one of at least one first electronic device;
and if the version information sent by the target first electronic equipment does not match with the latest version information of the multimedia data, sending the multimedia data to the target first electronic equipment.
In the embodiment of the application, in order to prevent the multimedia data from being repeatedly transmitted, when the first electronic device requests information from the second electronic device transmitter, the version information of the multimedia data may be carried in the request information.
After receiving the request information, the second electronic device may analyze the request information to obtain version information of the multimedia data in the first electronic device that sent the request information, so as to determine whether the multimedia data stored in the first electronic device is the latest.
Further, if the multimedia data in the first electronic device is determined to be the latest, the second electronic device does not send the multimedia data to the first electronic device any more. And if the multimedia data in the first electronic equipment is judged not to be latest, the latest multimedia data is sent to the first electronic equipment. Therefore, the repeated transmission of the multimedia data can be prevented, and the network resources are saved.
An embodiment of the present application provides a data processing method, and referring to the flowchart shown in fig. 6, the data processing method may include the following steps:
step 610, the first electronic device creates a target storage partition.
In the embodiment of the application, the target storage partition is a partition without a file system.
Step 620, the first electronic device sends request information to the second electronic device; the request information is used to request multimedia data.
Step 630, the second electronic device sends the multimedia data to the first electronic device.
And step 640, the first electronic device receives the multimedia data and stores the multimedia data in the target storage partition.
Step 650, during the power-on start and/or power-off process of the first electronic device, and before loading the power-on and power-off display object, acquiring the identification information, and determining whether the power-on and power-off display object needs to be replaced by the multimedia data stored in the target storage partition based on the identification information.
And 660, if the identification information represents that the on-off display object needs to be replaced by the multimedia data, the first electronic equipment loads and displays the multimedia data stored in the target storage area.
Therefore, when the on-off display objects of the plurality of first electronic devices need to be switched in batch, the multimedia data only need to be uploaded to the second electronic device. After the first electronic equipment is started and networked with the second electronic equipment, the multimedia data are sent to the plurality of first electronic equipment, so that the switching of the on-off display objects of the plurality of first electronic equipment is realized. Therefore, one-click modification of the startup and shutdown display objects of the first electronic devices can be achieved at the cloud, convenience of the startup and shutdown display objects of the electronic devices is improved, and the versions of the release system do not need to be compiled again.
Based on the foregoing embodiments, an embodiment of the present application further provides a data processing apparatus, which can be applied to the first electronic device in the foregoing embodiments. Referring to fig. 7, the data processing apparatus may include:
a first acquiring unit 71 for acquiring multimedia data;
a storage processing unit 72 for storing the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized;
a determining unit 73, configured to, during a power-on start-up and/or power-off process of the first electronic device and before a power-on/off display object is loaded, acquire identification information, and determine whether the power-on/off display object needs to be replaced with the multimedia data stored in the target storage partition based on the identification information;
and a data loading unit 74, configured to load and display the multimedia data stored in the target storage partition if the identification information indicates that the on/off display object needs to be replaced by the multimedia data.
In some embodiments of the present application, the data processing apparatus may further include a creating unit;
the creating unit is used for creating the target storage partition; the target storage partition is a partition without a file system; wherein the target storage partition does not contain a file system, such that the target storage partition completes an initialization process prior to initializing the file system.
In some embodiments of the present application, the target storage partition comprises an identification storage area, and a data storage area; the identification storage area is used for storing the identification information, and the data storage area is used for storing the multimedia data;
a determination unit 73 for acquiring the stored identification information from the identification storage area;
a data loading unit 74, configured to read and load the multimedia data from the data storage area.
In some embodiments of the present application, the first obtaining unit 71 is specifically configured to send request information to the second electronic device; the request information is used for requesting the multimedia data; and acquiring the multimedia data fed back by the second electronic equipment.
In some embodiments of the present application, the first obtaining unit 71 is further configured to obtain the multimedia data by using a first application;
a storage processing unit 72, configured to control, at an application layer, the first application to send the multimedia data to a framework layer through a first interface; at the framework layer, the multimedia data is sent to a kernel layer through a second interface; and at the kernel layer, writing the multimedia data into the target storage partition through a third interface.
In some embodiments of the present application, the first obtaining unit 71 is further configured to obtain an authority configuration instruction;
the data processing apparatus further comprises a configuration unit;
the configuration unit is configured to respond to the permission configuration instruction, and set the access permission of the target storage partition, so that the first application has the permission to access the target storage partition.
Based on the foregoing embodiment, another embodiment of the present application further provides a data processing apparatus, which can be applied to the second electronic device in the foregoing embodiment. As shown in fig. 8, the data processing apparatus may include:
a second obtaining unit 81 for obtaining and storing multimedia data;
a transceiver 82, configured to send the multimedia data to at least one first electronic device, so that the first electronic device stores the multimedia data in a target storage partition, and in a power-on start and/or power-off process of the at least one first electronic device and before a power-on/off display object is loaded, obtain identification information, determine whether the power-on/off display needs to be replaced by the multimedia data stored in the target storage partition correspondingly based on the identification information, and if the identification information indicates that the power-on/off display object needs to be replaced by the multimedia data, load and display the multimedia data stored in the target storage partition;
the target storage partition is a storage area which is initialized before the file system is initialized.
In some embodiments of the present application, the transceiver 82 is further configured to receive request information sent by the at least one first electronic device, where the request information is used to request the multimedia data; and transmitting the multimedia data to the at least one first electronic device.
It should be noted that each functional unit in this embodiment may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and not sold or used as an independent product, may be stored in a computer readable storage medium, and based on such understanding, a part of the technical solution of the present embodiment that essentially contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, which includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Based on the foregoing embodiments, in another embodiment of the present application, there is provided a first electronic device, as shown in fig. 9, the first electronic device provided in this embodiment of the present application may include a first processor 901, and a first memory 902 storing instructions executable by the first processor 901;
the first processor 901 and the first memory 902 are connected by a first bus 903;
the first processor 901, when executing the computer program stored in the first memory 902, may execute the following instructions:
acquiring multimedia data and storing the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized;
acquiring identification information during the power-on starting and/or power-off process of the first electronic equipment and before loading a power-on and power-off display object, and determining whether the power-on and power-off display object needs to be replaced by the multimedia data stored in the target storage partition based on the identification information;
and if the identification information represents that the on-off display object needs to be replaced by the multimedia data, loading and displaying the multimedia data stored in the target storage area.
Based on the foregoing embodiments, in another embodiment of the present application, there is provided a second electronic device, as shown in fig. 10, the second electronic device provided in this embodiment of the present application may include a second processor 1001, and a second memory 1002 storing instructions executable by the second processor 1001;
the second processor 1001 and the second memory 1002 are connected by a second bus 1003;
the second processor 1001, when executing the computer program stored in the second memory 1002, may execute the following instructions:
acquiring and storing multimedia data;
sending the multimedia data to at least one first electronic device, so that the multimedia data is stored in a target storage partition by the at least one first electronic device, acquiring identification information during power-on starting and/or power-off of the at least one first electronic device and before loading a power-on and power-off display object, determining whether the power-on and power-off display needs to be correspondingly replaced by the multimedia data stored in the target storage partition based on the identification information, and loading and displaying the multimedia data stored in the target storage partition if the identification information represents that the power-on and power-off display object needs to be replaced by the multimedia data;
the target storage partition is a storage area which is initialized before the file system is initialized.
In an embodiment provided in the present Application, the first Processor 901 and the second Processor 1001 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), and a controller. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular.
In practical applications, the first memory 902 and the second memory 1002 may be volatile memories (RAMs); or a non-volatile memory (non-volatile memory) such as a ROM, a flash memory (flash memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the first processor 901 or the second processor 1002.
The embodiment of the application also provides a computer storage medium, in particular a computer readable storage medium. The data processing device comprises a data processing device and a processor, wherein the data processing device is used for processing data, and the processor is used for processing the data.
The computer-readable storage medium may be a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM), among other memories.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (10)

1. A data processing method is applied to a first electronic device, and the method comprises the following steps:
acquiring multimedia data and storing the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized;
acquiring identification information during the power-on starting and/or power-off process of the first electronic equipment and before loading a power-on and power-off display object, and determining whether the power-on and power-off display object needs to be replaced by the multimedia data stored in the target storage partition based on the identification information;
and if the identification information represents that the on-off display object needs to be replaced by the multimedia data, loading and displaying the multimedia data stored in the target storage area.
2. The method of claim 1, wherein before the obtaining the multimedia data, further comprising:
creating the target storage partition; the target storage partition is a partition without a file system;
wherein the target storage partition does not contain a file system, such that the target storage partition completes an initialization process prior to initializing the file system.
3. The method of claim 1, wherein the target storage partition comprises an identification storage area, and a data storage area; the identification storage area is used for storing the identification information, and the data storage area is used for storing the multimedia data;
the acquiring the identification information includes:
acquiring the stored identification information from the identification storage area;
correspondingly, the loading the multimedia data stored in the target storage area includes:
and reading and loading the multimedia data from the data storage area.
4. The method of claim 1, wherein the obtaining multimedia data comprises:
sending request information to the second electronic equipment; the request information is used for requesting the multimedia data;
and acquiring the multimedia data fed back by the second electronic equipment.
5. The method of any one of claims 1-4, wherein obtaining multimedia data and storing the multimedia data in a target storage partition comprises:
acquiring the multimedia data by utilizing a first application;
the first electronic equipment is arranged at an application layer and controls the first application to send the multimedia data to a framework layer through a first interface;
the first electronic equipment sends the multimedia data to a kernel layer through a second interface on the framework layer;
and the first electronic equipment writes the multimedia data into the target storage partition through a third interface at a kernel layer.
6. The method of claim 5, wherein before the obtaining the multimedia data, further comprising:
acquiring an authority configuration instruction;
and responding to the authority configuration instruction, and setting the access authority of the target storage partition so that the first application has the authority of accessing the target storage partition.
7. A data processing method, applied to a second electronic device, the method comprising:
acquiring and storing multimedia data;
sending the multimedia data to at least one first electronic device, so that the multimedia data is stored in a target storage partition by the at least one first electronic device, acquiring identification information during power-on starting and/or power-off of the at least one first electronic device and before loading a power-on and power-off display object, determining whether the power-on and power-off display needs to be correspondingly replaced by the multimedia data stored in the target storage partition based on the identification information, and loading and displaying the multimedia data stored in the target storage partition if the identification information represents that the power-on and power-off display object needs to be replaced by the multimedia data;
the target storage partition is a storage area which is initialized before the file system is initialized.
8. The method of claim 7, wherein the sending the multimedia data to at least one first electronic device comprises:
receiving request information sent by the at least one first electronic device, wherein the request information is used for requesting the multimedia data;
and sending the multimedia data to the at least one first electronic device.
9. A data processing apparatus, for use in a first electronic device, the apparatus comprising:
a first obtaining unit for obtaining multimedia data;
the storage processing unit is used for storing the multimedia data in a target storage partition; the target storage partition is a storage area which is initialized before the file system is initialized;
a determining unit, configured to, during power-on startup and/or power-off of the first electronic device and before loading the on-off display object, acquire identification information, and determine whether the on-off display object needs to be replaced with the multimedia data stored in the target storage partition based on the identification information;
and the data loading unit is used for loading and displaying the multimedia data stored in the target storage area if the identification information represents that the on-off display object needs to be replaced by the multimedia data.
10. A data processing apparatus, for use in a second electronic device, the apparatus comprising:
the second acquisition unit is used for acquiring and storing the multimedia data;
a transceiver unit, configured to send the multimedia data to at least one first electronic device, so that the first electronic device stores the multimedia data in a target storage partition, and in a power-on start and/or power-off process of the at least one first electronic device and before a power-on/off display object is loaded, obtain identification information, determine whether the power-on/off display needs to be replaced by the multimedia data stored in the target storage partition correspondingly based on the identification information, and if the identification information indicates that the power-on/off display object needs to be replaced by the multimedia data, load and display the multimedia data stored in the target storage partition;
the target storage partition is a storage area which is initialized before the file system is initialized.
CN202110212894.0A 2021-02-25 2021-02-25 Data processing method and device Active CN112905285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110212894.0A CN112905285B (en) 2021-02-25 2021-02-25 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110212894.0A CN112905285B (en) 2021-02-25 2021-02-25 Data processing method and device

Publications (2)

Publication Number Publication Date
CN112905285A true CN112905285A (en) 2021-06-04
CN112905285B CN112905285B (en) 2023-05-02

Family

ID=76107185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110212894.0A Active CN112905285B (en) 2021-02-25 2021-02-25 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112905285B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19520811A1 (en) * 1994-06-20 1995-12-21 Sweda Ltd Changeable liquid crystal display for watch faces or similar
CN101137144A (en) * 2006-08-31 2008-03-05 中国电信股份有限公司 Method for automatic updating open-closedown picture of wireless communication terminal
CN102202196A (en) * 2011-05-31 2011-09-28 深圳Tcl新技术有限公司 Method and terminal for dynamically switching start-up LOGO picture
CN102340694A (en) * 2011-10-27 2012-02-01 Tcl集团股份有限公司 Intelligent television and advertisement implementing method and system for intelligent televisions
CN104636167A (en) * 2015-02-06 2015-05-20 南京守护宝信息技术有限公司 Method and equipment for customizing power-on and power-off animations

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19520811A1 (en) * 1994-06-20 1995-12-21 Sweda Ltd Changeable liquid crystal display for watch faces or similar
CN101137144A (en) * 2006-08-31 2008-03-05 中国电信股份有限公司 Method for automatic updating open-closedown picture of wireless communication terminal
CN102202196A (en) * 2011-05-31 2011-09-28 深圳Tcl新技术有限公司 Method and terminal for dynamically switching start-up LOGO picture
CN102340694A (en) * 2011-10-27 2012-02-01 Tcl集团股份有限公司 Intelligent television and advertisement implementing method and system for intelligent televisions
CN104636167A (en) * 2015-02-06 2015-05-20 南京守护宝信息技术有限公司 Method and equipment for customizing power-on and power-off animations

Also Published As

Publication number Publication date
CN112905285B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN106598655B (en) Application page processing method and device
CN109840096B (en) Installation method and device of operating system
US9766944B2 (en) Dynamic partition dual boot mobile phone device
CN104252370A (en) Information processing apparatus and method for controlling the same
US20220100490A1 (en) Firmware updating method, and electronic apparatus and storage media for same
EP3399408A1 (en) Information processing apparatus and computer readable storage medium
WO2018157716A1 (en) Smart card
CN103716358A (en) Customized application program downloading method and apparatus
US9020562B2 (en) Methods and apparatus for device applet management on smart cards
KR102516583B1 (en) Electronic device and method for controling update thereof
CN103902238A (en) Information processing apparatus, setting information management method and recording medium
JP2021002793A (en) Communication system and communication method
CN112905285B (en) Data processing method and device
CN105468391A (en) APP icon replacement method and device and mobile terminal
CN112395096A (en) Remote function call processing method and device, electronic equipment and storage medium
CN113064655B (en) BIOS network starting method and device and computer readable storage medium
CN116737243A (en) Screen parameter patch upgrading method and terminal equipment
WO2016206437A1 (en) Rom package generation method and device
CN111638896B (en) Upgrade method, upgrade device, storage medium, processor and mobile terminal
US20220291918A1 (en) Patch release method, server, and terminal device
JP2003044307A (en) Radio communication equipment, method for rewriting its boot program, and program
CN110968383B (en) Message frame display method and device, terminal and storage medium
US20210049025A1 (en) Electronic apparatus and object sharing method thereof
CN111142955B (en) Information processing method and device
CN108664259B (en) Method and terminal for installing application

Legal Events

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