CN111462785B - Recording control method, recording control device, storage medium and mobile terminal - Google Patents

Recording control method, recording control device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111462785B
CN111462785B CN202010260153.5A CN202010260153A CN111462785B CN 111462785 B CN111462785 B CN 111462785B CN 202010260153 A CN202010260153 A CN 202010260153A CN 111462785 B CN111462785 B CN 111462785B
Authority
CN
China
Prior art keywords
recording
permission
authority
application
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010260153.5A
Other languages
Chinese (zh)
Other versions
CN111462785A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010260153.5A priority Critical patent/CN111462785B/en
Publication of CN111462785A publication Critical patent/CN111462785A/en
Application granted granted Critical
Publication of CN111462785B publication Critical patent/CN111462785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/1062Data buffering arrangements, e.g. recording or playback buffers
    • G11B2020/10675Data buffering arrangements, e.g. recording or playback buffers aspects of buffer control

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a recording control method, a recording control device, a storage medium and a mobile terminal, wherein the method comprises the following steps: when the recording application program is started, performing permission check on the operation permission and the application operation permission of the recording application program; when the permission check result is allowable, initializing the recording thread; monitoring the authority state change of the application operation authority in real time; if the permission state is monitored to be changed into refusal, writing preset data into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into refusal; and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into the cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission. According to the method and the device, under the condition that the recording thread is not interrupted, whether the specific content is recorded or not is controlled in real time according to the monitored authority state change of the application operation authority, and the information safety is improved.

Description

