Troubleshooting
This page covers common issues and their solutions when using Browser Limit.
Service Issues
GuardService is not running
Symptoms:
- Dashboard shows "Browser Limit is paused"
- New app installations are not detected
Causes:
- Service was killed by the system
- "Run on device startup" is disabled
- Battery optimization is active
Solutions:
- Open Browser Limit and toggle the active switch ON.
- Enable "Run on device startup" in Settings.
- Disable battery optimization:
- Go to Settings > Apps > Browser Limit > Battery.
- Select "Unrestricted".
- Or tap "Disable Optimization" on the Dashboard.
Service state toggle is inverted
Symptoms:
- The notification says "Paused" when the service is active, or "Active" when it is paused
- After restarting the app, the active state is the opposite of what you set
Cause:
- A known bug (#7): the Dashboard and GuardService both try to set the active state, resulting in a double negation.
Workaround:
- Toggle the switch twice to correct the state. This is a temporary workaround.
- The fix is tracked in the linked issue.
Service notification keeps disappearing
Symptoms:
- The foreground service notification is not visible
Causes:
- Low importance notification channel
- System notification settings
Solutions:
- Go to Settings > Apps > Browser Limit > Notifications.
- Ensure the "Browser Limit Service" channel is enabled.
- Set the importance to "Low" or higher.
Shizuku Issues
Shizuku is not running
Symptoms:
- Dashboard shows "Shizuku: Not Running"
Solutions:
- Open the Shizuku app.
- Tap Start via Wireless Debugging (Android 11+) or use ADB.
- If using Wireless Debugging, ensure it is enabled in Developer Options.
Shizuku permission denied
Symptoms:
- Dashboard shows "Shizuku Permission Missing"
Solutions:
- Open the Shizuku app.
- Go to App List or Unauthorized Apps.
- Find Browser Limit and grant permission.
- Or tap "Fix Shizuku" on the Dashboard.
Uninstallation fails
Symptoms:
- Log entry shows "Error" instead of "Removed"
- Notification says "Uninstall Fail"
Causes:
- Shizuku service died during uninstallation
- Package name is incorrect
- System app cannot be removed
Solutions:
- Restart Shizuku.
- Recheck the app from the Logs screen.
- For system apps, enable "Remove Chrome (even if system app)" if applicable.
- Some OEM ROMs may restrict Shizuku operations. Try restarting the device.
Detection Issues
Browsers are not being detected
Symptoms:
- Browser is installed but log shows "Kept"
Causes:
- Browser Limit is inactive
- App is in the exceptions list
- App is classified as a system app
- Not in KNOWN_BROWSERS and Gemini is disabled
Solutions:
- Check if Browser Limit is active (Dashboard toggle).
- Check the Exceptions screen for the app.
- Check the Logs screen for the detection method and reason.
- Enable Gemini AI in Settings to classify unknown apps.
- Use "Recheck with Gemini" in the Logs screen to force reclassification.
False positives (non-browser apps removed)
Symptoms:
- An app that is not a browser is removed
Causes:
- App is in the KNOWN_BROWSERS database
- Gemini misclassified the app
Solutions:
- Add the app to the exceptions list.
- In the Logs screen, tap the app and use "Recheck with Gemini".
- If Gemini misclassified, the recheck will correct the cache.
Detection is delayed
Symptoms:
- Browser is installed but not detected for several minutes
Causes:
- GuardService was killed and restarted
- Battery optimization interrupted the service
Solutions:
- Disable battery optimization for Browser Limit.
- Enable "Run on device startup".
- Check the Dashboard for the service status.
Overlay Issues
Overlay does not appear
Symptoms:
- Browser is installed but no confirmation dialog appears
Causes:
SYSTEM_ALERT_WINDOWpermission not granted- Overlay mode is disabled (auto-remove is active)
Solutions:
- Check the Dashboard for "Overlay Permission Missing".
- Tap "Fix Overlay" to open system settings.
- Enable "Allow display over other apps" for Browser Limit.
- Ensure overlay mode is enabled in Settings.
Overlay shows "Browser Removed" before removal
Symptoms:
- The overlay heading says "Browser Removed" but the app is still installed
- The countdown is still running or the "Keep" button is still available
Cause:
- A known UI bug (#8): the overlay displays past-tense text before the uninstall actually happens. The app is only removed when the countdown expires or you tap "Remove Now".
Workaround:
- Ignore the text — the app has not been removed yet. You still have time to tap "Keep & Add Exception".
Overlay disappears immediately
Symptoms:
- Overlay appears briefly then closes
Causes:
- Another app took focus
- OverlayActivity was killed by the system
Solutions:
- The browser may have been auto-removed. Check the Logs screen.
- Disable battery optimization for Browser Limit.
Gemini Issues
Gemini API key is invalid
Symptoms:
- Test Gemini Connection shows "HTTP 401 Unauthorized"
Solutions:
- Go to Settings and verify your API key.
- Visit Google AI Studio to generate a new key.
- Ensure the key has Gemini API access enabled.
Gemini daily limit reached
Symptoms:
- Dashboard shows "Gemini API: Limit Reached"
Solutions:
- Wait until the next day (limit resets at midnight).
- The local KNOWN_BROWSERS database still provides detection for known browsers.
- Use "Recheck with Gemini" in the Logs screen to force reclassification (bypasses the limit).
Gemini returns unexpected results
Symptoms:
- Log shows "Fallback (Error: ...)" as the detection method
Causes:
- Gemini returned a response that could not be parsed as YES or NO
- Network error during API call
Solutions:
- The fallback to the local database is working correctly.
- Check your internet connection.
- Test the Gemini connection from Settings.
Lock Screen Issues
Cannot unlock the app
Symptoms:
- PIN is not accepted
Causes:
- Incorrect PIN
- Waiting mode timer has not expired
Solutions:
- If waiting mode is enabled, wait for the countdown to complete.
- Ensure you are entering the correct PIN.
- If you have forgotten your PIN, clear the app's data or reinstall.
Lock screen re-engages too quickly
Symptoms:
- Must re-enter PIN every time you switch apps
Behavior:
- This is by design. The lock screen re-engages when the app goes to background (ON_STOP lifecycle event).
- This ensures settings are protected even if you switch away briefly.
Export Issues
Log export fails
Symptoms:
- Toast shows "Export failed"
Causes:
- Storage permission not granted
- Downloads folder not accessible
Solutions:
- Grant storage permission to Browser Limit.
- The app will automatically fall back to the app's external files directory.
- Check the Logs screen for the export path.
Export file is empty
Symptoms:
- Exported file has no content
Causes:
- No log entries exist
- Logs were cleared
Solutions:
- Check the Logs screen for existing entries.
- If logs were cleared, they cannot be recovered.
General
App crashes on startup
Solutions:
- Clear the app's data: Settings > Apps > Browser Limit > Clear Data.
- Reinstall the app.
- Check for Android system updates.
Dashboard counts are stuck after midnight
Symptoms:
- The scanned and removed counts show the same values all day
- The counts only update when you restart the app
Cause:
- A known bug (#9): the daily timestamp is calculated once when the Dashboard first opens and is never recalculated. If the app stays open past midnight, the counts freeze.
Workaround:
- Close and reopen the app to reset the daily counters.
App uses too much battery
Causes:
- Shizuku permission polling every 2 seconds
Solutions:
- This is a known behavior. The Dashboard polls Shizuku status every 2 seconds while in the foreground.
- The polling stops when the app is in the background.
- Battery impact is minimal when the app is not in the foreground.
Want to improve browser detection?
If you encounter a false positive (non-browser removed) or false negative (browser not detected), you can help improve the app:
- Add the app to exceptions — Prevents future removal of a false positive.
- Recheck with Gemini — From the Logs screen, forces reclassification and updates the cache.
- Submit feedback — A feedback system (#5) is planned to let you flag incorrect classifications directly from the log, triggering a Gemini re-evaluation and cache correction.
How do I completely reset Browser Limit?
- Go to Settings > Apps > Browser Limit.
- Tap Clear Data and Clear Cache.
- Reinstall the app if needed.
- Complete the onboarding wizard again.
Clearing data removes all settings, logs, and exceptions. This action cannot be undone.