The Problem

After switching to HyperOS (POCO, Xiaomi), links from apps (Telegram, WhatsApp, etc.) open in the cloned Chrome account instead of the main one - even when the main Chrome is set as default browser.

Symptoms:

  • Click link โ†’ Chrome opens in second space
  • Default browser settings show main Chrome
  • Resetting settings doesn’t help

Cause: HyperOS prioritizes cloned apps when handling intents, ignoring user preference.

๐Ÿ’ก Issue reproduces on MIUI 14 / HyperOS 1.0+ with “Dual Apps” / “Second Space” enabled.


โŒ Why simple fixes don’t work

ADB removal (temporary)

adb shell
pm uninstall -k --user 999 com.android.chrome

Problem: after reboot, Chrome in second space is quietly reinstalled. user 999 is the cloned profile ID, but HyperOS restores system apps on startup.

Disable “Dual Apps”

Downside: removes all cloned apps and their data. Not suitable if you need other duplicates (messengers, banking apps).


โœ… Solutions (by preference)

Remove Chrome from second space without root, keeping other cloned apps intact.

Step 1: Install Shizuku

  1. Download Shizuku from F-Droid
  2. Launch app โ†’ “Start via wireless debugging”
  3. Enable wireless debugging in Developer Options:
    • Settings โ†’ About phone โ†’ Tap “OS version” 7 times
    • Settings โ†’ Additional settings โ†’ Developer options โ†’ โœ… Wireless debugging
  4. Follow Shizuku instructions to pair

Step 2: Install AppManager

  1. Download AppManager from F-Droid
  2. Open app โ†’ grant access via Shizuku (automatic)

Step 3: Remove Chrome from second space

  1. Find com.android.chrome (Google Chrome)
  2. Open app card โ†’ โ‹ฎ โ†’ Uninstall for user
  3. Confirm removal

Result: Chrome removed only from second space, main account unaffected.

Step 4: Verify

# Via ADB (optional)
adb shell pm list packages --user 999 | grep chrome
# Should be empty

Solution 2: Change default browser

If you don’t want to set up Shizuku:

  1. Install alternative browser: Chrome Beta, Firefox, Brave
  2. Export bookmarks from main Chrome (sync with account)
  3. Clear main Chrome data (optional)
  4. Set new browser as default:
    • Settings โ†’ Apps โ†’ Default apps โ†’ Browser
  5. Test link opening

Pro: no root, Shizuku, or ADB required
Con: need to adapt to new browser


Solution 3: ADB script with auto-launch (advanced)

If Shizuku doesn’t work, automate ADB commands:

#!/bin/bash
# remove-chrome-clone.sh
adb wait-for-device
adb shell pm uninstall -k --user 999 com.android.chrome
echo "Chrome removed from second space"

Auto-launch via Termux + ADB:

  1. Install Termux
  2. Install ADB Keyboard or use adb tcpip
  3. Run script on boot via ~/.termux/boot/

Limitation: after phone reboot, script must be run manually (or set up auto-launch via Tasker).


๐Ÿ” Diagnostics

# Check if Chrome is installed in second space
adb shell pm list packages --user 999 | grep chrome

# Check default browser
adb shell dumpsys package preferred | grep browser

# View intent handlers for links
adb shell dumpsys activity preferred-activities | grep -A5 "http"

โš ๏ธ Common issues

# Shizuku won't start
โ†’ Re-enable wireless debugging and re-pair
โ†’ Restart Shizuku after system update

# AppManager doesn't see user 999
โ†’ Grant permissions via Shizuku: Settings โ†’ Apps โ†’ AppManager โ†’ Permissions
โ†’ Restart AppManager

# Chrome reinstalls after reboot
โ†’ This is HyperOS behavior. Workaround: add script to auto-start (Termux + Tasker)
โ†’ Or use Shizuku + AppManager with re-removal on boot (requires root)

# Links still open in clone
โ†’ Clear default settings: Settings โ†’ Apps โ†’ Manage apps โ†’ โ‹ฎ โ†’ Reset defaults
โ†’ Reboot phone