[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108279855B - Method for reading and writing storage device - Google Patents

Method for reading and writing storage device Download PDF

Info

Publication number
CN108279855B
CN108279855B CN201810174675.6A CN201810174675A CN108279855B CN 108279855 B CN108279855 B CN 108279855B CN 201810174675 A CN201810174675 A CN 201810174675A CN 108279855 B CN108279855 B CN 108279855B
Authority
CN
China
Prior art keywords
background service
service program
operation instruction
storage device
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810174675.6A
Other languages
Chinese (zh)
Other versions
CN108279855A (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201810174675.6A priority Critical patent/CN108279855B/en
Publication of CN108279855A publication Critical patent/CN108279855A/en
Application granted granted Critical
Publication of CN108279855B publication Critical patent/CN108279855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method and a device for reading and writing a storage device, relates to the technical field of electronics, and aims to solve the problem that the storage device cannot be read and written due to insufficient authority of an application program in the prior art. The method comprises the following steps: acquiring an operation instruction triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device; sending an operation instruction to a background service program so that the background service program performs read/write operation on the storage device according to the operation instruction; receiving an operation result which is sent by a background service program and corresponds to the operation instruction; and sending the operation result to the application program. The invention can be used for reading and writing the storage device.

Description

Method for reading and writing storage device
The present application is a divisional application of the chinese patent application 201510097761.8 entitled "a method and apparatus for reading and writing a storage device" filed on 03/05/2015.
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for reading and writing a storage device.
Background
The Android system is an operating system based on a Linux kernel, and is mainly applied to mobile equipment such as mobile phones, tablet computers and the like. The Android system is a multi-process system, application programs (Android Package, referred to as apk) in the Android system run in own processes, and the security between the Android system and the apk is forcibly realized at a process level through a Linux tool.
The central idea of the existing Android security architecture is as follows: under the default condition, the highest authority of the apk is the system (system) authority, and under the authority, the apk cannot execute any operation which brings negative influence on other apks, Android systems or users. Such as reading and writing private data (contact data or email data) of a user in the storage device, reading and writing another apk, establishing a network connection, and keeping the device in a non-sleep state, etc.
However, when the apk cannot read data in the storage device, some unnecessary troubles are brought. For example, if the live stream in the live process is encrypted data, the apk needs to decrypt the data first and then complete normal playing in the process of playing the data. However, the decrypted data is stored in a storage device (such as a flash memory), and if the apk wants to play the data normally, it needs to be able to read and write the decrypted data on the flash memory. In the prior art, the highest authority of the apk is a system authority, and under the authority, the apk cannot directly call a flash drive interface at the bottom layer to read decrypted data in the flash, so that live stream data cannot be decrypted, and the live stream cannot be normally played.
Disclosure of Invention
The embodiment of the invention provides a method and a device for reading and writing a storage device, which are used for solving the problem that the storage device cannot be read and written due to insufficient authority of an application program in the prior art.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for reading and writing a storage device, where the method includes:
acquiring an operation instruction triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device;
sending the operation instruction to the background service program, so that the background service program performs read/write operation on the storage device according to the operation instruction;
receiving an operation result which is sent by the background service program and corresponds to the operation instruction;
and returning the operation result to the application program.
In a second aspect, an embodiment of the present invention provides a method for reading and writing a storage device, where the method includes:
receiving an operation instruction triggered by an application program and sent by a client, wherein the operation instruction is used for instructing a background service program to read/write the storage device;
according to the operation instruction, performing data reading/writing operation on the storage device to obtain an operation result corresponding to the operation instruction;
and sending the operation result to the client.
In a third aspect, an embodiment of the present invention provides a client, where the client includes: the device comprises an acquisition module, a sending module and a receiving module;
the acquisition module is used for acquiring an operation instruction triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device;
the sending module is configured to send the operation instruction to the background service program, so that the background service program performs read/write operation on the storage device according to the operation instruction;
and the receiving module is used for receiving an operation result which is sent by the background service program and corresponds to the operation instruction.
In a fourth aspect, an embodiment of the present invention provides a backend server, where the backend server includes: the device comprises a receiving module, a processing module and a sending module;
the receiving module is used for receiving an operation instruction which is sent by a client and is triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device;
the processing module is used for performing data reading/writing operation on the storage device according to the operation instruction to obtain an operation result corresponding to the operation instruction;
and the sending module is used for sending the operation result to the client.
The embodiment of the invention provides a method for reading and writing a storage device, which comprises the following steps: acquiring an operation instruction triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device; sending the operation instruction to the background service program, so that the background service program performs read/write operation on the storage device according to the operation instruction; receiving an operation result which is sent by the background service program and corresponds to the operation instruction; and sending the operation result to an application program. Specifically, after acquiring an operation instruction triggered by an application program, a client sends the operation instruction to a background service program, and after receiving the operation instruction, the background service program performs read/write operation on a storage device according to an instruction in the operation instruction and returns an operation result corresponding to the operation instruction to the client, so that the client can acquire the operation result. By the method provided by the embodiment of the invention, the application program can access the storage device through interactive operation between the client and the background service program, and the background service program returns the accessed data to the application program, thereby indirectly realizing the access of the application program to the storage device. Therefore, the problem that the storage device cannot be read and written due to insufficient application program authority in the prior art can be solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for reading and writing a storage device according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for reading from and writing to a memory device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a client according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another client according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a background server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for reading and writing a storage device, as shown in fig. 1, the method includes:
step 101, obtaining an operation instruction sent by an application program.
The operation instruction is used for instructing the background service program to read/write the storage device.
Specifically, an execution main body of the method for reading and writing the storage device according to the embodiment of the present invention is a Client (Client), and the Client generally operates on a user terminal device. The client and the background service program form the system structure of the software system. The Client end corresponds to the background service program and provides a program of local service for the Client.
Optionally, the Client may obtain an operation instruction triggered by the application program through a JAVA Native Interface (JNI for short).
It should be noted that although the application program cannot directly communicate with the backend service program, the Client can communicate with the backend service program, and in the embodiment of the present application, by integrating the Client into the apk, the apk can communicate with the backend service program by using the interface provided by the Client module.
And 102, sending an operation instruction to the background service program so that the background service program performs read/write operation on the storage device according to the operation instruction.
The authority of the background service program for reading/writing the storage device can be set when the background service program is initialized.
For example, for an android system, the permission may be a root permission that is higher than a system permission.
Specifically, the authority of the background service program to access the storage device may be obtained by the following method: and executing the Linux initialization script and starting the init process.
The init process creates a background service program defined in the Linux initialization script, so that the background service program has the right of reading/writing operation on the storage device after being started.
For example, the daemon service may be defined in the Linux initialization script file int.rc, so that after the daemon service created in the initialization script is executed, the daemon service has root authority, so that the daemon service can access the storage device.
The data Transmission and reception between the background service program and the Client can be realized through socket connection, Hypertext transfer Protocol (HTTP) connection, Transmission Control Protocol (TCP) connection or the like, and the connection method is not limited. Preferably, the embodiment of the present invention uses a connection-oriented socket connection.
It should be noted that the socket is a basic operation unit supporting Transmission Control Protocol/Internet Protocol (TCP/IP Protocol for short) network communication. Multiple TCP connections or multiple application processes may need to transmit data through the same TCP protocol port. To distinguish between different application processes and connections, many computer operating systems provide an interface called socket for application interaction with the TCP/IP protocol to enable concurrent services of data transfer. The socket connection can be divided into connection-oriented socket and connectionless-oriented socket, and the difference is that the connection-oriented socket needs to initiate a connection establishment request first, when a background service program monitors the socket connection establishment request sent by the Client, the background service program responds to the request initiated by the Client, a thread is newly established, a confirmation message is returned to the Client to confirm the establishment of the connection, and data sent by the Client is processed through the newly established thread.
In the following, taking a socket as an example, which is connection-oriented, between the Client and the backend service program, a detailed description is given to the establishment process of the communication link between the Client and the backend service program.
Specifically, after the Client and the background service program are respectively started and initialized, the background service program first calls a socket function to create a socket, and the socket is used for completing monitoring of communication. The Client end creates a socket by calling a socket function and sets an IP address and a port of a background service program; and then, the Client terminal initiates a connection establishment request to the set port by calling the connect function, and the background service program calls the accept function to receive the connection establishment request sent by the Client terminal, so as to complete socket connection between the Client terminal and the set port. After the link is established, the Client terminal can read or write data into the socket by calling a read or write function; similarly, the background service program can also read the data sent by the Client terminal by calling the read function and send the data to the Client terminal by calling the write function. After the communication is complete, the socket connection can be closed by calling a close function.
And 103, receiving an operation result which is sent by the background service program and corresponds to the operation instruction.
And step 104, sending the operation result to the application program.
Specifically, after the Client sends the operation instruction to the background service program, the background service program performs corresponding operation on the storage device according to the instruction in the operation instruction, returns the operation result to the Client, and sends the operation result to the application program. If the operation instruction is used for indicating to read the storage device, the operation instruction comprises a reading identifier and an identifier of data to be read; and if the operation instruction is used for indicating the write operation of the storage equipment, the operation instruction comprises a write identifier and data to be written.
For example, taking an application program as a live broadcast service apk as an example, the read-write method in steps 101 to 103 is described in detail.
Specifically, if the live broadcast service apk wants to acquire decrypted data of an encrypted live broadcast stream, the apk needs to establish a communication link with a background service program through an interface provided by the Client. In an actual implementation process, the function call can be completed. Assuming that the live broadcast service apk calls a function getrivatedata of the Client, after the function is called, the Client establishes a communication link with the background service program, for example, a socket connection is established by calling a socket function, and after the connection is established, the Client sends the getrivatedata to the background service program according to a specific format. By way of example, the particular format may be: "Head: GetPrivatetData; tail, finish, wherein, Head and Tail are identification character strings, after receiving the data, the background service program firstly analyzes the data, if the content of Tail is equal to 'finish', the background service program considers that the instruction accords with a specific format, then obtains the content in Head, calls related functions (mainly calling functions for reading data in the storage device) in the background service program according to the content in Head, and returns the data returned by the called functions to the live broadcast service apk through an interface established with the Client terminal.
The embodiment of the invention provides a method for reading and writing a storage device, which comprises the following steps: acquiring an operation instruction triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device; sending an operation instruction to a background service program so that the background service program performs read/write operation on the storage device according to the operation instruction; receiving an operation result which is sent by a background service program and corresponds to the operation instruction; and sending the operation result to the application program. Specifically, after acquiring an operation instruction triggered by an application program, a client sends the operation instruction to a background service program, and after receiving the operation instruction, the background service program performs read/write operation on the storage device according to an instruction in the operation instruction and returns an operation result corresponding to the operation instruction to the client, so that the client can acquire the operation result. By the method provided by the embodiment of the invention, the application program can access the storage device through interactive operation between the client and the background service program, and the background service program returns the accessed data to the application program, thereby indirectly realizing the access of the application program to the storage device. Therefore, the problem that the storage device cannot be read and written due to insufficient application program authority in the prior art can be solved.
An embodiment of the present invention provides another method for reading and writing a storage device, as shown in fig. 2, where the method includes:
step 201, receiving an operation instruction triggered by an application program and sent by a client.
The operation instruction is used for instructing the background service program to read/write the storage device.
It should be noted that the execution main body of the method for reading and writing the storage device in the embodiment of the present invention is a background service program. And the background service program has the authority to access the storage device when the background service program is initialized, so that the background service program can be ensured to have the authority to read/write and other operations on the storage device after receiving the operation instruction.
Specifically, the authority of the background service program to access the storage device may be obtained by the following method: and executing the Linux initialization script and starting the init process.
The init process creates a background service program defined in the Linux initialization script, so that the background service program has the right of reading/writing operation on the storage device after being started.
Step 202, according to the operation instruction, performing data reading/writing operation on the storage device to obtain an operation result.
Specifically, in the android system, if the background service program has root authority and the storage device is a flash memory (flash), the background service program calls a bottom-layer flash drive interface according to an instruction in the operation instruction to perform read/write operation on the flash.
And step 203, sending the operation result to the client.
For example, for step 201 to step 203, if the live broadcast service apk wants to acquire decrypted data in the flash, the operation instruction received by the background service program is: "Head: GetPrivatetData; tail, finish ", the background service program reads the decryption data in the flash by calling the bottom layer flash drive interface, and the operation result is: "Head: GetPrivatetData; content: 0123456789; tail, finish' is sent to the Client terminal. After receiving the operation result sent by the background service program, the Client end can directly return the operation result to the live broadcast service apk, or can analyze the operation result, for example, first analyze the identification character string Tail, if the Content of the Tail is equal to 'finish', then analyze the Content of the Head, if the Content of the Head is the same as the Content of the Head in the operation instruction sent by the Client end, namely, both the Content of the Head and the Content of the Head are 'GetPrivatedData', then the Client end analyzes the Content '0123456789' in the Content, and the Content '0123456789' in the Content is the decrypted data which is obtained by the live broadcast service apk calling the 'GetPrivatedData' function. The operation result obtained by the Client end comprises decryption data required by the live broadcast service apk, and the Client end sends the decryption data to the live broadcast service apk, so that the live broadcast service apk can decrypt the encrypted live broadcast stream through the obtained decryption data to finish normal playing of the encrypted live broadcast stream.
Further illustratively, for step 201 to step 203, if the live broadcast service apk acquires that the server has new encrypted data, the original encrypted data in the flash needs to be updated. At this time, the live broadcast service apk calls an UpdataPrivatedData function to establish connection between the Client terminal and the background service program, and after the connection is established, the background service program receives an operation instruction: "Head: UpdatePravatedData; content: 888888888, respectively; tail: finish ", the background service program first parses the identification string: and Tail, if the Content of the Tail is equal to 'Finish', acquiring the Content in the Head, analyzing that the Content of the Head is equal to 'UpdatePrivateData', then analyzing the Content in the Content, and writing the data '888888888' in the Content into the flash by calling a bottom-layer flash drive interface.
It should be noted that "GetPrivateData" means to read decrypted data in the flash, and "UpdatePrivateData" means to update the decrypted data in the flash, that is, to rewrite the updated decrypted data into the flash. The "GetPrivateData" and "UpdatePrivateData" are only for exemplary purposes to illustrate the method of reading and writing the memory device described in the embodiment of the present invention, and the present invention does not limit the specific operation of the memory device.
Taking the operation of the apk on the flash as reading the decrypted data "0123456789" in the flash, taking the connection established between the Client and the background service program as a connection-oriented socket connection as an example, the process of the apk reading the flash is described in detail, and specifically includes the following steps:
step 1, apk calls a GetPrivatedDate function and calls a Client terminal.
And 2, the Client side initiates a socket connection establishment request to the background service program by calling a socket function.
And 3, the background service program responds to the connection after monitoring the connection establishment request sent by the Client terminal by calling a list function, and establishes a thread to receive the data sent by the Client terminal.
And 4, the Client sends a format of 'Head' to the background service program according to the GetPrivatedDate function: GetPrivateDate; tail: data of the finish ".
And 5, receiving and analyzing the data by the background service program, and analyzing the content in the Head if the content in the Tail is equal to 'finish'.
And 6, calling a bottom layer flash drive interface by the background service program according to the data analysis result 'GetPrivatedDate', and reading the decrypted data stored in the flash.
And 7, sending the format to the client by the background service program as follows: "Head: GetPrivateDate; content: 0123456789; tail: data of the finish ".
And 8, after receiving the data sent by the background service program, the Client end sequentially analyzes the contents in the Tail, the Head and the Content respectively, and finally obtains the decrypted data '0123456789' contained in the Content.
And 9, returning the decrypted data '0123456789' in the Content obtained by the parsing to the apk by the Client terminal.
And step 10, acquiring the decrypted data '0123456789' on the flash by the apk.
It should be noted that, when the background service program is initialized, it needs to be initialized with root authority, so that the underlying flash drive interface can be called. Through the steps 1 to 10, although the live broadcast service apk has insufficient authority and cannot directly read the decrypted data stored in the flash, the aim of indirectly reading the decrypted data from the flash is fulfilled by calling the Client terminal and the background service program, and finally normal playing of the live broadcast stream is finished.
The embodiment of the invention provides a method for reading and writing a storage device, which comprises the following steps: acquiring an operation instruction triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device; sending an operation instruction to a background service program so that the background service program performs read/write operation on the storage device according to the operation instruction; receiving an operation result which is sent by a background service program and corresponds to the operation instruction; and sending the operation result to the application program. Specifically, after acquiring an operation instruction triggered by an application program, a client sends the operation instruction to a background service program, and after receiving the operation instruction, the background service program performs read/write operation on the storage device according to an instruction in the operation instruction and returns an operation result corresponding to the operation instruction to the client, so that the client can acquire the operation result. By the method provided by the embodiment of the invention, the application program can access the storage device through interactive operation between the client and the background service program, and the background service program returns the accessed data to the application program, thereby indirectly realizing the access of the application program to the storage device. Therefore, the problem that the storage device cannot be read and written due to insufficient application program authority in the prior art can be solved.
An embodiment of the present invention provides a client 30, as shown in fig. 3, where the client 30 includes: an acquisition module 301, a sending module 302 and a receiving module 303.
An obtaining module 301, configured to obtain an operation instruction triggered by an application program, where the operation instruction is used to instruct a background service program to perform a read/write operation on a storage device.
A sending module 302, configured to send an operation instruction to the background service program, so that the background service program performs a read/write operation on the storage device according to the operation instruction.
The receiving module 303 is configured to receive an operation result corresponding to the operation instruction sent by the background service program.
The sending module 302 is further configured to send the operation result to the application program.
Optionally, as shown in fig. 4, the client 30 further includes: a processing module 304.
The processing module 304 is configured to execute a Linux initialization script and start an init process; the init process creates a background service program defined in the Linux initialization script, so that the background service program has the right of reading/writing operation on the storage device after being started.
An embodiment of the present invention provides a client, where the client includes: the device comprises an acquisition module, a sending module and a receiving module. Specifically, after the obtaining module obtains an operation instruction triggered by the application program, the sending module sends the operation instruction to the background service program, and after the background service program receives the operation instruction, the background service program performs read/write operation on the storage device according to an instruction in the operation instruction, and returns an operation result corresponding to the operation instruction to the client, so that the client can obtain the operation result. The client provided by the embodiment of the invention indirectly realizes the access to the storage device by means of the communication with the background service program. Therefore, the problem that the storage device cannot be read and written due to insufficient application program authority in the prior art can be solved.
An embodiment of the present invention provides a background server 40, and as shown in fig. 5, the background server 40 includes: a receiving module 401, a processing module 402, and a sending module 403.
The receiving module 401 is configured to receive an operation instruction triggered by an application program and sent by a client, where the operation instruction is used to instruct a background service program to perform read/write operation on a storage device.
The processing module 402 is configured to perform data reading/writing operation on the storage device according to the operation instruction, and obtain an operation result corresponding to the operation instruction.
A sending module 403, configured to send the operation result to the client.
Optionally, as shown in fig. 5, the processing module 402 is further configured to execute a Linux initialization script and start an init process; the init process creates a background service program defined in the Linux initialization script, so that the background service program has the right of reading/writing operation on the storage device after being started.
The embodiment of the invention provides a background server, which comprises: the device comprises a receiving module, a processing module and a sending module. Specifically, the receiving module instructs the processing module to perform read/write operation on the storage device by receiving an operation instruction triggered by the application program and sent by the client, so that the background service program can acquire required data from the storage device, or write some data into the storage device, and then the sending module sends an operation result to the client, so that the application program can indirectly access the storage device. Therefore, the problem that the storage device cannot be read and written due to insufficient application program authority in the prior art can be solved.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. 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.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (4)

1. A method of reading from and writing to a storage device, the method comprising:
acquiring an operation instruction triggered by an application program, wherein the operation instruction is used for indicating a background service program to read/write the storage device; when the background service program is initialized, the init process creates the background service program defined in the Linux initialization script file int.rc, so that the background service program has a root authority higher than a system authority;
the application program is a live broadcast service apk, the application program integrates a client end, and the application program establishes a communication link with the background service program by calling a function of the client end;
sending the operation instruction to the background service program, so that the background service program performs read/write operation on the storage device according to the operation instruction;
receiving an operation result which is sent by the background service program and corresponds to the operation instruction, wherein the operation result comprises decrypted live streaming data;
and sending the operation result to the application program.
2. The method of claim 1,
if the operation instruction is used for indicating to read the storage device, the operation instruction comprises a reading identifier and an identifier of data to be read;
and if the operation instruction is used for indicating the writing operation of the storage equipment, the operation instruction comprises a writing identifier and data to be written.
3. The method according to claim 1, wherein the permission that the background service program has read/write operations on the storage device is set when the background service program is initialized, and specifically includes:
executing a Linux initialization script and starting an init process;
and the init process creates the background service program defined in the Linux initialization script, so that the background service program has the right of reading/writing operation on the storage device after being started.
4. The method of claim 1, wherein obtaining the operation instruction triggered by the application program comprises:
and acquiring the operation instruction through a JAVA local interface.
CN201810174675.6A 2015-03-05 2015-03-05 Method for reading and writing storage device Active CN108279855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810174675.6A CN108279855B (en) 2015-03-05 2015-03-05 Method for reading and writing storage device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510097761.8A CN104714760B (en) 2015-03-05 2015-03-05 A kind of method and device for reading and writing storage device
CN201810174675.6A CN108279855B (en) 2015-03-05 2015-03-05 Method for reading and writing storage device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510097761.8A Division CN104714760B (en) 2015-03-05 2015-03-05 A kind of method and device for reading and writing storage device

Publications (2)

Publication Number Publication Date
CN108279855A CN108279855A (en) 2018-07-13
CN108279855B true CN108279855B (en) 2021-07-06

Family

ID=53414145

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810174675.6A Active CN108279855B (en) 2015-03-05 2015-03-05 Method for reading and writing storage device
CN201510097761.8A Active CN104714760B (en) 2015-03-05 2015-03-05 A kind of method and device for reading and writing storage device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510097761.8A Active CN104714760B (en) 2015-03-05 2015-03-05 A kind of method and device for reading and writing storage device

Country Status (1)

Country Link
CN (2) CN108279855B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027487B (en) * 2016-04-28 2019-07-23 广州广电运通金融电子股份有限公司 A kind of access management method and system of hardware device
CN110191465A (en) * 2019-06-03 2019-08-30 努比亚技术有限公司 Authority control method, mobile terminal and computer readable storage medium
CN113312324A (en) * 2021-07-29 2021-08-27 深圳市永达电子信息股份有限公司 File operation synchronization method and equipment based on redirection and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365685A (en) * 2013-06-03 2013-10-23 深圳创维无线技术有限公司 Super authority method and super authority device based on android
CN103530534A (en) * 2013-09-23 2014-01-22 北京理工大学 Android program ROOT authorization method based on signature verification
CN103544096A (en) * 2013-10-21 2014-01-29 Tcl集团股份有限公司 Method and system for feeding back information in case of operational failure of Android terminal
CN104063303A (en) * 2014-06-30 2014-09-24 上海斐讯数据通信技术有限公司 Method for acquiring and freeing root permissions
CN104199711A (en) * 2014-09-29 2014-12-10 北京奇虎科技有限公司 Method and device for creating root access

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6615293B1 (en) * 1998-07-01 2003-09-02 Sony Corporation Method and system for providing an exact image transfer and a root panel list within the panel subunit graphical user interface mechanism
CN1322421C (en) * 1999-08-18 2007-06-20 西门子公司 Agent system for mobile agents, computer network and method for downloading agent system from host computer to client computer of computer network
US8244829B2 (en) * 2009-03-25 2012-08-14 Panasonic Corporation Data transmitting apparatus, data receiving apparatus, data transmitting method and data receiving method
CN102567720A (en) * 2011-12-26 2012-07-11 广州市千钧网络科技有限公司 Face identification method and face identification device for Flash online video
CN102981835B (en) * 2012-11-02 2015-06-10 福州博远无线网络科技有限公司 Android application program permanent Root permission acquiring method
CN103970601B (en) * 2013-02-06 2019-03-05 北京壹人壹本信息科技有限公司 Execute operational order method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365685A (en) * 2013-06-03 2013-10-23 深圳创维无线技术有限公司 Super authority method and super authority device based on android
CN103530534A (en) * 2013-09-23 2014-01-22 北京理工大学 Android program ROOT authorization method based on signature verification
CN103544096A (en) * 2013-10-21 2014-01-29 Tcl集团股份有限公司 Method and system for feeding back information in case of operational failure of Android terminal
CN104063303A (en) * 2014-06-30 2014-09-24 上海斐讯数据通信技术有限公司 Method for acquiring and freeing root permissions
CN104199711A (en) * 2014-09-29 2014-12-10 北京奇虎科技有限公司 Method and device for creating root access

Also Published As

Publication number Publication date
CN108279855A (en) 2018-07-13
CN104714760B (en) 2018-05-15
CN104714760A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
US11909820B2 (en) Method and apparatus for execution of applications in a cloud system
CN108536524B (en) Resource updating method, device, terminal and storage medium
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
EP3046331B1 (en) Media control method and system based on cloud desktop
WO2017054454A1 (en) Method, device, terminal, server, and system for accessing usb device
EA006814B1 (en) System and method for use of multiple applications
US9838460B2 (en) Tool for sharing applications across client devices
JP2015524967A (en) Method, apparatus, and system for sharing software between terminals
US10681094B2 (en) Control system, communication control method, and program product
CN111880865A (en) Multimedia data pushing method and device, electronic equipment and storage medium
CN112104623A (en) Cloud application login method and device, cloud equipment, client and system
CN109933960B (en) Service calling control method, service calling method, device and terminal
CN110784414B (en) Data interaction method, device, electronic equipment and storage medium
CN112291364A (en) Message pushing processing method and device
CN108279855B (en) Method for reading and writing storage device
EP3174265B1 (en) Management system, communication control method, and communication system
CN113038192A (en) Video processing method and device, electronic equipment and storage medium
CN104104676B (en) A kind of audio and video playing method and apparatus
US10911557B2 (en) Miracast source providing network service access for a miracast sink
CN109388917B (en) Hardware equipment authentication method, device, equipment and storage medium
CN110933014A (en) Cloud service access method, device and computer-readable storage medium
CN113452948A (en) Conference terminal control method, conference terminal control device, conference terminal equipment and storage medium
US20240357003A1 (en) Public Cloud System and Related Method Thereof
US10409773B2 (en) Method and device for cleaning up terminal resource and terminal
CN113949684B (en) Video transmission method, device, medium and computing equipment

Legal Events

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