For an app like "Kolobok" to use GPS in the background (for navigation, tracking, etc.), you need to grant it special permissions. Here is how to configure it:
1. Grant "Allow all the time" Permission
This is the main setting for background location access.
- Go to Settings → Apps → Manage apps.
- Find and select "Kolobok".
- Tap "Permissions".
- Find the "Location" permission.
- Select "Allow all the time" (instead of "Allow only while using the app").
2. Disable Battery Optimization for the App
As described earlier, battery optimization can stop background processes.
- Go to Settings → Battery → Battery optimization.
- Find "Kolobok" in the list.
- Select "Don't optimize" or "No restrictions".
3. Enable Autostart (Optional but Recommended)
This allows the app to restart its services (which may include location) after the phone reboots.
- Go to Settings → Apps → Autostart.
- Enable the toggle for "Kolobok".
4. Important Notes for Xiaomi/HyperOS:
- Even with these settings, the system may still limit background activity if the app is not actively used for a long time to save power.
- For reliable continuous tracking (e.g., fitness apps), it's best to lock the app in the Recent Tasks view (swipe up and hold, then tap the lock icon).
- The exact names of menu items may vary slightly depending on your MIUI/HyperOS version and region.
Result: After these steps, the "Kolobok" app will have the necessary permissions to access your phone's GPS and maintain its operation even when it's in the background or the screen is off.