This repository was archived by the owner on Nov 25, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathhook_117.json
More file actions
1 lines (1 loc) · 1.6 KB
/
Copy pathhook_117.json
File metadata and controls
1 lines (1 loc) · 1.6 KB
1
{"builtin":false,"collection":"Privacy","group":"Use.Tracking","name":"TelephonyManager\/getSimCountryIso","author":"M66B,gently","version":1,"description":"fake country iso name such as jp,hk,us,uk.....etc","className":"android.telephony.TelephonyManager","methodName":"getSimCountryIso","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 = 'xx'\n\n local setting = param:getSetting(\"CountryIso\")\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":["CountryIso"]}