An open-source Xposed module that spoofs your device identifiers, so third-party apps that track users can't see your real ids.
Many apps read hardware and SIM identifiers (IMEI, Android ID, MAC addresses, advertising ID and so on) to follow you across apps, reinstalls and factory resets. Hide My Device hooks the Android APIs those apps call and hands them values you choose, or realistic random ones, so your real identifiers stay private.
You decide which apps are affected: only the apps you tick in LSPosed see spoofed values. Everything else on the device keeps working normally.
- Spoof 29 identifiers across eight groups: device, device model, Wi-Fi & Bluetooth, SIM & mobile, timezone/region/GPS, keyboard, system privacy, and proxy & accounts.
- Edit or randomise each value individually, or randomise everything with one tap.
- Realistic random values: IMEI and ICCID carry valid Luhn check digits; MAC addresses are valid unicast addresses; SIM values (operator code, name, country, IMSI prefix, phone country code) always belong to the same real operator; brand, manufacturer and model always match a real phone.
- Named profiles: keep several identities and switch between them; create, rename and delete.
- New identity on every app start (optional): each launch of a target app gets fresh random identifiers. Configuration (hide lists, keyboard id, proxy) is never re-rolled.
- Coherent identities: the SIM operator decides the timezone, region and GPS position too, so a randomised device does not claim a German carrier while sitting in Tokyo.
- Privacy switches: hide an active VPN, hide developer options and ADB, report Google Play as the installer, block private LAN scans, hide nearby Wi-Fi scan results, add realistic sensor noise.
- Per-profile proxy: route app traffic through an HTTP or SOCKS proxy, leaving loopback and LAN direct.
- Master switch to turn spoofing off without losing your values.
- Export / import your values as a JSON file.
- Long-press a value to copy it.
- Zero cost for what you don't use: hooks are installed only for identifiers that have a value.
- Material 3 interface with dynamic colours (Android 12+) and dark mode.
| Group | Identifier | APIs hooked |
|---|---|---|
| Device | IMEI | TelephonyManager.getImei, getDeviceId |
| Hardware ID (serial) | Build.SERIAL, Build.getSerial, ro.serialno / ro.boot.serialno |
|
| Android ID | Settings.Secure android_id |
|
| Advertising ID | AdvertisingIdClient.Info.getId (Google Play services library) |
|
| MediaDrm ID | MediaDrm.getPropertyByteArray("deviceUniqueId") |
|
| Device model | Brand, manufacturer, model | Build.BRAND, Build.MANUFACTURER, Build.MODEL |
| Wi-Fi & Bluetooth | MAC address | WifiInfo.getMacAddress, NetworkInterface.getHardwareAddress (wlan0) |
| BSSID | WifiInfo.getBSSID |
|
| SSID | WifiInfo.getSSID |
|
| Bluetooth MAC | BluetoothAdapter.getAddress, Settings.Secure bluetooth_address |
|
| SIM & mobile | SIM serial (ICCID) | TelephonyManager.getSimSerialNumber, SubscriptionInfo.getIccId |
| Subscriber ID (IMSI) | TelephonyManager.getSubscriberId |
|
| Mobile number | getLine1Number, SubscriptionInfo.getNumber, SubscriptionManager.getPhoneNumber |
|
| Operator (MCC+MNC) | getSimOperator, getNetworkOperator |
|
| Operator name | getSimOperatorName, getNetworkOperatorName, carrier-ID names, SubscriptionInfo.getCarrierName |
|
| SIM country | getSimCountryIso, getNetworkCountryIso, SubscriptionInfo.getCountryIso |
|
| Timezone, region & GPS | Timezone | TimeZone.getDefault |
| Region / country | Locale.getDefault (country only; the device language is kept) |
|
| Latitude, longitude | Location.getLatitude, getLongitude, LocationManager.getLastKnownLocation |
|
| Keyboard & IME | Default keyboard | Settings.Secure default_input_method |
| Hidden keyboards | InputMethodManager.getInputMethodList, getEnabledInputMethodList |
|
| System privacy | Hidden apps | PackageManager.getInstalledPackages, getInstalledApplications |
| Proxy & accounts | Virtual Gmail accounts | AccountManager.getAccounts, getAccountsByType |
| Proxy host, port, type | ProxySelector.getDefault |
Leave a field empty and the app sees the real value.
- Android 8.1 (API 27) or newer
- A rooted device (Magisk, KernelSU, APatch, …)
- LSPosed (or a compatible fork) installed and active
Classic Xposed and EdXposed get a best-effort fallback for sharing settings, but only LSPosed is tested.
- Install it from the LSPosed module repository (LSPosed → Repository → search "Hide My Device", or modules.lsposed.org). You can also download the latest
HideMyDevice-*-release.apkfrom Releases, or a build from the Actions tab. - Install it.
- Open LSPosed → Modules → Hide My Device, switch Enable module on, and tick the apps you want to spoof.
- Open Hide My Device and set values (or tap Random all).
- Force-stop the target apps (or reboot). Values are read when an app starts.
The banner at the top of the app shows whether LSPosed has picked up the module.
| Action | How |
|---|---|
| Edit a value | Tap the card or the pencil icon. Leave it empty to stop spoofing that id. |
| Random value for one id | Tap the shuffle icon on its card. |
| Randomise everything | Random all button. |
| Copy a value | Long-press its card. |
| New values per launch | Turn on New random values every time an app starts. |
| Pause spoofing | Turn off Enable spoofing. |
| Backup / restore | Overflow menu → Export to file / Import from file. |
| Remove all values | Bin icon → Clear all. |
Changes apply the next time a target app starts.
Requirements: JDK 17+ (21 recommended) and the Android SDK with platform 36.
git clone https://github.com/imkamaran/HideMyDevice.git
cd HideMyDevice
./gradlew assembleDebug # app/build/outputs/apk/debug/app-debug.apk
./gradlew assembleRelease # app/build/outputs/apk/release/app-release.apk (minified)On Windows use gradlew.bat. Opening the project in Android Studio also works.
Without signing variables the release APK is signed with your local debug key.
.github/workflows/build.yml builds debug and release APKs on every push to main, every pull request, and on manual runs. The APKs are attached to each run as artifacts.
Pushing a tag that starts with v (for example v1.0.0) also publishes a GitHub Release with the release APK attached:
git tag v1.0.0
git push origin v1.0.0So that updates install over older versions, sign releases with a fixed key. Add these repository secrets (Settings → Secrets and variables → Actions):
| Secret | Value |
|---|---|
SIGNING_KEYSTORE_BASE64 |
Your .jks keystore, base64-encoded |
SIGNING_STORE_PASSWORD |
Keystore password |
SIGNING_KEY_ALIAS |
Key alias |
SIGNING_KEY_PASSWORD |
Key password |
Create a keystore and encode it:
keytool -genkeypair -v -keystore release.jks -alias hidemydevice -keyalg RSA -keysize 4096 -validity 10000
base64 -w0 release.jks > release.jks.b64 # Linux
# PowerShell: [Convert]::ToBase64String([IO.File]::ReadAllBytes("release.jks")) > release.jks.b64Without these secrets CI still builds, but each run uses a throwaway debug key, so users can't update in place between CI builds.
app/src/main/java/com/hidemydevice/app/
├── Hook.java Xposed entry point (listed in assets/xposed_init); runs inside each target app
├── Field.java The spoofable identifiers: preference key, label, validation, UI group
├── Category.java UI sections
├── Randomizer.java Realistic random values (Luhn digits, consistent operator/device data)
├── Prefs.java Shared preference file name and keys
├── MainActivity.java Main screen: edit, randomise, switches, export/import
└── AboutActivity.java About screen
- The app saves your values with
MODE_WORLD_READABLE. LSPosed allows this for modules (xposedsharedprefsin the manifest) and stores the file where target apps can read it. - When a target app starts, LSPosed loads
Hook. It reads the settings once throughXSharedPreferences. - For every identifier that has a value,
Hookreplaces the matching framework methods so they return that value. Identifiers without a value get no hook at all. - The app detects that it's active by asking LSPosed for a world-readable preference file (and by a self-hook on
MainActivity.isModuleActive).
These are good places to start contributing:
- Hiding an app only filters lists.
getInstalledPackagesandgetInstalledApplicationsare filtered, but a directgetPackageInfo("com.example")still answers truthfully, and most detectors ask by name rather than enumerating. - Device profile isn't fully consistent. Brand, manufacturer and model are spoofed, but
Build.FINGERPRINT,DEVICE,PRODUCTand thero.product.*properties are not, which contradicts them. The IMEI's TAC (model prefix) is random rather than matching the chosen model. - Region is only spoofed for
Locale.getDefault. An app readinggetResources().getConfiguration().getLocales()still sees the real country. - Every scoped app sees the same identity, so apps can still correlate with each other.
- "New values per launch" is per process. Apps with several processes may see different values in each one, and an app that sees a new IMEI on every start can tell something is spoofing it.
- The "active" banner shows that LSPosed recognises the module, not that a given target app is in scope.
- Only
wlan0is covered for MAC addresses. Wi-Fi scan results are hidden (an empty list), not replaced with plausible ones. - Dual-SIM: every slot gets the same IMEI; MEID isn't spoofed.
- Advertising ID is only spoofed if the app ships Google's unobfuscated
AdvertisingIdClient. - VPN hiding removes tunnel interfaces and clears the VPN transport, but an app that inspects routing tables directly may still notice.
- Native code (JNI, direct syscalls, reading
/sysor/procfiles) bypasses Java hooks.
Ideas we'd love help with:
- Hide apps from direct lookups (
getPackageInfo,getApplicationInfo,queryIntentActivities) - Consistent device profiles (fingerprint, device, product,
ro.product.*and IMEI TAC matching the model) - Stable per-app randomisation (seeded per app, consistent across processes)
- Spoof region for
Configuration.getLocales(), not justLocale.getDefault - Pin a value so "Random all" leaves it alone
- Spoof Wi-Fi / Bluetooth scan results with plausible networks rather than hiding them
- WebView fingerprint (user agent, canvas, navigator)
- In-app verification screen showing what a scoped app actually sees
- Unit tests for
Randomizerand validation - Translations
Hide My Device is open source and contributions are very welcome. Fork it, improve it, and send a pull request. No contribution is too small: bug reports, device test results, docs, translations, UI polish and new hooks all help.
- 🐛 Found a bug? Open an issue with your device, Android version and LSPosed version.
- 💡 Have an idea? Open a feature request or pick something from the roadmap.
- 🔧 Want to code? Read CONTRIBUTING.md, fork the repo, and open a pull request.
- ⭐ Like the project? Star it so others can find it.
This module is meant to protect your own privacy on your own device against tracking by third-party apps. Use it lawfully and in line with the terms of the services you use. Don't use it for fraud, to impersonate other people or devices, or to get around security measures that protect other people. The authors aren't responsible for misuse.
Spoofing identifiers can break apps that rely on them (banking, DRM-protected streaming, carrier apps). Only enable it for the apps you mean to.
MIT © 2026 Kamaran Raheem
Kamaran Raheem