Recording control method, recording control device, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a recording control method and apparatus, a storage medium, and a mobile terminal.
Background
At present, if an application program needs to perform some operations requiring dangerous rights, the rights need to be dynamically applied through codes at runtime, which is called runtime rights.
The mobile terminal provides the check of the operation permission so that a terminal user can independently select whether to approve the application program to acquire the permission when using a certain function.
However, the runtime permission management also has disadvantages, such as a recording scenario, before starting recording, the runtime permission and the application operation permission of the microphone need to be available at the same time, and when the recording process involves secret information and requires that the recording cannot be performed, the recording process of the application program must be manually terminated, and then a new recording is started. If the operation permission is directly modified to be refused, the application program is possibly directly crashed, and when the operation permission is modified to be refused by using the command line, the requirement of shielding the secret information cannot be met.
Disclosure of Invention
The embodiment of the application provides a recording control method, a recording control device, a storage medium and a mobile terminal, which can control whether to record specific content in real time under the condition that a recording thread is not interrupted, so that the information security is improved.
The embodiment of the application provides a recording control method, which comprises the following steps:
when a recording application program is started, carrying out authority check on the running authority and the application operation authority of the recording application program;
when the permission check results of the operation permission and the application operation permission are allowed, initializing a recording thread of the recording application program;
monitoring the authority state change of the application operation authority in real time;
if the permission state is monitored to be changed into refusal, preset data is written into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into refusal; and
and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission.
In the recording control method according to the embodiment of the present application, the monitoring, in real time, a change in an authority state of the application operation authority includes:
monitoring the authority operating instruction of the application operating authority in real time;
and changing the authority state of the application operation authority according to the monitored authority operation instruction.
In the recording control method according to the embodiment of the present application, the monitoring the permission operation instruction of the application operation permission in real time includes:
and determining the authority operation instruction of the application operation authority according to any one of the acquired designated characters, designated operation gestures and designated sounds input by the user.
In the recording control method according to the embodiment of the present application, the monitoring the permission operation instruction of the application operation permission in real time includes:
in the recording process, when the recording content is detected to have the preset keyword, determining the authority operation instruction of the application operation authority as a rejection instruction.
In the recording control method according to the embodiment of the application, the preset data is null data or specified audio.
In the recording control method according to the embodiment of the present application, the method further includes:
and outputting a recording fragment comprising the preset data and the real audio data after the recording thread is finished.
The embodiment of the present application further provides a recording control device, the device includes:
the checking module is used for checking the operation authority and the application operation authority of the recording application program when the recording application program is started;
the initialization module is used for initializing the recording thread of the recording application program when the permission check results of the run-time permission and the application operation permission are allowed;
the monitoring module is used for monitoring the authority state change of the application operation authority in real time;
the control module is used for writing preset data into a cache region corresponding to the recording thread in the recording time period in which the authority state is changed into rejection if the authority state is monitored to be changed into rejection; and
and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission.
In the recording control apparatus according to an embodiment of the present application, the monitoring module includes:
the monitoring unit is used for monitoring the authority operation instruction of the application operation authority in real time;
and the changing unit is used for changing the authority state of the application operation authority according to the monitored authority operation instruction.
The embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is caused to execute the steps in the recording control method.
The embodiment of the application further provides a mobile terminal, which comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the steps in the recording control method by calling the computer program stored in the memory.
According to the method and the device, when the recording application program is started, the operation permission and the application operation permission of the recording application program are checked; when the permission check results of the operation permission and the application operation permission are allowed, initializing a recording thread of the recording application program; monitoring the authority state change of the application operation authority in real time; if the permission state is monitored to be changed into refusal, writing preset data into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into refusal; and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into the cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission. According to the method and the device, under the condition that the recording thread is not interrupted, whether the specific content is recorded or not is controlled in real time according to the monitored authority state change of the application operation authority, and the information safety is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flow chart of a recording control method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a recording control device according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of the recording control apparatus according to the embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a recording control method, which can be applied to a mobile terminal. The mobile terminal can be a smart phone, a tablet personal computer, a desktop computer, a smart watch, a camera, a recording pen and other devices with a recording function.
Referring to fig. 1, fig. 1 is a schematic flow chart of a recording control method according to an embodiment of the present application. The recording control method is applied to a mobile terminal, and can comprise the following steps:
step 101, when a recording application program is started, performing permission check on the running permission and the application operation permission of the recording application program.
For example, a user starts a recording application in a terminal, and before starting recording, the user needs to have both the runtime permission of a microphone and the application operation permission of OP _ READ _ AUDIO, and thus when the recording application starts, the user needs to perform permission check on the runtime permission and the application operation permission of the recording application.
For example, the run-time permission refers to a permission that a user does not need to authorize all applications at one time when the application program is installed, but can authorize a certain permission application in the use process of the application program. If the user uses a certain input method to input information in the instant communication program, the user needs to apply for the microphone authority, and if the user refuses, the user is only prohibited to input voice information, but text or picture information can be normally input.
For example, the authority generally has a difference between a common authority and a dangerous authority, the common authority system can automatically authorize, the dangerous authority usually relates to privacy and safety of a user, and the user needs to manually click authorization when applying for the authorization. For example, the object of the dangerous authority generally includes a calendar, a camera, an address book, location information, a microphone, a telephone, a sensor, a short message, and the like.
For example, for an android system, the system implicitly provides application operation (AppOps) authority management at the same time, the AppOps command is an executable program of the android system, and for example, the recording operation authority may be represented by OP _ READ _ AUDIO.
And 102, initializing the recording thread of the recording application program when the permission check results of the run-time permission and the application operation permission are allowed.
When the operation permission of the microphone is checked to be allowed and the recording operation permission of the microphone is detected to be allowed, initializing a recording thread of the recording application program to control the microphone to start to collect audio data.
And 103, monitoring the authority state change of the application operation authority in real time.
For example, when the recording thread of the recording application program is initialized, an operation right monitor for OP _ READ _ AUDIO operation is mounted on the recording thread, so that the operation right monitor monitors the right state change of the application operation right in real time. When the operation of the OP _ READ _ AUDIO is monitored as rejection, executing step 104; when the operation of the OP _ READ _ AUDIO is monitored as being permitted, step 105 is performed.
Before the user closes the recording application program, no matter the authority state of the application operation authority is changed into refusal or permission, the recording thread is not interrupted.
In some embodiments, the monitoring, in real time, a change in a right state of the application operation right includes:
monitoring the authority operating instruction of the application operating authority in real time;
and changing the authority state of the application operation authority according to the monitored authority operation instruction.
In some embodiments, the monitoring, in real time, the authority operation instruction of the application operation authority includes:
and determining the authority operation instruction of the application operation authority according to any one of the acquired designated characters, designated operation gestures and designated sounds input by the user.
For example, the user may set a first designated character corresponding to the "deny" permission operation instruction in advance in the terminal content, for example, the first designated character is "deny" or the like; and setting a second designated character corresponding to the permission operation instruction, wherein the second designated character is 'allow' and the like. For example, when a user uses a recording application program in a mobile terminal to record, in the recording process, when the user feels that contents related to secret information will appear in a recording scene, and some specific contents do not want to be recorded next, a first designated character is input into the mobile terminal, when the mobile terminal acquires the first designated character input by the user, an authority operation instruction of the recording operation authority is determined to be refused, and then the authority state of the application operation authority is changed from an original permission state to a refused state. For example, when the user feels that the content related to the secret information will not appear in the recording scene, and wants to continue recording, a second designated character is input into the mobile terminal, when the mobile terminal acquires the second designated character input by the user, the authority operation instruction of the recording operation authority is determined to be allowed, and the authority state of the application operation authority is changed from the previous refusal state to the permission state.
For example, the user may set a first designated operation gesture corresponding to a "deny" permission operation instruction in advance in the terminal content, where the first designated operation gesture is, for example: drawing an x on the touch screen of the mobile terminal, or continuously knocking at least 3 times on the touch screen of the mobile terminal, or pressing a volume reduction key and the like; and setting a second specified operation gesture corresponding to the permission operation instruction, for example, the second specified operation gesture is: drawing a check mark on the touch screen of the mobile terminal, or clicking and pressing the touch screen of the mobile terminal for a preset pressing time (such as 2 seconds), or pressing a volume increasing key, and the like. For example, when a user uses a recording application program in a mobile terminal to record, in the recording process, when the user feels that contents related to confidential information will appear in a recording scene, and some specific contents do not want to be recorded next, a first specified operation gesture (for example, drawing an x on a touch screen of the mobile terminal) is input into the mobile terminal, when the mobile terminal acquires the first specified operation gesture input by the user, a permission operation instruction of the recording operation permission is determined to be a rejection, and the permission state of the application operation permission is changed from an original permission state to a rejection state at this time. For example, when the user feels that the content related to the confidential information will not appear in the recording scene, and wants to continue recording again, a second specified operation gesture (for example, "√" is drawn on the touch screen of the mobile terminal) is input into the mobile terminal, and when the mobile terminal acquires the second specified operation gesture input by the user, the authority operation instruction for determining the recording operation authority is allowed, and the authority state of the application operation authority is changed from the previous refusal state to the allowed state at this time.
For example, the user may set a first designated sound corresponding to the "deny" permission operation command, for example, a "ticker" sound for short announcement, and a second designated sound corresponding to the "allow" permission operation command, for example, a "beep" sound for long announcement, in advance in the terminal content. For example, when a user uses a recording application program in a mobile terminal to record, in the recording process, when the user feels that contents related to secret information will appear in a recording scene, and some specific contents which do not want to be recorded next are recorded, a first specified sound is input into the mobile terminal, when the mobile terminal acquires the first specified sound input by the user, an authority operation instruction of the recording operation authority is determined to be refused, and then the authority state of the application operation authority is changed from an original permission state to a refused state. For example, when the user feels that the content related to the secret information will not appear in the recording scene, and wants to resume recording, the second designated sound is input into the mobile terminal, and when the mobile terminal acquires the second designated sound input by the user, the authority operation instruction for determining the recording operation authority is allowed, and at this time, the authority state of the application operation authority is changed from the previous refusal state to the permission state.
In some embodiments, the monitoring, in real time, the authority operation instruction of the application operation authority includes:
in the recording process, when the recording content is detected to have the preset keyword, determining the authority operation instruction of the application operation authority as a rejection instruction.
For example, the preset keyword may be a keyword for authenticating confidential information or sensitive content in a recording scene. For example, many conferences generally require a meeting record to be written after the meeting, and generally for the convenience of writing a meeting record later, the meeting record writer can record the meeting content, but some speakers mentioned in the meeting only want conference participants to hear at the meeting site, but do not want the content to be recorded or to be transmitted outside, and the speakers often do some language suggestion, such as "speak something with others but do not transmit it", "the content below", etc., before speaking the confidential information or sensitive content, so that the rejection instruction can be responded to by presetting a keyword. For example, the preset keyword may be "don't transfer", "confidential", "secret", or the like, and during the recording process, when the preset keyword is detected to appear in the recorded content, the permission operation instruction of the application operation permission is determined to be a refusal instruction, and then the permission state of the application operation permission is changed from the original permission state to the refusal state.
For example, when the user wants to resume recording, the user may input any one of a second designated character, a second designated operation gesture, and a second designated sound corresponding to the "permission operation instruction to determine that the permission operation instruction of the recording operation permission is permitted, and then the permission state of the application operation permission is changed from the previous refusal state to the permission state.
For example, a second preset keyword corresponding to an "allow" permission operation instruction may be preset, and when the second preset keyword is detected to appear in the recorded content, the permission operation instruction applying the operation permission is determined to be the allow instruction.
And 104, if the permission state is monitored to be changed into the refusal state, writing preset data into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into the refusal state.
In some embodiments, the preset data is null data or specified audio.
For example, when the preset data is empty data, if it is monitored that the permission state is changed into rejection, the empty data is written into the cache area corresponding to the recording thread within the recording time period in which the permission state is changed into rejection. That is, when the operation of the OP _ READ _ AUDIO is rejected, the recording thread writes null data into the Buffer (Buffer). By writing in the empty data, the storage pressure of the cache area can be reduced, and the specific content can be guaranteed not to be recorded in the recording time period when the permission state is changed into rejection under the condition that the recording thread is not interrupted.
For example, when the preset data is the designated audio, if it is monitored that the permission state is changed into rejection, the designated audio is written into the cache region corresponding to the recording thread within the recording time period in which the permission state is changed into rejection. That is, when the operation of the OP _ READ _ AUDIO is detected as rejection, the recording thread writes the designated AUDIO into the Buffer. For example, the designated audio may be a designated piece of music, a disturbing audio, or a certain piece of speech recorded in advance by the user, etc. By writing in the specified audio, the specific content can be ensured not to be recorded in the recording time period when the authority state is changed into the refusal state under the condition that the recording thread is not interrupted, and the continuity of the audio can be ensured when the finally output recording segment is played.
And 105, if the permission state is monitored to be allowed, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period in which the permission state is allowed.
And only when the permission state is monitored to be allowed, the real audio data acquired by the recording application program is written into the cache region corresponding to the recording thread in the recording time period when the permission state is allowed, so that certain specific contents related to secret information or sensitive contents are filtered. That is, when the operation of the OP _ READ _ AUDIO is monitored to be allowed, the recording thread writes the real AUDIO data into the Buffer.
In some embodiments, the method further comprises:
and outputting a recording fragment comprising the preset data and the real audio data after the thread of the recording application program is finished.
For example, when the preset data is empty data, after the thread of the recording application is finished, the output recording segment may include only real audio data acquired by the recording application within the recording time period in which the permission state becomes allowable.
For example, when the preset data is a preset audio, after the thread of the recording application is finished, the output recording segment may include the preset audio and real audio data acquired by the recording application within the recording time period in which the permission state becomes allowed.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the recording control method provided in the embodiment of the present application, when the recording application is started, the permission check is performed on the run-time permission and the application operation permission of the recording application; when the permission check results of the operation permission and the application operation permission are allowed, initializing a recording thread of the recording application program; monitoring the authority state change of the application operation authority in real time; if the permission state is monitored to be changed into refusal, writing preset data into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into refusal; and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into the cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission. According to the method and the device, under the condition that the recording thread is not interrupted, whether the specific content is recorded or not is controlled in real time according to the monitored authority state change of the application operation authority, and the information safety is improved.
The embodiment of the application further provides a recording control device, the recording control device can be integrated in the mobile terminal, and the mobile terminal can be a device with a recording function, such as a smart phone, a tablet computer, a desktop computer, a smart watch, a camera and a recording pen.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a recording control device according to an embodiment of the present application. The recording control device 30 may include:
the checking module 31 is configured to perform permission checking on the run-time permission and the application operation permission of the recording application program when the recording application program is started;
an initialization module 32, configured to initialize a recording thread of the recording application program when the permission check result of the runtime permission and the application operation permission is allowable;
the monitoring module 33 is configured to monitor a change of the authority state of the application operation authority in real time;
the control module 34 is configured to, if it is monitored that the permission state becomes a denial state, write preset data into a cache region corresponding to the recording thread within a recording time period in which the permission state becomes a denial state; and
and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission.
In some embodiments, the listening module 33 may include:
the monitoring unit 331 is configured to monitor an authority operation instruction of the application operation authority in real time;
a changing unit 332, configured to change the authority state of the application operation authority according to the monitored authority operation instruction.
In some embodiments, the monitoring unit 331 is configured to determine the permission operation instruction of the application operation permission according to any one of the acquired specified character, the specified operation gesture, and the specified sound input by the user.
In some embodiments, the monitoring unit 331 is configured to determine, when it is detected that a preset keyword occurs in the recorded content during the recording process, that the permission operation instruction of the application operation permission is a rejection instruction.
In some embodiments, the preset data is null data or specified audio.
In some embodiments, the control module 34 is further configured to output a recording segment including the preset data and real audio data after the recording thread is ended.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, in the recording control apparatus 30 provided in the embodiment of the present application, when the recording application is started, the checking module 31 performs permission checking on the operation permission and the application operation permission of the recording application; when the permission check results of the runtime permission and the application operation permission are allowed, the initialization module 32 initializes the recording thread of the recording application program; the monitoring module 33 monitors the authority state change of the application operation authority in real time; if the permission state is monitored to be changed into refusal, the control module 34 writes preset data into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into refusal; and if it is monitored that the permission state becomes allowable, the control module 34 writes the real audio data acquired by the recording application program into the cache region corresponding to the recording thread in the recording time period when the permission state becomes allowable. According to the method and the device, under the condition that the recording thread is not interrupted, whether the specific content is recorded or not is controlled in real time according to the monitored authority state change of the application operation authority, and the information safety is improved.
Referring to fig. 3, fig. 3 is another schematic structural diagram of a recording control apparatus according to an embodiment of the present disclosure, in which the recording control apparatus 30 includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a check module 31, an initialization module 32, a listening module 33, and a control module 34. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
the checking module 31 is configured to perform permission checking on the run-time permission and the application operation permission of the recording application program when the recording application program is started;
an initialization module 32, configured to initialize a recording thread of the recording application program when the permission check result of the runtime permission and the application operation permission is allowable;
the monitoring module 33 is configured to monitor a change of the authority state of the application operation authority in real time;
the control module 34 is configured to, if it is monitored that the permission state becomes a denial state, write preset data into a cache region corresponding to the recording thread within a recording time period in which the permission state becomes a denial state; and
and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission.
In some embodiments, the listening module 33 may include:
the monitoring unit 331 is configured to monitor an authority operation instruction of the application operation authority in real time;
a changing unit 332, configured to change the authority state of the application operation authority according to the monitored authority operation instruction.
In some embodiments, the monitoring unit 331 is configured to determine the permission operation instruction of the application operation permission according to any one of the acquired specified character, the specified operation gesture, and the specified sound input by the user.
In some embodiments, the monitoring unit 331 is configured to determine, when it is detected that a preset keyword occurs in the recorded content during the recording process, that the permission operation instruction of the application operation permission is a rejection instruction.
In some embodiments, the preset data is null data or specified audio.
In some embodiments, the control module 34 is further configured to output a recording segment including the preset data and real audio data after the recording thread is ended.
The embodiment of the application also provides the mobile terminal. The mobile terminal can be a smart phone, a tablet personal computer, a desktop computer, a smart watch, a camera, a recording pen and other devices with a recording function.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, where the mobile terminal may be used to implement the recording control method provided in the foregoing embodiment. The mobile terminal 1200 may be a smart phone or a tablet computer.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the recording control method in the foregoing embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which may assist the user in e-mail, web browsing, and streaming media access through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) that powers the various components and, in some embodiments, may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
when a recording application program is started, carrying out authority check on the running authority and the application operation authority of the recording application program;
when the permission check results of the operation permission and the application operation permission are allowed, initializing a recording thread of the recording application program;
monitoring the authority state change of the application operation authority in real time;
if the permission state is monitored to be changed into refusal, preset data is written into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into refusal; and
and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission.
In some embodiments, the processor 180 is configured to monitor, in real time, a change in the right state of the application operation right, and includes:
monitoring the authority operating instruction of the application operating authority in real time;
and changing the authority state of the application operation authority according to the monitored authority operation instruction.
In some embodiments, the processor 180 is configured to listen to the permission operation instruction of the application operation permission in real time, and includes:
and determining the authority operation instruction of the application operation authority according to any one of the acquired designated characters, designated operation gestures and designated sounds input by the user.
In some embodiments, the processor 180 is configured to listen to the permission operation instruction of the application operation permission in real time, and includes:
in the recording process, when the recording content is detected to have the preset keyword, determining the authority operation instruction of the application operation authority as a rejection instruction.
In some embodiments, the preset data is null data or specified audio.
In some embodiments, the processor 180 is further configured to: and outputting a recording fragment comprising the preset data and the real audio data after the recording thread is finished.
As can be seen from the above, an embodiment of the present application provides a mobile terminal 1200, where the mobile terminal 1200 performs the following steps: when the recording application program is started, performing permission check on the operation permission and the application operation permission of the recording application program; when the permission check results of the operation permission and the application operation permission are allowed, initializing a recording thread of the recording application program; monitoring the authority state change of the application operation authority in real time; if the permission state is monitored to be changed into refusal, writing preset data into a cache region corresponding to the recording thread in the recording time period in which the permission state is changed into refusal; and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into the cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission. According to the method and the device, under the condition that the recording thread is not interrupted, whether the specific content is recorded or not is controlled in real time according to the monitored authority state change of the application operation authority, and the information safety is improved.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the recording control method according to any of the above embodiments.
It should be noted that, for the recording control method described in the present application, it may be understood by a person skilled in the art that all or part of the process for implementing the recording control method described in the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a mobile terminal, and executed by at least one processor in the mobile terminal, and during the execution, the process may include the process of the embodiment of the recording control method described above. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the recording control device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The recording control method, the recording control device, the recording control storage medium and the mobile terminal provided by the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A recording control method, the method comprising:
when a recording application program is started, carrying out authority check on the running authority and the application operation authority of the recording application program;
when the permission check results of the operation permission and the application operation permission are allowed, initializing a recording thread of the recording application program;
monitoring the authority state change of the application operation authority in real time;
if the permission state is monitored to be changed into refusal, writing preset data into a cache region corresponding to the recording thread within the recording time period in which the permission state is changed into refusal, wherein the preset data are null data or designated audio; and
and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission.
2. The recording control method of claim 1, wherein the monitoring the right state change of the application operation right in real time comprises:
monitoring the authority operating instruction of the application operating authority in real time;
and changing the authority state of the application operation authority according to the monitored authority operation instruction.
3. The recording control method of claim 2, wherein the monitoring the permission operation command of the application operation permission in real time comprises:
and determining the authority operation instruction of the application operation authority according to any one of the acquired designated characters, designated operation gestures and designated sounds input by the user.
4. The recording control method of claim 2, wherein the monitoring the permission operation command of the application operation permission in real time comprises:
in the recording process, when the recording content is detected to have the preset keyword, determining the authority operation instruction of the application operation authority as a rejection instruction.
5. The recording control method of claim 1, wherein the method further comprises:
and outputting a recording fragment comprising the preset data and the real audio data after the recording thread is finished.
6. A recording control apparatus, characterized in that the apparatus comprises:
the checking module is used for checking the operation authority and the application operation authority of the recording application program when the recording application program is started;
the initialization module is used for initializing the recording thread of the recording application program when the permission check results of the run-time permission and the application operation permission are allowed;
the monitoring module is used for monitoring the authority state change of the application operation authority in real time;
the control module is used for writing preset data into a cache region corresponding to the recording thread within the recording time period when the authority state is changed into rejection if the authority state is monitored to be changed into rejection, wherein the preset data are null data or designated audio; and
and if the permission state is monitored to be changed into permission, writing the real audio data acquired by the recording application program into a cache region corresponding to the recording thread in the recording time period when the permission state is changed into permission.
7. The recording control apparatus of claim 6, wherein the listening module comprises:
the monitoring unit is used for monitoring the authority operation instruction of the application operation authority in real time;
and the changing unit is used for changing the authority state of the application operation authority according to the monitored authority operation instruction.
8. A computer-readable storage medium, in which a computer program is stored, which, when run on a computer, causes the computer to execute the steps in the sound recording control method according to any one of claims 1 to 5.
9. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the steps in the recording control method according to any one of claims 1 to 5 by calling the computer program stored in the memory.
CN202010260153.5A 2020-04-03 2020-04-03 Recording control method, recording control device, storage medium and mobile terminal Active CN111462785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010260153.5A CN111462785B (en) 2020-04-03 2020-04-03 Recording control method, recording control device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010260153.5A CN111462785B (en) 2020-04-03 2020-04-03 Recording control method, recording control device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111462785A CN111462785A (en) 2020-07-28
CN111462785B true CN111462785B (en) 2021-09-28

