The situation when you need to record what is happening on the smartphone display, but the device is locked or the power button is faulty, occurs more often than it seems. Users encounter this when preparing training materials, recording gaming moments, or recording system errors. The standard method of activating recording through the notification shade or sidebar is not available if the screen is dark or the sensor does not respond to touches. In such cases, a non-standard approach to using built-in functions Android and third-party utilities is required.

Modern versions of the operating system, starting from Android 10, have a built-in ScreenRecorder, but its launch is usually tied to the active interface. You can bypass the blocking through voice commands, task automation, or connecting external devices. It is important to understand that some applications, especially banking and streaming services, use protection DRM or FLAG_SECUREthat programmatically prohibits image capture, turning the recording into a black screen. Below we will look at working methods to bypass these limitations.

Using a voice assistant to start recording

The easiest way to start recording without touching the screen is to use a voice assistant. If your smartphone is unlocked but you cannot press the record button, or if the screen is blank but the system is working, try activating Google Assistant. Say the command “Okay, Google” or hold down the corresponding button (if it is physically functional) to call up the interface.

After activation, clearly say the phrase: “Record screen” or “Start screen recording”. In most shells, such as One UI from Samsung or clean Android on Pixel, the assistant will recognize the command and launch the standard recorder. This allows you to start capturing video even if the touch layer is partially not functioning.

⚠️ Attention: The voice command will only work if the phone is already unlocked and is on the desktop. It is impossible to record the contents of the lock screen (lockscreen) using this method for system security reasons.

To increase the reliability of the method, it is recommended to configure triggers in the assistant settings in advance. Make sure that in the Settings → Google → Settings for Google apps → Search, Assistant and Google Lens → Google Assistant section access to device functions is activated. This ensures that Voice Match will work even when the display is off, although recording will only begin after unlocking.

💡

If the voice assistant is not responding, try changing the language input into English and use the "Screen record" command, since recognition of Russian commands may work unstable on some firmware.

Automation through the Tasker application and macros

For users who require regular screen recording in specific conditions, the ideal solution is the application Tasker. It is a powerful automation tool that allows you to create scripts that run system functions based on a schedule or event. Using the plugin AutoInput you can emulate pressing the system record button, which usually cannot be called programmatically.

The setup process is as follows: a profile is created that is triggered, for example, when a charger is connected or when a certain time has passed. An action is added to the profile task AutoInput Action, which simulates touching the recorder icon in the notification shade. This allows you to shoot video without physically interacting with the display.

  • 🔹 Install Tasker and plugin AutoInput from the store Google Play.
  • 🔹 Grant applications extended permissions through Settings → Special access.
  • 🔹 Create a macro that activates recording when receiving an SMS with a code word.

An alternative to complex setup Tasker can be ready-made macros for MacroDroid. This application has a more user-friendly interface and allows you to create a “Shake Device” trigger to start recording. This approach is especially useful if the screen sensor has completely failed, but the accelerometer continues to work correctly.

☑️ Preparing for automation

Done: 0 / 4

Recording via computer using ADB

If the smartphone screen is completely unresponsive or the device is in a “bricked” state, but has booted into the system, the most reliable method is to use USB debugging. By connecting your phone to your computer, you can control it and record video directly through the command line interface. This method does not depend on the state of the touchscreen.

To get started, you need to install the package Android SDK Platform-Tools on your PC. After connecting the cable, enter the command to test the connection. If the device is detected, you can initiate recording. The command sends a signal to the system to start capturing the video stream and saving it to internal memory.

adb shell screenrecord /sdcard/demo.mp4

Executing this command will begin recording immediately. To stop the process, press the combination Ctrl + C in the computer terminal. The file demo.mp4 will be saved in the root of the phone's internal memory, from where it can be retrieved through a file manager or the same command adb pull.

⚠️ Attention: For the ADB method to work, “USB Debugging” must be enabled in advance on the phone in the developer menu. If the screen does not work and you did not have time to enable this option, this method will not work without flashing it or using the mouse via OTG.

It is also possible to broadcast the screen to a computer with simultaneous recording via scrcpy. This utility displays the smartphone screen on a PC monitor with minimal latency and allows you to record video in high quality using the resources of your computer rather than your phone. This reduces the load on the processor of the mobile device.

What to do if ADB does not see the device?

Make sure that the correct USB driver for your model is installed (especially important for Xiaomi and Huawei). Try replacing the USB cable with an original one, since cheap cables often only support charging, but not data transfer.

Using an external mouse and OTG adapter

