Repository navigation
Release 1.1.0: profiles, privacy toggles, location spoofing, and the crash fixes in them - #2
Merged
Merged
Conversation
Builds on the in-progress work for named profiles, the privacy feature
switches and the timezone/region/GPS/keyboard/proxy fields, and fixes the
defects found while testing them against a live LSPosed target.
Crashes and data loss:
- Field.PROXY_PORT and Prefs.PROXY_PORT are the same key. The profile sync
wrote it as a String and then as an int, so the next getString threw
ClassCastException and the app died on every profile switch or create.
The proxy is String-only throughout now, and startup clears any key an
older build left under the wrong type.
- ProfileManager created an empty default profile instead of adopting the
values already in the flat keys, so the first switch away and back wiped
them. It now seeds from the existing preferences.
- A stray comma in the virtual Gmail list made new Account("", type) throw
out of handleLoadPackage, into the hooked app.
- Import wrote the profile store but left the in-memory copy stale, so the
next edit overwrote what was just imported.
Behaviour:
- Bulk randomising no longer touches configuration. "Random all" and "new
values every launch" used to replace the hidden-app list, keyboard id,
proxy host and port with random values every time an app started.
- Timezone, region and GPS now derive from the same operator row as the
SIM, so a randomised device does not claim a German carrier while
sitting in Tokyo. Coordinates are jittered around a city centre.
- Comma-separated lists are trimmed, so "a, b" matches b.
- Region keeps the device language instead of forcing English, and is
applied as a hook: the framework resets the default locale after
handleLoadPackage, so setDefault alone was silently doing nothing.
- Timezone rejects an unknown id rather than silently falling back to GMT,
and hands out a copy so callers cannot corrupt the shared instance.
- LAN-scan blocking leaves loopback alone; apps run their own local
servers on it. The proxy selector likewise returns NO_PROXY for
loopback and LAN hosts.
- Play Store spoofing covers getInstallSourceInfo, not just the method
deprecated in API 30.
- getLastKnownLocation fills in accuracy and timestamps, which callers
reject when absent.
- Sensor jitter skips exact 0 and 1 so step counts and proximity flags
stay intact.
Also: the proxy on/off switch, which nothing ever set, so the proxy could
never run; profile rename, delete and a profile menu; one preferences
commit per batch instead of one per field; and semantic validation for
timezone ids, coordinate ranges and port numbers.
versionCode 2 so LSPosed offers the update, and the docs now describe what the module actually does: profiles, the privacy switches, the proxy, and the timezone/region/GPS group. Known limitations and the roadmap are rewritten against the current code. Several old entries were done (profiles, timezone/region/GPS, LAN-scan blocking, Wi-Fi scan hiding) and the ones that replace them are real: app hiding only filters list APIs, the device profile still contradicts itself through Build.FINGERPRINT and ro.product.*, region covers Locale.getDefault but not Configuration.getLocales, and every scoped app shares one identity.
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.
Completes the in-progress work for named profiles, the privacy feature switches and the timezone/region/GPS/keyboard/proxy fields, fixes the defects found while testing it against a live LSPosed target, and bumps to 1.1.0.
Crashes and data loss
Field.PROXY_PORTandPrefs.PROXY_PORTare the same key"proxy_port"; the profile sync wrote it as aStringin the field loop and thenputIntover it, so the nextgetStringthrewClassCastException. The proxy is String-only throughout now, and startup clears any key an older build left under the wrong type.ProfileManagercreated an empty default profile instead of adopting the values already in the flat keys, so the first switch away and back blanked everything.new Account("", type)throws, and the loop sat outside thetry.Behaviour
a, bactually matchesb.handleLoadPackage, sosetDefaultalone was silently doing nothing.getInstallSourceInfo, not just the method deprecated in API 30.0and1so step counts and proximity flags stay intact.Also adds the proxy on/off switch (nothing ever set
PROXY_ENABLED, so the proxy could never run), profile rename/delete, one preferences commit per batch instead of one per field, and semantic validation for timezone ids, coordinate ranges and ports.Verification
Tested on a Pixel 7 AVD with LSPosed, using a purpose-built probe app scoped to the module, against a module-off baseline. Confirmed working: IMEI, SIM serial, IMSI, line1, operator/name/country, all
Buildfields,getSerial,ro.serialno, Wi-Fi/BT MACs,wlan0hardware address,ANDROID_ID,bluetooth_address, default IME, MediaDrm id, advertising id, developer-options hiding, Play Store installer (both APIs), keyboard hiding, app hiding, LAN-scan blocking, Wi-Fi scan hiding, timezone, region, GPS, virtual accounts, proxy, sensor jitter, VPN interface hiding (with a livetun0), per-launch re-rolling, and a full export → clear → import round trip.The minified release APK was installed and verified separately, since every other test used the debug build.
Upgrading from 1.0.0 is a clean install
1.0.0 was signed with an ephemeral CI debug key, so 1.1.0 cannot install over it:
Users must export their values, uninstall, reinstall, then re-enable the module in LSPosed and re-select scope — the reinstall clears both. 1.1.0 onward is signed with a stable release key, so this is a one-time break.
Known gaps, not addressed here
getInstalledPackages/getInstalledApplicationsonly; a directgetPackageInfo("pkg")still answers truthfully.Build.FINGERPRINT,DEVICE,PRODUCTandro.product.*are still real, contradicting the spoofed brand/model.Configuration.getLocales()is not spoofed, so an app reading region that way sees the real one.