From 1f5a147c7352c1c951ed5b83a40ff5af464a202e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 3 Nov 2016 13:43:34 +0100 Subject: [PATCH] New app: F-Droid Privileged Extension OTA update ZIP This is not actually an APK, but an OTA (Over-The-Air) update ZIP file that is meant to be flashed onto the /system partition using the recovery. This is the first non-APK to be built and included in the f-droid.org repo. This relies on the buildserver running fdroidserver that includes: https://gitlab.com/fdroid/fdroidserver/merge_requests/181 This should use the exact same signing key as org.fdroid.fdroid.privileged, but the APK signing key can change for the update.zip, since upgrades do not happen via the normal method, and instead the update.zip will remove the current APK and replace it with the current one without a signature check. https://gitlab.com/fdroid/fdroidserver/issues/233 closes https://gitlab.com/fdroid/privileged-extension/issues/9 --- metadata/org.fdroid.fdroid.privileged.ota.txt | 47 +++++++++++++++++++ metadata/org.fdroid.fdroid.privileged.txt | 3 ++ 2 files changed, 50 insertions(+) create mode 100644 metadata/org.fdroid.fdroid.privileged.ota.txt diff --git a/metadata/org.fdroid.fdroid.privileged.ota.txt b/metadata/org.fdroid.fdroid.privileged.ota.txt new file mode 100644 index 0000000000..8bfa79b461 --- /dev/null +++ b/metadata/org.fdroid.fdroid.privileged.ota.txt @@ -0,0 +1,47 @@ +Categories:System +License:Apache2 +Web Site:https://f-droid.org +Source Code:https://gitlab.com/fdroid/privileged-extension +Issue Tracker:https://gitlab.com/fdroid/privileged-extension/issues +Donate:https://f-droid.org/about +FlattrID:343053 +Bitcoin:15u8aAPK4jJ5N8wpWJ5gutAyyeHtKX5i18 + +Auto Name:F-Droid Privileged Extension +Summary:Help F-Droid acquire system privileges +Description: +'''Note:''' F-Droid will need root privileges to install this app as a system +app. + +[[org.fdroid.fdroid]] can make use of system privileges or permissions to +install, update and remove applications on its own. The only way to obtain those +privileges is to become a system app. + +This is where the Privileged Extension comes in - being a separate app and much +smaller, it can be installed as a system app and communicate with the main app +via AIDL IPC. + +This has several advantages: + +* Reduced disk usage in the system partition +* System updates don't remove F-Droid +* The process of installing into system via root is safer + +This is packaged as an OTA (Over-The-Air) update ZIP file. It must be installed +using TWRP or other Android recovery that can flash updates to the system from +the /data/data/org.fdroid.fdroid folder on the /data partition. The standalone +APK is called [[org.fdroid.fdroid.privileged]]. +. + +Repo Type:git +Repo:https://gitlab.com/fdroid/privileged-extension.git + +Build:0.2,2000 + commit=0.2 + output=app/build/distributions/FDroidPrivilegedExtension-0.2.zip + build=gradle updateZipRelease + +Auto Update Mode:Version %v +Update Check Mode:Tags +Current Version:0.2 +Current Version Code:2000 diff --git a/metadata/org.fdroid.fdroid.privileged.txt b/metadata/org.fdroid.fdroid.privileged.txt index 6b0edd5591..0dae768e30 100644 --- a/metadata/org.fdroid.fdroid.privileged.txt +++ b/metadata/org.fdroid.fdroid.privileged.txt @@ -26,6 +26,9 @@ This has several advantages: * Reduced disk usage in the system partition * System updates don't remove F-Droid * The process of installing into system via root is safer + +Instead of this build, most users will want to install the "Over-The-Air" (OTA) +update zip file is called [[org.fdroid.fdroid.privileged.ota]]. . Repo Type:git