Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaks device info #37

Open
mesvam opened this issue Jan 1, 2025 · 1 comment
Open

Leaks device info #37

mesvam opened this issue Jan 1, 2025 · 1 comment

Comments

@mesvam
Copy link

mesvam commented Jan 1, 2025

XPL-EX's "PrivacyEx" hooks collection does not block/hide device info like XPrivacyLua "Privacy" collection

  • Download CPU-Z
  • Open CPU-Z to tab "Device"
  • Model/Manufacturer/Board, etc. should be "unknown" rather than actual device info

Looking at the hook code

function after(hook, param)
	local ret = param:getResult()
	if ret == nil then
		return false
	end

    local fake = param:getSetting("device.brand", "OnePlus")
    if fake == nil then
        return false
    end

    param:setResult(fake)
    return true, ret, fake
end

param:getSetting("device.brand", "OnePlus") returns nil so param:setResult(fake) is never called. If device.brand is set to a value in the pro app, then the call works correctly.

Doing is this way, there's also no way for a setting like device.brand to return an empty string, since empty settings are interpreted as an unset value rather than an empty value.

@Todinito
Copy link

Todinito commented Jan 4, 2025

It happens with Tiktok too. It can know your location despite having everything activated. Do you know what happens?

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

No branches or pull requests

2 participants