CN106843689B - Mobile terminal and super screenshot implementation method - Google Patents

Mobile terminal and super screenshot implementation method Download PDF

Info

Publication number
CN106843689B
CN106843689B CN201710039194.XA CN201710039194A CN106843689B CN 106843689 B CN106843689 B CN 106843689B CN 201710039194 A CN201710039194 A CN 201710039194A CN 106843689 B CN106843689 B CN 106843689B
Authority
CN
China
Prior art keywords
screenshot
super
layer
application
function
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
Application number
CN201710039194.XA
Other languages
Chinese (zh)
Other versions
CN106843689A (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.)
Ningbo Zhenxue Education Technology Co ltd
Original Assignee
Ningbo Zhenxue Education 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 Ningbo Zhenxue Education Technology Co Ltd filed Critical Ningbo Zhenxue Education Technology Co Ltd
Priority to CN201710039194.XA priority Critical patent/CN106843689B/en
Publication of CN106843689A publication Critical patent/CN106843689A/en
Application granted granted Critical
Publication of CN106843689B publication Critical patent/CN106843689B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mobile terminal, comprising: the first adding module is used for adding concrete realization of a super screenshot function in a hardware abstraction layer so as to abstract and package the collected data of the fingerprint chip at the bottom layer; the second adding module is used for adding a callback function for calling back data collected by the fingerprint chip on the JNI layer so as to provide an operation interface for the application framework layer; and the third adding module is used for adding an application programming interface for realizing the super screenshot function in the application framework layer so as to be called by the application layer and realize the super screenshot function. The invention also discloses a super screenshot implementation method. The method and the device can reduce the realization difficulty of the super screenshot.

Description

