You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
XPL-EX's "PrivacyEx" hooks collection does not block/hide device info like XPrivacyLua "Privacy" collection
Looking at the hook code
param:getSetting("device.brand", "OnePlus")
returnsnil
soparam:setResult(fake)
is never called. Ifdevice.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.The text was updated successfully, but these errors were encountered: