Jump to content

[Tutorial] How to install the F-Droid Privileged Extension on the Pro1


Recommended Posts

Hi,

It took me a while to figure it out, so I'm writing it down in case I need it in the future. 🙂 The OTA zip doesn't work with the Pro1's system-as-root, so one has to install it manually. So here's the guide. The procedure was tested on LineageOS.

WARNING: following this guide on stock will break OTA updates. See post #4.

1. Download the zip from https://f-droid.org/en/packages/org.fdroid.fdroid.privileged.ota/ and unpack it.
2. Execute the following commands:

adb root
adb remount
mv permissions_org.fdroid.fdroid.privileged.xml org.fdroid.fdroid.privileged.xml 
adb push org.fdroid.fdroid.privileged.xml /etc/permissions/
adb push F-DroidPrivilegedExtension.apk /system/priv-app/
adb shell chmod 644 /system/priv-app/F-DroidPrivilegedExtension.apk
adb push 80-fdroid.sh /system/addon.d/

Enjoy!

Note: there's also said to be some Magisk module you can use if you don't like this approach

Edited by marmistrz
fixed a typo in the instruction, push the addon.d file for OTAs
  • Thanks 1
Link to post
Share on other sites
52 minutes ago, marmistrz said:

@daniel.schaaaf, you mean the OTA updates of the official Fxtec ROM? Why would this happen?
Disclaimer: I'm using LineageOS, so I can't even test OTAs.

Official OTAs won't install when the checksum of the system partition does not match the expected value. Even remounting /system as rw, without further modifications, will change its checksum.

Magisk prevents this by linking files to /system during boot without altering the system partition itself. This should also benefit LineageOS, because Magisk modules and settings survive /system updates.

  • Thanks 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms