Launching Activity on Xiaomi: A Complete User Guide

What is Activity and Why You Should Run It on Xiaomi

If you have ever tried to configure hidden functions MIUI Or run a service menu on a Xiaomi smartphone, you've probably encountered the term Activity, which is a key element of Android applications β€” a separate screen or window that is responsible for a specific function, such as the Wi-Fi setting screen, the developer menu or even the manufacturer's hidden test modes.

Activity launch allows you to bypass standard interface constraints MIUI And accessing functions that are normally hidden from the user, and that can be useful for the user:

  • πŸ”§ Settings of hidden system parameters (for example, energy saving modes or graphics accelerators)
  • πŸ“± Testing of hardware components (display, cameras, accelerometer)
  • πŸ”„ Recovery after a crash (for example, starting a reset menu if the standard interface is not responsive)
  • πŸ› οΈ Debugging applications or system services

It’s important to understand that not all Activity is safe to run, and some can cause crashes or even a device to crash if used incorrectly, and in this article we’ll show you how to run Activity on Xiaomi safely and with maximum benefit.

πŸ“Š Why you want to launch Activity on Xiaomi?
Configuring Hidden Functions
Hardware testing
Recovery after failure
Development/debugging
Just curious.

Preparation of the device: what to do before launch

Before you start Activity, you need to prepare your smartphone, and without proper preparation, you risk errors or even blocking access to system functions.

  1. Enable Developer Mode: Go to Settings β†’ The phone. β†’ Version. MIUI And tap this 7 times in a row. β†’ There will be a section for developers.
  2. Activate debugging on USB: In the section For developers, find the option Debugging by USB And turn it on. Confirm permission when you request it.
  3. Allow installation from unknown sources: this will be required if you use third-party apps to run Activity. β†’ Annexes β†’ Special rights β†’ Installation from unknown sources.
  4. Connect the device to the PC (optional): if you plan to use ADB, Install Xiaomi drivers and check the connection with the adb device command in the terminal.

To work with ADB You'll need it too:

  • πŸ’» Computer with Android Platform Tools installed (or minimum adb package)
  • πŸ”Œ Cable USB (It is preferably original to avoid connection problems)
  • πŸ“± Xiaomi smartphone with a battery charge of at least 50% (in case of long-term operations)

β˜‘οΈ Preparation for Activity Launch

Done: 0 / 5

⚠️ Note: Some Xiaomi models (e.g. Redmi Note 12 or X-ray) POCO X5) after debugging USB You may need additional permission on the menu. USB-Debugging (security settings) without it. ADB won't be able to connect.

How to Launch Activity on Xiaomi: From Simple to Complex

There are several ways to run Activity on Xiaomi smartphones, depending on your tasks and your level of training, and let's take a look at them from the simplest to the most advanced.

1. Through launcher applications (no ADB)

The safest and easiest way is to use special applications that can search and run Activity.

  • πŸ“± Activity Launcher (available on Google Play) – shows all Activity installed, including system.
  • πŸ” QuickShortcutMaker – allows you to create shortcuts to run specific Activity directly from the home screen.
  • πŸ› οΈ MIUI Hidden Settings (for advanced users) – a specialized application for working with hidden settings MIUI.

Example of Activity Launcher:

  1. Install the app from Google Play.
  2. Open it and select a category (e.g. All Actions or Systems).
  3. Find the Activity you want by name (e.g. com.android.settings.Settings)$DevelopmentSettingsActivity for the Developer Menu).
  4. Slip it on it - the corresponding screen will open.

2. Through ADB (power-user)

If you need to run Activity, which is not in the list of applications, or you work with system components, you will need to run it. ADB. This method gives complete control, but requires caution.

The general command for launch:

adb shell am start -n packet/path.c.Activity

Examples of useful commands:

  • Starting the screen test menu: adb shell am start -n com.android.settings/.DisplaySettings
  • Opening the hidden battery settings: Adb shell am start -n com.android.settings/.fuelgauge.PowerUsageSummary
  • Activation of the diagnostic mode (for service centers): adb shell am start -n com.android.settings/.DeviceInfoSettings
