diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 08bd14f..28b48e5 100644 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -1,10 +1,33 @@ #!/sbin/sh -# This is a dummy file that should be replaced with a proper installer script -# If you are creating a module locally for personal usage or testing, -# download the script in the following URL: -# https://github.com/topjohnwu/Magisk/blob/master/scripts/module_installer.sh -# And replace this script with the downloaded script +################# +# Initialization +################# -# Error, this script should always be replaced -exit 1 +umask 022 + +# echo before loading util_functions +ui_print() { echo "$1"; } + +require_new_magisk() { + ui_print "*******************************" + ui_print " Please install Magisk v20.4+! " + ui_print "*******************************" + exit 1 +} + +######################### +# Load util_functions.sh +######################### + +OUTFD=$2 +ZIPFILE=$3 + +mount /data 2>/dev/null + +[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk +. /data/adb/magisk/util_functions.sh +[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk + +install_module +exit 0 diff --git a/README.md b/README.md index 32f558c..2504188 100644 --- a/README.md +++ b/README.md @@ -2,112 +2,105 @@ ![Magisk](http://i.imgur.com/WA4LBkF.png) -This is an unofficial installer of the F-Droid Privileged Extension. With the power of Magisk, this is done systemlessly. +This is an unofficial installer of [the F-Droid Privileged Extension](https://f-droid.org/packages/org.fdroid.fdroid.privileged/). With the power of [Magisk](https://topjohnwu.github.io/Magisk/), this is done systemlessly. -[XDA](https://forum.xda-developers.com/apps/magisk/module-f-droid-privileged-extension-t3587068#post71796001) +Read [the XDA thread](https://xdaforums.com/t/module-f-droid-privileged-extension.3587068/) for more info. --- What to know: * Please make sure you're running at least F-Droid 0.103 -* Reqiures Magisk 17+ -* If running Android 11+, I suggest using [Aurora Droid](https://f-droid.org/en/packages/com.aurora.adroid/) and [Aurora Services](https://github.com/whyorean/AuroraServices). F-Droid does not seem interested in updating their installer extension, and I will of course update this module when F-Droid updates their extension. +* Requires Magisk 20.4+ +* Use _Code_ > _Download ZIP_ from [the GitHub repo](https://github.com/Magisk-Modules-Repo/Fdroid-Priv) for the latest version of this installer +* If running Android 11+, I suggest using [Aurora Droid](https://f-droid.org/en/packages/com.aurora.adroid/) and [Aurora Services](https://github.com/whyorean/AuroraServices). F-Droid does not seem interested in updating their installer extension, and I will of course update this module when F-Droid updates their extension. + --- -### Changelog: +## Changelog (ALWAYS read the changelog please) -#### 2021-07-21 - ->Updated to Privileged Extension 0.2.12 - -#### 2019-11-28 - ->Updated to Privileged Extension 0.2.11 - -#### 2019-03-28 - ->Updated to MagiskInstaller template - ->Updated to Privileged Extension 0.2.9 - ->Tidy up changelog - -#### 2018-09-02 - ->Updated to Template 1700 - -#### 2018-05-03 - ->Updated to Privileged Extension 0.2.8 - ->Changed changelog format - -#### v11 +### 2024-12-02 ->Template 1500 +* Updated to Privileged Extension 0.2.13 +* Updated to use `util_functions.sh` from Magisk 20.4+ +* Updated README ->Please update to Magisk 15.0 before updating +### 2021-07-21 -#### v10 +* Updated to Privileged Extension 0.2.12 ->Updated to Privileged Extension 0.2.7 +### 2019-11-28 ->Updated to Template 1410 +* Updated to Privileged Extension 0.2.11 ->Only install this if you are on Magisk 14.1, a zip for Magisk 14.0 can be found [here](https://www.androidfilehost.com/?fid=745849072291676800) +### 2019-03-28 -#### v9 +* Updated to MagiskInstaller template +* Updated to Privileged Extension 0.2.9 +* Tidy up changelog ->Updated to Privileged Extension 0.2.6 +### 2018-09-02 -#### v8 +* Updated to Template 1700 ->Updated to Template 1400 +### 2018-05-03 ->Please update to Magisk 14.0 if you have not already +* Updated to Privileged Extension 0.2.8 +* Changed changelog format -#### v7 +### v11 ->Updated to Update to template 4 +* Template 1500 +* Please update to Magisk 15.0 before updating -#### v6 +### v10 ->Updated to Privileged Extension 0.2.5 +* Updated to Privileged Extension 0.2.7 +* Updated to Template 1410 +* Only install this if you are on Magisk 14.1, a zip for Magisk 14.0 can be found [here](https://www.androidfilehost.com/?fid=745849072291676800) ->Please update F-Droid to version 0.103 if you have not already. +### v9 -#### v5 +* Updated to Privileged Extension 0.2.6 ->If you installed the zip on the XDA thread, please remove that module before installing this version. +### v8 ->Privileged Extension 0.2.4 +* Updated to Template 1400 +* Please update to Magisk 14.0 if you have not already -#### v4 +### v7 ->First public release +* Updated to Update to template 4 ->Privileged Extension 0.2.3 +### v6 -#### v3 +* Updated to Privileged Extension 0.2.5 +* Please update F-Droid to version 0.103 if you have not already. ->Private release +### v5 ->Privileged Extension 0.2.2 +* If you installed the zip on the XDA thread, please remove that module before installing this version. +* Privileged Extension 0.2.4 -#### v2 +### v4 ->Private release +* First public release +* Privileged Extension 0.2.3 ->Privileged Extension 0.2 +### v3 +* Private release +* Privileged Extension 0.2.2 -#### v1 +### v2 ->Private release +* Private release +* Privileged Extension 0.2 ->Privileged Extension 0.1 +### v1 ->Based directly on PunchyStick's extension +* Private release +* Privileged Extension 0.1 +* Based directly on PunchyStick's extension diff --git a/module.prop b/module.prop index 387f3c2..b93a958 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=Fdroid-Priv name=F-Droid Privileged Extension -version=2021-07-21 -versionCode=19 +version=v0.2.13 (2022-01-21) +versionCode=2130 author=Ryaniskira description=Installs F-Droid Privileged Extension systemlessly diff --git a/system/priv-app/Fdroid/Fdroid.apk b/system/priv-app/Fdroid/Fdroid.apk index 55e0dcd..d43ee7a 100644 Binary files a/system/priv-app/Fdroid/Fdroid.apk and b/system/priv-app/Fdroid/Fdroid.apk differ