Mobile terminal and super screenshot implementation method
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal and a super screenshot implementation method.
Background
No matter the mobile terminal is an android mobile phone or an apple mobile phone, the screen capture function is added to the existing mobile terminal. However, a common mobile terminal generally supports only single-screen interception, that is, only single-screen content can be intercepted. In order to improve screenshot experience of a user, a super screenshot function is provided on a mobile terminal product of the user by a terminal manufacturer such as Nubian, millet and OPPO for the user to use. The super screenshot comprises three functions of recording, long screenshot and free screenshot, and is suitable for different scenes, wherein the long screenshot is a picture of an interface where a mobile terminal is located, so that long content screenshot can be realized, and a picture with complete content can be easily intercepted; the free screenshot is to intercept the screen content in any shape such as rectangle, ellipse, heart shape, free shape and the like; the screen recording is to record the received screen operation, and simultaneously, the sound can also be recorded, and finally, a video file with a set format is generated.
For the convenience of users, these terminal manufacturers usually provide super-screenshots based on fingerprint identification, that is, the user can trigger the super-screenshot function through a fingerprint sensor provided in the mobile terminal. When the hardware of the mobile terminal is implemented, even if the mobile terminal is of the same model, terminal manufacturers can adopt various types of fingerprint chips at the same time. Due to the difference of the fingerprint chips, the fingerprint chips designed by different fingerprint identification manufacturers have differences in software implementation methods. When different fingerprint chips are used, different codes are required to be prepared by the upper layer to adapt to different fingerprint chips when the super screenshot function is realized, so that the workload is remarkably increased, and the difficulty in realizing the super screenshot is higher.
Disclosure of Invention
The invention provides a mobile terminal and a super screenshot implementation method, and aims to reduce the implementation difficulty of super screenshot.
To achieve the above object, the present invention provides a mobile terminal, comprising:
the first adding module is used for adding concrete realization of a super screenshot function in a hardware abstraction layer so as to abstract and package the collected data of the fingerprint chip at the bottom layer;
the second adding module is used for adding a callback function for calling back data collected by the fingerprint chip on the JNI layer so as to provide an operation interface for the application framework layer;
and the third adding module is used for adding an application programming interface for realizing the super screenshot function in the application framework layer so as to be called by the application layer and realize the super screenshot function.
Optionally, the second adding module is further configured to, while adding a callback function of data collected by the callback fingerprint chip to the JNI layer, identify whether a JNI call source code for implementing a super screenshot function exists in the JNI layer; and deleting the JNI calling source code when the JNI calling source code exists in the JNI layer.
Optionally, the third adding module is further configured to identify whether an extended service for implementing the super screenshot function exists in the application framework layer while adding the application programming interface for implementing the super screenshot function in the application framework layer; and the extended service is deleted when the extended service exists in the application framework layer.
Optionally, the mobile terminal further includes a screenshot module, configured to call the application programming interface based on a super screenshot application running in a background, and switch the super screenshot application to a foreground running when a call result is a preset fingerprint long-touch event.
Optionally, the screen capture module is further configured to identify whether the current screen is in a bright-screen and unlocked-screen state when the calling result is a preset fingerprint long-touch event; and the super screenshot application is switched to the foreground to run when the current screen is in a bright screen and unlocked state and the screen locking password is set.
In addition, in order to achieve the above object, the present invention further provides a super screenshot implementation method, which is applied to a mobile terminal, and the super screenshot implementation method includes:
adding concrete realization of a super screenshot function in a hardware abstraction layer to abstract and package the acquired data of a bottom fingerprint chip;
adding a callback function of data collected by a callback fingerprint chip on the JNI layer to provide an operation interface for the application framework layer;
and adding an application programming interface for realizing the super screenshot function in the application framework layer so as to be called by the application layer and realize the super screenshot function.
Optionally, while executing a callback function that adds a callback fingerprint chip to the JNI layer to collect data, the following steps are also executed:
identifying whether a JNI calling source code for realizing a super screenshot function exists in a JNI layer;
and deleting the JNI calling source code when the JNI calling source code exists in the JNI layer.
Optionally, while adding an application programming interface implementing the super screenshot function to the application framework layer, the following steps are also performed:
identifying whether an application framework layer has an extended service for realizing a super screenshot function;
and deleting the extended service when the extended service exists in the application framework layer.
Optionally, after the step of adding an application programming interface for implementing the super screenshot function to the application framework layer, the method further includes:
and calling the application programming interface based on the super screenshot application running in the background, and switching the super screenshot application to the foreground to run when the calling result is a preset fingerprint long-touch event.
Optionally, before the step of switching the super screenshot to foreground operation, the method further includes:
when the calling result is a preset fingerprint long-touch event, identifying whether the current screen is in a bright-screen and unlocked-screen state;
and when the current screen is in a bright screen and unlocked screen state and a screen locking password is set, switching to the step of switching the super screenshot application to the foreground for running.
The mobile terminal and the super screenshot implementation method provided by the invention have the advantages that the implementation interface and the related callback function of the super screenshot function are added upwards layer by layer from the hardware abstraction layer, the application programming interface for realizing the super screenshot function is added on the application framework layer for the application layer to call, the unification of the super screenshot implementation interfaces of different types of fingerprint chips is completed, the workload of software programming is obviously reduced, and the purpose of reducing the super screenshot implementation difficulty is achieved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a block diagram of a mobile terminal according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating a screen recording function of a super screenshot in a first embodiment of a mobile terminal according to the present invention;
FIG. 4 is a diagram illustrating a free screenshot function of a super screenshot in a first embodiment of a mobile terminal according to the present invention;
FIG. 5 is a diagram illustrating a long screenshot function of a super screenshot in a first embodiment of a mobile terminal according to the present invention;
FIG. 6 is a software flow diagram for fingerprint recognition;
FIG. 7 is a schematic view of a fingerprint data reporting process;
FIG. 8 is a diagram illustrating a structure of a fingerprint chip module;
FIG. 9 is a schematic diagram of a user touching a fingerprint chip;
FIG. 10 is a diagram illustrating a first embodiment of a mobile terminal according to the present invention for modifying a fingerprint identification interface function;
FIG. 11 is a flowchart illustrating a first embodiment of a method for implementing a super screenshot according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should be noted that the embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the mobile terminal described in the present invention may include devices such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., and it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a mobile communication module 111, a wireless internet module 112, and a short-range wireless communication module 113.
The mobile communication module 111 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 112 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short range wireless communication module 113 is a module for supporting short range communication. Some examples of short-range communication technologies include WLAN (Wireless LAN) (Wi-Fi), BluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd Near Field Communication (NFC), among others.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI displaying a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The memory 160 may store a software program or the like for processing and controlling operations performed by the controller 180, for example, a software program for implementing the super shot implementing method of the present invention, or may temporarily store data (e.g., a phonebook, messages, still images, videos, etc.) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Based on the above mobile terminal hardware structure, various embodiments of the mobile terminal of the present invention are provided.
Referring to fig. 2, in a first embodiment of the mobile terminal of the present invention, the mobile terminal includes:
a first adding module 10, configured to add a concrete implementation of a super screenshot function in a hardware abstraction layer, so as to abstract and encapsulate data collected by a fingerprint chip on a bottom layer;
the second adding module 20 is configured to add a callback function for calling back data acquired by the fingerprint chip in the JNI layer to provide an operation interface for the application framework layer;
a third adding module 30, configured to add an application programming interface for implementing the super screenshot function in the application framework layer, so as to be called by the application layer, and implement the super screenshot function.
In order to facilitate understanding of the solution of the present invention, the following first describes a super screenshot function of a mobile terminal with reference to the accompanying drawings.
The super screenshot described by the invention comprises three functions of screen recording, long screenshot and free screenshot.
As shown in fig. 3, for an illustration of a screen recording function, when the illustration "start" control is clicked, a screen recording operation is triggered, and at this time, the mobile terminal records the received screen operation and also records sound, and finally generates a video file with a set format, such as a video file with an mp4 format.
As shown in fig. 4, the free screenshot function is illustrated, and through the "free screenshot", the user can select and capture the desired content, and the experience is more convenient. In addition, the method supports circular screenshots, heart-shaped screenshots and the like, and is more differentiated and interesting.
As shown in fig. 5, the long screenshot function is illustrated, and the main purpose of the long screenshot is that the content of the single-page mobile terminal interface cannot meet the requirements of the user, and at this time, the long screenshot needs to be used to capture the whole content, so that the whole picture content can be easily captured across multiple screens, and the whole content can be shared after screenshot.
In actual production, different terminal manufacturers adopt the standard flow of Google on the implementation of basic functions of fingerprints (such as prenroll, enroll, authentication, etc.), and the software flow of the Google is shown in fig. 6.
The FingerprintManager module can be said to be a proxy module of the application layer. Every application needing to use the fingerprint realizes the relevant function by calling the interface of the FingerprintManager. It provides interfaces such as preEnroll, enroll, postEnroll, authentite, getAutothenatotorId and registers callback function downwards. The bottom layer module calls back the registration result and the authentication result to the FingerprintManager module.
The FingerprintService module manages the logic of the whole processes of registering, identifying, deleting fingerprints, checking authority and the like.
The fingerprinttd module initializes a fingerprintt module of the hardware abstraction layer, provides an interface for operating a Fingerprint chip for the FingerprintService module, and registers a message callback function and the like to the hardware abstraction layer.
Referring to fig. 7, a schematic diagram of a fingerprint data reporting process is shown, in which a firmware burned in a fingerprint chip is responsible for controlling a process of collecting fingerprint data; the Fingerprint driver is responsible for transmitting Fingerprint data and processing algorithm results and reporting corresponding events; and the upper layer realizes an algorithm and returns a processing result.
Referring to fig. 8, an exemplary diagram of a fingerprint chip module includes a glass cover plate, an annular fixing device, a fingerprint chip and a flexible circuit board.
Referring to fig. 9, a user touches the Fingerprint chip with a finger, and the Fingerprint chip reports corresponding data to the Fingerprint drive or the upper layer through an identified touch gesture (e.g., left-sliding) so as to implement a specific application (e.g., left-sliding to implement a return key function).
Based on the foregoing description, the main aspects of the present invention will be explained next.
The main scheme of the invention is that different fingerprint chips provide the same super screenshot realization interface for the super screenshot function.
Specifically, referring to fig. 10 in combination, firstly, a first adding module 10 adds a concrete implementation of a super screenshot function to a Fingerprint module of a hardware abstraction layer, so as to abstract and encapsulate the collected data of the Fingerprint chip at the bottom layer, and shield differences of different types of Fingerprint chips. The hardware abstraction layer is an interface layer located between the kernel of the operating system and the hardware circuit, and is intended to abstract the hardware. It hides the hardware interface details of specific platform, provides virtual hardware platform for operation system, makes it have hardware independence, and can be transplanted on several platforms. From the perspective of software and hardware testing, the software and hardware testing can be completed based on the hardware abstraction layer, so that the parallel execution of the software and hardware testing becomes possible.
Secondly, a second adding module 20 adds a callback function for calling back data collected by the fingerprint chip in a Fingerprintd module of a JNI (Java Native Interface) layer, so as to provide an Interface for operating the fingerprint chip for an application framework layer. The JNI layer plays a role of starting and stopping, the upper layer receives the application framework layer, and the lower layer calls the hardware abstraction layer to realize concrete implementation.
Finally, the third adding module 30 adds an application programming interface for implementing the super screenshot function to the FingerprintService module of the application framework layer, so as to be called by the application layer, thereby implementing the super screenshot function.
Therefore, the invention realizes the unification of the interfaces of the super screenshots of different types of fingerprint chips.
Furthermore, the specific code implementation for the aforementioned operations can be performed by those skilled in the art, and the present invention is not particularly limited.
According to the mobile terminal provided by the invention, the realization interface of the super screenshot function and the related callback function are added upwards layer by layer from the hardware abstraction layer, the application programming interface for realizing the super screenshot function is added on the application framework layer for the application layer to call, so that the unification of super screenshot realization interfaces of different types of fingerprint chips is completed, the workload of software programming is obviously reduced, and the purpose of reducing the realization difficulty of the super screenshot is achieved.
Based on the first embodiment, a second embodiment of the mobile terminal of the present invention is provided, in this embodiment, the second adding module 20 is further configured to, while adding a callback function of the callback fingerprint chip to collect data in the JNI layer, identify whether a JNI call source code for implementing a super screenshot function exists in the JNI layer; and deleting the JNI calling source code when the JNI calling source code exists in the JNI layer.
It should be noted that, compared with the first embodiment, the present embodiment adds redundancy elimination operation. Specifically, in this embodiment, the second adding module 20 adds a callback function of data collected by a callback fingerprint chip to a fingerpringtd module in the JNI layer, and also identifies whether a JNI calling source code for implementing a super screenshot function exists in the fingerpringtd module, and if so, deletes the JNI calling source code for implementing the super screenshot function, thereby avoiding a program running error.
Based on the first embodiment, a third embodiment of the mobile terminal of the present invention is provided, in this embodiment, the third adding module 30 is further configured to, while adding an application programming interface for implementing a super screenshot function to the application framework layer, identify whether an extension service for implementing the super screenshot function exists in the application framework layer; and the system is also used for deleting the extended service when the extended service exists in the application framework layer.
It should be noted that, compared with the first embodiment, the present embodiment adds redundancy elimination operation. Specifically, in this embodiment, the third adding module 30 is configured to, while adding a callback function for calling back data acquired by the fingerprint chip to the FingerprintService module in the application framework layer, identify whether an extended service for implementing the super screenshot function exists in the FingerprintManager module, and if so, delete the extended service for implementing the super screenshot function, thereby avoiding a program running error.
Further, a fourth embodiment of the mobile terminal of the present invention is provided based on any of the foregoing embodiments, and in this embodiment, the mobile terminal further includes a screenshot module, configured to invoke an application programming interface that implements a screenshot function based on a background-running screenshot super application, and switch the screenshot application to foreground running when a result of the invocation is a preset fingerprint long-touch event.
It should be noted that, compared with the foregoing embodiments, the present embodiment adds an operation of triggering the super screenshot function. Specifically, in this embodiment, the screenshot module calls an application programming interface for implementing the super screenshot function in real time based on the super screenshot application running in the background, and when a call result returned by the application programming interface is received, identifies whether the call result is a preset fingerprint long-touch event, so as to determine whether the user needs to trigger the super screenshot function. When the calling result is identified to be the preset fingerprint long touch event, the screenshot module switches the super screenshot application to the foreground for operation, as shown in fig. 3 to 5, the user can slide the super screenshot interface of the mobile terminal screen as required, and the super screenshot interface is switched randomly among the three functions of the super screenshot to complete screenshot.
In this embodiment, in order to improve the flexibility of fingerprint identification of the mobile terminal, the screenshot module is further configured to identify whether the mobile terminal is currently in a bright-screen and unlocked-screen state when the calling result is a preset fingerprint long-touch event; and the super screenshot application is switched to the foreground for running when the current screen is in a bright screen and unlocked state and the screen locking password is set.
Figure BDA0001214030500000111
TABLE 1
As shown in table 1, the present embodiment presets responses for different fingerprint events, including:
1. under the bright screen and the non-lock screen, a screen-locking password is set, but no registered fingerprint is detected (for example, a user registers a thumb fingerprint, but touches the fingerprint chip with an index finger), and then the user long-touching the fingerprint chip triggers the super screenshot function of the mobile terminal.
2. When the screen is bright and not locked, the user presses the screen, and the mobile terminal returns to the main interface;
3. under the condition of bright screen and non-locked screen, a user presses for a long time, and the mobile terminal is switched to a multitask interface;
4. and under the condition of bright screen and non-locked screen, the user double clicks, and the mobile terminal returns to the main interface.
It is understood that the above-mentioned fingerprint events such as touch once, long touch, press once, long press, and double-click can be set by those skilled in the art according to actual needs, for example, two seconds of continuously pressing the fingerprint chip is defined as a fingerprint long touch event.
Further, the present invention also provides a super screenshot implementation method, which is executed by the mobile terminal shown in fig. 2, and with reference to fig. 2 and fig. 11, corresponds to the first embodiment of the mobile terminal of the present invention, and in the first embodiment of the super screenshot implementation method of the present invention, the super screenshot implementation method includes:
step S10, adding concrete realization of super screenshot function in the hardware abstraction layer to abstract and package the collected data of the bottom fingerprint chip;
step S20, adding a callback function for calling back data collected by the fingerprint chip on the JNI layer to provide an operation interface for the application framework layer;
and step S30, adding an application programming interface for realizing the super screenshot function in the application framework layer so as to be called by the application layer to realize the super screenshot function.
Specifically, referring to fig. 10 in combination, firstly, a first adding module 10 adds a concrete implementation of a super screenshot function to a Fingerprint module of a hardware abstraction layer, so as to abstract and encapsulate the collected data of the Fingerprint chip at the bottom layer, and shield differences of different types of Fingerprint chips. The hardware abstraction layer is an interface layer located between the kernel of the operating system and the hardware circuit, and is intended to abstract the hardware. It hides the hardware interface details of specific platform, provides virtual hardware platform for operation system, makes it have hardware independence, and can be transplanted on several platforms. From the perspective of software and hardware testing, the software and hardware testing can be completed based on the hardware abstraction layer, so that the parallel execution of the software and hardware testing becomes possible.
Secondly, a second adding module 20 adds a callback function for calling back data collected by the fingerprint chip in a Fingerprintd module of a JNI (Java Native Interface) layer, so as to provide an Interface for operating the fingerprint chip for an application framework layer. The JNI layer plays a role of starting and stopping, the upper layer receives the application framework layer, and the lower layer calls the hardware abstraction layer to realize concrete implementation.
Finally, the third adding module 30 adds an application programming interface for implementing the super screenshot function to the FingerprintService module of the application framework layer, so as to be called by the application layer, thereby implementing the super screenshot function.
Therefore, the invention realizes the unification of the interfaces of the super screenshots of different types of fingerprint chips.
Furthermore, the specific code implementation for the aforementioned operations can be performed by those skilled in the art, and the present invention is not particularly limited.
The super screenshot realization method provided by the invention is characterized in that a realization interface of a super screenshot function and a related callback function are added upwards layer by layer from a hardware abstraction layer, an application program programming interface for realizing the super screenshot function is added on an application framework layer for being called by the application layer, so that the unification of super screenshot realization interfaces of different types of fingerprint chips is completed, the workload of software programming is obviously reduced, and the purpose of reducing the realization difficulty of the super screenshot is achieved.
Based on the first embodiment, which corresponds to the second embodiment of the foregoing mobile terminal, a second embodiment of the super screenshot implementing method of the present invention is proposed, in this embodiment, while executing step S20, the following steps are also executed:
identifying whether a JNI calling source code for realizing a super screenshot function exists in a JNI layer;
and deleting the JNI calling source code when the JNI calling source code exists in the JNI layer.
It should be noted that, compared with the first embodiment, the present embodiment adds redundancy elimination operation. Specifically, in this embodiment, the second adding module 20 adds a callback function of data collected by a callback fingerprint chip to a fingerpringtd module in the JNI layer, and also identifies whether a JNI calling source code for implementing a super screenshot function exists in the fingerpringtd module, and if so, deletes the JNI calling source code for implementing the super screenshot function, thereby avoiding a program running error.
Based on the first embodiment and corresponding to the third embodiment of the foregoing mobile terminal, a third embodiment of the super screenshot implementing method of the present invention is proposed, in this embodiment, while executing step S30, the following steps are also executed:
identifying whether an application framework layer has an extended service for realizing a super screenshot function;
and when the application framework layer has the extended service, deleting the extended service.
It should be noted that, compared with the first embodiment, the present embodiment adds redundancy elimination operation. Specifically, in this embodiment, the third adding module 30 is configured to, while adding a callback function for calling back data acquired by the fingerprint chip to the FingerprintService module in the application framework layer, identify whether an extended service for implementing the super screenshot function exists in the FingerprintManager module, and if so, delete the extended service for implementing the super screenshot function, thereby avoiding a program running error.
Further, based on any one of the foregoing embodiments, corresponding to the foregoing fourth embodiment of the mobile terminal, a fourth embodiment of the super screenshot implementing method of the present invention is provided, in this embodiment, after step S30, the method further includes:
and calling an application programming interface for realizing the super screenshot function based on the super screenshot application running in the background, and switching the super screenshot application to the foreground to run when the calling result is a preset fingerprint long-touch event.
It should be noted that, compared with the foregoing embodiments, the present embodiment adds an operation of triggering the super screenshot function. Specifically, in this embodiment, the mobile terminal further includes a screenshot module, where the screenshot module calls an application programming interface for implementing a super screenshot function based on a super screenshot application running in the background in real time, and when a call result returned by the application programming interface is received, identifies whether the call result is a preset fingerprint long-touch event, so as to determine whether the user needs to trigger the super screenshot function. When the calling result is identified to be the preset fingerprint long touch event, the screenshot module switches the super screenshot application to the foreground for operation, as shown in fig. 3 to 5, the user can slide the super screenshot interface of the mobile terminal screen as required, and the super screenshot interface is switched randomly among the three functions of the super screenshot to complete screenshot.
In this embodiment, before the step of switching the super screenshot to foreground operation, the method further includes:
when the calling result is a preset fingerprint long-touch event, identifying whether the current screen is in a bright-screen and unlocked-screen state;
and when the current screen is in a bright screen and unlocked screen state and the screen locking password is set, switching to the step of executing switching of the super screenshot application to the foreground for operation.
In order to improve the flexibility of fingerprint identification of the mobile terminal, in this embodiment, the screenshot module is further configured to identify whether the current screen is in a bright-screen and unlocked-screen state when the calling result is a preset fingerprint long-touch event; and the super screenshot application is switched to the foreground for running when the current screen is in a bright screen and unlocked state and the screen locking password is set.
As shown in table 1, the present embodiment presets responses for different fingerprint events, including:
1. under the bright screen and the non-lock screen, a screen-locking password is set, but no registered fingerprint is detected (for example, a user registers a thumb fingerprint, but touches the fingerprint chip with an index finger), and then the user long-touching the fingerprint chip triggers the super screenshot function of the mobile terminal.
2. When the screen is bright and not locked, the user presses the screen, and the mobile terminal returns to the main interface;
3. under the condition of bright screen and non-locked screen, a user presses for a long time, and the mobile terminal is switched to a multitask interface;
4. and under the condition of bright screen and non-locked screen, the user double clicks, and the mobile terminal returns to the main interface.
It is understood that the above-mentioned fingerprint events such as touch once, long touch, press once, long press, and double-click can be set by those skilled in the art according to actual needs, for example, two seconds of continuously pressing the fingerprint chip is defined as a fingerprint long touch event.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the invention. However, it will be apparent to one skilled in the art that the specific details are not required in order to practice the invention. The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments are shown and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.

