forked from 0bbedCode/XPL-EX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hook_113.json
1 lines (1 loc) · 1.56 KB
/
hook_113.json
1
{"builtin":false,"collection":"Privacy","group":"Use.Tracking","name":"TelephonyManager\/getNetworkOperatorName","author":"M66B,gently","version":1,"description":"ISP name fake","className":"android.telephony.TelephonyManager","methodName":"getNetworkOperatorName","parameterTypes":[],"returnType":"java.lang.String","minSdk":1,"maxSdk":999,"minApk":0,"maxApk":2147483647,"enabled":true,"optional":false,"usage":true,"notify":false,"luaScript":"-- This file is part of XPrivacyLua.\n\n-- XPrivacyLua is free software: you can redistribute it and\/or modify\n-- it under the terms of the GNU General Public License as published by\n-- the Free Software Foundation, either version 3 of the License, or\n-- (at your option) any later version.\n\n-- XPrivacyLua is distributed in the hope that it will be useful,\n-- but WITHOUT ANY WARRANTY; without even the implied warranty of\n-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n-- GNU General Public License for more details.\n\n-- You should have received a copy of the GNU General Public License\n-- along with XPrivacyLua. If not, see <http:\/\/www.gnu.org\/licenses\/>.\n\n-- Copyright 2017-2018 Marcel Bokhorst (M66B)\n\nfunction after(hook, param)\n local result = param:getResult()\n if result == nil then\n return false\n end\n\n local fake = 'unknown'\n\n local setting = param:getSetting(\"ISP\")\n if setting == nil then\n \tparam:setResult(fake)\n \treturn true, result, fake\n end\n\n fake = setting\n param:setResult(fake)\n return true, result, fake\nend\n","settings":["ISP"]}