Skip to content

Release 1.2.0: consistent device identity, real app hiding, other apps, update check - #4

Merged
imkamaran merged 1 commit into
mainfrom
release/1.2.0
Nov 30, 2026
Merged

imkamaran merged 1 commit into
mainfrom
release/1.2.0

Conversation

@imkamaran

Copy link
Copy Markdown
Owner

Consistent device identity

Spoofing the model used to leave Build.DEVICE, PRODUCT, BOARD, HARDWARE, FINGERPRINT and the ro.product.* properties at their real values — so anything comparing them saw an emulator wearing a phone's name. On a test device this read Samsung Galaxy A54 5G with Product=sdk_gphone64_x86_64 and Board=goldfish_x86_64.

The device table now carries a real codename, product, board, SoC, build id, incremental and security patch per handset. The hook sets every Build/Build.VERSION field and widens the SystemProperties.get interception to ro.product.* (including partition aliases like ro.product.vendor.model), ro.board.platform, ro.hardware, ro.bootloader, the build id and version properties, and every ro.*.build.fingerprint. The fingerprint is composed around the real OS release rather than claiming a version that isn't running.

Nine new editable fields, so a hand-built profile can be as complete as a randomised one.

Hiding an app now survives the check that's actually used

Filtering getInstalledPackages/getInstalledApplications only defeats enumeration — which is not how detection works. It asks for the package it already suspects.

Hidden packages now raise NameNotFoundException from getPackageInfo, getApplicationInfo, getPackageUid, getPackageGids (and *AsUser), return null from getLaunchIntentForPackage, and are filtered out of queryIntent*, resolve* and getPackagesForUid. Only methods that declare NameNotFoundException throw it, so nothing surfaces as an UndeclaredThrowableException.

The module also conceals its own package from every scoped app, list or no list.

More from the developer

About links AppGuard, ADB Controller and the AVD KernelSU images, plus the full project list.

Update check

Asks GitHub once a day whether a newer release exists and offers it as a notification, with a snackbar when the app is open. Throttled, and off with one switch.

This is why the app now holds INTERNET — the first network access in the project. It contacts only this repo's releases endpoint, sends no query, body or identifying header, and the hooks never touch the network. Documented in a new README section.

Verification

On a Pixel 7 AVD with LSPosed, against a module-off baseline, using a probe app scoped to the module:

  • A Pixel 7 profile reported Pixel 7 / panther / panther / panther across Build.* and the raw ro.* properties, fingerprint included.
  • "Random all" produced one coherent device (Redmi / sapphire / holi / qcom, fingerprint stitched correctly).
  • getInstalledPackages 229 → 227, launcher query 27 → 25, a hidden installed package threw by name, self flipped from visible to NameNotFoundException, control package still resolved.
  • Update check: installed a temporary 1.0.0 and the real notification fired — "Hide My Device 1.1.0 is available" — resolved against the live 2-1.1.0 release. Throttle timestamp recorded.
  • About section renders and the AppGuard card opened the correct page.

Upgrading

1.1.0 → 1.2.0 installs in place — same signing key. The uninstall dance was a one-time consequence of 1.0.0's throwaway debug key.

…s, update check

Device identity is now internally consistent. Spoofing the model used to leave
Build.DEVICE, PRODUCT, BOARD, HARDWARE, FINGERPRINT and the ro.product.*
properties at the real values, so anything comparing them saw an emulator
wearing a phone's name. The device table now carries a real codename, product,
board, SoC, build id, incremental and security patch per handset, the hook sets
every Build and Build.VERSION field, and the SystemProperties interception
covers ro.product.* (including partition aliases such as
ro.product.vendor.model), ro.board.platform, ro.hardware, ro.bootloader, the
build id and version properties, and every ro.*.build.fingerprint. The
fingerprint is composed from the chosen device around the real OS release
rather than claiming a version that is not running.

Hiding an app now survives the check that is actually used. Filtering
getInstalledPackages and getInstalledApplications only defeats enumeration,
which is not how detection works: it asks for the package it already suspects.
Hidden packages now raise NameNotFoundException from getPackageInfo,
getApplicationInfo, getPackageUid and getPackageGids (and the AsUser variants),
return null from getLaunchIntentForPackage, and are filtered out of
queryIntent*, resolve* and getPackagesForUid. Only methods that declare
NameNotFoundException throw it, so nothing surfaces as an
UndeclaredThrowableException.

The module also conceals its own package from every app in scope, list or no
list. A tool whose purpose is concealment should not be the one package that
every scoped app can still enumerate.

About gains a "More from the developer" section linking AppGuard, ADB
Controller and the AVD KernelSU images, plus the full project list.

An optional update check asks GitHub once a day whether a newer release exists
and offers it as a notification, with a snackbar when the app is open. This is
the only network access in the project and the only reason it now holds
INTERNET: it contacts the project's own releases endpoint, sends no query, body
or identifying header, and stops entirely when the switch is off. The hooks
never touch the network.

Also: the build fingerprint, codename, board, hardware, bootloader, build id,
incremental and security patch are editable fields in their own right, so a
hand-built device profile can be as complete as a randomised one.
@imkamaran
imkamaran merged commit 7124dec into main Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant