CN106055992B - A kind of method and terminal handling touch operation - Google Patents
A kind of method and terminal handling touch operation Download PDFInfo
- Publication number
- CN106055992B CN106055992B CN201610403276.3A CN201610403276A CN106055992B CN 106055992 B CN106055992 B CN 106055992B CN 201610403276 A CN201610403276 A CN 201610403276A CN 106055992 B CN106055992 B CN 106055992B
- Authority
- CN
- China
- Prior art keywords
- coordinate data
- terminal
- data
- upper layer
- encryption
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
Abstract
The embodiment of the invention discloses a kind of methods and terminal for handling touch operation, which comprises terminal reads the coordinate data of user's touch operation by bottom layer driving;The terminal encrypts the coordinate data by the bottom layer driving and reports to the upper layer application of the terminal;The terminal receives the coordinate data of encryption by the upper layer application, and the coordinate data of encryption is decrypted;The touch operation is responded, or judges whether the coordinate data of decryption is correct;If correct, the touch operation is responded.Using the present invention, the crypticity of terminal touch screen operation and the safety of equipment can be promoted.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of methods and terminal for handling touch operation.
Background technique
With the rapid development of the communication technology, terminal such as mobile phone, tablet computer etc. is in people's lives, study, amusement etc.
Aspect is available help it is more and more, other than having the functions such as common call and short message, can be also used for taking pictures,
Listen song, watch movie, play game etc..In order to preferably realize that above-mentioned function, existing terminal generally use touch screen (Touch
Panel, TP) for user's progress touch operation.
Some operation users for being related to user security privacy are not intended to be known by other people, such as unlock track.But it is existing
There are the data that TP is reported in Android system, not any cipher mode, initial data is easily grabbed by other people, so as to reveal
The privacy information of user;In addition, if user needs to replace it when touch screen from being damaged, but whether what is replaced is former
Fill touch screen, ordinary user is also difficult to distinguish, easily cause user to lose, although non-original-pack screen also can be used, quality compared with
Difference is easy to cause adverse effect to terminal quality of brand name.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that a kind of method and terminal for handling touch operation is provided,
To solve the problems, such as that existing terminal touch screen operation crypticity and device security are poor.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention provides a kind of side for handling touch operation
Method, comprising:
Terminal reads the coordinate data of user's touch operation by bottom layer driving;
The terminal encrypts the coordinate data by the bottom layer driving and reports to the upper layer of the terminal
Using;
The terminal receives the coordinate data of encryption by the upper layer application, and the coordinate data of encryption is decrypted;
The touch operation is responded, or judges whether the coordinate data of decryption is correct;
If correct, the touch operation is responded.
Wherein, the terminal encrypts the coordinate data by the bottom layer driving and reports to the terminal
Upper layer application, comprising:
The terminal encrypts the coordinate data according to preset algorithm by the bottom layer driving and reports to institute
State the upper layer application of terminal;
The terminal receives the coordinate data of encryption by the upper layer application, and the coordinate data of encryption is decrypted,
Include:
The terminal by the upper layer application according to the algorithm with the preset algorithm contrary to the coordinate data into
Row decryption.
Wherein, the coordinate data is the coordinate data of single coordinate points.
Wherein, the terminal encrypts the coordinate data by the bottom layer driving and reports to the terminal
Upper layer application, comprising:
The terminal is increased N number of data in the coordinate data by the bottom layer driving and reports to the terminal
Upper layer application;
The terminal receives the coordinate data of encryption by the upper layer application, and the coordinate data of encryption is decrypted,
Include:
The terminal increases N number of data by coordinate data of the upper layer application to encryption;
Judge whether the coordinate data of decryption is correct;Include:
Judge in the coordinate data of decryption whether to include two parts of N number of data, wherein N is the integer greater than 0.
Wherein, the coordinate data is the coordinate data set of all coordinate points.
Correspondingly, second aspect of the embodiment of the present invention additionally provides a kind of terminal, comprising:
Reading unit, for reading the coordinate data of user's touch operation by bottom layer driving;
Encryption unit, for being encrypted by the bottom layer driving to the coordinate data and reporting to the terminal
Upper layer application;
Decryption unit is decrypted the coordinate data of encryption for receiving the coordinate data of encryption by upper layer application;
Response unit for responding the touch operation, or judges whether the coordinate data of decryption is correct;
If correct, the touch operation is responded.
Wherein, the encryption unit is specifically used for:
The coordinate data is encrypted according to preset algorithm by the bottom layer driving and reports to the terminal
Upper layer application;
The decryption unit is specifically used for:
The coordinate data is decrypted according to the algorithm with the preset algorithm contrary by the upper layer application.
Wherein, the coordinate data is the coordinate data of single coordinate points.
Wherein, the encryption unit is specifically used for:
Increase N number of data in the coordinate data by the bottom layer driving and report to the upper layer of the terminal and answers
With;
The decryption unit is specifically used for:
Increase N number of data by coordinate data of the upper layer application to encryption;
The response unit is specifically used for:
Judge in the coordinate data of decryption whether to include two parts of N number of data, wherein N is the integer greater than 0.
Wherein, the coordinate data is the coordinate data set of all coordinate points.
The third aspect of the embodiment of the present invention additionally provides a kind of terminal, comprising:
Processor, memory, interface circuit and bus;
The processor, memory and interface circuit are connected by the bus and complete mutual communication, wherein institute
It states memory to be used to store a set of program code, the processor is held for calling the program code stored in the memory
The following operation of row:
The coordinate data of user's touch operation is read by bottom layer driving;
The upper layer application of the terminal is encrypted and reported to the coordinate data by the bottom layer driving;
The coordinate data that encryption is received by the upper layer application, is decrypted the coordinate data of encryption;
The touch operation is responded, or judges whether the coordinate data of decryption is correct;
If correct, the touch operation is responded.
Wherein, the processor is specifically used for:
The coordinate data is encrypted according to preset algorithm by the bottom layer driving and reports to the terminal
Upper layer application;
The terminal by the upper layer application according to the algorithm with the preset algorithm contrary to the coordinate data into
Row decryption.
Wherein, the coordinate data is the coordinate data of single coordinate points.
Wherein, the processor is specifically used for:
Increase N number of data in the coordinate data by the bottom layer driving and report to the upper layer of the terminal and answers
With;
Increase N number of data by coordinate data of the upper layer application to encryption;
Judge in the coordinate data of decryption whether to include two parts of N number of data, wherein N is the integer greater than 0.
Wherein, the coordinate data is the coordinate data set of all coordinate points.
The implementation of the embodiments of the present invention has the following beneficial effects:
Terminal reads the coordinate data of user's touch operation by bottom layer driving;Then by the bottom layer driving to described
Coordinate data is encrypted and reports to the upper layer application of the terminal;The number of coordinates of encryption is received by the upper layer application again
According to after the coordinate data of encryption is decrypted;The touch operation is responded, or whether just to judge the coordinate data of decryption
Really;If correct, the touch operation is responded.Due to joined the process of bottom layer driving encryption, there is no need to worry to touch again
Initial data intercepted by other people, the safety of terminal can be improved, then pass through decryption, it can be ensured that touch operation it is correct
Response;When touch screen is replaced by non-original-pack touch screen, since the process for encrypting and decrypting will become imperfect, so as to cause
Encrypting and decrypting can not normally complete, and eventually lead to end-error response or be not responding to touch operation, user is facilitated to identify touch screen
The true and false, improve the usability and practicality of terminal, good usage experience can be provided for user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the first embodiment of method for handling touch operation provided by the invention;
Fig. 2 is a kind of flow diagram of the second embodiment of method for handling touch operation provided by the invention;
Fig. 3 is a kind of flow diagram of the 3rd embodiment of method for handling touch operation provided by the invention;
Fig. 4 is a kind of composition schematic diagram of the first embodiment of terminal provided by the invention;
Fig. 5 is a kind of composition schematic diagram of the second embodiment of terminal provided by the invention.
Specific embodiment
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 description, 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, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Terminal in the embodiment of the present invention may include smart phone (such as Android phone, iOS mobile phone, Windows
Phone mobile phone etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile Internet
Devices) or wearable device etc., have touch screen, the touch operation of user can be responded.Above-mentioned terminal is only citing, and
It is non exhaustive, including but not limited to above-mentioned terminal.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " and " third " etc. are
For distinguishing different objects, not for description particular order.In addition, term " includes " and " having " and their any changes
Shape, it is intended that cover and non-exclusive include.Such as contain the process, method of a series of steps or units, system, product or
Equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit or optional
Ground further includes the other step or units intrinsic for these process, methods, product or equipment.
Fig. 1 is please referred to, for a kind of process signal of the first embodiment for the method for handling touch operation provided by the invention
Figure, in the present embodiment, the described method comprises the following steps:
S101, terminal read the coordinate data of user's touch operation by bottom layer driving.
If Android system is regarded as in layer, can be understood as substantially with flowering structure:
1.Linux inner nuclear layer
Android (Android) system is based on 2.6 kernel of Linux, this layer is the various hardware of Android device
The driving of bottom is provided, such as shows driving, audio driven, camera driving, bluetooth driving, Wi-Fi driving, power management
Deng.
2. system Runtime Library layer
This layer is supported by some libraries C/C++ to provide main characteristic for android system.As the library SQLite mentions
The support of database being supplied, OpenGL | the library ES provides the support of 3D drawing, and the library Webkit provides the support of browser kernel
Deng.
Equally in this layer, there are also Android run-time librarys, it mainly provides some core libraries, can allow for developer
Android application is write using Java language.In addition Dalvik virtual machine is further comprised in Android run-time library, it makes
Each Android application can operate in independent process, and possess one oneself Dalvik virtual machine it is real
Example.Compared to Java Virtual Machine, Dalvik is customized exclusively for mobile device, it is limited etc. for mobile phone EMS memory, cpu performance
Situation has done optimization processing.
3. application framework layer
This layer of various API that may be used when mainly providing building application program, Android included some cores
It is completed using using these API, developer can also construct the application program of oneself by using these API.
4. application layer
All application programs being mounted on mobile phone all belong to this layer, such as the included contact person of system, short message
Etc. the trivial games downloaded from Google Play of programs or user, certainly further include the program of user oneself exploitation.
And touch screen to acquisition user's touch operation coordinate data when, will be completed by bottom layer driving.
S102, the terminal encrypt the coordinate data by the bottom layer driving and report to the terminal
Upper layer application.
S103, the terminal receive the coordinate data of encryption by the upper layer application, carry out to the coordinate data of encryption
Decryption.
S104 responds the touch operation.Or execute step S105.
When for encrypting and decrypt the mode for reverse operation, number only can not be known from the data of decryption and the data of encryption
According to correctness, therefore can be directly in response to the touch operation.But if the data that bottom layer driving reports are cut by other people
It takes, since other people do not know that this is encrypted data, the available guarantee of safety.And for replacing non-original-pack touching
When touching screen, since the coordinate data that bottom layer driving reports will be the data of unencryption, and it will lead to most after upper layer application decryption
The coordinate data executed eventually changes, when causing using non-original-pack touch screen, touch operation inaccuracy.For example, a coordinate
It is 1 that the data of point, which are (1,2,3) i.e. abscissa, ordinate 2, ordinate 3, and Encryption Algorithm is coordinate value multiplied by 2, then normally
Encrypted coordinate is (2,4,6), and decipherment algorithm can be coordinate value divided by 2, therefore should be remained as after normal decryption (1,2,
3) it will be executed at (1,2,3) when, executing touch operation according to the coordinate data.And after having replaced non-original-pack touch screen, on
The data of report will remain as (1,2,3), and the data after upper layer application decryption are (0.5,1,1.5), be executed according to the coordinate data
It will be executed in (0.5,1,1.5) when touch operation, in this way, will be unable to accurately execute to touch after having replaced non-original-pack touch screen to move
Make, user is facilitated to distinguish the true and false of touch screen.
S105 judges whether the coordinate data of decryption is correct, no to then follow the steps if correctly, thening follow the steps S104
S106。
When being non-reverse operation for cryptographic calculation and decryption operation, the data after decryption may be different from initial data,
At this time, then need to judge whether the coordinate data of decryption is correct, thus to decide whether to respond touch operation.Such as encryption fortune
It calculates to increase n data in the set of coordinate data, decryption operation is identical as cryptographic calculation, in this way, the data after decryption
In other than initial data, will also obtain double " n " a data, in this way, can judge that the coordinate data of decryption is correct,
Respond touch operation.User therefore is doped with n extra number without having to worry about the leaking data of bottom layer driving in initial data
According to, and other people can not identify which is n extra data.And after having replaced touch screen, due to the process not encrypted
The process only decrypted, therefore the data after decrypting also increase only n data, terminal can not be judged more when which data
It is remaining, to will be deemed as incorrect, it is not responding to the touch operation.
S106 is not responding to the touch operation.
In the present embodiment, terminal reads the coordinate data of user's touch operation by bottom layer driving;Then by described
Bottom layer driving encrypts the coordinate data and reports to the upper layer application of the terminal;It is connect again by the upper layer application
The coordinate data for receiving encryption, after the coordinate data of encryption is decrypted;The touch operation is responded, or judges decryption
Whether coordinate data is correct;If correct, the touch operation is responded.Due to joined the process of bottom layer driving encryption,
It no longer needs to worry that the initial data touched is intercepted by other people, the safety of terminal can be improved, then pass through decryption, it can be ensured that
The correct response of touch operation;When touch screen is replaced by non-original-pack touch screen, since the process for encrypting and decrypting will become
It is imperfect, it can not be normally completed so as to cause encrypting and decrypting, eventually lead to end-error response or be not responding to touch operation, it is convenient
User identifies the true and false of touch screen, improves the usability and practicality of terminal, good usage experience can be provided for user.
It referring to figure 2., is a kind of process signal of the second embodiment for the method for handling touch operation provided by the invention
Figure, in the present embodiment, the described method comprises the following steps:
S201, terminal read the coordinate data of user's touch operation by bottom layer driving.
S202, the terminal are encrypted and are reported to the coordinate data according to preset algorithm by the bottom layer driving
To the upper layer application of the terminal.
The coordinate data is the coordinate data of single coordinate points.
The preset algorithm only can carry out operation to single coordinate points, or to the partial coordinates point list in all coordinate points
A carry out operation, or to the single carry out operation in all coordinate points.For example, being encrypted for single coordinate data, will read
The coordinate points got are converted to another group of data (x0, y0, p0) and are converted to (X0, Y0, P0).Preset algorithm can be mathematical operation
In any one or the combination of several of them, as long as there are reverse operations for it.For example, adduction subtract, multiply and remove, evolution and square
Deng.
S203, the terminal is by the upper layer application according to the algorithm with the preset algorithm contrary to the number of coordinates
According to being decrypted.
Terminal upper layer application can be made to obtain original coordinate data by the budget of contrary.For example, passing through inverse operation
(X0, Y0, P0) is converted to (x0, y0, p0).
S204 responds the touch operation.
In the present embodiment, a kind of possible encryption and manner of decryption is described in detail, can be made by the operation of contrary
The available original coordinate data of terminal upper layer application, the correct touch operation for responding user are obtained, and is driven without having to worry about bottom
Move encrypted leaking data, replacing after touch screen can also be user-friendly with the discrimination touch screen true and false of intuitive and convenient, mentions
The high intelligence of terminal, can bring good usage experience for user.
It referring to figure 3., is a kind of process signal of the 3rd embodiment for the method for handling touch operation provided by the invention
Figure, in the present embodiment, the described method comprises the following steps:
S301, terminal read the coordinate data of user's touch operation by bottom layer driving.
S302, the terminal are increased N number of data in the coordinate data by the bottom layer driving and reported to described
The upper layer application of terminal.
Wherein, N is the integer greater than 0.
The coordinate data is the coordinate data set of all coordinate points.
For example, all coordinate points that will be read, carry out a simply operation, increase N number of data, will (x0, y0,
P0), (x1, y1, p1) ... (x10, y10, p10) } be converted to (x0, y0, p0), (x1, y1, p1) ... (x10, y10, p10),
NUM1, NUM2 ... NUMN }.
S303, the terminal increase N number of data by coordinate data of the upper layer application to encryption.
In decryption, N number of data still are increased to encrypted data.Become { (x0, y0, p0), (x1, y1, p1) ...
(x10, y10, p10), NUM1, NUM2 ... NUMN, NUM1, NUM2 ... NUMN }
Whether S304 judges in the coordinate data of decryption to include two parts of N number of data, if so, S305 is thened follow the steps,
It is no to then follow the steps S306.
Then judgement is compared according to increased N number of data, it is whether correct that primary data can be obtained, and can remove
After the increased data of double, obtains correct initial data and respond the touch operation.Due to increasing N number of data,
Equally without having to worry about the encrypted leaking data of bottom layer driving, and will be unable to obtain double N number of data after replacing touch screen,
When judgement is compared according to N number of data, it can learn that currently used possibility is non-original-pack screen, the touching can be not responding to
Touch operation.
S305 responds the touch operation.
S306 is not responding to the touch operation.
In embodiment, cryptographic calculation and decryption operation use identical operation, can pass through final decryption in this way
Coordinate data is to determine whether need to respond touch operation, and without having to worry about the leaking data of bottom layer driving, touch screen is changed to non-
When original-pack touch screen, terminal will not also respond touch operation, facilitate user and identify the touch screen true and false.
It referring to figure 4., is a kind of composition schematic diagram of the first embodiment of terminal provided in an embodiment of the present invention, in this reality
It applies in example, the terminal includes:
Reading unit 100, for reading the coordinate data of user's touch operation by bottom layer driving;
Encryption unit 200, for being encrypted by the bottom layer driving to the coordinate data and reporting to the end
The upper layer application at end;
Decryption unit 300 solves the coordinate data of encryption for receiving the coordinate data of encryption by upper layer application
It is close;
Response unit 400 for responding the touch operation, or judges whether the coordinate data of decryption is correct;
If correct, the touch operation is responded.
Optionally, the encryption unit 200 is specifically used for:
The coordinate data is encrypted according to preset algorithm by the bottom layer driving and reports to the terminal
Upper layer application;
The coordinate data is the coordinate data of single coordinate points.
The decryption unit 300 is specifically used for:
The coordinate data is decrypted according to the algorithm with the preset algorithm contrary by the upper layer application.
Alternatively, the encryption unit 200 is specifically used for:
Increase N number of data in the coordinate data by the bottom layer driving and report to the upper layer of the terminal and answers
With;
The coordinate data is the coordinate data set of all coordinate points.
The decryption unit 300 is specifically used for:
Increase N number of data by coordinate data of the upper layer application to encryption;
The response unit 400 is specifically used for:
Judge in the coordinate data of decryption whether to include two parts of N number of data, wherein N is the integer greater than 0.
Unit 100, encryption unit 200, decryption unit 300 and response unit 400 read above can be individually present, can also
With integrally disposed, reading unit 100, encryption unit 200, decryption unit 300 or response unit 400 can in the form of hardware solely
The processor for standing on terminal is separately provided, and form is arranged and can be the form of microprocessor;It can also embed in the form of hardware
In the processor of the terminal, it can also be stored in a software form in the memory of the terminal, in order to the processing of the terminal
Device, which calls, executes unit 100, encryption unit 200, decryption unit 300 and the corresponding operation of response unit 400 read above.
For example, decryption unit 300 can be should in the first embodiment (embodiment shown in Fig. 4) of terminal of the present invention
The processor of terminal, and the function of reading unit 100, encryption unit 200 and response unit 400 can be embedded in the processor
In, it can also be separately provided, can also be stored in memory in the form of software independently of processor, be called by processor real
Its existing function.The embodiment of the present invention does not do any restrictions.The above processor can for central processing unit (CPU), microprocessor,
Single-chip microcontroller etc..
In the present embodiment, terminal reads the coordinate data of user's touch operation by bottom layer driving;Then by described
Bottom layer driving encrypts the coordinate data and reports to the upper layer application of the terminal;It is connect again by the upper layer application
The coordinate data for receiving encryption, after the coordinate data of encryption is decrypted;The touch operation is responded, or judges decryption
Whether coordinate data is correct;If correct, the touch operation is responded.Due to joined the process of bottom layer driving encryption,
It no longer needs to worry that the initial data touched is intercepted by other people, the safety of terminal can be improved, then pass through decryption, it can be ensured that
The correct response of touch operation;When touch screen is replaced by non-original-pack touch screen, since the process for encrypting and decrypting will become
It is imperfect, it can not be normally completed so as to cause encrypting and decrypting, eventually lead to end-error response or be not responding to touch operation, it is convenient
User identifies the true and false of touch screen, improves the usability and practicality of terminal, good usage experience can be provided for user.
It referring to figure 5., is a kind of composition schematic diagram of the second embodiment of terminal provided in an embodiment of the present invention, in this reality
It applies in example, the terminal includes:
Processor 110, memory 120, interface circuit 130 and bus 140;
The processor 110, memory 120 and interface circuit 130 are connected and are completed mutual by the bus 140
Communication, wherein the memory 120 is used to store a set of program code, and the processor 110 is for calling in the memory
The program code of storage executes following operation:
The coordinate data of user's touch operation is read by bottom layer driving;
The upper layer application of the terminal is encrypted and reported to the coordinate data by the bottom layer driving;
The coordinate data that encryption is received by the upper layer application, is decrypted the coordinate data of encryption;
The touch operation is responded, or judges whether the coordinate data of decryption is correct;
If correct, the touch operation is responded.
Optionally, the processor 110 is specifically used for:
The coordinate data is encrypted according to preset algorithm by the bottom layer driving and reports to the terminal
Upper layer application;
The terminal by the upper layer application according to the algorithm with the preset algorithm contrary to the coordinate data into
Row decryption.
Optionally, the coordinate data is the coordinate data of single coordinate points.
Optionally, the processor 110 is specifically used for:
Increase N number of data in the coordinate data by the bottom layer driving and report to the upper layer of the terminal and answers
With;
Increase N number of data by coordinate data of the upper layer application to encryption;
Judge in the coordinate data of decryption whether to include two parts of N number of data, wherein N is the integer greater than 0.
Optionally, the coordinate data is the coordinate data set of all coordinate points.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey
Sequence, the program include some or all of the method for any step counting recorded in above method embodiment step when executing.
Description through the foregoing embodiment, the invention has the following advantages that
Terminal reads the coordinate data of user's touch operation by bottom layer driving;Then by the bottom layer driving to described
Coordinate data is encrypted and reports to the upper layer application of the terminal;The number of coordinates of encryption is received by the upper layer application again
According to after the coordinate data of encryption is decrypted;The touch operation is responded, or whether just to judge the coordinate data of decryption
Really;If correct, the touch operation is responded.Due to joined the process of bottom layer driving encryption, there is no need to worry to touch again
Initial data intercepted by other people, the safety of terminal can be improved, then pass through decryption, it can be ensured that touch operation it is correct
Response;When touch screen is replaced by non-original-pack touch screen, since the process for encrypting and decrypting will become imperfect, so as to cause
Encrypting and decrypting can not normally complete, and eventually lead to end-error response or be not responding to touch operation, user is facilitated to identify touch screen
The true and false, improve the usability and practicality of terminal, good usage experience can be provided for user.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is all differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place referring to
The part of embodiment of the method illustrates.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: magnetic disk, CD, read-only memory (Read-Only Memory, abbreviation
) or random access memory (Random Access Memory, abbreviation RAM) etc. ROM.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method for handling touch operation, is applied to Android system characterized by comprising
Terminal reads the coordinate data of user's touch operation by bottom layer driving;The bottom layer driving is that Linux inner core provides
Driving;
The terminal encrypts the coordinate data by the bottom layer driving and reports to the upper layer application of the terminal;
The terminal receives the coordinate data of encryption by the upper layer application, and the coordinate data of encryption is decrypted;
The touch operation is responded, or judges whether the coordinate data of decryption is correct;
If correct, the touch operation is responded.
2. the method according to claim 1, wherein the terminal is by the bottom layer driving to the number of coordinates
According to the upper layer application for being encrypted and being reported to the terminal, comprising:
The terminal encrypts the coordinate data according to preset algorithm by the bottom layer driving and reports to the end
The upper layer application at end;
The terminal receives the coordinate data of encryption by the upper layer application, and the coordinate data of encryption is decrypted, comprising:
The terminal solves the coordinate data according to the algorithm with the preset algorithm contrary by the upper layer application
It is close.
3. according to the method described in claim 2, it is characterized in that, the coordinate data is the coordinate data of single coordinate points.
4. the method according to claim 1, wherein the terminal is by the bottom layer driving to the number of coordinates
According to the upper layer application for being encrypted and being reported to the terminal, comprising:
The terminal increases N number of data in the coordinate data by the bottom layer driving and reports to the upper layer of the terminal
Using;
The terminal receives the coordinate data of encryption by the upper layer application, and the coordinate data of encryption is decrypted, comprising:
The terminal increases N number of data by coordinate data of the upper layer application to encryption;
Judge whether the coordinate data of decryption is correct;Include:
Judge in the coordinate data of decryption whether to include two parts of N number of data, wherein N is the integer greater than 0.
5. according to the method described in claim 4, it is characterized in that, the coordinate data is the coordinate data collection of all coordinate points
It closes.
6. a kind of terminal is applied to Android system characterized by comprising
Reading unit, for reading the coordinate data of user's touch operation by bottom layer driving;The bottom layer driving is in Linux
The driving that stratum nucleare provides;
Encryption unit, for being encrypted and being reported to the upper layer of the terminal to the coordinate data by the bottom layer driving
Using;
Decryption unit is decrypted the coordinate data of encryption for receiving the coordinate data of encryption by upper layer application;
Response unit for responding the touch operation, or judges whether the coordinate data of decryption is correct;
If correct, the touch operation is responded.
7. terminal according to claim 6, which is characterized in that the encryption unit is specifically used for:
Encrypted and reported to the upper layer of the terminal to the coordinate data according to preset algorithm by the bottom layer driving
Using;
The decryption unit is specifically used for:
The coordinate data is decrypted according to the algorithm with the preset algorithm contrary by the upper layer application.
8. terminal according to claim 7, which is characterized in that the coordinate data is the coordinate data of single coordinate points.
9. terminal according to claim 6, which is characterized in that the encryption unit is specifically used for:
Increase N number of data in the coordinate data by the bottom layer driving and reports to the upper layer application of the terminal;
The decryption unit is specifically used for:
Increase N number of data by coordinate data of the upper layer application to encryption;
The response unit is specifically used for:
Judge in the coordinate data of decryption whether to include two parts of N number of data, wherein N is the integer greater than 0.
10. terminal according to claim 9, which is characterized in that the coordinate data is the coordinate data of all coordinate points
Set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610403276.3A CN106055992B (en) | 2016-06-07 | 2016-06-07 | A kind of method and terminal handling touch operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610403276.3A CN106055992B (en) | 2016-06-07 | 2016-06-07 | A kind of method and terminal handling touch operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106055992A CN106055992A (en) | 2016-10-26 |
CN106055992B true CN106055992B (en) | 2019-05-21 |
Family
ID=57170906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610403276.3A Expired - Fee Related CN106055992B (en) | 2016-06-07 | 2016-06-07 | A kind of method and terminal handling touch operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106055992B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108710464A (en) * | 2018-06-04 | 2018-10-26 | Oppo(重庆)智能科技有限公司 | Mobile terminal, control method and its storage medium |
CN116301440B (en) * | 2023-05-23 | 2023-08-29 | 深圳曦华科技有限公司 | Signal processing method, device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101344825A (en) * | 2008-07-31 | 2009-01-14 | 华为技术有限公司 | Method and terminal for inceptive cipher setting and cipher validation based on touch screen |
CN101813992A (en) * | 2010-05-07 | 2010-08-25 | 深圳视融达科技有限公司 | Touch screen and password-inputting method thereof |
CN103824033A (en) * | 2014-01-02 | 2014-05-28 | 南京永泰电子有限公司 | Touch display device for safely inputting password information and password input method |
CN104360869A (en) * | 2014-12-03 | 2015-02-18 | 飞天诚信科技股份有限公司 | Method for preventing underlying driver from intercepting messages |
CN104778009A (en) * | 2015-04-15 | 2015-07-15 | 京东方科技集团股份有限公司 | Driving method, driving device and display device |
CN104917607A (en) * | 2015-04-30 | 2015-09-16 | 东方通信股份有限公司 | PIN encryption equipment of touch screen key-press input and encryption method |
-
2016
- 2016-06-07 CN CN201610403276.3A patent/CN106055992B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101344825A (en) * | 2008-07-31 | 2009-01-14 | 华为技术有限公司 | Method and terminal for inceptive cipher setting and cipher validation based on touch screen |
CN101813992A (en) * | 2010-05-07 | 2010-08-25 | 深圳视融达科技有限公司 | Touch screen and password-inputting method thereof |
CN103824033A (en) * | 2014-01-02 | 2014-05-28 | 南京永泰电子有限公司 | Touch display device for safely inputting password information and password input method |
CN104360869A (en) * | 2014-12-03 | 2015-02-18 | 飞天诚信科技股份有限公司 | Method for preventing underlying driver from intercepting messages |
CN104778009A (en) * | 2015-04-15 | 2015-07-15 | 京东方科技集团股份有限公司 | Driving method, driving device and display device |
CN104917607A (en) * | 2015-04-30 | 2015-09-16 | 东方通信股份有限公司 | PIN encryption equipment of touch screen key-press input and encryption method |
Also Published As
Publication number | Publication date |
---|---|
CN106055992A (en) | 2016-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109471710B (en) | Task request processing method and device, processor, terminal and server | |
US9662588B2 (en) | Spawning new timelines during game session replay | |
US10092833B2 (en) | Game session sharing | |
CN105450620B (en) | A kind of information processing method and device | |
CN105765949B (en) | The method of geographically distributed disaster recovery for interactive cloud application | |
JP6398001B2 (en) | Spawn new timeline during game session replay | |
CN104317648B (en) | A kind of method and apparatus of monitoring advertisement | |
CN104205109A (en) | Persistent and resilient worker processes | |
EP2821115B1 (en) | Implementing encrypted content in a game | |
CN102970274A (en) | Method and system for obtaining identification information on a mobile device | |
WO2016140759A1 (en) | System and method for providing secured wireless communication with an action figure or action figure accessory | |
CN110025955B (en) | Information processing method, terminal, computer-readable storage medium, and computer device | |
CN103793295A (en) | Simulation engine system and method for use in disaster recovery virtualization | |
CN102984349A (en) | Method and device for screen locking code generating and screen unlocking method and screen unlocking device and mobile terminal | |
EP2985727A1 (en) | Systems and methods for protecting internet advertising data | |
CN112653670A (en) | Service logic vulnerability detection method, device, storage medium and terminal | |
CN109840114A (en) | Page processing method and mobile terminal | |
CN106055992B (en) | A kind of method and terminal handling touch operation | |
CN105094791A (en) | Status bar notification storage method and status bar notification storage device | |
CN109800135A (en) | A kind of information processing method and terminal | |
Meletiou et al. | Design and Implementation of an E-exam System Based on the Android Platform | |
CN109753793A (en) | A kind of hot patch method and hot patch device | |
CN110347703B (en) | ARCore-based user behavior analysis method and system | |
CN105138872A (en) | Method and apparatus for displaying menu page | |
CN112131085A (en) | Method, system and device for recording and playing back Internet business process |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190521 |
|
CF01 | Termination of patent right due to non-payment of annual fee |