Skip to content
Projects

About

Keep Android on fast 5 GHz / 6 GHz Wi-Fi instead of slow 2.4 GHz with the same name. Smart roaming, automatic fallback, no root, no ads. Open source.

Web & App Development

How these counts are measured

62 stars2 Forks +7 in 24h

What you can do

  • 🔒 5G or 2.4G, per network - Pick the band for each network. 5G for speed, 2.4G for range. Networks that only have one band are marked "5G only" or "2.4G only".
  • 🏠 Several networks - Home, work, a friend's place. Each one keeps its own band and password.
  • 🔁 Smart roaming - Moves between your router and repeaters when another access point on your band is clearly stronger, without flapping.
  • 🛟 You choose the fallback - Never lose Wi-Fi: use any band until yours is back. Keep the lock: stay on your band, even if Wi-Fi drops.

Measured star growth

in 24h
+7
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original
BandLock logo

BandLock

Lock your Android phone to 5G or 2.4G Wi-Fi. Per network. No root.

Stop your phone from jumping to the slow 2.4 GHz access point of a network that uses the same name on both bands.

Download Downloads Stars

Android 11+ No root No ads, no tracking 23 languages License: MIT

⬇️ Download APK  ·  Website  ·  Features  ·  Install  ·  FAQ

🌍 English · Español · Français · Deutsch · Português · Italiano · Русский · العربية · 中文 · 日本語 · 한국어 · हिन्दी · Türkçe · Bahasa Indonesia

[!IMPORTANT] 🎉 BandLock 2.0 is out. Rebuilt from scratch: simpler, smoother, better. New design with a pure black dark mode, a quick setup wizard, 5G or 2.4G for each network, a Fix it button, a phone MAC switch and 23 languages. ⬇️ Download BandLock 2.0. It installs over 1.x; add your networks again after updating.


🤔 The problem

Most routers and repeaters broadcast the same network name (SSID) on 2.4 GHz and 5 GHz. Android treats them as one network and often picks the 2.4 GHz access point, even with a 5 GHz one right next to it.

2.4 GHz is crowded and slow. On the phone BandLock was built on, the same network gave:

Connected to Link speed Real download
Repeater, 2.4 GHz 78 Mbit/s ~2 Mbit/s 🐢
Repeater/router, 5 GHz (locked by BandLock) 351–390 Mbit/s ~203 Mbit/s 🚀

Most phones have no "5 GHz only" switch. BandLock adds one, per network, with a safe fallback.

✨ Features

🔒 5G or 2.4G, per network Pick the band for each network. 5G for speed, 2.4G for range. Networks that only have one band are marked "5G only" or "2.4G only".
🏠 Several networks Home, work, a friend's place. Each one keeps its own band and password.
🔁 Smart roaming Moves between your router and repeaters when another access point on your band is clearly stronger, without flapping.
🛟 You choose the fallback Never lose Wi-Fi: use any band until yours is back. Keep the lock: stay on your band, even if Wi-Fi drops.
🛠️ Fix it One screen that finds what's wrong (permissions, location, battery limits, a saved copy in the way, wrong password) and fixes it in one tap.
⚡ Optional Shizuku Grants every permission in one tap and switches access points instantly. No root.
🪪 Phone MAC switch One switch to connect with your phone's real MAC instead of a random one. Useful for MAC filtering and DHCP reservations (needs Shizuku).
🌍 23 languages Pick the language right in the app, in setup, on Home or in Settings. Right-to-left for Arabic, Persian and Urdu.
🎨 Clean design Light mode and a pure black dark mode. Big icons, little text.
📊 Speed test One-tap download test to see the difference.
🔔 Updates Tells you when a new version is out, with a one-tap download.
🧩 Quick Settings tile Turn the lock on or off from the notification shade.

📥 Install

  1. On your phone, download BandLock.apk.
  2. Open it. The first time, Android asks to allow installs from your browser or file manager. Allow it.
  3. Open BandLock and follow the short setup.

Requires Android 11 or newer and a phone with 5 GHz Wi-Fi. BandLock is distributed through GitHub Releases only.

[!TIP] Every release is signed with the same key, so updates install over the old version. The SHA-256 of each APK is in the release notes.

🚀 Getting started

  1. Setup wizard. Choose your language, optionally connect Shizuku, allow the permissions, and choose what happens when your band is gone.
  2. Add a network. Tap Add network, pick yours from the list, choose 5G or 2.4G, type the password once and tap Connect.
  3. Done. BandLock keeps your phone on that band in the background. If something needs your attention, the 🛠️ Fix it button tells you what and fixes it.

[!NOTE] Why location? Android only shows Wi-Fi scan results to apps that have location access. BandLock never records where you are.