How to find the name of the package and Activity?
To find out the exact names, use the adb shell dumpsys package command or the App Inspector app from Google Play. For example, to run the Developer Menu you need the com.android.settings and Activity.DevelopmentSettings package.

3. via Termux (terminal on the phone)

If you don't have access to a PC, you can use Termux, a terminal emulator for Android, install it from F-Droid (the version from Google Play is outdated), and follow the commands:

pkg update && pkg upgrade


pkg install android-tools




adb shell am start -n packet/Activity

⚠️ Attention: On some firmware MIUI (particularly global) ADB Termux may not work due to security restrictions.

Previous articlePopular Activity for Xiaomi: What to Start

Xiaomi smartphones have a lot of hidden Activity that can be useful in everyday use, and we have collected the most popular of them in a table:

Title Activity: ActivityLaunch teamWhat do you need?Models where it works
Sensor testing menuam start -n com.android.settings/.SensorTestSettingsChecking the accelerometer, gyroscope, compassAll models on MIUI 12+
Hidden battery settingsam start -n com.android.settings/.fuelgauge.PowerUsageSummaryDetailed statistics of charge consumption by applicationRedmi Note 10/11/12, POCO X3/X4
Mode of the engineering menu (MTK)am start -n com.mediatek.engineermode/.EngineerModeModem settings, hardware testsDevices on MediaTek processors
Reset menu to factory settingsam start -n com.android.settings/.Settings$FactoryResetSettingsActivityAlternative Resetting Method If Standard Resetting FailsAll models.
Developer settings (alternative input)am start -n com.android.settings/.DevelopmentSettingsQuick access if the standard method does not workAll models.

On models with a Qualcomm processor (for example, Xiaomi) 12T or POCO F4) To access the engineering menu, use the command am start. -n com.qualcomm.qti.engineermode/.EngineerMode.

πŸ’‘

If the command is not working, try adding a flag. --activity-clear-task For example, adb shell am start. -n com.android.settings/.DisplaySettings --activity-clear-task. This will help you avoid conflicts with windows that are already open.

Activity startup errors and how to fix them

Even if you execute the commands correctly, you can run into errors. Let's look at the most common problems and their solutions.

Error "Activity not found"

This means that the Activity does not exist on your device, and the possible reasons are:

  • πŸ“± You have a different version. MIUI (for example, a team for MIUI 13 won't work for MIUI 14).
  • πŸ”„ Manufacturer changed the path to Activity in a new firmware.
  • 🚫 Incorrect packet or class name.

Solution: Check the current commands for your model on the Xiaomi.eu forums or 4PDA.

Error "Security exception"

This error occurs when an application does not have permission to start the system Activity, most often when you try to run:

  • πŸ”’ Settings reset menu.
  • πŸ“‘ Modem engineering settings.
  • πŸ”§ Developer settings (if debugging is not activated).

Decision:

  1. Check if the debugging is enabled via USB.
  2. Grant permission via adb shell pm grant package android.permission.WRITE_SECURE_SETTINGS (root).
  3. Try running a command on behalf of a superuser: adb shell su -c "am start -n packet/Activity".

3.The device does not respond to commands ADB

If nothing happens after entering the command, follow the following steps:

  • πŸ”Œ Reconnect. USB-cable (try another port).
  • πŸ”„ Reset the service ADB: adb kill-server && adb start-server.
  • πŸ“± On the smartphone in the notification of the connection by USB Select the File Transfer Mode (MTP).
  • πŸ”§ Update platform-tools to the latest version.

πŸ’‘

If you see the message error: device unauthorized, it means that the smartphone has not confirmed the debugging permission. Check the screen of the device, there should appear a window requesting permission.

Security: What Activity Cannot Be Launched

Not all Activity is equally useful. Some may be:

  • πŸ”₯ Failure of the system (e.g, com.android.settings/.Settings$ResetDashboardActivity on some firmware causes freezes).
  • πŸ“΅ Disrupt the modem (engineering menus com.mediatek.engineermode or com.qualcomm.qti.engineermode can change network settings).
  • πŸ”’ Block access to data (for example, com.android.settings/.SecuritySettings flawed).

It is not recommended to start:

  • 🚨 Activity related to factory test or ftm (test production modes).
  • πŸ”§ Activity with wipe, erase, format names (can erase data).
  • πŸ“‘ Activity that changes modem settings (e.g, com.android.phone/.NetworkSetting Incorrect parameters will result in the loss of the network).

⚠️ Note: On Xiaomi models with a blocked bootloader (Redmi) 9A, POCO M3 Running some system Activity may result in activation of Anti-Rollback protection, which will block the ability to run firmware through Fastboot.

If you are unsure about the purpose of Activity, use the App Inspector app for preliminary analysis or look for information on topic forums.

Case studies: useful use cases

Consider real-world situations where launching Activity can solve problems or make it easier for Xiaomi to set up.

1. Restoring access to Wi-Fi settings

After the update MIUI Wi-Fi section is missing in settings, run:

adb shell am start -n com.android.settings/.wifi.WifiSettings

This will open the Wi-Fi menu directly, bypassing the standard interface.

2. Authentication of the battery

On some models (Redmi Note 11 Pro)+, Xiaomi 11T Pro) you can check if the original battery is installed:

