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.
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.
- 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.
- 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.
- 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.
- 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
β οΈ 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:
- Install the app from Google Play.
- Open it and select a category (e.g. All Actions or Systems).
- Find the Activity you want by name (e.g. com.android.settings.Settings)$DevelopmentSettingsActivity for the Developer Menu).
- 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.ActivityExamples 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?
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: Activity | Launch team | What do you need? | Models where it works |
|---|---|---|---|
| Sensor testing menu | am start -n com.android.settings/.SensorTestSettings | Checking the accelerometer, gyroscope, compass | All models on MIUI 12+ |
| Hidden battery settings | am start -n com.android.settings/.fuelgauge.PowerUsageSummary | Detailed statistics of charge consumption by application | Redmi Note 10/11/12, POCO X3/X4 |
| Mode of the engineering menu (MTK) | am start -n com.mediatek.engineermode/.EngineerMode | Modem settings, hardware tests | Devices on MediaTek processors |
| Reset menu to factory settings | am start -n com.android.settings/.Settings$FactoryResetSettingsActivity | Alternative Resetting Method If Standard Resetting Fails | All models. |
| Developer settings (alternative input) | am start -n com.android.settings/.DevelopmentSettings | Quick access if the standard method does not work | All 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:
- Check if the debugging is enabled via USB.
- Grant permission via adb shell pm grant package android.permission.WRITE_SECURE_SETTINGS (root).
- 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.WifiSettingsThis 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/.BatteryInfoSettingsThe 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 trueIt 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/.TouchScreenTestIn 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.