Family

ID=71684459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010260153.5A Active CN111462785B (en) 2020-04-03 2020-04-03 Recording control method, recording control device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111462785B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287691B (en) * 2020-11-10 2024-02-13 深圳市天彦通信股份有限公司 Conference recording method and related equipment
CN112558912B (en) * 2020-12-11 2024-03-19 北京百家科技集团有限公司 Application program, recording method thereof, terminal device and storage medium
CN113254917B (en) * 2021-06-01 2021-10-15 武汉深之度科技有限公司 Recording permission management method, computing device and storage medium
CN114023357B (en) * 2021-11-02 2023-02-03 星宸科技股份有限公司 Recording method and audio processing circuit

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4747573B2 (en) * 2004-12-22 2011-08-17 日本電気株式会社 Audio information processing system, audio information processing method, and audio information processing program
CN105577863B (en) * 2016-01-20 2018-12-11 广东欧珀移动通信有限公司 The way of recording and device
CN105721492B (en) * 2016-03-25 2019-10-11 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and terminal of speech processes
US10002639B1 (en) * 2016-06-20 2018-06-19 United Services Automobile Association (Usaa) Sanitization of voice records
CN106101819A (en) * 2016-06-21 2016-11-09 武汉斗鱼网络科技有限公司 A kind of live video sensitive content filter method based on speech recognition and device
CN106791011A (en) * 2016-11-29 2017-05-31 维沃移动通信有限公司 The method and mobile terminal of a kind of control recording authority
CN107147803A (en) * 2017-06-21 2017-09-08 努比亚技术有限公司 A kind of way of recording, terminal device and computer-readable recording medium
CN108091332A (en) * 2017-12-27 2018-05-29 盯盯拍(深圳)技术股份有限公司 Method of speech processing based on automobile data recorder and the voice processing apparatus based on automobile data recorder

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
android录音权限提示体验,自认比较优雅的解决方法!;轻轻笑声;《https://www.jianshu.com/p/e630557adb00》;20170711;全文 *