Claims (8)

1. A mobile terminal, characterized in that the mobile terminal comprises:
the first adding module is used for adding concrete realization of a super screenshot function in a hardware abstraction layer so as to abstract and package the collected data of the fingerprint chip at the bottom layer;
the second adding module is used for adding a callback function for calling back data collected by the fingerprint chip on the JNI layer so as to provide an operation interface for the application framework layer;
the third adding module is used for adding an application programming interface for realizing the super screenshot function in an application framework layer so as to be called by an application layer and realize the super screenshot function;
the mobile terminal further comprises a screenshot module, wherein the screenshot module is used for calling the application programming interface based on the super screenshot application running in the background and switching the super screenshot application to the foreground to run when the calling result is a preset fingerprint long touch event.
2. The mobile terminal according to claim 1, wherein the second adding module is further configured to identify whether a JNI call source code for implementing a super screenshot function exists in the JNI layer while adding a callback function of data collected by a callback fingerprint chip in the JNI layer; and deleting the JNI calling source code when the JNI calling source code exists in the JNI layer.
3. The mobile terminal according to claim 1, wherein the third adding module is further configured to identify whether an extended service for implementing the super screenshot function exists in the application framework layer while adding an application programming interface for implementing the super screenshot function in the application framework layer; and the extended service is deleted when the extended service exists in the application framework layer.
4. The mobile terminal of claim 1, wherein the screenshot module is further configured to identify whether the current screen is in a bright-screen and unlocked-screen state when the calling result is a preset fingerprint long-touch event; and the super screenshot application is switched to the foreground to run when the current screen is in a bright screen and unlocked state and the screen locking password is set.
5. A super screenshot realization method is applied to a mobile terminal and is characterized by comprising the following steps:
adding concrete realization of a super screenshot function in a hardware abstraction layer to abstract and package the acquired data of a bottom fingerprint chip;
adding a callback function of data collected by a callback fingerprint chip on the JNI layer to provide an operation interface for the application framework layer;
an application programming interface for realizing the super screenshot function is added to the application framework layer to be called by the application layer so as to realize the super screenshot function;
after the step of adding the application programming interface for realizing the super screenshot function to the application framework layer, the method further comprises the following steps:
and calling the application programming interface based on the super screenshot application running in the background, and switching the super screenshot application to the foreground to run when the calling result is a preset fingerprint long-touch event.
6. The method for implementing the super screenshot according to claim 5, wherein the following steps are executed while a callback function for adding data collected by a callback fingerprint chip to a JNI layer is executed:
identifying whether a JNI calling source code for realizing a super screenshot function exists in a JNI layer;
and deleting the JNI calling source code when the JNI calling source code exists in the JNI layer.
7. The method for realizing the super screenshot according to claim 5, wherein the following steps are executed while adding an application programming interface for realizing the super screenshot function in an application framework layer:
identifying whether an application framework layer has an extended service for realizing a super screenshot function;
and deleting the extended service when the extended service exists in the application framework layer.
8. The method for implementing the super screenshot according to claim 5, wherein before the step of switching the super screenshot to foreground operation, the method further comprises:
when the calling result is a preset fingerprint long-touch event, identifying whether the current screen is in a bright-screen and unlocked-screen state;
and when the current screen is in a bright screen and unlocked screen state and a screen locking password is set, switching to the step of switching the super screenshot application to the foreground for running.
CN201710039194.XA 2017-01-19 2017-01-19 Mobile terminal and super screenshot implementation method Expired - Fee Related CN106843689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710039194.XA CN106843689B (en) 2017-01-19 2017-01-19 Mobile terminal and super screenshot implementation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710039194.XA CN106843689B (en) 2017-01-19 2017-01-19 Mobile terminal and super screenshot implementation method