When the touch screen is broken or does not respond, but the image is displayed correctly, a regular computer mouse will help save the situation. By connecting it via a USB-OTG adapter, you will get a cursor on the smartphone screen. This allows you to control the interface in the same way as on a computer and run any applications, including recorders.

Connect the mouse to the phone via an adapter. An arrow cursor will appear on the screen. Using the left mouse button, you can unlock the phone (by entering a pattern or PIN code), open the notification shade and click the “Screen Record” button. This method is universal and works on any device that supports OTG.

If you have a wireless mouse with a USB receiver, an OTG adapter will also work. In the case of a Bluetooth mouse, pairing can be difficult without the ability to press the “Search” button on the screen, so a wired connection via an adapter is a priority solution for emergencies.

Connection type Required equipment Setting up complexity Compatibility
Wired USB OTG adapter, mouse Low 99% of devices
Bluetooth BT mouse High (pairing required) Depends on BT version
Keyboard + Mouse USB hub, peripherals Medium Requires a hub
💡

Using a mouse via OTG is the only solution that allows you to fully control a locked phone with a broken sensor without root access and a PC.

Third-party applications with the “Scheduled Recording” function

Many advanced screen recorders available c Google Play, have a delayed start function. Applications like XRecorder, AZ Screen Recorder or DU Recorder allow you to set the start time and duration of the recording. This is ideal for situations when you need to take a video from a certain moment without touching the phone.

In the settings of such an application, find the “Scheduler” or “Schedule” section. Set the start time, for example after 5 minutes. Lock your phone and put it down. At the appointed time, the application will automatically expand (if allowed on top of other windows) and begin recording, even if the screen is off (depending on the energy saving settings).

  • 🔸 XRecorder: has a convenient widget for quick start and task scheduler.
  • 🔸 ADV Screen Recorder: supports scripts and deep bitrate settings.
  • 🔸 Built-in Recorders: some shells (Xiaomi, Samsung) have built-in timer in the recording menu.

It is important to disable aggressive battery optimization for the selected application. Go to Settings → Applications → [Your recorder] → Battery and select the “No restrictions” mode. Otherwise, the system may kill the recording process to save power when the screen goes dark.

📊 How do you most often record your phone screen?
Built-in function
Third-party application
Via a computer (ADB)
Using an OTG mouse

Bypassing DRM blocking and black screen

Often users try to record video from banking applications, Netflix or other secure services, but get a black screen instead of an image. This is not a recording error, but the operation of the content protection mechanism HDCP and flag FLAG_SECURE. The system deliberately blocks the creation of screenshots and videos in such windows.

It is impossible to take video from a locked screen in such applications using conventional methods. However, there is a workaround for advanced users with rights Root. Module LSPosed with module DisableFlagSecure allows you to disable this protection at the system level. Once activated and rebooted, any recorder will be able to capture images.

⚠️ Warning: Disabling security protection may leave your device vulnerable to malware that can intercept password entries. Use modules to disable the security flag only temporarily and only at your own peril and risk.

For devices without root access, an alternative is to use the “Cast” function on a Smart TV or PC, if the application allows you to broadcast content (which is rare for protected video). In most cases, there is no legal way to record protected content, and hacking attempts can lead to account blocking in the service.

Why does Zoom or Skype have a black screen when recording?

Many video conferencing applications also use privacy protection. Try disabling hardware acceleration in the settings of the application itself, if this option is available, this sometimes helps to bypass the software prohibition on capturing.

Frequently asked questions (FAQ)

Is it possible to record the screen if the phone is completely locked with a password?

No, for security reasons, Android does not allow you to record the contents of the lock screen or enter the password using screencast. The device must first be unlocked using any available method (fingerprint, face, PIN code), and only then can you initiate recording.

Why does recording stop immediately after the screen turns off?

This happens due to energy saving settings. The system considers that if the screen is turned off, then recording is not needed and stops the process. In the recorder settings, find the option “Continue recording when the screen is off” or disable battery optimization for this application.

Is sound recorded when using ADB?

By default, the command screenrecord does not record the internal sound of the system (starting with Android 10, this limitation is strengthened). She only records video. To capture audio via ADB, complex manipulations with redirecting the audio stream or the use of third-party utilities like scrcpy with an audio recording flag are required.

How to record a video if both the screen and the charging port are broken?

In this case, software methods are powerless. The only option is to remove the memory card (if the video was saved there) after completing the recording initiated in advance, or to disassemble the device and short-circuit the battery contacts to turn it on, which requires repair skills.

Does screen recording affect game performance?

Yes, video recording creates additional load on the processor and codec. This may cause FPS (frames per second) to drop and the device to heat up. It is recommended to reduce the recording resolution to 720p and the frame rate to 30 fps to minimize lag during the game.