Also Published As

Publication number Publication date
CN111462785A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111462785B (en) Recording control method, recording control device, storage medium and mobile terminal
KR20190051368A (en) Electronic apparatus and Method of executing a function by speech recognition between the electronic apparatus
EP4083780A1 (en) Interface sharing method and electronic devices
WO2020186964A1 (en) Audio signal outputting method and terminal device
US11658932B2 (en) Message sending method and terminal device
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
US11176228B2 (en) Application interface display method, apparatus, and terminal, and storage medium
WO2020199783A1 (en) Interface display method and terminal device
US11989330B2 (en) Permission management method and terminal device
WO2021037074A1 (en) Audio output method and electronic apparatus
WO2019007371A1 (en) Method for preventing information from being stolen, storage device, and mobile terminal
CN108762606B (en) Screen unlocking method and terminal equipment
CN108664818B (en) Unlocking control method and device
CN108038360B (en) Operation mode switching method and mobile terminal
CN111078186A (en) Playing method and electronic equipment
CN111338524A (en) Application program control method and electronic equipment
CN110210206B (en) Authority management method and terminal
CN110012151B (en) Information display method and terminal equipment
CN111125680A (en) Permission setting method and terminal equipment
CN110990850A (en) Authority management method and electronic equipment
WO2019179068A1 (en) Risk detection method and device, and mobile terminal and storage medium
WO2021104285A1 (en) Application control method and electronic device
CN111159738B (en) Authority configuration method, application login method and device
CN111124537B (en) Application starting method and electronic equipment
CN109992941B (en) Authority management method and terminal equipment

Legal Events

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