This hook has nothing to do with privacy. When enabled, it allows the Android Package Manager to downgrade any app (possibly with loss of app data). By default, downgrading is not allowed. Instructions: 1. Download this hook. 2. Make sure that the Fif collection is enabled in XPL Pro. 3. In XPL, navigate to the "Android System" app (you may have to change the filter to "Show all apps" first), and expand the restriction categories. 4.a. Check the "Prevent downgrades" category. 4.b. Or, alternately, enable PackageManagerService.checkDowngrade hook for "Android System" in XPL Pro. Changelog: v1 - 2020-02-18 First public release.
|Updated (UTC)||2020-02-19 01:21:48|
|Created (UTC)||2020-02-19 01:21:48|
|Parameter types||android.content.pm.PackageParser$Package, android.content.pm.PackageInfoLite|
-- PackageManagerService.checkDowngrade is a Lua hook definition -- designed to work with XPrivacyLua. -- PackageManagerService.checkDowngrade 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. -- PackageManagerService.checkDowngrade 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. -- You should have received a copy of the GNU General Public License -- along with XPrivacyLua. If not, see <http://www.gnu.org/licenses/>. -- Copyright (C) 2020 Philippe Troin (Fif_ on XDA) function before(hook, param) param:setResult(nil) return true end