adb shell am start -n com.android.settings/.BatteryInfoSettings

The menu will show the battery status (Genuine Xiaomi Battery or Non-Genuine).

3 Unlocking hidden camera modes

To access advanced camera settings (such as manual mode on budget models), run:

adb shell am start -n com.android.camera/.CameraActivity --ez enable_advanced_features true

It works on Samsung cameras devices. ISOCELL (For example, the Redmi Note 10 Pro).

4. Resolving sensor problems

If the screen does not respond well to touch, run the sensor test:

adb shell am start -n com.android.settings/.TouchScreenTest

In this menu, you can check the uniformity of the response throughout the display area.

πŸ’‘

Before running hardware tests (sensors, camera, speakers) make sure the device has enough charge. Some tests put a lot of stress on the system and can drain the battery over time. 10-15 minute.

FAQ: Answers to Frequent Questions

Can I run Activity without it? ADB root?
Yes, use applications like Activity Launcher or QuickShortcutMaker, which do not require superuser rights, but do not show all system Activity (only those that are allowed to run without special permissions).
Why does the smartphone reboot after Activity launch?
This can happen for two reasons: You run Activity, which conflicts with current system settings (e.g., a reset menu on a firmware with corrupted files). MIUI There's a protection against changing critical parameters (often found on Chinese firmware). Solution: Try running Activity in Safe Mode (hold the power button). β†’ Restarting in Safe Mode).
How to find Activity for a specific Xiaomi model?
There are several ways to use the command adb shell dumpsys package | grep -i "activity" to output all available Activity. Install App Inspector from Google Play, which shows the structure of applications, including Activity, 4PDA) β€” They often list popular models.
Can I run Activity on a locked smartphone?
If the device is locked (forgot the pattern lock or PIN), Activity launches through ADB This can only help if: previously included debugging USB. You have access to a PC that previously confirmed the device's connection, and in this case, you can try to run the reset menu: adb shell am start. -n com.android.settings/.Settings$FactoryResetSettingsActivity If debugging was not enabled, the only option is a Fastboot reset (data loss guaranteed).
Which Xiaomi models support Activity launch?
Activity can theoretically be run on any device under control. MIUI, but there are nuances: πŸ“± Global firmware (MIUI Global) often restrict access to system Activity. 🌍 Chinese firmware (MIUI China) more open but require Chinese knowledge to navigate. πŸ”“ Custom firmware (e.g. Xiaomi.eu) doesn’t usually block Activity launch. On newer models (Xiaomi 13, Redmi Note 12), some system Activity may be hidden due to Xiaomi’s security policy.