Publications (2)

Publication Number Publication Date
CN106843689A CN106843689A (en) 2017-06-13
CN106843689B true CN106843689B (en) 2020-11-20

Family

ID=59124399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710039194.XA Expired - Fee Related CN106843689B (en) 2017-01-19 2017-01-19 Mobile terminal and super screenshot implementation method

Country Status (1)

Country Link
CN (1) CN106843689B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110876069A (en) * 2018-08-31 2020-03-10 广州虎牙信息科技有限公司 Method, device and equipment for acquiring video screenshot and storage medium
CN110769096A (en) * 2019-10-21 2020-02-07 Oppo(重庆)智能科技有限公司 Motor vibration method, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779027A (en) * 2011-05-09 2012-11-14 腾讯科技(深圳)有限公司 Method and device for realizing screen capture based on instant communication software
CN103558978A (en) * 2013-10-17 2014-02-05 深圳市同洲电子股份有限公司 Image capturing method, device and system
CN104216709A (en) * 2014-08-20 2014-12-17 深圳光启创新技术有限公司 Method and module for directly controlling hardware equipment in operating system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7661014B2 (en) * 2003-04-23 2010-02-09 Dot Hill Systems Corporation Network storage appliance with integrated server and redundant storage controllers
CN104267956B (en) * 2014-09-28 2016-05-11 深圳光启智能光子技术有限公司 The method and apparatus of control hardware equipment in a kind of operating system
CN104236579B (en) * 2014-10-09 2016-06-08 武汉大学 A kind of based on Android inner nuclear layer realization high accuracy satellite navigation locating method
CN104598253B (en) * 2015-02-17 2016-10-19 武汉大学 A kind of method realizing GNSS/INS integrated navigation at Android inner nuclear layer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779027A (en) * 2011-05-09 2012-11-14 腾讯科技(深圳)有限公司 Method and device for realizing screen capture based on instant communication software
CN103558978A (en) * 2013-10-17 2014-02-05 深圳市同洲电子股份有限公司 Image capturing method, device and system
CN104216709A (en) * 2014-08-20 2014-12-17 深圳光启创新技术有限公司 Method and module for directly controlling hardware equipment in operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Windows环境下虚拟化Android系统中NFC模块的移植与应用研究;祁亚东;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160515;I138-655 *