⚙️ How it works

BandLock uses Android's official Wi-Fi suggestion API and pins your network to the best access point on the band you chose.

            strong AP on your band                  clearly stronger AP on your band
  ┌───────┐ ──────────────────────▶ ┌────────────┐ ────────────────────────────────▶ move (roam)
  │ Start │                         │   LOCKED   │
  └───────┘ ──┐                     │ one access │ ◀──┐
              │ band not around     │   point    │    │ your band is back
              ▼                     └────────────┘    │
        ┌────────────┐  weak / gone / no internet     │
        │  FALLBACK  │ ◀───────────────────────────── ┤
        │ any band*  │ ───────────────────────────────┘
        └────────────┘      * "Never lose Wi-Fi" only. "Keep the lock" waits instead.
  • A small background service watches Wi-Fi and respects Android's scan limits.
  • A safety check runs every 15 minutes in case Android stopped the service.
  • With Shizuku, BandLock switches access points right away instead of waiting for Android.

🔐 Privacy & security

  • No ads, no analytics, no crash reporting, no accounts.
  • The only network requests are the speed test (speed.cloudflare.com) when you start it, and the update check (api.github.com). Neither sends anything about you, and the update check can be turned off.
  • Wi-Fi passwords are encrypted with a key held in the Android Keystore and never leave your phone.
Permissions and why they're needed
Permission Why
Location (precise, all the time) Android requires it to see Wi-Fi networks, including in the background
Nearby Wi-Fi devices To control Wi-Fi
Notifications Lock status and alerts
No battery limit So Android doesn't stop the lock
Wi-Fi state / change Read Wi-Fi info and suggest networks
Foreground service, boot Keep the lock running, also after a restart
Internet Only the speed test and the update check

⚠️ Limitations

  • Your own saved network can win. Android may prefer a network you saved yourself. BandLock spots this and tells you how to fix it.
  • Phone makers differ. Some Wi-Fi stacks behave differently. With Never lose Wi-Fi, BandLock always falls back rather than leave you offline.
  • Switching isn't always instant without Shizuku. Android picks the new access point in its own time, usually under a minute.
  • Non-root Shizuku stops when the phone restarts. BandLock keeps working without it.
  • Enterprise (802.1X) and WEP networks aren't supported. Open, WPA2, WPA3 and WPA2/WPA3 are.

❓ FAQ

How do I force 5 GHz Wi-Fi on Android?

Android has no built-in "5 GHz only" option for networks that use the same name on both bands. BandLock pins your phone to an access point on the band you choose, and falls back if you want it to.

Why does my phone keep connecting to 2.4 GHz?

2.4 GHz often shows a stronger signal, so Android picks it even though 5 GHz is much faster. Repeaters that copy your network name make it worse.

Do I need root?

No. Shizuku is optional and doesn't need root either.

Will I lose Wi-Fi if 5 GHz goes down?

Not with Never lose Wi-Fi (the default): BandLock lets Android use any band and locks again when yours is back. Pick Keep the lock if you'd rather wait for your band.

Does it work with mesh Wi-Fi and repeaters?

Yes, that's the main use case. BandLock roams between the access points of the same network on your band.

Is it on Google Play?

No, GitHub Releases only.

Is BandLock 2 open source?

The source code in this repository is BandLock 1.x (MIT). BandLock 2 is released as a free APK.

⭐ Star history

If BandLock made your Wi-Fi faster, a ⭐ helps others find it.

🛠️ Build BandLock 1.x from source

git clone https://github.com/nourddinak/BandLock.git
cd BandLock
./gradlew testDebugUnitTest assembleDebug

Needs JDK 17+ and the Android SDK (compileSdk 36). The APK lands in app/build/outputs/apk/debug/.

Tech: Kotlin · Jetpack Compose · Material 3 · WorkManager · minSdk 30 · targetSdk 36.

🤝 Contributing

Bug reports and test results from different phone brands are very welcome. Include your phone model, Android version and what happened. Please never post passwords, BSSIDs or MAC addresses in issues.

🔑 Want to work on BandLock 2?

BandLock 2's code is private, but help is welcome: features, fixes, translations, design or testing. Request access → Fill in the short form; if it's a good fit, you'll get an invite on GitHub.

👥 Contributors

Thanks to everyone who helps make BandLock better.

📄 License

BandLock 1.x source: MIT © BandLock contributors

Keywords: force 5GHz Wi-Fi Android · 5 GHz only · prefer 5GHz · disable 2.4GHz · Wi-Fi band lock · BSSID lock · Wi-Fi band selection · repeater · mesh · Shizuku · open source Android Wi-Fi tool

Explore related projects

Loading…