Repository navigation
Release 1.2.0: consistent device identity, real app hiding, other apps, update check - #4
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consistent device identity
Spoofing the model used to leave
Build.DEVICE,PRODUCT,BOARD,HARDWARE,FINGERPRINTand thero.product.*properties at their real values — so anything comparing them saw an emulator wearing a phone's name. On a test device this readSamsung Galaxy A54 5GwithProduct=sdk_gphone64_x86_64andBoard=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.VERSIONfield and widens theSystemProperties.getinterception toro.product.*(including partition aliases likero.product.vendor.model),ro.board.platform,ro.hardware,ro.bootloader, the build id and version properties, and everyro.*.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/getInstalledApplicationsonly defeats enumeration — which is not how detection works. It asks for the package it already suspects.Hidden packages now raise
NameNotFoundExceptionfromgetPackageInfo,getApplicationInfo,getPackageUid,getPackageGids(and*AsUser), return null fromgetLaunchIntentForPackage, and are filtered out ofqueryIntent*,resolve*andgetPackagesForUid. Only methods that declareNameNotFoundExceptionthrow it, so nothing surfaces as anUndeclaredThrowableException.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:
Pixel 7 / panther / panther / pantheracrossBuild.*and the rawro.*properties, fingerprint included.Redmi / sapphire / holi / qcom, fingerprint stitched correctly).getInstalledPackages229 → 227, launcher query 27 → 25, a hidden installed package threw by name, self flipped from visible toNameNotFoundException, control package still resolved.2-1.1.0release. Throttle timestamp recorded.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.