[go: up one dir, main page]

CN108279855A - A method of read-write storage device - Google Patents

A method of read-write storage device Download PDF

Info

Publication number
CN108279855A
CN108279855A CN201810174675.6A CN201810174675A CN108279855A CN 108279855 A CN108279855 A CN 108279855A CN 201810174675 A CN201810174675 A CN 201810174675A CN 108279855 A CN108279855 A CN 108279855A
Authority
CN
China
Prior art keywords
operational order
background service
storage device
service program
read
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
CN201810174675.6A
Other languages
Chinese (zh)
Other versions
CN108279855B (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

Landscapes

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

Abstract

An embodiment of the present invention provides a kind of method and devices of read-write storage device, are related to electronic technology field, to solve the problem of in the prior art since application program insufficient permission can not be written and read storage device.This method includes:The operational order by application triggers is obtained, operational order is used to indicate background service program and is read out/write operation to storage device;It sends operational order and gives background service program, so that background service program is read out/write operation according to operational order to storage device;Receive the operating result corresponding with operational order that background service program is sent;Operating result is sent to application program.The present invention can be used for reading and writing storage device.

Description

A method of read-write storage device
The application is entitled " a kind of method and device of read-write storage device " proposed on 03 05th, 2015 Chinese invention patent application 201510097761.8 divisional application.
Technical field
The present invention relates to electronic technology field more particularly to a kind of method and devices of read-write storage device.
Background technology
Android system is a kind of operating system based on linux kernel, is mainly used in mobile device, and such as mobile phone is put down Plate computer etc..Android system is a multiprocess system, application program in android system (Android Package, Abbreviation apk) all run in the process of oneself, and the safety between android system and apk is the tool by Linux Realization is forced in process-level.
The central idea of existing Android security architectures is:In default situations, highest weight is limited to system to apk (system) permission, under the permission, apk cannot execute it is any other apk, android system or user are brought it is negative The operation that face is rung.For example the private data (contact data or email data) of the user in read-write storage device, read-write are another One apk establishes network connection, and equipment is kept to be in non-sleep state etc..
But when apk cannot read the data in storage device, some unnecessary troubles can be brought.If for example, straight Live TV stream during broadcasting is encryption data, then apk needs first to solve the data during playing the data It is close, it then could complete normal play.But the data of decryption are stored in storage device (such as flash memory (flash)), apk is such as Fruit desired normal play data, it is necessary to the ciphertext data on flash can be read and write.And in the prior art, the highest weight of apk System permissions are limited to, under the permission, apk can not directly invoke the decryption number in the flash driving interfaces reading flash of bottom According to, to cannot to live streaming flow data be decrypted, cause live TV stream can not normal play.
Invention content
The embodiment of the present invention provide it is a kind of read-write storage device method and device, to solve in the prior art due to Application program insufficient permission, the problem of can not being written and read to storage device.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, an embodiment of the present invention provides a kind of method of read-write storage device, this method includes:
The operational order by application triggers is obtained, the operational order is used to indicate background service program and is set to storage It is standby to be read out/write operation;
The operational order is sent to the background service program, so that the background service program is according to the operation Instruction is read out/write operation to the storage device;
Receive the operating result corresponding with the operational order that the background service program is sent;
The operating result is returned into the application program.
Second aspect, an embodiment of the present invention provides a kind of method of read-write storage device, this method includes:
The operational order by application triggers that client is sent is received, the operational order is used to indicate background service Program is read out/write operation to storage device;
According to the operational order, digital independent/write operation is carried out to the storage device, obtains referring to the operation Enable corresponding operating result;
The operating result is sent to the client.
The third aspect, an embodiment of the present invention provides a kind of client, the client includes:Acquisition module sends mould Block, receiving module;
The acquisition module, for obtaining the operational order by application triggers, after the operational order is used to indicate Platform service routine is read out/write operation to storage device;
The sending module, for sending the operational order to the background service program, so that the backstage takes Business program is read out/write operation according to the operational order to the storage device;
The receiving module, the operation corresponding with the operational order sent for receiving the background service program As a result.
Fourth aspect, an embodiment of the present invention provides a kind of background server, the background server includes:Receive mould Block, processing module, sending module;
The receiving module, the operational order by application triggers for receiving client transmission, the operation refer to Order is used to indicate background service program and is read out/write operation to storage device;
The processing module, for according to the operational order, carrying out digital independent/write-in to the storage device and grasping Make, obtains operating result corresponding with the operational order;
The sending module, for sending the operating result to the client.
An embodiment of the present invention provides a kind of method of read-write storage device, this method includes:Acquisition is touched by application program The operational order of hair, the operational order are used to indicate background service program and are read out/write operation to storage device;It sends The operational order gives the background service program, so that the background service program is deposited according to the operational order to described Storage equipment is read out/write operation;Receive the operation corresponding with the operational order that the background service program is sent As a result;The operating result is sent to application program.Specifically, after the operational order of client acquisition application triggers, The operational order is sent to background service program, after background service program receives operational order, according in operational order Instruction ,/write operation is read out to storage device, and operating result corresponding with the operational order is returned into client End, enables the client to obtain the operating result.The method provided through the embodiment of the present invention, application program can pass through client Operation is interacted between end and background service program, is accessed to storage device by background service program, and by access Data return to application program, realize access of the application program to storage device indirectly.Thus, it is possible to overcome in the prior art Due to application program insufficient permission, the problem of can not being written and read to storage device.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the present invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of method flow diagram of read-write storage device provided in an embodiment of the present invention;
Fig. 2 is another method flow diagram for reading and writing storage device provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of client provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of another client provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of background server provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a kind of methods of read-write storage device, as shown in Figure 1, this method includes:
The operational order that step 101, acquisition are sent by application program.
Wherein, operational order is used to indicate background service program and is read out/write operation to storage device.
Specifically, the executive agent of the method for the read-write storage device of the embodiment of the present invention is held for client (Client), visitor Family end generally operates on subscriber terminal equipment.Client together forms the system frame of software systems with background service program Structure.The ends Client are corresponding with background service program, and the program of local service is provided for client.
Optionally, the ends Client can be obtained by JAVA local interfaces (Java Native Interface, abbreviation JNI) Take the operational order by application triggers.
It should be noted that although application program cannot be communicated directly with background service program, the ends Client It can be communicated with background service program, the embodiment of the present application can be such that apk borrows by the way that the ends Client to be integrated in apk The interface that Client modules provide for it is helped to be communicated with background service program.
Step 102, send operational order give background service program so that background service program according to operational order to depositing Storage equipment is read out/write operation.
Wherein, what background service program had be read out storage device/and the permission of write operation can take on backstage It is configured when program initialization of being engaged in.
Exemplary, for Android system, which can be above the root authority of system permissions.
Specifically, the permission to access to storage device that background service program has, can obtain in the following manner It arrives:Linux initializtion scripts are executed, init processes are started.
Wherein, init processes create the background service program defined in Linux initializtion scripts, make background service Program has after starting is read out storage device/the permission of write operation.
It is exemplary, background service program defined in Linux initializtion script files inti.rc, in this way, holding After the background service program created in the row initializtion script, which just has root authority, enables Realize the access to storage device.
And data are transmitted and received between backstage service routine and Client can be connected by socket (socket), is super literary This transportation protocol (Hypertext transfer protocol, abbreviation HTTP) connects or transmission control protocol The modes such as (Transmission Control Protocol, abbreviation TCP) connection realize the present invention is for using which kind of connection Mode does not limit.Preferably, used in the embodiment of the present invention is connection-oriented socket connection.
It should be noted that socket is to support transmission control protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, abbreviation ICP/IP protocol) network communication basic operation unit.It is multiple TCP connection or multiple program process may be needed through the same Transmission Control Protocol port transmission data.It is different in order to distinguish Program process and connection, many computer operating systems interacted with ICP/IP protocol for application program provide it is entitled The interface of socket, to realize the concurrent services of data transmission.And socket connections can be divided into it is connection-oriented and towards without even The socket connect, the difference is that, connection-oriented socket needs first to initiate the connection foundation request, when background service program When listening to the socket connections foundation request of Client transmissions, the request that response Client is initiated creates a thread and returns Confirmation message is returned to the ends Client to confirm that connection is established, and the data sent by the newly-built ends thread process Client.
In the following, for being connection-oriented socket between the ends Client and background service program, between the two The process of establishing of communication link is described in detail.
Specifically, after the ends Client and background service program are respectively started and initialize, background service program is first called Socket functions create a socket, and the socket is used in combination to complete the monitoring of communication.The ends Client are by calling socket One socket of function creation sets IP address and the port of background service program;Then, the ends Client pass through calling Connect functions initiate the connection foundation request to the setting port, and background service routine call accept functions receive Client Request is established in the connection that end is sent, and completes socket connection between the two.After the completion of link establishment, the ends Client can pass through Call read or write functions that data are read or be written into socket;Equally, background service program can also pass through calling Read functions read the data that the ends Client send over, by calling write functions to give the ends Client transmission data.It is communicating It after the completion, can be by calling close functions to close the socket connections.
Step 103 receives the operating result corresponding with operational order that background service program is sent.
Operating result is sent to application program by step 104.
Specifically, after operational order is sent to background service program by the ends Client, background service program can be according to operation Instruction in instruction operates storage device accordingly, and operating result is returned to the ends Client, will by the ends Client The operating result is sent to application program.Wherein, storage device is read if operational order is used to indicate, is operated Instruction includes reading the mark of mark and data to be read;If operational order is used to indicate carries out write-in behaviour to storage device Make, then operational order includes write-in mark and data to be written.
It is exemplary, by taking application program is live broadcast service apk as an example, the reading/writing method of step 101- steps 103 is carried out detailed It describes in detail bright.
Specifically, if live broadcast service apk wants to obtain the ciphertext data of encrypted live TV stream, apk needs to pass through Client The interface provided for it is held to establish communication link with background service program.During actual realization, function tune can be passed through With completion.Assuming that live broadcast service apk has invoked the function GetPrivateData at the ends client, then after calling the function, The ends Client can establish the communication link between background service program, such as be connected by calling socket functions to establish socket It connects, after the completion of connecting foundation, GetPrivateData is sent to background service program by the ends Client according to specific format. Exemplary, which can be:“Head:GetPrivateData;Tail:Fininsh ", wherein Head and Tail are Identification strings first parse it after background service program receives the data, if the content of Tail is equal to " Fininsh ", then background service program think that the instruction meets specific format, then go to obtain the content in Head, and root again According to the content in Head, carries out correlation function in background service program and (mainly call the letter for reading the data in storage device Number) calling, and the data that institute's call function returns are returned into live broadcast service apk by the interface established with the ends Client.
An embodiment of the present invention provides a kind of method of read-write storage device, this method includes:Acquisition is touched by application program The operational order of hair, operational order are used to indicate background service program and are read out/write operation to storage device;Send operation It instructs and gives background service program, so that background service program is read out/write operation according to operational order to storage device; Receive the operating result corresponding with operational order that background service program is sent;Operating result is sent to application program.Tool Body, after client obtains the operational order of application triggers, operational order is sent to background service program, background service After program receives operational order, according to the instruction in operational order ,/write operation is read out to storage device, and will be with The corresponding operating result of operational order returns to client, enables the client to obtain the operating result.Implement through the invention The method that example provides, application program can be by interacting operation, by background service between client and background service program Program accesses to storage device, and the data of access are returned to application program, realizes application program indirectly to storage The access of equipment.Thus, it is possible to overcome in the prior art due to application program insufficient permission, storage device can not be written and read The problem of.
An embodiment of the present invention provides the methods of another read-write storage device, as shown in Fig. 2, this method includes:
Step 201 receives the operational order by application triggers that client is sent.
Wherein, operational order is used to indicate background service program and is read out/write operation to storage device.
It should be noted that the executive agent of the method for the read-write storage device of the embodiment of the present invention is background service journey Sequence.And background service program has the permission for accessing storage device, in this way, just can guarantee background service program in initialization After receiving operational order, has permission and the operations such as be read out/be written to storage device.
Specifically, the permission to access to storage device that background service program has, can obtain in the following manner It arrives:Linux initializtion scripts are executed, init processes are started.
Wherein, init processes create the background service program defined in Linux initializtion scripts, make background service Program has after starting is read out storage device/the permission of write operation.
Step 202 obtains operating result according to operational order to storage device progress digital independent/write operation.
Specifically, in Android system, if it is flash memory (flash) that background service program, which has root authority, storage device, Then background service program calls bottom flash driving interfaces, flash is read out/is written according to the instruction in operational order Operation.
Step 203 sends operating result to client.
It is exemplary, for step 201- steps 203, if live broadcast service apk wants to obtain the ciphertext data in flash, The operational order that background service program receives is:“Head:GetPrivateData;Tail:Fininsh ", background service journey Sequence is by calling bottom flash driving interfaces to read the ciphertext data in flash, and by operating result:“Head: GetPrivateData;Content:0123456789;Tail:Fininsh " is sent to the ends Client.Client terminations receive After the operating result that background service program is sent, can the operating result directly be returned into live broadcast service apk, it can also be first right The operating result is parsed, and such as parses identification strings Tail first, if the content of Tail is equal to " Fininsh ", then The content for removing parsing Head, if the content of the Head in the operational order that the content of Head is sent with the ends Client is identical, i.e., It is " GetPrivateData ", then the content " 0123456789 " in parsing Content, and Content are removed in the ends Client again In content " 0123456789 " be that live broadcast service apk calls " GetPrivateData " function decryption number to be obtained According to.Comprising the ciphertext data needed for live broadcast service apk in the operating result that the ends Client are got, the ends Client are by the decryption number According to live broadcast service apk is sent to, in this way, live broadcast service apk can decrypt encrypted live streaming by the ciphertext data got Stream, completes the normal play of encrypted live TV stream.
It is again exemplary, for step 201- steps 203, if live broadcast service apk gets server end and has new encryption number According to then needing to be updated original encryption data in flash.Live broadcast service apk passes through calling at this time UpdataPrivateData functions make the ends Client be established with background service program and connect, after connection is established, background service journey Sequence will receive operational order:“Head:UpdatePrivateData;Conent:888888888;Tail:Finish ", backstage Service routine parses identification strings first:Tail obtains the content in Head if the content of Tail is equal to " Finish ", Parse Head content be equal to " UpdatePrivateData " after, then parse the content in Content, and pass through and call bottom Data " 888888888 " in Content are written in flash by layer flash driving interfaces.
It should be noted that the meaning of " GetPrivateData " is the ciphertext data read in flash, The meaning of " UpdatePrivateData " is to be updated to the ciphertext data in flash, also i.e. by updated ciphertext data It re-writes in flash." GetPrivateData " and " UpdatePrivateData " is merely to illustrative illustrate this The method of the described read-write storage device of inventive embodiments, the present invention do not limit the concrete operations of storage device.
In the following, be the ciphertext data " 0123456789 " read in flash to the flash operations carried out with apk, with For the connection that the ends Client and background service program are established is connection-oriented socket connections, to the mistake of apk reading flash memories Journey is described in detail, and specifically includes following steps:
Step 1, apk call GetPrivateDate functions, call the ends Client.
Socket establishment of connections are initiated in step 2, the ends Client by calling socket functions, to backstage service routine asks It asks.
Step 3, background service program establish request by the connection for calling listen functions to listen to the transmission of the ends Client Afterwards, the connection is responded, and creates a thread to receive the data of the ends Client transmission.
It is " Head that step 4, the ends Client send format according to GetPrivateDate functions to backstage service routine: GetPrivateDate;Tail:The data of Fininsh ".
Step 5, background service program receive and parse through the data, if the content in Tail is equal to " Fininsh ", parse Content in Head.
Step 6, background service program call bottom flash drivings to connect according to data analysis result " GetPrivateDate " Mouthful, read the ciphertext data stored in flash.
Step 7, background service program send format to client and are:“Head:GetPrivateDate;Content: 0123456789;Tail:The data of Fininsh ".
After step 8, Client terminations receive the data of background service program transmission, successively to Tail, Head and Content In content parsed respectively, it is final to obtain the ciphertext data " 0123456789 " for including in Content.
Ciphertext data " 0123456789 " in the Content parsed is returned to apk by step 9, the ends Client.
Step 10, apk get the ciphertext data " 0123456789 " on flash.
It should be noted that background service program needs to be initialized with root authority, such ability in initialization Call bottom flash driving interfaces.Although 1- steps 10 are it is found that live broadcast service apk insufficient permissions, Wu Fazhi through the above steps Connect and read the ciphertext data that stores in flash, but by calling the ends Client and background service program, realize indirectly from The purpose of ciphertext data is read in flash, and has been finally completed the normal play of live TV stream.
An embodiment of the present invention provides a kind of method of read-write storage device, this method includes:Acquisition is touched by application program The operational order of hair, wherein operational order is used to indicate background service program and is read out/write operation to storage device;Hair Operational order is sent to give background service program, so that background service program is read out/writes to storage device according to operational order Enter operation;Receive the operating result corresponding with operational order that background service program is sent;Operating result is sent to application Program.Specifically, after the operational order of client acquisition application triggers, operational order is sent to background service program, After background service program receives operational order, according to the instruction in operational order, behaviour is read out/is written to storage device Make, and operating result corresponding with operational order is returned into client, enables the client to obtain the operating result.Pass through this Inventive embodiments provide method, application program can by interacting operation between client and background service program, by Background service program accesses to storage device, and the data of access are returned to application program, is realized indirectly using journey The access of ordered pair storage device.Thus, it is possible to overcome in the prior art due to application program insufficient permission, it can not be to storage device The problem of being written and read.
An embodiment of the present invention provides a kind of clients 30, as shown in figure 3, client 30 includes:Acquisition module 301, hair Send module 302, receiving module 303.
Acquisition module 301, for obtaining the operational order by application triggers, wherein after operational order is used to indicate Platform service routine is read out/write operation to storage device.
Sending module 302 gives background service program, so that background service program is according to operation for sending operational order Instruction is read out/write operation to storage device.
Receiving module 303, the operating result corresponding with operational order for receiving the transmission of background service program.
Sending module 302 is additionally operable to operating result being sent to application program.
Optionally, as shown in figure 4, client 30 further includes:Processing module 304.
Processing module 304 starts init processes for executing Linux initializtion scripts;Wherein, init processes are to Linux Background service program defined in initializtion script is created, and is had after so that background service program is started and is carried out to storage device The permission of read/write operations.
An embodiment of the present invention provides a kind of client, which includes:Acquisition module, sending module, receiving module. Specifically, after acquisition module gets the operational order of application triggers, operational order is sent to backstage by sending module Service routine after background service program receives operational order, according to the instruction in operational order, is read storage device / write operation is taken, and operating result corresponding with operational order is returned into client, enables the client to obtain the operation knot Fruit.Client provided in an embodiment of the present invention is indirectly realized and is set to storage by the communication between background service program Standby access.Thus, it is possible to overcome in the prior art due to application program insufficient permission, storage device can not be written and read Problem.
An embodiment of the present invention provides a kind of background servers 40, as shown in figure 5, background server 40 includes:Receive mould Block 401, processing module 402, sending module 403.
Receiving module 401, the operational order by application triggers for receiving client transmission, wherein operation refers to Order is used to indicate background service program and is read out/write operation to storage device.
Processing module 402, for according to operational order, carrying out digital independent/write operation to storage device, obtaining and grasp Make to instruct corresponding operating result.
Sending module 403, for sending operating result to client.
Optionally, as shown in figure 5, processing module 402, is additionally operable to execute Linux initializtion scripts, starts init processes; Wherein, init processes create the background service program defined in Linux initializtion scripts, and background service program is made to start Have afterwards and is read out/the permission of write operation to storage device.
An embodiment of the present invention provides a kind of background server, which includes:Receiving module, processing module, Sending module.Specifically, the operational order by application triggers that receiving module is sent by receiving client, instruction processing Module is read out/write operation to storage device, and background service program is enable to obtain required data from storage device, Or certain data are written in storage device, operating result is then sent to client by sending module again, makes application Program can indirectly realize the access to storage device.Thus, it is possible to overcome in the prior art due to application program permission not Foot, the problem of can not being written and read to storage device.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that the independent physics of each unit includes, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store The medium of program code.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features; And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (4)