Also Published As

Publication number Publication date
CN106843689A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
JP7110451B2 (en) Notification processing method, electronic device, computer readable storage medium, and program
CN107276789B (en) Log uploading method and device and computer readable storage medium
CN106951884B (en) Fingerprint acquisition method and device and electronic equipment
WO2019174611A1 (en) Application configuration method and mobile terminal
US20140160316A1 (en) Mobile terminal and control method thereof
KR102150624B1 (en) Method and apparatus for notifying smishing
EP2731028A2 (en) Mobile terminal and control method thereof
CN106126685B (en) Page loading method and device
CN109219036B (en) Method and device for unbinding equipment and electronic equipment
CN106557402B (en) Mobile terminal and exception information processing method
EP3561692A1 (en) Method and device for displaying web page content
CN104217172B (en) Privacy content inspection method and device
US20170265079A1 (en) Electronic device and method for acquiring biometric information thereof
US9183372B2 (en) Mobile terminal and control method thereof
CN108153460B (en) Icon hiding method and terminal
CN107330391A (en) Product information reminding method and device
CN107704190B (en) Gesture recognition method and device, terminal and storage medium
WO2020156117A1 (en) File processing method and device, and terminal
CN106843689B (en) Mobile terminal and super screenshot implementation method
US11297227B2 (en) Wireless device having dedicated rear panel control
CN107632835A (en) Using installation method and device
US10303351B2 (en) Method and apparatus for notifying of content change
CN107239236A (en) Method for writing data and device
WO2019179312A1 (en) Mobile terminal operation method and mobile terminal
CN106412481A (en) Prompt method and device, and terminals based on VoLTE video call

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
TA01 Transfer of patent application right

Effective date of registration: 20201106

Address after: Room 101-7, building 2, No. 188, Jinghua Road, hi tech Zone, Ningbo City, Zhejiang Province, 315000

Applicant after: Ningbo zhenxue Education Technology Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201120

Termination date: 20220119

CF01 Termination of patent right due to non-payment of annual fee