FingerprintManager.isHardwareDetected

This hook has nothing to do with privacy. It hides the fingerprint sensor from applications. Instructions: 1. Download this hook. 2. Make sure that the Fif collection is enabled in XPL Pro. 3. In XPL, enable the (new) "Use fingerprint" collection for apps from which the fingerprint sensors should be hidden. Changelog: v1 - 2018-09-22 First public release.

CollectionFif
GroupUse fingerprint
NameFingerprintManager.isHardwareDetected
AuthorFif_
Version1
Updated (UTC)2018-09-22 18:05:42
Created (UTC)2018-09-22 18:05:42
Downloads802
Class nameandroid.hardware.fingerprint.FingerprintManager
Method nameisHardwareDetected
Parameter types
Return typeboolean
Min SDK0
Max SDK27
Min APK0
Max APK2147483647
Excluded packages-
EnabledYes
OptionalNo
UsageYes
NotifyNo
Settings-
-- FingerprintManager.isHardwareDetected is a Lua hook definition designed to work                     
-- with XPrivacyLua.

-- FingerprintManager.isHardwareDetected is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.

-- FingerprintManager.isHardwareDetected is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.

function after(hook, param)
  local result = param:getResult()
  if result then
    local fake = false
    param:setResult(fake)
    return true, tostring(result), tostring(fake)
  else
    return false
  end
end