1. a kind of method of read-write storage device, which is characterized in that the method includes:
Obtain by application triggers operational order, the operational order be used to indicate background service program to storage device into Row read/write operations;Wherein, when platform service routine initializes in the rear, init processes are to Linux initializtion script files The background service program defined in inti.rc is created, and is weighed higher than system so that the background service program has The root authority of limit;
Wherein, the application program is integrated with the ends client, the application program by call the function at the ends client establish with Communication link between the background service program;
The operational order is sent to the background service program, so that the background service program is according to the operational order / write operation is read out to the storage device;
Receive the operating result corresponding with the operational order that the background service program is sent;
The operating result is sent to the application program.
2. method according to claim 1, which is characterized in that
The storage device is read if the operational order is used to indicate, the operational order includes reading The mark of mark and data to be read;
If the operational order is used to indicate carries out write operation to the storage device, the operational order includes write-in Mark and data to be written.
3. method according to claim 1, which is characterized in that the background service program, which has, carries out the storage device The permission of read/write operations is arranged when platform service routine initializes in the rear, specifically includes:
Linux initializtion scripts are executed, init processes are started;
The init processes create the background service program defined in the Linux initializtion scripts, make described Background service program has after starting is read out the storage device/the permission of write operation.
4. method according to claim 1, which is characterized in that the acquisition by the operational order of application triggers includes:
The operational order is obtained by JAVA local interfaces.
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
CN201810174675.6A CN108279855B (en) 2015-03-05 2015-03-05 Method for reading and writing storage device
CN201510097761.8A CN104714760B (en) 2015-03-05 2015-03-05 A kind of method and device 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 true CN108279855A (en) 2018-07-13
CN108279855B 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 (4)

* 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
CN115686647A (en) * 2022-09-27 2023-02-03 深圳市智微智能科技股份有限公司 Method, terminal and storage medium for indirect access to SPI storage device

Citations (8)

* 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
US20100262674A1 (en) * 2009-03-25 2010-10-14 Panasonic Corporation Data transmitting apparatus, data receiving apparatus, data transmitting method and data receiving method
CN102567720A (en) * 2011-12-26 2012-07-11 广州市千钧网络科技有限公司 Flash online video face recognition method and face recognition device
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1287433A2 (en) * 1999-08-18 2003-03-05 Siemens Aktiengesellschaft Agent system for mobile agents, computer network and method for downloading an agent system from a host computer to a client computer of a computer network
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 (8)

* 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
US20100262674A1 (en) * 2009-03-25 2010-10-14 Panasonic Corporation Data transmitting apparatus, data receiving apparatus, data transmitting method and data receiving method
CN102567720A (en) * 2011-12-26 2012-07-11 广州市千钧网络科技有限公司 Flash online video face recognition method and face recognition device
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
CN108279855B (en) 2021-07-06
CN104714760A (en) 2015-06-17
CN104714760B (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN108901022B (en) Micro-service unified authentication method and gateway
DE60221113T2 (en) PROCESS AND SYSTEM FOR THE REMOTE AND MANAGEMENT OF PERSONNEL SECURITY DEVICES
CN113595788B (en) API gateway management method and device based on plug-in
US8205001B1 (en) Digital rights management integrated service solution
CN104580376B (en) The methods, devices and systems connected between terminal are established in a local network
CN104714760B (en) A kind of method and device for reading and writing storage device
CN111163130A (en) A network service system and data transmission method thereof
CN114501593A (en) Network slice access method, device, system and storage medium
CN115941795B (en) Data transmission method, device, electronic device and storage medium
CN110324365A (en) Without key front end cluster system, application method, storage medium, electronic device
CN103023684A (en) Method, device and system for network information management
CN100505734C (en) A Method for Realizing External Device Mapping of Network Computer
US9288116B2 (en) System and method for NAS server test load generation
CN109714337A (en) A kind of data encryption and transmission method and equipment
CN113434234A (en) Page jump method, device, computer readable storage medium and processor
CN115022252A (en) Method and equipment for configuring maximum length of transmission data packet
US20060047784A1 (en) Method, apparatus and system for remotely and dynamically configuring network elements in a network
CN116132344A (en) Container service debugging method and device based on K8s cluster and electronic equipment
CN105991631B (en) A kind of client device access authentication method and device
CN112422566A (en) Remote call processing method and device, storage medium and electronic device
CN113986996A (en) Customize return response methods, devices, devices and storage media based on annotations
CN112148501A (en) Communication method and device for multiple sub-applications, electronic device and storage medium
CN105939214B (en) Method and device for realizing network card function
CN115086393B (en) Interface calling method, device, equipment and storage medium
CN115987513B (en) Distributed database fragment encryption and decryption methods, devices, equipment and media

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